Test repository to check push and ssh key
Find a file
Michael Weghorn d84c06577f wina11y: Don't use space in qualified name
While 'MyClass:: MyMethod' (with a space in it) is valid in C++,
it's unusual and may break a naive plain-text search for
a specific class member definition.

Change-Id: I8c9779865715a0b4f1a66d3e35b874f2cec19193
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128016
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2022-01-06 10:11:21 +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 Disable epoxy test with --disable-gui 2022-01-05 18:00:59 +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 avoid Sequence realloc 2022-01-06 07:16:14 +01:00
cli_ure
codemaker
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
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
cppuhelper Drop MSVC special-casing for OWeakObject ctor 2022-01-04 08:09:48 +01:00
cpputools
cui Fix typo 2022-01-05 19:09:33 +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
embeddedobj
embedserv Use GetModuleHandleExW instead of GetModuleHandleW 2022-01-05 16:20:36 +01:00
emfio
eventattacher
extensions Use GetModuleHandleExW instead of GetModuleHandleW 2022-01-05 19:48:58 +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
formula
fpicker
framework use comphelper::WeakComponentImplHelper in WindowContentFactoryManager 2021-12-27 09:00:06 +01:00
helpcompiler
helpcontent2@1fbed0448d Update git submodules 2022-01-05 18:18:20 +01:00
hwpfilter
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 bypass SvxShape when creating rectangles in chart2 2022-01-06 07:15:48 +01:00
instsetoo_native
io
ios
javaunohelper
jurt gbuild: introduce gb_%_linktarget_target 2021-12-31 17:58:18 +01:00
jvmaccess
jvmfwk
l10ntools
librelogo
libreofficekit
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 Drop remnants of --with-webdav=neon 2022-01-05 17:50:41 +01:00
nlpsolver
o3tl
odk Bump copyright year to 2021 2021-01-01 00:00:00 +00:00
offapi
officecfg
onlineupdate
oovbaapi
oox Removed executable permission on pptx file 2022-01-06 07:13:34 +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
pyuno
qadevOOo
readlicense_oo Bump copyright year to 2021 2021-01-01 00:00:00 +00:00
registry
remotebridges
reportbuilder
reportdesign
ridljar
sal Simplify osl_getModuleURLFromAddress a bit 2022-01-06 06:46:20 +01:00
salhelper
sax osl::Mutex->std::mutex in FastSaxParserImpl 2022-01-04 07:07:20 +01:00
sc Resolves: tdf#146592 "Reset" to the current document properties 2022-01-06 09:59:22 +01:00
scaddins
sccomp
schema
scp2
scripting osl::Mutex->std::mutex in StringResourceImpl 2022-01-04 10:44:03 +01:00
sd tdf#146499 Crash to desktop when activating presentation mode 2022-01-05 19:03:11 +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 Disable epoxy test with --disable-gui 2022-01-05 18:00:59 +01:00
smoketest oss-fuzz: convert to static cross-build 2021-12-25 17:05:08 +01:00
solenv gbuild: skip libmerged externals for partial builds 2022-01-05 22:19:18 +01:00
soltools
sot
starmath
stoc osl::Mutex->std::mutex in ImplIntrospectionAccess 2022-01-03 20:07:29 +01:00
store
svgio
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 bypass SvxShape when creating rectangles in chart2 2022-01-06 07:15:48 +01:00
sw sw textbox: pShape -> pFormat for frame formats 2022-01-06 08:31:51 +01:00
swext
sysui
test
testtools
toolkit Disable epoxy test with --disable-gui 2022-01-05 18:00:59 +01:00
tools Introduce OUString::unacquired(const OUStringBuffer&) 2022-01-02 09:03:32 +01:00
translations@f506a24906
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
uitest tdf#95217: sc: simplify test 2021-12-30 16:44:53 +01:00
UnoControls
unodevtools
unoidl
unoil
unotest
unotools
unoxml
ure
uui
vbahelper
vcl Disable epoxy test with --disable-gui 2022-01-05 18:00:59 +01:00
wasm-qt
winaccessibility wina11y: Don't use space in qualified name 2022-01-06 10:11:21 +01:00
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
xmerge
xmlhelp
xmloff Fix typos 2022-01-05 19:11:20 +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
.gitmodules
.gitpod.dockerfile
.gitpod.yml
.gitreview
antivirusDetection.vbs
autogen.sh
BUCK
config.guess
config.sub
config_host.mk.in Disable epoxy test with --disable-gui 2022-01-05 18:00:59 +01:00
config_host_lang.mk.in
configure.ac Simplify --with-webdav 2022-01-05 21:34:14 +01:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst upgrade to latest harfbuzz 2022-01-05 20:54:27 +01:00
g
hardened_runtime.xcent.in
install-sh
install_deps.sh
leak-suppress.txt
Library_merged.mk
lo.xcent
logerrit
Makefile.fetch
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 Disable epoxy test with --disable-gui 2022-01-05 18:00:59 +01:00
RepositoryFixes.mk
RepositoryModule_build.mk
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.