Test repository to check push and ssh key
Find a file
Miklos Vajna f86d1482be sw clearing breaks: add DOCX import
Map <w:br w:clear="..."> to the com.sun.star.text.LineBreak UNO service,
but keep the default clear=none case unchanged.

Change-Id: I145e891c1df0bbd0fdac2c62463dc801bca827fb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131167
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2022-03-08 12:25:55 +01:00
.git-hooks
.github
.vscode
accessibility tdf#42982: improve UNO API error reporting 2022-03-07 21:19:01 +01:00
android
animations
apple_remote
avmedia Fix typos 2022-03-04 16:30:05 +01:00
basctl
basegfx
basic tdf#42982: improve UNO API error reporting 2022-03-07 21:19:01 +01:00
bean
bin Drop useless parameter 2022-03-07 11:47:32 +01:00
binaryurp
bridges tdf#130924 replace debugging printf calls with SAL_INFO/SAL_WARN 2022-03-05 08:35:23 +01:00
canvas
chart2 make some svx methods const 2022-03-05 11:59:04 +01:00
cli_ure
codemaker cid#1500511 silence Resource leak 2022-03-04 22:37:55 +01:00
comphelper optimize ConfigurationProperty::get() 2022-03-07 15:37:41 +01:00
compilerplugins
config_host make Calc jumbo sheets an explicit build feature 2022-03-01 10:48:13 +01:00
configmgr
connectivity cid#1500701 silence Dereference after null check 2022-03-04 17:17:27 +01:00
cppcanvas
cppu
cppuhelper
cpputools
cui remove some member-of a11y relations 2022-03-08 11:41:15 +01:00
dbaccess remove a workaround that appears to be no longer necessary 2022-03-05 23:53:53 +01:00
desktop do not pass XComponentContext to officecfg::...::get() calls 2022-03-07 15:37:22 +01:00
dictionaries@5314824424
distro-configs
drawinglayer the assumption is that aArray.size() matches the Length argument 2022-03-04 13:46:02 +01:00
editeng cid#1500415 Explicit null dereferenced 2022-03-02 20:50:53 +01:00
embeddedobj do not pass XComponentContext to officecfg::...::get() calls 2022-03-07 15:37:22 +01:00
embedserv
emfio
eventattacher
extensions do not pass XComponentContext to officecfg::...::get() calls 2022-03-07 15:37:22 +01:00
external ofz: Use-of-uninitialized value 2022-03-07 15:00:31 +01:00
extras
filter Fix a DPI-dependent test 2022-03-08 06:45:16 +01:00
forms GetComponentServiceName can be const 2022-03-05 15:19:15 +01:00
formula
fpicker do not pass XComponentContext to officecfg::...::get() calls 2022-03-07 15:37:22 +01:00
framework do not pass XComponentContext to officecfg::...::get() calls 2022-03-07 15:37:22 +01:00
helpcompiler
helpcontent2@fd0b076d8c Update git submodules 2022-03-07 16:10:42 +01:00
hwpfilter ofz#45125 Indirect-leak 2022-03-08 10:02:26 +01:00
i18nlangtag
i18npool fix data races in cclass_Unicode 2022-03-01 17:55:52 +01:00
i18nutil
icon-themes KJ: tdf#147838 image for Base preview 2022-03-08 11:23:09 +01:00
idl
idlc
include do not pass XComponentContext to officecfg::...::get() calls 2022-03-07 15:37:22 +01:00
instsetoo_native Do not pull in X11 dependencies when the build is configured for LOKit 2022-03-02 17:47:12 +01:00
io
ios
javaunohelper
jurt
jvmaccess
jvmfwk
l10ntools
librelogo
libreofficekit
lingucomponent
linguistic
lotuswordpro
m4
nlpsolver
o3tl use OUStringBuffer for a string that's modified often (tdf#145862) 2022-03-01 21:32:11 +01:00
odk
offapi it's not for listening to a File Picker 2022-03-02 11:00:37 +01:00
officecfg
onlineupdate
oovbaapi
oox sc: support reading sparklines from OOXML document 2022-03-08 10:08:56 +01:00
opencl
osx
package
pch
postprocess
pyuno
qadevOOo tdf#45904: Remove ScHeaderFieldObj Java test 2022-03-04 17:16:06 +01:00
readlicense_oo update credits 2022-03-03 14:18:42 +01:00
registry
remotebridges
reportbuilder
reportdesign use SfxItemSet::GetItemIfSet in desktop..reportdesign 2022-03-01 07:46:32 +01:00
ridljar
sal Fix --with-latest-c++ build 2022-03-08 08:46:51 +01:00
salhelper
sax crashtesting: assert that !rtl::isAscii in xmlError message 2022-03-03 16:29:15 +01:00
sc optimize ScTabView::SkipCursorVertical() for many rows 2022-03-08 11:27:56 +01:00
scaddins
sccomp
schema
scp2
scripting
sd tdf#112126 Added Unit Test 2022-03-08 11:22:29 +01:00
sdext
setup_native
sfx2 do not pass XComponentContext to officecfg::...::get() calls 2022-03-07 15:37:22 +01:00
shell Handle symlinks 2022-03-03 18:59:16 +01:00
slideshow Recheck modules s[f-t]* with IWYU 2022-03-01 08:21:00 +01:00
smoketest
solenv remove some member-of a11y relations 2022-03-08 11:41:15 +01: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 Fix tdf#147755 by copying the vector. 2022-03-06 14:37:20 +01:00
static
stoc Recheck modules s[f-t]* with IWYU 2022-03-01 08:21:00 +01:00
store
svgio Recheck modules sv* with IWYU 2022-03-03 09:50:43 +01:00
svl do not pass XComponentContext to officecfg::...::get() calls 2022-03-07 15:37:22 +01:00
svtools do not pass XComponentContext to officecfg::...::get() calls 2022-03-07 15:37:22 +01:00
svx do not pass XComponentContext to officecfg::...::get() calls 2022-03-07 15:37:22 +01:00
sw remove some member-of a11y relations 2022-03-08 11:41:15 +01:00
swext cid#1500542 swext: Wiki Publisher: "Insecure TLS version" 2022-03-07 11:01:32 +01:00
sysui
test Fix some DPI-dependent tests 2022-03-07 12:53:27 +01:00
testtools
toolkit GetComponentServiceName can be const 2022-03-05 15:19:15 +01:00
tools ofz: Use-of-uninitialized-value 2022-03-06 15:23:19 +01:00
translations@149fb7cb5f
ucb do not pass XComponentContext to officecfg::...::get() calls 2022-03-07 15:37:22 +01:00
ucbhelper
udkapi
uitest tdf#147755: math: Add UItest 2022-03-07 21:21:33 +01:00
UnoControls
unodevtools
unoidl
unoil
unotest Fix the test failing when invalid certificate is in cert store 2022-03-01 15:17:55 +01:00
unotools
unoxml crashtesting: assert that !rtl::isAscii in xmlError message 2022-03-06 13:36:42 +01:00
ure
uui
vbahelper
vcl Make comment less misleading 2022-03-08 11:09:56 +01:00
winaccessibility wina11y: Simplify this loop a bit 2022-03-02 20:39:52 +01:00
wizards ScriptForge - (SF_Document) new Import/ExportFilters properties 2022-03-07 16:13:46 +01:00
writerfilter sw clearing breaks: add DOCX import 2022-03-08 12:25:55 +01:00
writerperfect
xmerge
xmlhelp do not pass XComponentContext to officecfg::...::get() calls 2022-03-07 15:37:22 +01:00
xmloff tdf#147126 sw: fix missing as_char anchoring of group textboxes 2022-03-01 17:53:01 +01:00
xmlreader
xmlscript
xmlsecurity use internal SHA256Thumbprint api 2022-03-04 14:26:04 +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 make Calc jumbo sheets an explicit build feature 2022-03-01 10:48:13 +01:00
config_host_lang.mk.in
configure.ac tdf#147801 Demote bsdtar in favor of tar in configure.ac 2022-03-08 10:44:18 +01:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst
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
README.cross
README.help.md
README.md
README.Solaris
Repository.mk
RepositoryExternal.mk
RepositoryFixes.mk
RepositoryModule_build.mk
RepositoryModule_host.mk
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.