Test repository to check push and ssh key
Find a file
Xisco Fauli f2736a462e sc_ucalc: Use a template for makefiles
Change-Id: I2146ded4c8c0eb8ba7814f76f3ec5d9030a67857
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115578
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-05-14 12:45:42 +02:00
.git-hooks
.github
.vscode
accessibility Revert "simplify the vcl<->toolkit connection" 2021-05-13 14:48:24 +02:00
android android: Don't crash trying to process non-existing file from recents 2021-05-11 10:05:45 +02:00
animations throw() -> noexcept, part 2/3: Automatic loplugin:noexcept rewrite 2021-05-02 17:02:28 +02:00
apple_remote
avmedia throw() -> noexcept, part 2/3: Automatic loplugin:noexcept rewrite 2021-05-02 17:02:28 +02:00
basctl Revert "simplify the vcl<->toolkit connection" 2021-05-13 14:48:24 +02:00
basegfx
basic tdf#132389 - Case-insensitive operation for non-ASCII characters 2021-05-13 20:03:07 +02:00
bean
bin inline some typedefs 2021-05-13 17:03:26 +02:00
binaryurp throw() -> noexcept, part 2/3: Automatic loplugin:noexcept rewrite 2021-05-02 17:02:28 +02:00
bridges loplugin:noexcept (macOS) 2021-05-07 11:12:15 +02:00
canvas fix leak in canvas test 2021-05-12 21:48:42 +02:00
chart2 Avoid temporary var + directly initialize vector in VDataSeries.cxx 2021-05-14 12:03:09 +02:00
cli_ure
codemaker throw() -> noexcept, part 2/3: Automatic loplugin:noexcept rewrite 2021-05-02 17:02:28 +02:00
comphelper loplugin:stringadd improvement for appending numbers 2021-05-03 15:32:53 +02:00
compilerplugins sc_ucalc: move shared formula tests to their own module 2021-05-14 12:44:29 +02:00
config_host
configmgr throw() -> noexcept, part 2/3: Automatic loplugin:noexcept rewrite 2021-05-02 17:02:28 +02:00
connectivity loplugin:noexcept (macOS) 2021-05-04 07:44:27 +02:00
cppcanvas transform by vector length, not just X 2021-05-06 11:21:48 +02:00
cppu throw() -> noexcept, part 2/3: Automatic loplugin:noexcept rewrite 2021-05-02 17:02:28 +02:00
cppuhelper throw() -> noexcept, part 2/3: Automatic loplugin:noexcept rewrite 2021-05-02 17:02:28 +02:00
cpputools
cui fix leak in SvxHpLinkDlg 2021-05-11 15:00:21 +02:00
dbaccess Revert "simplify the vcl<->toolkit connection" 2021-05-13 14:48:24 +02:00
desktop lok: move handleMacroConfirmationRequest to its own method 2021-05-11 02:20:09 +02:00
dictionaries@4fa94195b8 Update git submodules 2021-05-12 15:36:01 +02:00
distro-configs WASM: add distro config, amend readme 2021-05-05 21:16:02 +02:00
drawinglayer drawinglayer: move converter.hxx to public include 2021-05-11 01:16:23 +02:00
editeng do not leak SdrObject global pool on shutdown 2021-05-10 08:43:19 +02:00
embeddedobj embeddedobj: handle getting the visible area on a thread 2021-05-07 14:21:40 +02:00
embedserv
emfio tdf#142014 Fix displaying strokes when line width is 0 2021-05-13 22:00:05 +02:00
eventattacher
extensions Revert "simplify the vcl<->toolkit connection" 2021-05-13 14:48:24 +02:00
external Change one more <Carbon/Carbon.h> to <CoreGraphics/CoreGraphics.h> 2021-05-14 11:10:22 +02:00
extras tdf#141933 add preset dash styles with round cap 2021-05-05 13:42:30 +02:00
filter dispose component in test 2021-05-13 20:21:41 +02:00
forms comment on suspicious code 2021-05-13 18:13:37 +02:00
formula tdf#79049 speed up OOXML workbook load (4) 2021-05-02 10:00:43 +02:00
fpicker
framework loplugin:constmethod 2021-05-05 18:50:51 +02:00
helpcompiler
helpcontent2@cc7f7b0547 Update git submodules 2021-05-09 15:51:59 +02:00
hwpfilter
i18nlangtag Add English (Denmark) {en-DK} locale data 2021-05-06 17:46:52 +02:00
i18npool Typos in comments 2021-05-14 11:16:06 +02:00
i18nutil WASM: add initial support for Emscripten cross build 2021-05-05 21:14:54 +02:00
icon-themes
idl WASM: add initial support for Emscripten cross build 2021-05-05 21:14:54 +02:00
idlc
include can pass by const& here 2021-05-13 20:51:49 +02:00
instsetoo_native
io throw() -> noexcept, part 2/3: Automatic loplugin:noexcept rewrite 2021-05-02 17:02:28 +02:00
ios
javaunohelper
jurt
jvmaccess
jvmfwk I suspect that we unlikely to use JRE older than 1.3.1_07 2021-05-10 14:38:57 +02:00
l10ntools
librelogo
libreofficekit
lingucomponent
linguistic tdf#79049 speed up OOXML workbook load (4) 2021-05-02 10:00:43 +02:00
lotuswordpro loplugin:stringadd improvement for appending numbers 2021-05-03 15:32:53 +02:00
m4
nlpsolver clean up some Java warnings 2021-05-03 12:33:33 +02:00
o3tl add o3tl version of hash_combine to not depend on boost for this 2021-05-11 12:23:48 +02:00
odk
offapi Typos in comments 2021-05-14 11:16:06 +02:00
officecfg There’s no need to SHOUT to the user 2021-05-11 14:08:32 -05:00
onlineupdate
oovbaapi
oox tdf#141463 avoid skew in shape group in ooxml import .. 2021-05-11 17:19:34 +02:00
opencl
osx
package inline some typedefs 2021-05-13 17:03:26 +02:00
pch
postprocess
pyuno
qadevOOo
readlicense_oo update credits 2021-05-06 15:27:25 +02:00
registry
remotebridges
reportbuilder clean up some Java warnings 2021-05-03 12:33:33 +02:00
reportdesign tdf#141571 Base crashed on creation of user function 2021-05-13 22:18:43 +02:00
ridljar
sal WASM: add initial support for Emscripten cross build 2021-05-05 21:14:54 +02:00
salhelper
sax loplugin:stringadd improvement for appending numbers 2021-05-03 15:32:53 +02:00
sc sc_ucalc: Use a template for makefiles 2021-05-14 12:45:42 +02:00
scaddins
sccomp
schema Add proposal link 2021-05-04 16:28:08 +02:00
scp2
scripting inline some typedefs 2021-05-13 17:03:26 +02:00
sd Add extended tips to print dialog 2021-05-14 01:54:36 +02:00
sdext change usage of boost::hash_combine to o3tl::hash_combine 2021-05-11 12:28:24 +02:00
setup_native
sfx2 Directly initialize vectors in sfx2/ObjectInspectorTreeHandler 2021-05-14 11:07:17 +02:00
shell
slideshow
smoketest
solenv external: update pdfium to 4500 2021-05-12 09:03:57 +02:00
soltools
sot convert sal_uLong in sot 2021-05-07 11:02:56 +02:00
starmath Add extended tips to print dialog 2021-05-14 01:54:36 +02:00
stoc throw() -> noexcept, part 2/3: Automatic loplugin:noexcept rewrite 2021-05-02 17:02:28 +02:00
store
svgio svgio: instead of assert(false && ...) rather use SAL_WARN instead 2021-05-04 04:47:26 +02:00
svl tdf#127363: svl_qa_cppunit: Add unittest 2021-05-11 14:11:14 +02:00
svtools embeddedobj: handle getting the visible area on a thread 2021-05-07 14:21:40 +02:00
svx inline some typedefs 2021-05-13 17:03:26 +02:00
sw sw XHTML export: fix <blockquote> with no-margin to not have character children 2021-05-14 10:57:39 +02:00
swext
sysui
test
testtools throw() -> noexcept, part 2/3: Automatic loplugin:noexcept rewrite 2021-05-02 17:02:28 +02:00
toolkit DBG_ASSERT->assert in UnoWrapper 2021-05-13 20:52:05 +02:00
tools fix leak in ZCodec 2021-05-11 12:17:11 +02:00
translations@25d2fa3ee2 Update git submodules 2021-05-09 20:08:31 +02:00
ucb throw() -> noexcept, part 2/3: Automatic loplugin:noexcept rewrite 2021-05-02 17:02:28 +02:00
ucbhelper inline some typedefs 2021-05-13 17:03:26 +02:00
udkapi
uitest uitest: sd: simplify code 2021-05-04 15:07:14 +02:00
UnoControls throw() -> noexcept, part 2/3: Automatic loplugin:noexcept rewrite 2021-05-02 17:02:28 +02:00
unodevtools
unoidl throw() -> noexcept, part 2/3: Automatic loplugin:noexcept rewrite 2021-05-02 17:02:28 +02:00
unoil
unotest
unotools reduce cost of locking in SvtModuleOptions 2021-05-10 20:20:28 +02:00
unoxml throw() -> noexcept, part 2/3: Automatic loplugin:noexcept rewrite 2021-05-02 17:02:28 +02:00
ure
uui
vbahelper change usage of boost::hash_combine to o3tl::hash_combine 2021-05-11 12:28:24 +02:00
vcl gtk4: vexpand internal dialog vbox child 2021-05-14 11:50:16 +02:00
wasm-qt WASM: add Emscripten demo application 2021-05-05 21:15:22 +02:00
winaccessibility
wizards ScriptForge - (scriptforge.py)Non-modal dialogs and OK/Cancel buttons 2021-05-06 14:46:19 +02:00
writerfilter inline some typedefs 2021-05-13 17:03:26 +02:00
writerperfect
xmerge
xmlhelp throw() -> noexcept, part 2/3: Automatic loplugin:noexcept rewrite 2021-05-02 17:02:28 +02:00
xmloff inline some typedefs 2021-05-13 17:03:26 +02:00
xmlreader improve perf of xmlreader::Pad 2021-05-11 11:53:45 +02:00
xmlscript throw() -> noexcept, part 2/3: Automatic loplugin:noexcept rewrite 2021-05-02 17:02:28 +02:00
xmlsecurity unused include line 2021-05-12 20:46:31 +02:00
.buckconfig
.buckversion
.clang-format
.editorconfig
.git-blame-ignore-revs
.gitattributes
.gitignore WASM: add initial support for Emscripten cross build 2021-05-05 21:14:54 +02:00
.gitmodules
.gitpod.dockerfile
.gitpod.yml
.gitreview
antivirusDetection.vbs
autogen.sh WASM: add initial support for Emscripten cross build 2021-05-05 21:14:54 +02:00
BUCK
config.guess
config.sub
config_host.mk.in bodge a gtk4 starting point into existence 2021-05-10 10:57:57 +02:00
config_host_lang.mk.in
configure.ac Update to ICU 69.1 2021-05-12 15:27:04 +02:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst Update to ICU 69.1 2021-05-12 15:27:04 +02:00
g
hardened_runtime.xcent.in
install-sh
install_deps.sh
leak-suppress.txt suppress more basic leaks 2021-05-12 21:48:24 +02:00
Library_merged.mk
lo.xcent
logerrit
Makefile.fetch
Makefile.gbuild
Makefile.in Run checks also on cross build toolchain 2021-05-05 21:14:12 +02:00
README.cross
README.md WASM: add initial support for Emscripten cross build 2021-05-05 21:14:54 +02:00
README.Solaris
README.wasm Fix typos 2021-05-06 11:54:18 +02:00
Repository.mk bodge a gtk4 starting point into existence 2021-05-10 10:57:57 +02:00
RepositoryExternal.mk Switch OPENSSL config var from negative to positive 2021-05-05 21:14:30 +02:00
RepositoryFixes.mk
RepositoryModule_build.mk
RepositoryModule_host.mk
sanitize-ubsan-excludelist
setup.cfg
TEMPLATE.SOURCECODE.HEADER

