Test repository to check push and ssh key
Find a file
Mike Kaganski d75bf2c770 tdf#146554: use GetModuleHandleExW instead of GetModuleHandleW
This allows to avoid use of module name when obtaining current module
handle, which needs to be synchronized and thus is error-prone.

Change-Id: I2f0e0af7f616c3582b0a3271cf9e06420a9dfc8e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127993
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2022-01-05 13:12:00 +01:00
.git-hooks
.github
.vscode vscode-ide-integration: don't abuse "folders" for workdir/instdir 2021-12-27 12:30:16 +01:00
accessibility pass unique_lock as param in WeakComponentImplHelperBase::disposing 2021-12-25 13:56:27 +01:00
android
animations
apple_remote
avmedia avmedia : use std::mutex instead of osl::Mutex 2022-01-02 18:23:48 +01:00
basctl Avoid OUStringBuffer::toString where possible 2021-12-26 20:36:26 +01:00
basegfx use comphelper::WeakComponentImplHelper in UnoPolyPolygon 2021-12-27 11:49:05 +01:00
basic tdf#145960 - Return type of boolean operators should be of type boolean 2021-12-28 19:54:58 +01:00
bean
bin oss-fuzz: put LO downloads into $SRC/external-tar 2022-01-02 07:07:56 +01:00
binaryurp
bridges Android Arm: fix wrong bracket after refactor 2022-01-01 09:39:16 +01:00
canvas pass unique_lock as param in WeakComponentImplHelperBase::disposing 2021-12-25 13:56:27 +01:00
chart2 speed up setting properties in chart2 2022-01-04 17:49:22 +01:00
cli_ure
codemaker loplugin:flatten in canvas..cui 2021-12-21 15:55:46 +01:00
comphelper Let comphelper::Base64::decode* take std::u16string_view 2021-12-26 23:09:20 +01:00
compilerplugins loplugin:unusedmethods 2022-01-03 06:49:18 +01:00
config_host Update gpgme to 1.16.0 2022-01-05 09:53:07 +01:00
configmgr loplugin:flatten in canvas..cui 2021-12-21 15:55:46 +01:00
connectivity tdf#146432: fix crash with REGEXP_REPLACE() executed in query editor to MariaDB 2022-01-04 19:07:29 +01:00
cppcanvas vcl: migrate AddGradientActions() from OutputDevice to Gradient 2022-01-05 05:42:32 +01:00
cppu loplugin:flatten in canvas..cui 2021-12-21 15:55:46 +01:00
cppuhelper Drop MSVC special-casing for OWeakObject ctor 2022-01-04 08:09:48 +01:00
cpputools
cui changed CuiResId into SvxResId. 2022-01-04 11:35:38 +01:00
dbaccess Avoid OUStringBuffer::toString where possible 2021-12-26 20:36:26 +01:00
desktop Always use <poll.h>, no modern system needs <sys/poll.h> 2021-12-29 13:05:46 +01:00
dictionaries@3fc3d99f07 Update git submodules 2022-01-03 18:43:22 +01:00
distro-configs ofz#43008 drop ---with-system-lockfile from oss-fuzz build 2021-12-27 21:29:57 +01:00
drawinglayer loplugin:unusedmethods 2022-01-03 06:49:18 +01:00
editeng new comphelper::WeakImplComponentHelper 2021-12-24 08:21:00 +01:00
embeddedobj loplugin:flatten in editeng..extensions 2021-12-21 17:13:30 +01:00
embedserv Silence loplugin:fakebool for BOOL GetMessageW even harder 2021-12-22 13:33:46 +01:00
emfio Split BasePrimitive2D UNO interface into separate object 2021-12-23 11:45:33 +01:00
eventattacher
extensions Drop also commented-out obfuscated SAL_DEBUG calls 2022-01-04 13:40:42 +01:00
external Update gpgme to 1.16.0 2022-01-05 09:53:07 +01:00
extras
filter vcl: migrate AddGradientActions() from OutputDevice to Gradient 2022-01-05 05:42:32 +01:00
forms loplugin:flatten in filter..framework 2021-12-21 17:14:14 +01:00
formula loplugin:flatten in filter..framework 2021-12-21 17:14:14 +01:00
fpicker loplugin:flatten in filter..framework 2021-12-21 17:14:14 +01:00
framework use comphelper::WeakComponentImplHelper in WindowContentFactoryManager 2021-12-27 09:00:06 +01:00
helpcompiler Don't build clucene if not needed 2021-12-21 17:29:55 +01:00
helpcontent2@2e3f6779c0 Update git submodules 2022-01-04 20:49:46 +01:00
hwpfilter loplugin:flatten in filter..include 2021-12-22 07:44:07 +01:00
i18nlangtag Use primary().anyOf() instead of yet another equalsPrimary() 2021-12-30 01:49:06 +01:00
i18npool localedata: keep the intermediate %_new.cxx file 2022-01-03 17:37:30 +01:00
i18nutil Avoid OUStringBuffer::toString where possible 2021-12-26 20:36:26 +01:00
icon-themes Fix icon links.txt parse error 2021-12-31 07:55:25 +01:00
idl idl : no need to use rtl::Static 2022-01-02 18:24:56 +01:00
idlc idlc: Always use sys/wait.h on UNIX 2021-12-28 14:55:02 +01:00
include tdf#146534 pptx import: make Z rotation work with rotation transform 2022-01-05 09:08:10 +01:00
instsetoo_native
io osl::Mutex->std::mutex in SocketConnection 2021-12-20 08:33:02 +01:00
ios
javaunohelper use more cppu::BaseMutex 2021-12-19 11:19:12 +01:00
jurt gbuild: introduce gb_%_linktarget_target 2021-12-31 17:58:18 +01:00
jvmaccess
jvmfwk
l10ntools loplugin:flatten in l10ntools..lotuswordpro 2021-12-22 07:43:22 +01:00
librelogo
libreofficekit loplugin:flatten in l10ntools..lotuswordpro 2021-12-22 07:43:22 +01:00
lingucomponent
linguistic Avoid OUStringBuffer::toString where possible 2021-12-26 20:36:26 +01:00
lotuswordpro ofz#42829 Timeout 2022-01-05 11:18:55 +01:00
m4 Just ENABLE_* VCL plugins, if we test_* them 2022-01-03 15:57:34 +01:00
nlpsolver
o3tl -Werror,-Wundef (clang-cl) 2021-12-22 13:41:34 +01:00
odk Bump copyright year to 2021 2021-01-01 00:00:00 +00:00
offapi Recent XOOXMLDocumentPropertiesImporter changes went into 7.3 2021-12-22 15:43:21 +01:00
officecfg tdf#144862 explore alternatives to writer's on-screen glyph positioning 2021-12-22 10:12:01 +01:00
onlineupdate
oovbaapi
oox tdf#146534 pptx import: make Z rotation work with rotation transform 2022-01-05 09:08:10 +01:00
opencl
osx use concrete types in chart2, SvxShapeRect 2021-12-30 08:25:43 +01:00
package Let comphelper::Base64::decode* take std::u16string_view 2021-12-26 23:09:20 +01:00
pch
postprocess Build services_constructors.list from target component files 2021-12-14 07:37:41 +01:00
pyuno loplugin:flatten in package..reportdesign 2021-12-22 07:43:35 +01:00
qadevOOo
readlicense_oo Bump copyright year to 2021 2021-01-01 00:00:00 +00:00
registry Enforce cross-compilation for static builds 2021-12-24 02:15:03 +01:00
remotebridges
reportbuilder
reportdesign loplugin:flatten in package..reportdesign 2021-12-22 07:43:35 +01:00
ridljar
sal gbuild: introduce gb_%_linktarget_target 2021-12-31 17:58:18 +01:00
salhelper
sax osl::Mutex->std::mutex in FastSaxParserImpl 2022-01-04 07:07:20 +01:00
sc sc: fix crash with document properties dialog 2022-01-05 05:42:14 +01:00
scaddins
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
scripting osl::Mutex->std::mutex in StringResourceImpl 2022-01-04 10:44:03 +01:00
sd tdf#146534 pptx import: make Z rotation work with rotation transform 2022-01-05 09:08:10 +01:00
sdext
setup_native Bump copyright year to 2021 2021-01-01 00:00:00 +00:00
sfx2 lokit: double check for disposed windows & fix leak. 2022-01-04 15:44:38 +01:00
shell tdf#146554: use GetModuleHandleExW instead of GetModuleHandleW 2022-01-05 13:12:00 +01:00
slideshow
smoketest oss-fuzz: convert to static cross-build 2021-12-25 17:05:08 +01:00
solenv Further separate saxparser run from cmp'n'touch 2022-01-01 22:27:56 +01:00
soltools
sot
starmath tdf#140726 Change func func(<?>) to func <?>(<?>) in Math 2021-12-24 08:04:59 +01:00
stoc osl::Mutex->std::mutex in ImplIntrospectionAccess 2022-01-03 20:07:29 +01:00
store
svgio Fix Test::testTdf97663 2021-12-24 04:57:06 +01:00
svl Introduce OUString::unacquired(const OUStringBuffer&) 2022-01-02 09:03:32 +01:00
svtools Introduce OUString::unacquired(const OUStringBuffer&) 2022-01-02 09:03:32 +01:00
svx sc export chart as graphic: handle PDF 2022-01-04 19:02:03 +01:00
sw tdf#146489 writerfilter: ensure only character properties 2022-01-05 09:44:30 +01:00
swext
sysui
test Separate core drawinglayer func. into drawinglayercore library 2021-12-22 12:10:10 +01:00
testtools
toolkit osl::Mutex->std::mutex in ODocumentCloser 2021-12-27 20:22:00 +01:00
tools Introduce OUString::unacquired(const OUStringBuffer&) 2022-01-02 09:03:32 +01:00
translations@f506a24906 Update git submodules 2021-12-21 18:08:17 +01:00
ucb loplugin:unusedfields 2022-01-02 19:36:59 +01:00
ucbhelper osl::Mutex->std::mutex in CommandProcessorInfo 2021-12-27 15:21:05 +01:00
udkapi Update reference links for ISO 639 and 3166 2021-12-11 21:40:00 +01:00
uitest tdf#95217: sc: simplify test 2021-12-30 16:44:53 +01:00
UnoControls use more cppu::BaseMutex 2021-12-19 11:19:12 +01:00
unodevtools
unoidl
unoil
unotest
unotools osl::Mutex->std::mutex in SvtPathOptions 2021-12-25 09:28:23 +01:00
unoxml osl::Mutex->std::mutex in CEvent 2021-12-25 07:15:33 +01:00
ure
uui
vbahelper
vcl vcl: migrate AddGradientActions() from OutputDevice to Gradient 2022-01-05 05:42:32 +01:00
wasm-qt drop ui-previewer 2021-12-16 17:51:14 +01:00
winaccessibility
wizards Fix case for "ByVal", "Variant", "UCase" 2021-12-30 10:34:54 +01:00
writerfilter tdf#146489 writerfilter: ensure only character properties 2022-01-05 09:44:30 +01:00
writerperfect upload libmwaw 0.3.21 2021-12-14 08:08:46 +01:00
xmerge
xmlhelp
xmloff Drop all commented SAL_DEBUG calls 2022-01-04 11:26:47 +01:00
xmlreader
xmlscript
xmlsecurity xmlsecurity nss: log what XML DOM node is given to libxmlsec 2022-01-05 12:24:03 +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 gbuild: silence Windows Skia clang builds 2022-01-01 11:50:02 +01:00
config_host_lang.mk.in
configure.ac Update gpgme to 1.16.0 2022-01-05 09:53:07 +01:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst Update gpgme to 1.16.0 2022-01-05 09:53:07 +01:00
g
hardened_runtime.xcent.in
install-sh
install_deps.sh
leak-suppress.txt
Library_merged.mk
lo.xcent
logerrit
Makefile.fetch ucb: remove --with-webdav=neon 2021-12-15 15:24:52 +01:00
Makefile.gbuild
Makefile.in oss-fuzz: convert to static cross-build 2021-12-25 17:05:08 +01:00
README.cross
README.help.md
README.md
README.Solaris
Repository.mk Drop / merge some Haiku special build cases 2022-01-03 22:48:28 +01:00
RepositoryExternal.mk Replace obsolete *_use_external_project for libjpeg-turbo 2022-01-02 22:29:03 +01:00
RepositoryFixes.mk
RepositoryModule_build.mk add drawinglayercore to merged libs 2021-12-23 11:38:24 +09:00
RepositoryModule_host.mk gbuild: introduce gb_%_linktarget_target 2021-12-31 17:58:18 +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.12
    • 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.