Test repository to check push and ssh key
Find a file
Michael Weghorn ab9422621b .gitignore: Add Qt Creator's '.qtc_clangd'
Qt Creator 7 switched to using Clangd as the
default backend for the code model. [1]
After upgrading, `.qtc_clangd/compile_command.json`
started showing up.

[1] https://www.qt.io/blog/qt-creator-7-released

Change-Id: I3cf30f1ef2873523d76c15c39d2d24c6227f8017
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132290
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2022-03-30 10:46:37 +02:00
.git-hooks
.github
.vscode Fix typos 2022-03-13 19:17:37 +01:00
accessibility a11y: Use new table model change types for row/col ins/del 2022-03-29 06:51:02 +02:00
android android: Enable support for FODS 2022-03-29 11:59:28 +02:00
animations animations : use cppuhelper::BaseMutex 2022-01-30 07:32:41 +01:00
apple_remote
avmedia tdf#145614 Convert #define to constexpr 2022-03-29 13:27:41 +02:00
basctl tdf#114441 Convert sal_uLong to other types 2022-03-18 21:06:56 +01:00
basegfx ofz#46070 Out-of-memory 2022-03-30 09:40:20 +02:00
basic tdf#114263 tdf#147262 CallByName() function LibO Basic test unit 2022-03-30 09:04:38 +02:00
bean
bin ofz#45581 and ofz#45574 suppress Integer-overflow 2022-03-16 22:34:10 +01:00
binaryurp binaryurp: use more std::mutex 2022-03-25 09:20:48 +01:00
bridges bridges : use std::mutex in java brige 2022-03-25 12:35:12 +01:00
canvas Drop support for OpenGL denylist on X11 2022-03-28 14:31:07 +02:00
chart2 Related: tdf#117162 use a marginally tidier but riskier fix for trunk 2022-03-30 09:39:39 +02:00
cli_ure
codemaker cid#1500511 silence Resource leak 2022-03-04 22:37:55 +01:00
comphelper comphelper : use std::mutex in traceevent 2022-03-24 15:28:46 +01:00
compilerplugins -Werror,-Wunused-but-set-variable 2022-03-28 23:27:28 +02:00
config_host make Calc jumbo sheets an explicit build feature 2022-03-01 10:48:13 +01:00
configmgr Extend loplugin:stringview to O[U]StringBuffer::toString 2022-02-08 09:09:32 +01:00
connectivity loplugin:unusedfields 2022-03-29 11:34:32 +02:00
cppcanvas Recheck modules [a-c]* with IWYU 2022-01-13 08:26:15 +01:00
cppu WASM UNO: add a minimal dummy bridge 2022-01-19 14:26:09 +01:00
cppuhelper Simplify a static array iteration 2022-03-18 11:49:54 +01:00
cpputools Recheck modules [a-c]* with IWYU 2022-01-13 08:26:15 +01:00
cui Clean up unused translatable strings 2022-03-24 10:08:14 +01:00
dbaccess -Werror,-Wunused-but-set-variable 2022-03-28 23:23:06 +02:00
desktop Drop support for OpenGL denylist on X11 2022-03-28 14:31:07 +02:00
dictionaries@5314824424 Update git submodules 2022-02-15 16:16:36 +01:00
distro-configs Reduce variance in what Jenkins Gerrit builders pick up from their environment 2022-03-28 20:33:18 +02:00
drawinglayer use dashing info from struct LineInfo in EPS writer (tdf#146804) 2022-03-22 15:17:08 +01:00
editeng tdf#114441: Convert use of sal_uLong into better integer types 2022-03-24 14:58:11 +01:00
embeddedobj tdf#147589 In document with OLE link, don't show temp-file is in use 2022-03-21 10:25:03 +01:00
embedserv Use GetModuleHandleExW instead of GetModuleHandleW 2022-01-05 16:20:36 +01:00
emfio tdf#147906 change sqrt(a * a + b * b) occurences to std::hypot(a, b) 2022-03-29 09:17:42 +02:00
eventattacher Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
extensions -Werror,-Wunused-but-set-variable 2022-03-28 20:06:12 +02:00
external forcepoint#88 temp std::string assigned to std::string_view 2022-03-25 14:48:43 +01:00
extras Fix typo 2022-02-15 20:06:33 +01:00
filter -Werror,-Wunused-but-set-variable 2022-03-28 16:54:22 +02:00
forms new loplugin:trivialconstructor 2022-03-14 07:36:13 +01:00
formula add toId/fromId to tidy up some ugly casting 2022-02-04 15:02:03 +01:00
fpicker Simplify CoCreateInstance / CoGetClassObject with COMReference 2022-03-22 09:01:58 +01:00
framework Fold MenuBarManager::Destroy into its only call site 2022-03-25 15:38:42 +01:00
helpcompiler Recheck modules [i-l]* with IWYU 2022-01-27 18:52:16 +01:00
helpcontent2@602281f118 Update git submodules 2022-03-29 20:48:39 +02:00
hwpfilter ofz: ensure unsigned index 2022-03-25 00:10:45 +01:00
i18nlangtag loplugin:constantparam 2022-03-24 15:06:24 +01:00
i18npool tdf#147905 calc PROPER function doesn't like mulithreading 2022-03-12 21:16:48 +01:00
i18nutil Recheck modules [i-l]* with IWYU 2022-01-27 18:52:16 +01:00
icon-themes Colibre: Add some inner shapes 2022-03-29 04:09:28 +02:00
idl Recheck modules [i-l]* with IWYU 2022-01-27 18:52:16 +01:00
idlc Unify condition names and fix "else" paths 2022-01-08 12:26:30 +01:00
include Resolves: tdf#117162 ImportDocumentHandler expects data provider to exist 2022-03-30 09:39:22 +02:00
instsetoo_native Depend on 64-bit packages for aarch64 as well 2022-03-25 12:06:37 +01:00
io Don't use Library_tl in URE libraries 2022-02-25 08:20:55 +01:00
ios
javaunohelper Don't use Library_tl in URE libraries 2022-02-25 08:20:55 +01:00
jurt Fix jurt/source/pipe/staticsalhack.cxx 2022-02-28 18:11:23 +01:00
jvmaccess new loplugin:trivialdestructor 2022-03-11 09:06:06 +01:00
jvmfwk Allow for java.version consisting of four dotted segments 2022-03-15 13:46:06 +01:00
l10ntools Fail Executable_ulfex upon duplicate keys in malformed input 2022-02-21 09:23:40 +01:00
librelogo
libreofficekit Recheck modules [i-l]* with IWYU 2022-01-27 18:52:16 +01:00
lingucomponent -Werror,-Wunused-but-set-variable 2022-03-28 16:34:38 +02:00
linguistic Extend loplugin:stringview to OUStringBuffer::copy 2022-02-16 22:45:42 +01:00
lotuswordpro tdf#147906 Use std::hypot for Pythagorean addition 2022-03-23 20:52:13 +01:00
m4 Drop remnants of --with-webdav=neon 2022-01-05 17:50:41 +01:00
nlpsolver
o3tl use OUStringBuffer for a string that's modified often (tdf#145862) 2022-03-01 21:32:11 +01:00
odk Fix typos 2022-03-13 19:17:37 +01:00
offapi a11y: Drop unused, deprecated table model change event types 2022-03-29 06:54:19 +02:00
officecfg make hash encoding match decoding 2022-03-24 17:27:30 +01:00
onlineupdate
oovbaapi vba: add support for Application.WindowState + test 2022-01-27 07:38:09 +01:00
oox Extract 'switch' block out of WriteCustomGeometry 2022-03-30 09:30:08 +02:00
opencl Recheck modules [o-r]* with IWYU 2022-01-30 16:10:57 +01:00
osx Add some source files for debugging convenience 2022-02-02 15:53:04 +01:00
package no need to have duplicate m_bIsRoot fields 2022-03-17 08:17:50 +01:00
pch
postprocess WASM open links in new browser tabs 2022-01-20 10:26:04 +01:00
pyuno change default Calc number of columns to 16384 (tdf#50916) 2022-03-09 08:25:44 +01:00
qadevOOo tdf#45904: Remove ScHeaderFieldObj Java test 2022-03-04 17:16:06 +01:00
readlicense_oo update credits 2022-03-23 14:28:27 +01:00
registry Unify condition names and fix "else" paths 2022-01-08 12:26:30 +01:00
remotebridges Recheck modules [o-r]* with IWYU 2022-01-30 16:10:57 +01:00
reportbuilder Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
reportdesign Related: tdf#117162 use a marginally tidier but riskier fix for trunk 2022-03-30 09:39:39 +02:00
ridljar
sal Add back the opportunity to leave O[U]StringLiteral's buffer uninitialized 2022-03-29 21:15:13 +02:00
salhelper Recheck modules s[a-c]* with IWYU 2022-02-14 15:25:30 +01:00
sax tdf#133603 increase cache size in CachedOutputStream 2022-03-18 12:53:08 +01:00
sc handle xlsx with too large sheets the same way as e.g. ods 2022-03-30 00:02:52 +02:00
scaddins tdf#145759 Using M_PI from cmath instead of magic constants. 2022-02-15 12:17:50 +01:00
sccomp tdf#139734 removing redundant asserts after MacrosTest::loadFromDesktop 2022-02-28 22:21:28 +01:00
schema sd theme: add ODP import/export for shape fill color 2022-03-18 08:07:02 +01:00
scp2 Fix "Adding Central Kurdish(ckb) Spell Checker & Dictionary" 2022-02-19 10:00:00 +01:00
scripting Remove special-casing Windows stderr handling 2022-03-20 16:37:30 +01:00
sd tdf#89449 PPTX import: fix line connectors 2022-03-29 16:12:45 +02:00
sdext Recheck modules sd* with IWYU 2022-02-21 14:04:45 +01:00
setup_native Adding Central Kurdish(ckb) Spell Checker & Dictionary 2022-02-14 18:40:14 +01:00
sfx2 loplugin:constantparam 2022-03-24 15:06:24 +01:00
shell loplugin:trivialconstructor 2022-03-24 09:27:56 +01:00
slideshow loplugin:constparams 2022-03-11 10:05:39 +01:00
smoketest oss-fuzz: convert to static cross-build 2021-12-25 17:05:08 +01:00
solenv Advanced Diagram support: Move data classes to svx 2022-03-28 18:26:56 +02:00
soltools cid#1500573 silence Untrusted loop bound 2022-03-03 10:15:26 +01:00
sot Recheck modules s[f-t]* with IWYU 2022-03-01 08:21:00 +01:00
starmath loplugin:constantparam 2022-03-24 15:06:24 +01:00
static Fix typos 2022-01-21 12:51:49 +01:00
stoc tdf#148063: Avoid dereferencing potentially bad user-supplied TypeDescription 2022-03-18 15:33:50 +01:00
store Let loplugin:nullptr look into template instantiations 2022-01-15 15:58:07 +01:00
svgio Recheck modules sv* with IWYU 2022-03-03 09:50:43 +01:00
svl make hash encoding match decoding 2022-03-24 17:27:30 +01:00
svtools a11y: Use new table model change types for row/col ins/del 2022-03-29 06:51:02 +02:00
svx Advanced Diagram support: Move data classes to svx 2022-03-28 18:26:56 +02:00
sw sw content controls: add document model 2022-03-30 09:49:03 +02:00
swext cid#1500542 swext: Wiki Publisher: "Insecure TLS version" 2022-03-07 11:01:32 +01:00
sysui change rpm compression algorithm to multi threaded xz 2022-01-23 15:13:03 +01:00
test Fix some DPI-dependent tests 2022-03-07 12:53:27 +01:00
testtools tdf#145759 Use symbolic constants instead of magic numerical constants 2022-02-15 21:00:18 +01:00
toolkit Operate on VCL Menu with SolarMutex locked 2022-03-28 08:38:02 +02:00
tools add system-libfixmath 2022-03-20 22:26:29 +01:00
translations@149fb7cb5f Update git submodules 2022-02-21 16:22:06 +01:00
ucb loplugin:constparams 2022-03-11 10:05:39 +01:00
ucbhelper No need to call makeStringAndClear to pass a string view 2022-02-06 17:40:51 +01:00
udkapi Update reference links for ISO 639 and 3166 2021-12-11 21:40:00 +01:00
uitest tdf#128610: math: add UItest 2022-03-14 15:25:08 +01:00
UnoControls tdf#145614 Convert #define to enum or constexpr 2022-01-19 06:55:12 +01:00
unodevtools Extend loplugin:stringview to O[U]StringBuffer::toString 2022-02-08 09:09:32 +01:00
unoidl Provide unoidl-write also for the SDK 2022-02-25 16:46:26 +01:00
unoil
unotest Fix the test failing when invalid certificate is in cert store 2022-03-01 15:17:55 +01:00
unotools loplugin:constantparam 2022-03-24 15:06:24 +01:00
unoxml crashtesting: assert that !rtl::isAscii in xmlError message 2022-03-06 13:36:42 +01:00
ure Provide unoidl-write also for the SDK 2022-02-25 16:46:26 +01:00
uui make hash encoding match decoding 2022-03-24 17:27:30 +01:00
vbahelper Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
vcl qt: Fix typo in function name: lcl_MapUndrelineStyle 2022-03-29 18:30:39 +02:00
winaccessibility loplugin:stringviewparam 2022-03-24 09:28:29 +01:00
wizards Fix typos 2022-03-24 19:18:50 +01:00
writerfilter tdf#73499 DOCX import: fix grouped linked textbox 2022-03-29 16:29:39 +02:00
writerperfect WASM --enable-wasm-strip now skips lots of LO code 2022-01-20 12:28:54 +01:00
xmerge Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
xmlhelp do not pass XComponentContext to officecfg::...::get() calls 2022-03-07 15:37:22 +01:00
xmloff Resolves: tdf#117162 ImportDocumentHandler expects data provider to exist 2022-03-30 09:39:22 +02:00
xmlreader
xmlscript Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
xmlsecurity use internal SHA256Thumbprint api 2022-03-04 14:26:04 +01:00
.buckconfig
.buckversion
.clang-format
.editorconfig
.git-blame-ignore-revs
.gitattributes
.gitignore .gitignore: Add Qt Creator's '.qtc_clangd' 2022-03-30 10:46:37 +02:00
.gitmodules
.gitpod.dockerfile
.gitpod.yml
.gitreview
antivirusDetection.vbs
autogen.sh
BUCK
config.guess
config.sub
config_host.mk.in make Calc jumbo sheets an explicit build feature 2022-03-01 10:48:13 +01:00
config_host_lang.mk.in
configure.ac Check for yet another consteval bug 2022-03-29 17:23:10 +02:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst external: update pdfium to 4933 2022-03-17 11:22:48 +01:00
g Allow g to run git gc command 2022-01-15 15:42:34 +01:00
hardened_runtime.xcent.in
install-sh
install_deps.sh
leak-suppress.txt
Library_merged.mk
lo.xcent
logerrit
Makefile.fetch add system-dragonbox 2022-02-22 15:53:59 +01:00
Makefile.gbuild gbuild: build static LO / link static executables 2022-01-12 11:12:46 +01:00
Makefile.in Use relative path to the script, to please python3 on Windows 2022-02-15 16:34:54 +01:00
README.cross
README.help.md
README.md Bump macOS build baseline to Xcode 12.5 and macOS 11.0 2022-02-24 17:25:10 +01:00
README.Solaris
Repository.mk Provide unoidl-write also for the SDK 2022-02-25 16:46:26 +01:00
RepositoryExternal.mk Sync the two definitions of python_arch_subdir 2022-02-23 10:17:22 +01:00
RepositoryFixes.mk WASM more initial bits and pieces 2022-01-19 10:49:40 +01:00
RepositoryModule_build.mk add drawinglayercore to merged libs 2021-12-23 11:38:24 +09:00
RepositoryModule_host.mk WASM --enable-wasm-strip now skips lots of LO code 2022-01-20 12:28:54 +01:00
sanitize-ubsan-excludelist
setup.cfg
TEMPLATE.SOURCECODE.HEADER
tsan-suppress.txt more tsan suppressions 2022-03-01 14:46:30 +01:00

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.13
    • 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

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.