Test repository to check push and ssh key
Find a file
Stephan Bergmann 4179056285 Fix quoting of [ ]
Change-Id: I57c96fe9f72794abb4f49f63735c075a4647bd23
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163228
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-02-11 15:26:04 +01:00
.git-hooks
.github
.vscode
accessibility
android
animations
apple_remote
avmedia
basctl tdf#140004 Toggle comment in the Basic IDE 2024-02-01 13:37:28 +01:00
basegfx
basic tdf#147132 tdf#154285 basic: Flatten and check param count of Is* fns 2024-02-09 00:30:21 +01:00
bean
bin qtcreator: Fix generating .pro files for externals 2024-01-31 22:48:25 +01:00
binaryurp cid#1591493 Unchecked return value 2024-02-04 08:50:22 +01:00
bridges Fix missing includes 2024-02-09 01:36:54 +01:00
canvas canvas : use more OUString literals 2024-02-08 04:37:27 +01:00
chart2 cid#1591760 COPY_INSTEAD_OF_MOVE 2024-02-09 14:54:36 +01:00
cli_ure
codemaker
comphelper cid#1591762 Uncaught exception 2024-02-09 16:58:32 +01:00
compilerplugins lok: calc: fix for rendering issues on in place editing 2024-02-08 17:11:32 +01:00
config_host double operator < is not a strict weak ordering due to NaN 2024-02-07 21:03:46 +01:00
configmgr Fix placement of comments 2024-02-06 22:43:18 +01:00
connectivity tdf#159588: Query-GUI: LOWER isnt supported in Query-GUI if condition is LIKE 2024-02-10 12:50:46 +01:00
cppcanvas
cppu
cppuhelper
cpputools
cui tdf#159476 Remove experimental status from Basic IDE entry in Options dialog 2024-02-05 18:50:58 +01:00
dbaccess
desktop preload: open and close empty documents of main types in preinit. 2024-02-09 12:54:46 +01:00
dictionaries@208a9fd80b Update git submodules 2024-02-01 17:17:14 +01:00
distro-configs distro-configs: use internal python in bisect repos 2024-01-29 09:59:48 +01:00
docmodel
drawinglayer these casts are no longer necessary 2024-02-07 16:43:23 +01:00
editeng editeng: simplify and clean-up struct in for ImpEditEng 2024-02-10 14:55:38 +01:00
embeddedobj
embedserv
emfio
eventattacher
extensions
external tdf#152524 use dispatch_async() instead of dispatch_sync() 2024-02-08 18:58:29 +01:00
extras
filter tdf#159461 deadlock in Dialog "XML Filter Settings" 2024-02-02 20:40:45 +01:00
forms
formula tdf#127293 Add Excel2021 function XLOOKUP to Calc 2024-01-31 09:14:19 +01:00
fpicker
framework tdf#45904 Remove old SwXBodyText Java test 2024-02-04 05:13:14 +01:00
helpcompiler
helpcontent2@84b2341aeb Update git submodules 2024-02-06 11:58:36 +01:00
hwpfilter
i18nlangtag Use constexpr instead of const 2024-02-04 03:39:42 +01:00
i18npool use more SAL_MODULENAME macro 2024-02-09 14:32:32 +01:00
i18nutil
icon-themes
idl
idlc/test/parser
include tdf#54169: revert "gtk is the only case auto-accel is true, and the 2024-02-10 16:58:03 +01:00
instsetoo_native
io
ios
javaunohelper
jurt
jvmaccess
jvmfwk
l10ntools
librelogo
libreofficekit
lingucomponent
linguistic
lotuswordpro
m4
msicreator
nlpsolver
o3tl
odk
offapi tdf#50934: Add a version comment, and more structure for of-pie 2024-02-06 15:16:31 +01:00
officecfg tdf#159372 svx: Add goto dialog 2024-02-10 02:05:55 +01:00
oovbaapi
oox tdf#141908: replace usage of sal_Int32 with colors 2024-02-10 11:47:05 +01:00
opencl
osx
package Extract Local file header and Data descriptor handling into own functions 2024-02-02 07:27:29 +01:00
pch
postprocess
pyuno
qadevOOo tdf#45904 Remove old SwXBodyText Java test 2024-02-04 05:13:14 +01:00
readlicense_oo
registry
remotebridges
reportbuilder
reportdesign
ridljar
sal tdf#155710 handle conversion failures due to non-UTF8 strings 2024-02-11 13:39:10 +01:00
salhelper
sax
sc perf: limit to max 1024 rows in cases where we originally allocated 1024 rows 2024-02-10 22:08:38 +01:00
scaddins tdf#148645 getDec2Hex now takes integer 'places' value (updated) 2024-02-09 13:38:03 +01:00
sccomp
schema
scp2
scripting
sd tdf#159372 svx: Add goto dialog 2024-02-10 02:05:55 +01:00
sdext
setup_native
sfx2 Fix no-PCH build 2024-02-09 08:35:57 +01:00
shell Fix typo 2024-01-31 11:20:57 +01:00
slideshow tdf#158924 Handle multi-clicks for navigation bar 2024-02-05 07:15:06 +01:00
smoketest
solenv add chartcore&chartcontroller to mergedlibs 2024-02-09 14:23:20 +01:00
soltools
sot
starmath Simplify a bit, and avoid vector copy 2024-02-07 11:23:58 +01:00
static Fix WASM TB following ace21b4b25 2024-02-10 15:09:29 +01:00
stoc
store
svgio tdf#159601: svgio: do not use std::move here 2024-02-07 20:27:20 +01:00
svl check that rtl_random_getBytes() was successful 2024-02-01 13:54:32 +01:00
svtools tdf#159483 sc HTML import: handle data-sheets-value attribute for the num case 2024-02-09 14:59:38 +01:00
svx tdf#156993 use correct count for ViewContactOfSdrPage 2024-02-10 15:32:30 +01:00
sw tdf#141908: replace usage of sal_Int32 with colors 2024-02-10 11:47:05 +01:00
swext
sysui
test missing dependency in CppunitTest_test_a11y 2024-02-07 16:43:37 +01:00
testtools
toolkit
tools return string_view from some XmlWalker methods 2024-02-06 17:08:27 +01:00
translations@7eb44b4e6e Update git submodules 2024-02-02 00:39:56 +01:00
ucb
ucbhelper
udkapi
uitest
UnoControls
unodevtools
unoidl
unoil
unotest tdf#105844 unotest,xmlsecurity: fix tests on MacOSX 2024-01-30 10:23:32 +01:00
unotools tdf#159350 Hiding Options dialog tabpages stopped working 2024-01-31 20:32:44 +01:00
unoxml
ure
uui
vbahelper
vcl tdf#54169: do not hide mnemonics in menu, when navigating using mouse 2024-02-11 01:43:04 +01:00
winaccessibility
wizards
writerfilter tdf#159478 read field comment in default encoding 2024-02-08 15:19:47 +01:00
writerperfect
xmerge
xmlhelp
xmloff
xmlreader
xmlscript
xmlsecurity Don't reuse CertificateChooser instances 2024-02-07 14:40:50 +01:00
.buckconfig
.buckversion
.clang-format
.editorconfig
.git-blame-ignore-revs
.gitattributes
.gitignore
.gitmodules
.gitpod.dockerfile
.gitpod.yml
.gitreview
antivirusDetection.vbs
autogen.sh
BUCK
config.guess
config.sub
config_host.mk.in
config_host_lang.mk.in
configure.ac Fix quoting of [ ] 2024-02-11 15:26:04 +01:00
COPYING
COPYING.LGPL
COPYING.MPL
cpp.hint Add SAL_LOPLUGIN_ANNOTATE to cpp.hint 2024-01-30 07:18:32 +01:00
download.lst curl: upgrade to release 8.6.0 2024-01-31 11:47:38 +01:00
g
install-sh
install_deps.sh
leak-suppress.txt
Library_merged.mk
logerrit
Makefile.fetch
Makefile.gbuild
Makefile.in
README.cross
README.help.md
README.md
README.Solaris
Repository.mk
RepositoryExternal.mk
RepositoryFixes.mk Experimental support for latest Emscripten (and Qt6) 2024-01-29 19:51:57 +01:00
RepositoryModule_build.mk
RepositoryModule_host.mk add chartcore&chartcontroller to mergedlibs 2024-02-09 14:23:20 +01:00
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: 12 (13 for aarch64) + Xcode 14
  • Linux:
    • Runtime: RHEL 8 or CentOS 8 and comparable
    • Build: either GCC 12; or Clang 12 with libstdc++ 8.5
  • 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 r23 and SDK 30.0.3
  • 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 17 or later.

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.