Test repository to check push and ssh key
Find a file
Tor Lillqvist 52c3744d06 Update Qt5 build instructions to use Allotropia's pre-patched repo
Change-Id: I4b739e36a008940705b32a2c83757520e2ae1add
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144196
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2022-12-14 23:18:36 +00:00
.git-hooks
.github
.vscode
accessibility
android
animations
apple_remote
avmedia
basctl tdf#152266 add an infobar with indicators for macro-like content in doc 2022-12-12 16:00:04 +00:00
basegfx
basic loplugin:unocast (basic::SfxScriptLibraryContainer) 2022-12-14 09:16:36 +00:00
bean
bin get-forum-attachment: Add optional get-file argument 2022-12-12 13:08:48 +00:00
binaryurp
bridges
canvas loplugin:unocast (vclcanvas::RepaintTarget) 2022-12-14 08:54:15 +00:00
chart2 [API CHANGE] Merge sfx2::XmlDump into css::qa::XDumper 2022-12-14 12:56:52 +00:00
cli_ure
codemaker Make check for complete type more explicit 2022-12-05 21:59:45 +00:00
comphelper tdf#152380: add checks for names and values sequences length equality 2022-12-06 05:32:37 +00:00
compilerplugins loplugin:unusedmethods 2022-12-07 17:17:33 +00:00
config_host
configmgr
connectivity Resolves: tdf#152381 Treat 0-0-0 invalid date as 0 relative days 2022-12-06 22:38:12 +00:00
cppcanvas
cppu
cppuhelper tdf#152380: add checks for names and values sequences length equality 2022-12-06 05:32:37 +00:00
cpputools
cui Add precisions in extended tip 2022-12-14 09:25:09 +00:00
dbaccess loplugin:implinheritancehelper in dbaccess 2022-12-14 16:24:54 +00:00
desktop Attempt to add ifdefs for WASM (Emscripten) for LOKit-based code 2022-12-13 08:19:40 +00:00
dictionaries@2b234ba64f
distro-configs Need --disable-gen for the Qt5-based WASM LibreOffice now 2022-12-06 10:39:52 +00:00
drawinglayer
editeng tdf#152483 Fix the insert hyperlink behaviour on Calc 2022-12-14 12:15:12 +00:00
embeddedobj
embedserv
emfio tdf#152435 Revert "Make EMR_SAVEDC not UpdateClipRegion" 2022-12-13 06:59:06 +00:00
eventattacher
extensions
external upgrade to libtiff 4.5.0 2022-12-14 12:37:55 +00:00
extras Related: tdf#152266 remove office:scripts from wizard letter templates 2022-12-08 19:46:11 +00:00
filter
forms tdf#114441 - Convert use of sal_uLong to better integer types 2022-12-08 22:44:38 +00:00
formula upgrade tag names with new version of glade 2022-12-14 10:39:37 +00:00
fpicker
framework loplugin:implinheritancehelper in framework 2022-12-14 16:25:04 +00:00
helpcompiler
helpcontent2@07a7f0f505 Update git submodules 2022-12-14 15:17:36 +00:00
hwpfilter
i18nlangtag
i18npool loplugin:unocast (i18npool::Calendar_gregorian) 2022-12-14 12:00:21 +00:00
i18nutil
icon-themes remove bogus icon file ".svg" 2022-12-13 08:59:16 +00:00
idl
idlc/test/parser
include [API CHANGE] Merge sfx2::XmlDump into css::qa::XDumper 2022-12-14 12:56:52 +00:00
instsetoo_native bump minimum make version to 4.0 (for $(file …) function) 2022-12-13 15:03:24 +00:00
io
ios
javaunohelper
jurt
jvmaccess
jvmfwk
l10ntools
librelogo gb_var2file: remove now unused chunk-size parameter 2022-12-13 15:04:01 +00:00
libreofficekit
lingucomponent
linguistic loplugin:unocast (GrammarCheckingIterator) 2022-12-14 09:54:30 +00:00
lotuswordpro
m4
nlpsolver
o3tl
odk bump minimum make version to 4.0 (for $(file …) function) 2022-12-13 15:03:24 +00:00
offapi [API CHANGE] Merge sfx2::XmlDump into css::qa::XDumper 2022-12-14 12:56:52 +00:00
officecfg use $(file …) directly instead of gb_var2file when not used as intermediate 2022-12-13 15:05:43 +00:00
onlineupdate
oovbaapi
oox add oox to WITH_GALLERY_BUILD build side 2022-12-14 20:43:40 +00:00
opencl
osx
package
pch
postprocess don't rebuild icon-themes if nothing changed 2022-12-13 15:09:11 +00:00
pyuno
qadevOOo
readlicense_oo
registry
remotebridges
reportbuilder
reportdesign
ridljar
sal Fix the "Found char > 127" warning to check the correct characters 2022-12-13 15:11:34 +00:00
salhelper
sax
sc sc: React to touchpad zoom gestures in ScGridWindow 2022-12-14 13:49:00 +00:00
scaddins
sccomp
schema tdf#151548 sw content controls: preserve tabIndex 2022-12-14 07:14:59 +00:00
scp2
scripting
sd sd: Improve reaction to slow zoom gestures in ViewShell 2022-12-14 13:41:17 +00:00
sdext loplugin:unocast (sdext::presenter::PresenterNotesView) 2022-12-14 08:55:32 +00:00
setup_native
sfx2 loplugin:unocast (SelectionChangeHandler) 2022-12-14 08:55:19 +00:00
shell
slideshow
smoketest
solenv Fix typo 2022-12-14 13:05:33 +00:00
soltools Check for failed malloc 2022-12-07 12:35:45 +00:00
sot
starmath starmath: React to touchpad zoom gestures in SmGraphicWidget 2022-12-14 13:50:43 +00:00
static Update Qt5 build instructions to use Allotropia's pre-patched repo 2022-12-14 23:18:36 +00:00
stoc
store
svgio CppunitTest_svgio: use CPPUNIT_TEST_FIXTURE() 2022-12-08 07:06:31 +00:00
svl It's unnecessary to obtain what's not being used 2022-12-14 01:09:43 +00:00
svtools [API CHANGE] Merge sfx2::XmlDump into css::qa::XDumper 2022-12-14 12:56:52 +00:00
svx Resolves: tdf#152495 crash on dismissing ruby dialog with ESC 2022-12-14 19:38:59 +00:00
sw sw: add a new .uno:UpdateBookmarks UNO command 2022-12-14 19:17:56 +00:00
swext
sysui Related tdf#132398 - Update .ico files - Dec 2022 2022-12-12 21:28:56 +00:00
test
testtools
toolkit tdf#152380: add checks for names and values sequences length equality 2022-12-06 05:32:37 +00:00
tools
translations@0c9f3d0b57 Update git submodules 2022-12-12 16:13:04 +00:00
ucb loplugin:unocast (ucb::ucp::ext::Content) 2022-12-14 09:54:12 +00:00
ucbhelper
udkapi
uitest
UnoControls
unodevtools
unoidl
unoil
unotest Introduce CPPUNIT_PROPAGATE_EXCEPTIONS environment variable 2022-12-10 10:20:39 +00:00
unotools
unoxml
ure
uui
vbahelper
vcl vcl: Implement touchpad zoom gesture support in GtkInstanceDrawingArea 2022-12-14 13:50:05 +00:00
winaccessibility
wizards gb_var2file: remove now unused chunk-size parameter 2022-12-13 15:04:01 +00:00
writerfilter tdf#151548 sw content controls: preserve tabIndex 2022-12-14 07:14:59 +00:00
writerperfect
xmerge
xmlhelp
xmloff tdf#151548 sw content controls: preserve tabIndex 2022-12-14 07:14:59 +00:00
xmlreader
xmlscript
xmlsecurity
.buckconfig
.buckversion
.clang-format
.editorconfig
.git-blame-ignore-revs
.gitattributes
.gitignore
.gitmodules
.gitpod.dockerfile
.gitpod.yml
.gitreview
antivirusDetection.vbs
autogen.sh
BUCK
config.guess Update config.guess & .sub to latest 2022-12-12 15:46:46 +00:00
config.sub Update config.guess & .sub to latest 2022-12-12 15:46:46 +00:00
config_host.mk.in bump minimum make version to 4.0 (for $(file …) function) 2022-12-13 15:03:24 +00:00
config_host_lang.mk.in
configure.ac Revert "Add oox to build side, for cross compilation" 2022-12-14 20:44:39 +00:00
COPYING
COPYING.LGPL
COPYING.MPL
cpp.hint
download.lst upgrade to libtiff 4.5.0 2022-12-14 12:37:55 +00:00
g
hardened_runtime.xcent.in
install-sh
install_deps.sh
leak-suppress.txt
Library_merged.mk
lo.xcent.in
logerrit
Makefile.fetch
Makefile.gbuild
Makefile.in
README.cross
README.help.md
README.md Bump minimum macOS to 10.15 2022-12-14 15:22:52 +00:00
README.Solaris
Repository.mk
RepositoryExternal.mk
RepositoryFixes.mk
RepositoryModule_build.mk add oox to WITH_GALLERY_BUILD build side 2022-12-14 20:43:40 +00:00
RepositoryModule_host.mk
sanitize-ubsan-excludelist
setup.cfg
TEMPLATE.SOURCECODE.HEADER
tsan-suppress.txt

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 and Developers Guide. 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.10
  • macOS:
    • Runtime: 10.15
    • Build: 11.0 + Xcode 12.5
  • Linux:
    • Runtime: RHEL 7 or CentOS 7
    • Build: either GCC 7.0.0; or Clang 8.0.1 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

Java is required for building many parts of LibreOffice. In TDF Wiki article Development/Java, the exact modules that depend on Java are listed.

The baseline for Java is Java Development Kit (JDK) Version 11 or later. It is possible to build LibreOffice with JDK version 9, but it is no longer supported by the JDK vendors, thus it should be avoided.

If you want to use Clang with the LibreOffice compiler plugins, the minimal version of Clang is 12.0.1. 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.libera.chat - 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.