Test repository to check push and ssh key
Find a file
Julien Nabet f28c4ae3c6 Directly initialize vectors in uui
Change-Id: Ifca1362d8ee97640b31ce75b3dc8e819fe32588d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123567
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2021-10-14 10:28:44 +02:00
.git-hooks
.github
.vscode
accessibility vcl: rename OutDevState to Stack 2021-09-28 08:20:32 +02:00
android
animations loplugin:moveparam in various 2021-10-12 09:50:31 +02:00
apple_remote
avmedia
basctl Avoid COW overhead using css::uno::Sequence 2021-10-14 06:00:49 +02:00
basegfx loplugin:moveparam in basegfx 2021-10-10 19:46:01 +02:00
basic tdf#130307 - Support for each loop for objects exposing XIndexAccess 2021-10-12 21:11:10 +02:00
bean
bin add some comment to gen-boost-headers 2021-10-13 11:33:26 +02:00
binaryurp loplugin:moveparam in binaryurp 2021-10-08 17:10:07 +02:00
bridges Extend return values < 32-bit on macOS ARM64 2021-10-13 13:43:09 +02:00
canvas loplugin:unusedmethods 2021-10-12 20:21:22 +02:00
chart2 Avoid COW overhead using css::uno::Sequence 2021-10-14 06:00:49 +02:00
cli_ure drop 'using namespace std' in cli_ure 2021-10-07 13:38:06 +02:00
codemaker
comphelper Avoid COW overhead using css::uno::Sequence 2021-10-14 06:00:49 +02:00
compilerplugins loplugin:unusedmethods 2021-10-12 20:21:22 +02:00
config_host qt6: Add a qt6 VCL plugin 2021-09-29 13:50:58 +02:00
configmgr
connectivity Avoid COW overhead using css::uno::Sequence 2021-10-14 06:00:49 +02:00
cppcanvas In O[U]StringBuffer, make string_view params replacements for OUString ones 2021-10-11 14:22:22 +02:00
cppu In O[U]StringBuffer, make string_view params replacements for OUString ones 2021-10-11 14:22:22 +02:00
cppuhelper Avoid COW overhead using css::uno::Sequence 2021-10-14 06:00:49 +02:00
cpputools drop 'using namespace std' in cpputools 2021-10-03 19:27:37 +02:00
cui loplugin:moveparam in cui 2021-10-11 21:06:20 +02:00
dbaccess Avoid COW overhead using css::uno::Sequence 2021-10-14 06:00:49 +02:00
desktop Fix memory leak 2021-10-14 08:41:21 +02:00
dictionaries@6c9f1f6c25 Update git submodules 2021-10-04 15:25:10 +02:00
distro-configs
drawinglayer loplugin:moveparam in various 2021-10-12 09:50:31 +02:00
editeng In O[U]StringBuffer, make string_view params replacements for OUString ones 2021-10-11 14:22:22 +02:00
embeddedobj Extended loplugin:referencecasting/redundantcast (clang-cl): embeddedobj 2021-09-30 16:00:19 +02:00
embedserv Extended loplugin:referencecasting/redundantcast (clang-cl): embedserv 2021-09-30 15:27:52 +02:00
emfio drop 'using namespace std' in desktop, e*, f* 2021-10-03 19:27:50 +02:00
eventattacher
extensions Avoid COW overhead using css::uno::Sequence 2021-10-14 06:00:49 +02:00
external use LTO to build hunspell if LTO is enabled 2021-10-13 11:07:25 +02:00
extras [pt-PT] Added ~94 words to autocorrect 2021-10-02 08:38:09 +02:00
filter T602 is an obsolete format, don't assume .txt files are T602 2021-10-12 09:49:56 +02:00
forms Avoid COW overhead using css::uno::Sequence 2021-10-14 06:00:49 +02:00
formula loplugin:moveparam in formula 2021-10-11 12:19:03 +02:00
fpicker gives names to all the Idles and Tasks 2021-09-28 19:35:13 +02:00
framework Avoid COW overhead using css::uno::Sequence 2021-10-14 06:00:49 +02:00
helpcompiler
helpcontent2@c984b1f7c6 Update git submodules 2021-10-13 14:54:19 +02:00
hwpfilter ditch problematic HWPFile::Read4b variant 2021-10-13 11:02:05 +02:00
i18nlangtag A more lightweight O[U]StringConcatenation 2021-10-03 19:50:44 +02:00
i18npool Avoid COW overhead using css::uno::Sequence 2021-10-14 06:00:49 +02:00
i18nutil
icon-themes Breeze: tdf#144637 update & fix table cell border 2021-10-04 10:25:04 +02:00
idl
idlc
include Simplify JsonWriter a bit 2021-10-14 07:40:52 +02:00
instsetoo_native tdf#143686 increase a radiobutton's area size 2021-10-13 08:41:29 +02:00
io drop 'using namespace std' in h* i* j* 2021-10-05 22:22:55 +02:00
ios
javaunohelper
jurt
jvmaccess drop 'using namespace std' in h* i* j* 2021-10-05 22:22:55 +02:00
jvmfwk loplugin:moveparam in jvmfwk 2021-10-11 18:37:07 +02:00
l10ntools In O[U]StringBuffer, make string_view params replacements for OUString ones 2021-10-11 14:22:22 +02:00
librelogo Related: tdf#80713 add KeyIds to LibreLogo strings 2021-10-02 17:13:20 +02:00
libreofficekit loplugin:moveparam in various 2021-10-12 09:50:31 +02:00
lingucomponent drop 'using namespace std' in l* 2021-10-04 22:30:42 +02:00
linguistic loplugin:moveparam in various 2021-10-12 08:30:29 +02:00
lotuswordpro loplugin:moveparam in lotuswordpro 2021-10-11 21:05:55 +02:00
m4
nlpsolver
o3tl
odk Typo: *adress* -> *address* (except from not translated German parts) 2021-10-09 22:38:36 +02:00
offapi
officecfg Revert "tdf#136141 Sidebar wrap section visible like popupmenu" 2021-10-13 15:46:33 +02:00
onlineupdate drop 'using namespace std' in o* r* x* 2021-10-05 23:09:56 +02:00
oovbaapi
oox Avoid COW overhead using css::uno::Sequence 2021-10-14 06:00:49 +02:00
opencl drop 'using namespace std' in o* r* x* 2021-10-05 23:09:56 +02:00
osx
package loplugin:moveparam in package 2021-10-11 18:36:42 +02:00
pch
postprocess
pyuno
qadevOOo cid#1492820 WMI: Inefficient Map Iterator 2021-10-11 11:37:40 +02:00
readlicense_oo update credits 2021-10-06 02:00:03 +02:00
registry drop 'using namespace std' in o* r* x* 2021-10-05 23:09:56 +02:00
remotebridges
reportbuilder
reportdesign Avoid COW overhead using css::uno::Sequence 2021-10-14 06:00:49 +02:00
ridljar
sal OSL : remove useless rtl::Static in debugbase 2021-10-10 19:46:36 +02:00
salhelper
sax drop 'using namespace std' in sax/sc/scaddins/sfx2/shell 2021-10-04 22:25:07 +02:00
sc Avoid COW overhead using css::uno::Sequence 2021-10-14 06:00:49 +02:00
scaddins drop 'using namespace std' in sax/sc/scaddins/sfx2/shell 2021-10-04 22:25:07 +02:00
sccomp
schema sw: paragraph styles: add ODT filter for a linked character style 2021-09-28 10:27:20 +02:00
scp2
scripting Avoid COW overhead using css::uno::Sequence 2021-10-14 06:00:49 +02:00
sd Avoid COW overhead using css::uno::Sequence 2021-10-14 06:00:49 +02:00
sdext Avoid COW overhead using css::uno::Sequence 2021-10-14 06:00:49 +02:00
setup_native
sfx2 Avoid COW overhead using css::uno::Sequence 2021-10-14 06:00:49 +02:00
shell drop 'using namespace std' in sax/sc/scaddins/sfx2/shell 2021-10-04 22:25:07 +02:00
slideshow loplugin:moveparam in slideshow 2021-10-11 18:43:21 +02:00
smoketest
solenv use -flto=auto for gcc if no $PARALLELISM is set 2021-10-13 11:07:05 +02:00
soltools drop 'using namespace std' in s* + toolkit 2021-10-05 23:03:52 +02:00
sot
starmath Avoid COW overhead using css::uno::Sequence 2021-10-14 06:00:49 +02:00
stoc Avoid COW overhead using css::uno::Sequence 2021-10-14 06:00:49 +02:00
store
svgio loplugin:moveparam in svgio 2021-10-11 21:06:28 +02:00
svl Avoid COW overhead using css::uno::Sequence 2021-10-14 06:00:49 +02:00
svtools Avoid COW overhead using css::uno::Sequence 2021-10-14 06:00:49 +02:00
svx Avoid COW overhead using css::uno::Sequence 2021-10-14 06:00:49 +02:00
sw tdf#145093 sw track changes: fix crash at moving list items 2021-10-14 09:13:31 +02:00
swext
sysui uses of icon_filename are gone 2021-10-12 12:27:19 +02:00
test Avoid COW overhead using css::uno::Sequence 2021-10-14 06:00:49 +02:00
testtools
toolkit Avoid COW overhead using css::uno::Sequence 2021-10-14 06:00:49 +02:00
tools Simplify JsonWriter a bit 2021-10-14 07:40:52 +02:00
translations@e8881fe8aa Update git submodules 2021-10-04 21:27:09 +02:00
ucb Avoid COW overhead using css::uno::Sequence 2021-10-14 06:00:49 +02:00
ucbhelper Avoid COW overhead using css::uno::Sequence 2021-10-14 06:00:49 +02:00
udkapi
uitest
UnoControls
unodevtools
unoidl loplugin:moveparam in unoidl 2021-10-11 11:37:04 +02:00
unoil
unotest A more lightweight O[U]StringConcatenation 2021-10-03 19:50:44 +02:00
unotools Avoid COW overhead using css::uno::Sequence 2021-10-14 06:00:49 +02:00
unoxml
ure
uui Directly initialize vectors in uui 2021-10-14 10:28:44 +02:00
vbahelper Avoid COW overhead using css::uno::Sequence 2021-10-14 06:00:49 +02:00
vcl vcl: avoid "else" after "break" in pdfdocument 2021-10-14 08:21:42 +02:00
wasm-qt Move README.wasm -> wasm-qt/README.md 2021-10-12 15:04:08 +02:00
winaccessibility drop 'using namespace std' in winaccessibility 2021-10-05 21:23:57 +02:00
wizards ScriptForge - (SF_Platform) increase speed of Fonts property 2021-10-02 13:49:40 +02:00
writerfilter Avoid COW overhead using css::uno::Sequence 2021-10-14 06:00:49 +02:00
writerperfect Avoid COW overhead using css::uno::Sequence 2021-10-14 06:00:49 +02:00
xmerge
xmlhelp Avoid COW overhead using css::uno::Sequence 2021-10-14 06:00:49 +02:00
xmloff Avoid COW overhead using css::uno::Sequence 2021-10-14 06:00:49 +02:00
xmlreader
xmlscript loplugin:moveparam in xmlscript 2021-10-10 19:45:48 +02:00
xmlsecurity Avoid COW overhead using css::uno::Sequence 2021-10-14 06:00:49 +02: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 remove unused variables 2021-10-11 11:30:45 +02:00
config_host_lang.mk.in
configure.ac do not imply --enable-gdb-index just for --enable-symbols 2021-10-13 11:06:46 +02: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 Use ed25519 as default for ssh key pair generation 2021-09-29 09:34:21 +02:00
Makefile.fetch
Makefile.gbuild
Makefile.in Simplify VS IDE integration generation 2021-10-08 14:53:48 +02:00
README.cross
README.help.md
README.md
README.Solaris
Repository.mk qt6: Add a qt6 VCL plugin 2021-09-29 13:50:58 +02:00
RepositoryExternal.mk qt6: Add a qt6 VCL plugin 2021-09-29 13:50:58 +02:00
RepositoryFixes.mk
RepositoryModule_build.mk
RepositoryModule_host.mk
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.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.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.