Test repository to check push and ssh key
Find a file
Julien Nabet 87e8d5ec6b Simplify Sequences initializations (canvas)
Change-Id: I651858d71e378341205d6a785bd97f294664a439
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116737
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2021-06-07 12:58:48 +02:00
.git-hooks
.github
.vscode
accessibility Simplify Sequences initializations (accessibility/binaryurp) 2021-06-05 16:21:03 +02:00
android
animations
apple_remote
avmedia
basctl
basegfx
basic
bean
bin find-unneeded-includes: fix YAMLLoadWarning on newer systems 2021-06-07 12:06:03 +02:00
binaryurp Simplify Sequences initializations (accessibility/binaryurp) 2021-06-05 16:21:03 +02:00
bridges
canvas Simplify Sequences initializations (canvas) 2021-06-07 12:58:48 +02:00
chart2
cli_ure
codemaker
comphelper
compilerplugins loplugin:virtualdead 2021-06-04 19:18:30 +02:00
config_host
configmgr
connectivity Simplify some initializations in connectivity (2) 2021-06-03 14:12:06 +02:00
cppcanvas
cppu
cppuhelper
cpputools
cui enforce indicator consistency 2021-06-06 21:36:49 +02:00
dbaccess Revert "Initialize vector directly with the already known count number" 2021-06-03 09:38:58 +02:00
desktop lok: Interaction handler for FilterOptions 2021-06-04 07:46:39 +02:00
dictionaries@29eb293030 Update git submodules 2021-06-02 22:31:54 +02:00
distro-configs Enable PdfIum for android build 2021-06-04 10:38:48 +02:00
drawinglayer WMF Change the sign of read fields in BITBLT and DIB records 2021-06-05 20:20:24 +02:00
editeng cid#1485166 silence Uninitialized scalar variable 2021-06-05 16:50:37 +02:00
embeddedobj
embedserv
emfio WMF Change the sign of read fields in BITBLT and DIB records 2021-06-05 20:20:24 +02:00
eventattacher
extensions Revert "Initialize vector directly with the already known count number" 2021-06-03 09:38:58 +02:00
external pass -enable-symbols down to libxml 2021-06-07 08:42:35 +02:00
extras tdf#127028 "bpmn" template should have ext. otg instead of ott 2021-06-07 12:25:29 +02:00
filter tdf#142483 filter: xhtml: fix substitution of fo:border attribute 2021-06-04 20:04:09 +02:00
forms no need to allocate these on the heap 2021-06-02 18:23:45 +02:00
formula Merging an unsupported formula grammar is worth a real assert() 2021-06-02 19:50:22 +02:00
fpicker no need to allocate these on the heap 2021-06-02 18:23:45 +02:00
framework
helpcompiler no need to allocate these on the heap 2021-06-02 18:23:45 +02:00
helpcontent2@096e8e9891 Update git submodules 2021-06-06 12:25:23 +02:00
hwpfilter no need to allocate these on the heap 2021-06-02 18:23:30 +02:00
i18nlangtag
i18npool Fix the <FollowPageWord> entries for Bulgarian 2021-06-04 12:33:24 +02:00
i18nutil
icon-themes
idl
idlc
include Resolves tdf#140360 - Provide option to turn off sidebar's minimum width 2021-06-07 07:45:58 +02:00
instsetoo_native
io
ios
javaunohelper
jurt
jvmaccess
jvmfwk
l10ntools -Werror,-Wunused-but-set-variable (Clang 13 trunk) 2021-06-03 16:13:24 +02:00
librelogo
libreofficekit
lingucomponent
linguistic
lotuswordpro no need to allocate these on the heap 2021-06-02 18:23:30 +02:00
m4
nlpsolver
o3tl
odk
offapi
officecfg Resolves tdf#140360 - Provide option to turn off sidebar's minimum width 2021-06-07 07:45:58 +02:00
onlineupdate
oovbaapi
oox Fix and unify the two methods that get scaled text size 2021-06-06 21:58:09 +02:00
opencl
osx
package improve exception message 2021-06-02 13:32:08 +02:00
pch
postprocess
pyuno
qadevOOo Explicitly set ForceFocusAndToFront to false for unit tests 2021-06-04 16:59:07 +02:00
readlicense_oo update credits 2021-06-04 16:23:19 +02:00
registry
remotebridges
reportbuilder
reportdesign no need to allocate these on the heap 2021-06-02 18:23:45 +02:00
ridljar
sal Make optional use of SetThreadDescription in osl_setThreadName 2021-06-02 15:27:09 +02:00
salhelper
sax
sc move remaining copy/paste tests from ucalc to ucalc_copypaste 2021-06-07 09:59:58 +02:00
scaddins
sccomp fix leak in solver test 2021-06-04 22:08:41 +02:00
schema
scp2
scripting
sd Resolves tdf#142513 fix zoom caller handling 2021-06-07 08:51:02 +02:00
sdext
setup_native
sfx2 Resolves tdf#142513 fix zoom caller handling 2021-06-07 08:51:02 +02:00
shell
slideshow tdf#92917: fix crash in Impress in viewmediashape (slideshow) 2021-06-02 08:38:43 +02:00
smoketest
solenv Add missing FilterOptionsDialog constructor for android 2021-06-04 07:47:08 +02:00
soltools
sot
starmath move unique use of secondary-icon-tooltip-text to tooltip-text 2021-06-04 21:00:33 +02:00
stoc
store
svgio
svl
svtools add x-office-calendar to allow symbolic names 2021-06-06 21:36:20 +02:00
svx Fix and unify the two methods that get scaled text size 2021-06-06 21:58:09 +02:00
sw sw: prefix members of CSS1Selector, HTMLStartEndPos, SvxCSS1MapEntry and ... 2021-06-07 11:27:47 +02:00
swext
sysui
test sc: use XmlTestTools::registerOOXMLNamespaces() 2021-06-04 12:28:26 +02:00
testtools
toolkit
tools ofz#33769 Integer-overflow 2021-06-03 13:37:36 +02:00
translations@c856f9a263 Update git submodules 2021-06-07 07:03:50 +02:00
ucb
ucbhelper
udkapi
uitest UITest: introduce guarded context managers 2021-06-06 17:38:15 +02:00
UnoControls
unodevtools -Werror,-Wunused-but-set-variable (Clang 13 trunk) 2021-06-03 15:16:27 +02:00
unoidl
unoil
unotest
unotools
unoxml
ure
uui
vbahelper
vcl gtk4: don't need to 'formatMenuButton' anymore 2021-06-06 21:37:57 +02:00
wasm-qt
winaccessibility
wizards ScriptForge - (scriptforge.py) ThisComponent, ThisDatabaseDocument 2021-06-04 10:21:54 +02:00
writerfilter
writerperfect
xmerge
xmlhelp
xmloff Fix typo 2021-06-04 12:40:45 +02:00
xmlreader
xmlscript
xmlsecurity
.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
config_host_lang.mk.in
configure.ac make --enable-gtk4 work again 2021-06-02 09:45:04 +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
Makefile.fetch
Makefile.gbuild
Makefile.in
README.cross
README.md s/irc.freenode.net/irc.libera.chat/ in README.md 2021-06-02 15:57:31 +02:00
README.Solaris
README.wasm
Repository.mk
RepositoryExternal.mk
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.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.