Test repository to check push and ssh key
Find a file
Stephan Bergmann ad48b2b02f Optimized OString operator += overloads
...similar to how OUString got an operator += overload for std::u16string_view
with c927aab29e "Make the OUString ctors taking
raw sal_Unicode pointer/non-const array explicit".  In this case, though, we can
easily add enough overloads (which forward to the one taking std::string_view)
to avoid any ambiguities at call sites.

We had left this out in the past as there is no suitable rtl_string_newConcat*
function to use in the implementation, but we already had inline implementations
of OStringConcat/OStringNumber overloads, so stick to that pattern here with the
new std::string_view overload.

Change-Id: I329036ea2b62cb921b4dbc1eef7c45a9cdb56e13
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115452
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2021-05-12 09:23:36 +02:00
.git-hooks
.github
.vscode
accessibility loplugin:constmethod 2021-05-05 18:50:51 +02:00
android android: Don't crash trying to process non-existing file from recents 2021-05-11 10:05:45 +02:00
animations
apple_remote
avmedia
basctl change usage of boost::hash_combine to o3tl::hash_combine 2021-05-11 12:28:24 +02:00
basegfx
basic fix some leaks in basic 2021-05-10 15:14:48 +02:00
bean
bin preserve comments before root entry 2021-05-07 09:46:33 +02:00
binaryurp
bridges loplugin:noexcept (macOS) 2021-05-07 11:12:15 +02:00
canvas set also dashing cap style for directx canvas (tdf#136957) 2021-05-07 14:30:25 +02:00
chart2 clang-tidy error: Returning null reference 2021-05-09 11:25:43 +02:00
cli_ure
codemaker
comphelper loplugin:stringadd improvement for appending numbers 2021-05-03 15:32:53 +02:00
compilerplugins loplugin:implicitboolconversion workaround 2021-05-11 14:59:59 +02:00
config_host
configmgr
connectivity loplugin:noexcept (macOS) 2021-05-04 07:44:27 +02:00
cppcanvas transform by vector length, not just X 2021-05-06 11:21:48 +02:00
cppu
cppuhelper
cpputools
cui fix leak in SvxHpLinkDlg 2021-05-11 15:00:21 +02:00
dbaccess tdf#138209 ODF export: work around forms problem in LO < 7.0 2021-05-10 21:07:40 +02:00
desktop lok: move handleMacroConfirmationRequest to its own method 2021-05-11 02:20:09 +02:00
dictionaries@4d00eb0e60 Update git submodules 2021-05-11 15:56:42 +02:00
distro-configs WASM: add distro config, amend readme 2021-05-05 21:16:02 +02:00
drawinglayer drawinglayer: move converter.hxx to public include 2021-05-11 01:16:23 +02:00
editeng do not leak SdrObject global pool on shutdown 2021-05-10 08:43:19 +02:00
embeddedobj embeddedobj: handle getting the visible area on a thread 2021-05-07 14:21:40 +02:00
embedserv
emfio tdf#141982 tdf#142139 Add rotation and line width support to ROUNDRECT 2021-05-11 18:38:08 +02:00
eventattacher
extensions ref-count SfxItemPool 2021-05-08 17:36:54 +02:00
external external: update pdfium to 4500 2021-05-12 09:03:57 +02:00
extras tdf#141933 add preset dash styles with round cap 2021-05-05 13:42:30 +02:00
filter tdf#123476: also use filter by extension when its service is the same 2021-05-03 18:38:38 +02:00
forms ref-count SfxItemPool 2021-05-08 17:36:54 +02:00
formula
fpicker
framework loplugin:constmethod 2021-05-05 18:50:51 +02:00
helpcompiler
helpcontent2@cc7f7b0547 Update git submodules 2021-05-09 15:51:59 +02:00
hwpfilter
i18nlangtag Add English (Denmark) {en-DK} locale data 2021-05-06 17:46:52 +02:00
i18npool Add English (Denmark) {en-DK} locale data 2021-05-06 17:46:52 +02:00
i18nutil WASM: add initial support for Emscripten cross build 2021-05-05 21:14:54 +02:00
icon-themes
idl WASM: add initial support for Emscripten cross build 2021-05-05 21:14:54 +02:00
idlc
include Optimized OString operator += overloads 2021-05-12 09:23:36 +02:00
instsetoo_native
io
ios
javaunohelper
jurt
jvmaccess
jvmfwk I suspect that we unlikely to use JRE older than 1.3.1_07 2021-05-10 14:38:57 +02:00
l10ntools
librelogo
libreofficekit
lingucomponent
linguistic
lotuswordpro loplugin:stringadd improvement for appending numbers 2021-05-03 15:32:53 +02:00
m4
nlpsolver clean up some Java warnings 2021-05-03 12:33:33 +02:00
o3tl add o3tl version of hash_combine to not depend on boost for this 2021-05-11 12:23:48 +02:00
odk
offapi tdf#76258 Add OOXML import for color filter 2021-05-11 09:17:13 +02:00
officecfg There’s no need to SHOUT to the user 2021-05-11 14:08:32 -05:00
onlineupdate
oovbaapi
oox tdf#141463 avoid skew in shape group in ooxml import .. 2021-05-11 17:19:34 +02:00
opencl
osx
package
pch
postprocess
pyuno
qadevOOo
readlicense_oo update credits 2021-05-06 15:27:25 +02:00
registry
remotebridges
reportbuilder clean up some Java warnings 2021-05-03 12:33:33 +02:00
reportdesign tdf#138209 ODF export: work around forms problem in LO < 7.0 2021-05-10 21:07:40 +02:00
ridljar
sal WASM: add initial support for Emscripten cross build 2021-05-05 21:14:54 +02:00
salhelper
sax loplugin:stringadd improvement for appending numbers 2021-05-03 15:32:53 +02:00
sc sc_ucalc: remove duplicated method 2021-05-11 23:21:21 +02:00
scaddins
sccomp
schema Add proposal link 2021-05-04 16:28:08 +02:00
scp2
scripting
sd tdf#91874 Command Popup - HUD to search and run LO commands 2021-05-11 16:08:36 +02:00
sdext change usage of boost::hash_combine to o3tl::hash_combine 2021-05-11 12:28:24 +02:00
setup_native
sfx2 don't leak when the SfxHintPoster is disabled 2021-05-11 17:28:43 +02:00
shell
slideshow
smoketest
solenv external: update pdfium to 4500 2021-05-12 09:03:57 +02:00
soltools
sot convert sal_uLong in sot 2021-05-07 11:02:56 +02:00
starmath cid#1401328 silence Uncaught exception 2021-05-09 21:34:59 +02:00
stoc
store
svgio svgio: instead of assert(false && ...) rather use SAL_WARN instead 2021-05-04 04:47:26 +02:00
svl tdf#127363: svl_qa_cppunit: Add unittest 2021-05-11 14:11:14 +02:00
svtools embeddedobj: handle getting the visible area on a thread 2021-05-07 14:21:40 +02:00
svx Resolves tdf#127406 - Font name and style name not readable 2021-05-11 16:10:45 +02:00
sw tdf#142196 sw: crossing out images anchored to character 2021-05-12 08:44:00 +02:00
swext
sysui
test
testtools
toolkit final 'next incompatible build' TODO 2021-05-04 09:45:57 +02:00
tools fix leak in ZCodec 2021-05-11 12:17:11 +02:00
translations@25d2fa3ee2 Update git submodules 2021-05-09 20:08:31 +02:00
ucb
ucbhelper
udkapi
uitest uitest: sd: simplify code 2021-05-04 15:07:14 +02:00
UnoControls
unodevtools
unoidl
unoil
unotest
unotools reduce cost of locking in SvtModuleOptions 2021-05-10 20:20:28 +02:00
unoxml
ure
uui
vbahelper change usage of boost::hash_combine to o3tl::hash_combine 2021-05-11 12:28:24 +02:00
vcl ofz#32899 missing scripting_BrowseNodeFactoryImpl_get_implementation 2021-05-11 20:42:21 +02:00
wasm-qt WASM: add Emscripten demo application 2021-05-05 21:15:22 +02:00
winaccessibility
wizards ScriptForge - (scriptforge.py)Non-modal dialogs and OK/Cancel buttons 2021-05-06 14:46:19 +02:00
writerfilter tdf#128913 DOCX: import track changes of inline images 2021-05-06 16:19:05 +02:00
writerperfect
xmerge
xmlhelp
xmloff Missing include 2021-05-11 16:30:05 +02:00
xmlreader improve perf of xmlreader::Pad 2021-05-11 11:53:45 +02:00
xmlscript
xmlsecurity WASM: add Emscripten demo application 2021-05-05 21:15:22 +02:00
.buckconfig
.buckversion
.clang-format
.editorconfig
.git-blame-ignore-revs
.gitattributes
.gitignore WASM: add initial support for Emscripten cross build 2021-05-05 21:14:54 +02:00
.gitmodules
.gitpod.dockerfile
.gitpod.yml
.gitreview
antivirusDetection.vbs
autogen.sh WASM: add initial support for Emscripten cross build 2021-05-05 21:14:54 +02:00
BUCK
config.guess
config.sub
config_host.mk.in bodge a gtk4 starting point into existence 2021-05-10 10:57:57 +02:00
config_host_lang.mk.in
configure.ac upload libmwaw 0.3.19 2021-05-10 20:19:45 +02:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst external: update pdfium to 4500 2021-05-12 09:03:57 +02:00
g
hardened_runtime.xcent.in
install-sh
install_deps.sh
leak-suppress.txt suppress some leaks I don't want to deal with 2021-05-11 11:14:24 +02:00
Library_merged.mk
lo.xcent
logerrit
Makefile.fetch
Makefile.gbuild
Makefile.in Run checks also on cross build toolchain 2021-05-05 21:14:12 +02:00
README.cross
README.md WASM: add initial support for Emscripten cross build 2021-05-05 21:14:54 +02:00
README.Solaris
README.wasm Fix typos 2021-05-06 11:54:18 +02:00
Repository.mk bodge a gtk4 starting point into existence 2021-05-10 10:57:57 +02:00
RepositoryExternal.mk Switch OPENSSL config var from negative to positive 2021-05-05 21:14:30 +02:00
RepositoryFixes.mk
RepositoryModule_build.mk
RepositoryModule_host.mk
sanitize-ubsan-excludelist
setup.cfg
TEMPLATE.SOURCECODE.HEADER

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.10
    • 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.freenode.net - 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.