Test repository to check push and ssh key
Find a file
Caolán McNamara f6180e3e87 rhbz#2047319 drop the SolarMutex before QApplication::init()
https://invent.kde.org/qt/qt/qtwayland/-/merge_requests/24#note_383915

reproducible with with qt5-qtwayland-5.15.2-17.fc35.x86_64 and
export OOO_FORCE_DESKTOP=plasma5
export SAL_USE_VCLPLUGIN=gtk3

Change-Id: Icdf6b8709865c723c266e6400169b33639a1b0e4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129373
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2022-02-03 17:16:12 +01:00
.git-hooks
.github
.vscode vscode-ide-integration: use gdb from $PATH by default 2022-01-17 15:06:32 +01:00
accessibility Recheck modules [a-c]* with IWYU 2022-01-13 08:26:15 +01:00
android Convert example document from cz to en-us 2021-12-09 15:42:36 +01:00
animations animations : use cppuhelper::BaseMutex 2022-01-30 07:32:41 +01:00
apple_remote Add support for macOS SDK 12.0 2021-10-27 16:32:04 +02:00
avmedia tdf#145538 - Use range based for loops 2022-01-17 20:49:57 +01:00
basctl move ToolBoxItemId into its own header 2022-01-26 12:07:18 +01:00
basegfx tdf#145614 Convert #define to enum or constexpr 2022-01-19 06:55:12 +01:00
basic tdf#146742 - Move the initialization code of a method to SbMethod::Call 2022-02-03 09:43:37 +01:00
bean
bin flat-odf-cleanup: survive already missing settings/scripts 2022-02-02 14:51:18 +01:00
binaryurp Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
bridges WASM UNO: add a minimal dummy bridge 2022-01-19 14:26:09 +01:00
canvas adjust gradient drawing in vclcanvas (tdf#144073) 2022-02-01 23:44:28 +01:00
chart2 tools::Long -> sal_Int32 2022-02-03 17:12:27 +01:00
cli_ure drop 'using namespace std' in cli_ure 2021-10-07 13:38:06 +02:00
codemaker Improve DBG_UNHANDLED_EXCEPTION output a bit 2022-01-23 09:50:33 +01:00
comphelper 22 characters needed to Base64-encode 16 bytes 2022-02-03 16:32:59 +01:00
compilerplugins Fix typo 2022-02-02 08:56:07 +01:00
config_host upgrade to box2d 2.4.1 2022-01-24 09:58:45 +01:00
configmgr Recheck modules [a-c]* with IWYU 2022-01-13 08:26:15 +01:00
connectivity Mysql/MariaDB: remove useless include+using and unused vars in mysqlc_driver 2022-02-01 18:48:43 +01: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 WASM set correct path to FS image unorc 2022-01-28 19:34:17 +01:00
cpputools Recheck modules [a-c]* with IWYU 2022-01-13 08:26:15 +01:00
cui tools::Long -> sal_Int32 2022-02-03 17:12:27 +01:00
dbaccess used TypedWhichId in the constructor of various svx *Item classes 2022-01-29 18:59:53 +01:00
desktop no need to call GetWhich on these SID_ values 2022-01-27 20:05:46 +01:00
dictionaries@8fecc83133 Update git submodules 2022-02-03 12:24:55 +01:00
distro-configs WASM add strip flags to configure.ac 2022-01-19 12:00:48 +01:00
drawinglayer avoid Skia GPU surfaces for small virtual devices (bsc#1183308) 2022-01-24 14:40:22 +01:00
editeng tdf#144851 Honor Selection When Applying Title Case Format 2022-02-01 11:16:27 +01:00
embeddedobj Recheck modules [e-f]* with IWYU 2022-01-17 01:33:35 +01:00
embedserv Use GetModuleHandleExW instead of GetModuleHandleW 2022-01-05 16:20:36 +01:00
emfio Recheck modules [e-f]* with IWYU 2022-01-17 01:33:35 +01:00
eventattacher Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
extensions gtk4: remove unwanted caps-lock-warning from GtkSpinButton 2022-01-29 18:03:40 +01:00
external support for the WebP image format (tdf#114532) 2022-01-31 10:44:29 +01:00
extras WASM --enable-wasm-strip now skips lots of LO code 2022-01-20 12:28:54 +01:00
filter Fix typos 2022-02-02 10:43:57 +01:00
forms Recheck modules [e-f]* with IWYU 2022-01-17 01:33:35 +01:00
formula Recheck modules [e-f]* with IWYU 2022-01-17 01:33:35 +01:00
fpicker Recheck modules [e-f]* with IWYU 2022-01-17 01:33:35 +01:00
framework WASM make test file loading work 2022-01-20 14:27:16 +01:00
helpcompiler Recheck modules [i-l]* with IWYU 2022-01-27 18:52:16 +01:00
helpcontent2@04988a9ba7 Update git submodules 2022-02-03 04:21:01 +01:00
hwpfilter avoid dangling tmp files in hwp import 2022-01-29 14:31:01 +01:00
i18nlangtag tdf#146602 Add Pennsylvania Dutch {pdc-US} 0x06AF to language list 2022-01-26 17:03:52 +01:00
i18npool Recheck modules [i-l]* with IWYU 2022-01-27 18:52:16 +01:00
i18nutil Recheck modules [i-l]* with IWYU 2022-01-27 18:52:16 +01:00
icon-themes Colibre: Fix for tdf#147150 (same net type chart) 2022-02-03 04:18:19 +01: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 tools::Long -> sal_Int32 2022-02-03 17:12:27 +01:00
instsetoo_native Make installer compression tool configurable 2022-01-22 10:14:23 +01:00
io Recheck modules [i-l]* with IWYU 2022-01-27 18:52:16 +01:00
ios
javaunohelper Recheck modules [i-l]* with IWYU 2022-01-27 18:52:16 +01:00
jurt Avoid loplugin:salcall 2022-01-23 12:28:20 +01:00
jvmaccess drop 'using namespace std' in h* i* j* 2021-10-05 22:22:55 +02:00
jvmfwk Recheck modules [i-l]* with IWYU 2022-01-27 18:52:16 +01:00
l10ntools Recheck modules [i-l]* with IWYU 2022-01-27 18:52:16 +01:00
librelogo Resolves: tdf#97046 ensure build system variables start with gb_ 2021-11-04 10:48:24 +01:00
libreofficekit Recheck modules [i-l]* with IWYU 2022-01-27 18:52:16 +01:00
lingucomponent Recheck modules [i-l]* with IWYU 2022-01-27 18:52:16 +01:00
linguistic Recheck modules [i-l]* with IWYU 2022-01-27 18:52:16 +01:00
lotuswordpro Fix typo 2022-02-02 08:57:44 +01:00
m4 Drop remnants of --with-webdav=neon 2022-01-05 17:50:41 +01:00
nlpsolver
o3tl Recheck modules [o-r]* with IWYU 2022-01-30 16:10:57 +01:00
odk Let CppunitTest_odk_checkapi build against the SDK include directory 2022-01-19 23:00:55 +01:00
offapi make css::chart2::InterpretedData a normal struct 2022-02-03 14:26:22 +01:00
officecfg related tdf#111733 TextCharacterSpacingControl sw: goto position tab 2022-01-27 18:34:37 +01:00
onlineupdate drop 'using namespace std' in o* r* x* 2021-10-05 23:09:56 +02:00
oovbaapi vba: add support for Application.WindowState + test 2022-01-27 07:38:09 +01:00
oox tdf#146803 tdf#146805 OOXML import: fix bodyPr at grouped shapes 2022-02-03 09:28:52 +01: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 Recheck modules [o-r]* with IWYU 2022-01-30 16:10:57 +01:00
pch
postprocess WASM open links in new browser tabs 2022-01-20 10:26:04 +01:00
pyuno Recheck modules [o-r]* with IWYU 2022-01-30 16:10:57 +01:00
qadevOOo cid#1492820 WMI: Inefficient Map Iterator 2021-10-11 11:37:40 +02:00
readlicense_oo support for the WebP image format (tdf#114532) 2022-01-31 10:44:29 +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 Recheck modules [o-r]* with IWYU 2022-01-30 16:10:57 +01:00
ridljar
sal Call SymInitialize only once 2022-02-03 10:52:47 +01:00
salhelper Rather use ScopeGuard to prevent catch and rethrow 2021-12-03 11:00:03 +01:00
sax tdf#147088: Also handle U+FFFE, U+FFFF invalid XML 1.0 characters 2022-02-01 23:36:55 +01:00
sc no point in mapping SID to itself 2022-02-03 13:54:12 +01:00
scaddins Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
sccomp Disallow multiple component files per library 2021-12-21 00:20:36 +01:00
schema ODP import/export: refer to theme from shape text color with effects 2021-12-13 10:10:10 +01:00
scp2 support for the WebP image format (tdf#114532) 2022-01-31 10:44:29 +01:00
scripting tdf#146742 - Move the initialization code of a method to SbMethod::Call 2022-02-03 09:43:37 +01:00
sd tdf#147119: sd_png_export_tests: Add unittest 2022-02-03 16:59:57 +01:00
sdext Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
setup_native use mktemp for FAKEDBRPM 2022-01-29 11:42:27 +01:00
sfx2 lok: find active SmViewShell reliably 2022-02-02 11:04:04 +01:00
shell rhbz#2047319 drop the SolarMutex before QApplication::init() 2022-02-03 17:16:12 +01:00
slideshow Fix function name 2022-02-02 15:26:01 +01:00
smoketest oss-fuzz: convert to static cross-build 2021-12-25 17:05:08 +01:00
solenv support for the WebP image format (tdf#114532) 2022-01-31 10:44:29 +01:00
soltools loplugin:indentation check for indent inside block 2021-10-20 15:39:38 +02:00
sot use less SvStream::Flush() 2022-01-10 17:59:45 +01:00
starmath lok: find active SmViewShell reliably 2022-02-02 11:04:04 +01:00
static Fix typos 2022-01-21 12:51:49 +01:00
stoc Let loplugin:nullptr look into template instantiations 2022-01-15 15:58:07 +01:00
store Let loplugin:nullptr look into template instantiations 2022-01-15 15:58:07 +01:00
svgio Fix Test::testTdf97663 2021-12-24 04:57:06 +01:00
svl no point in mapping SID to itself 2022-02-03 13:54:12 +01:00
svtools tdf#83523 ruler: Invalidate full ruler rect on app bg change 2022-01-31 12:27:48 +01:00
svx tdf#147119:Revert "tdf#123973 fix missing MasterPage content in export" 2022-02-03 11:11:05 +01:00
sw tdf#147144: Writer crash after adding rectangle, add link and delete it 2022-02-03 13:37:41 +01:00
swext
sysui change rpm compression algorithm to multi threaded xz 2022-01-23 15:13:03 +01:00
test Separate core drawinglayer func. into drawinglayercore library 2021-12-22 12:10:10 +01:00
testtools Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
toolkit WASM --enable-wasm-strip now skips lots of LO code 2022-01-20 12:28:54 +01:00
tools cid#1497939 Division or modulo by zero 2022-02-03 15:54:51 +01:00
translations@cc24a4e892 Update git submodules 2022-01-31 19:31:37 +01:00
ucb Fix method name 2022-02-02 10:55:29 +01:00
ucbhelper fix opengl slide transition 2022-01-21 13:44:57 +01:00
udkapi Update reference links for ISO 639 and 3166 2021-12-11 21:40:00 +01:00
uitest ignore ~ backup files when searching for .py uitest files 2022-02-03 12:53:41 +01:00
UnoControls tdf#145614 Convert #define to enum or constexpr 2022-01-19 06:55:12 +01:00
unodevtools
unoidl Fix clang-cl -Zc:dllexportInlines- build 2021-12-02 07:39:52 +01:00
unoil
unotest Fix --disable-scripting for DESKTOP build 2021-12-03 06:46:24 +01:00
unotools WASM --enable-wasm-strip now skips lots of LO code 2022-01-20 12:28:54 +01:00
unoxml osl::Mutex->std::mutex in CEvent 2021-12-25 07:15:33 +01:00
ure Don't install the uno script when uno is not build 2022-01-08 15:33:30 +01:00
uui Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
vbahelper Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
vcl Make inserted or pasted PDF sharper on macOS 2022-02-03 14:43:53 +01:00
winaccessibility tdf#147083 wina11y: Return a11y object instead of child ID 2022-01-31 17:31:11 +01:00
wizards ScriptForge - (SF_Calc) FIX range parsing error when leading $ 2022-02-03 15:19:44 +01:00
writerfilter tdf#146802 OOXML import: fix embedded VML in grouped textbox 2022-02-03 09:12:20 +01: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 Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
xmloff Fix variable name 2022-02-02 18:35:48 +01:00
xmlreader Fix clang-cl -Zc:dllexportInlines- build 2021-12-02 07:39:52 +01:00
xmlscript Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
xmlsecurity gtk4: remove stray xalign 2022-01-29 20:21:09 +01:00
.buckconfig
.buckversion
.clang-format
.editorconfig
.git-blame-ignore-revs
.gitattributes
.gitignore Adapt .gitignore 2021-12-23 14:46:25 +01:00
.gitmodules
.gitpod.dockerfile
.gitpod.yml
.gitreview
antivirusDetection.vbs
autogen.sh
BUCK
config.guess
config.sub
config_host.mk.in support for the WebP image format (tdf#114532) 2022-01-31 10:44:29 +01:00
config_host_lang.mk.in
configure.ac support for the WebP image format (tdf#114532) 2022-01-31 10:44:29 +01:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst support for the WebP image format (tdf#114532) 2022-01-31 10:44:29 +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 support for the WebP image format (tdf#114532) 2022-01-31 10:44:29 +01:00
Makefile.gbuild gbuild: build static LO / link static executables 2022-01-12 11:12:46 +01:00
Makefile.in Add <module>.*all aliases to .all* and update help 2022-01-17 11:10:34 +01:00
README.cross
README.help.md
README.md Bump minimum macOS to 10.13 2022-01-12 08:51:49 +01:00
README.Solaris
Repository.mk ofz: fix build, webpfuzzer missing from Repository.mk 2022-01-31 22:28:31 +01:00
RepositoryExternal.mk support for the WebP image format (tdf#114532) 2022-01-31 10:44:29 +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

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: 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.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.