LibreOffice

Coverity Scan Build Status CII Best Practices Translation status

LibreOffice is an integrated office suite based on copyleft licenses and compatible with most document formats and standards. Libreoffice is backed by The Document Foundation, which represents a large independent community of enterprises, developers and other volunteers moved by the common goal of bringing to the market the best software for personal productivity. LibreOffice is open source, and free to download, use and distribute.

A quick overview of the LibreOffice code structure.

Overview

You can develop for LibreOffice in one of two ways, one recommended and one much less so. First the somewhat less recommended way: it is possible to use the SDK to develop an extension, for which you can read the API docs here and here. This re-uses the (extremely generic) UNO APIs that are also used by macro scripting in StarBasic.

The best way to add a generally useful feature to LibreOffice is to work on the code base however. Overall this way makes it easier to compile and build your code, it avoids any arbitrary limitations of our scripting APIs, and in general is far more simple and intuitive - if you are a reasonably able C++ programmer.

The Build Chain and Runtime Baselines

These are the current minimal operating system and compiler versions to run and compile LibreOffice, also used by the TDF builds:

  • Windows:
    • Runtime: Windows 7
    • Build: Cygwin + Visual Studio 2019 version 16.5
  • macOS:
    • Runtime: 10.10
    • Build: 10.14.4 + Xcode 11.3
  • Linux:
    • Runtime: RHEL 7 or CentOS 7
    • Build: either GCC 7.0.0; or Clang 5.0.2 with libstdc++ 7.3.0
  • iOS (only for LibreOfficeKit):
    • Runtime: 11.4 (only support for newer i devices == 64 bit)
    • Build: Xcode 9.3 and iPhone SDK 11.4
  • Android:
    • Build: NDK r19c and SDK 22.6.2
  • Emscripten / WASM:
    • Runtime: a browser with SharedMemory support (threads + atomics)
    • Build: Qt 5.15 with Qt supported Emscripten 1.39.8
    • See README.wasm

If you want to use Clang with the LibreOffice compiler plugins, the minimal version of Clang is 5.0.2. Since Xcode doesn't provide the compiler plugin headers, you have to compile your own Clang to use them on macOS.

You can find the TDF configure switches in the distro-configs/ directory.

To setup your initial build environment on Windows and macOS, we provide the LibreOffice Development Environment (LODE) scripts.

For more information see the build instructions for your platform in the TDF wiki.

The Important Bits of Code

Each module should have a README.md file inside it which has some degree of documentation for that module; patches are most welcome to improve those. We have those turned into a web page here:

https://docs.libreoffice.org/

However, there are two hundred modules, many of them of only peripheral interest for a specialist audience. So - where is the good stuff, the code that is most useful. Here is a quick overview of the most important ones:

Module Description
sal/ this provides a simple System Abstraction Layer
tools/ this provides basic internal types: Rectangle, Color etc.
vcl/ this is the widget toolkit library and one rendering abstraction
framework/ UNO framework, responsible for building toolbars, menus, status bars, and the chrome around the document using widgets from VCL, and XML descriptions from /uiconfig/ files
sfx2/ legacy core framework used by Writer/Calc/Draw: document model / load/save / signals for actions etc.
svx/ drawing model related helper code, including much of Draw/Impress

Then applications

Module Description
desktop/ this is where the main() for the application lives, init / bootstrap. the name dates back to an ancient StarOffice that also drew a desktop
sw/ Writer
sc/ Calc
sd/ Draw / Impress

There are several other libraries that are helpful from a graphical perspective:

Module Description
basegfx/ algorithms and data-types for graphics as used in the canvas
canvas/ new (UNO) canvas rendering model with various backends
cppcanvas/ C++ helper classes for using the UNO canvas
drawinglayer/ View code to render drawable objects and break them down into primitives we can render more easily.

Rules for #include Directives (C/C++)

Use the "..." form if and only if the included file is found next to the including file. Otherwise, use the <...> form. (For further details, see the mail Re: C[++]: Normalizing include syntax ("" vs <>).)

The UNO API include files should consistently use double quotes, for the benefit of external users of this API.

loplugin:includeform (compilerplugins/clang/includeform.cxx) enforces these rules.

Finding Out More

Beyond this, you can read the README.md files, send us patches, ask on the mailing list libreoffice@lists.freedesktop.org (no subscription required) or poke people on IRC #libreoffice-dev on irc.freenode.net - we're a friendly and generally helpful mob. We know the code can be hard to get into at first, and so there are no silly questions.