Test repository to check push and ssh key
Find a file
Jan-Marek Glogowski 6df7568e46 WIN allow setting a memory limit for soffice.bin
This adds a Win32 section and two keys to the bootstrap.ini, which
can be used to apply a memory limit to the soffice.bin process on
Windows. Per default the limit won't affect any sub-processes,
because the 2nd key adds JOB_OBJECT_LIMIT_SILENT_BREAKAWAY_OK to
the Jobs' flag list.

To activte the limit, extend the bootstrap.ini like this:

[Win32]
LimitMaximumMemoryInMB=0
ExcludeChildProcessesFromLimit=true

and adapt the values to your needs. Zero disables the limit.

Change-Id: Ic474c6d6cdfe5ff3cfadbe6614030442171df1ae
Reviewed-on: https://gerrit.libreoffice.org/78819
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
2019-09-13 20:11:38 +02:00
.git-hooks
.github
accessibility
android Fixing '....' 2019-09-06 14:12:27 +02:00
animations
apple_remote
avmedia
basctl
basegfx
basic Fixing "...." 2019-09-06 09:15:58 +02:00
bean
bin tdf#121983 add whitelist for libcairo.so.2 2019-09-05 18:46:06 +02:00
binaryurp Improved loplugin:stringconstant (now that GCC 7 supports it): binaryurp 2019-07-31 13:00:45 +02:00
bridges
canvas
chart2 chart2: add some doxygen comments from Marco's talk 2019-09-12 15:48:09 +02:00
cli_ure Fix typos 2019-09-10 14:18:59 +02:00
codemaker
comphelper Fix typos 2019-09-10 11:58:13 +02:00
compilerplugins Avoid some false loplugin:redundantfcast involving std::function and lambdas 2019-09-13 09:27:20 +02:00
config_host
configmgr
connectivity cid#1453559 silence Unchecked return value 2019-09-12 22:04:26 +02:00
cppcanvas
cppu Silence -fsanitize=object-size in --enable-optimized builds 2019-09-03 15:54:08 +02:00
cppuhelper
cpputools
cui Revert "Resolves tdf#127317 - Make text of tips of the day selectable" 2019-09-13 14:25:24 +02:00
dbaccess tdf#45789 [API CHANGE] Automatic row height in reports 2019-09-13 10:45:01 +02:00
desktop WIN allow setting a memory limit for soffice.bin 2019-09-13 20:11:38 +02:00
dictionaries@358cce8e62
distro-configs Disable use of X11 or Wayland to reduce dependencies of Online 2019-09-13 11:00:27 +02:00
drawinglayer Fix typos 2019-09-10 11:58:13 +02:00
dtrans
editeng
embeddedobj Fix typos 2019-09-10 11:58:13 +02:00
embedserv clang-tidy: Fix suspicious catches of WIP unhandled-self-assignment check 2019-04-10 01:06:19 +02:00
emfio
eventattacher
extensions tdf#45789 [API CHANGE] Automatic row height in reports 2019-09-13 10:45:01 +02:00
external external: update pdfium to 3896 2019-09-11 08:04:00 +02:00
extras weld OCopyTableWizard cluster 2019-09-12 20:28:14 +02:00
filter Fix typos 2019-09-10 11:58:13 +02:00
forms
formula
fpicker
framework Fix typos 2019-09-12 14:38:29 +02:00
helpcompiler
helpcontent2@85e06dcbee
hwpfilter
i18nlangtag
i18npool
i18nutil tdf#42949 Fix IWYU warnings in: animations/ eventattacher/ i18nutil/ 2019-05-23 09:06:27 +02:00
icon-themes elementary: Fix for tdf#127425 2019-09-10 02:36:24 +02:00
idl
idlc Fix missing dependency 2019-09-11 23:46:20 +02:00
include document how to align extra widgets with message dialog labels 2019-09-13 17:16:01 +02:00
instsetoo_native
io
ios
javaunohelper
jurt
jvmaccess
jvmfwk
l10ntools
librelogo
libreofficekit
lingucomponent
linguistic Simplify Sequence iterations in lingucomponent..lotuswordpro 2019-08-30 14:15:57 +02:00
lotuswordpro Fix typos 2019-09-12 14:38:29 +02:00
m4
nlpsolver
o3tl
odk Fix typos 2019-09-10 11:56:52 +02:00
offapi tdf#45789 [API CHANGE] Automatic row height in reports 2019-09-13 10:45:01 +02:00
officecfg Fix typos 2019-09-10 15:04:49 +02:00
onlineupdate
oovbaapi
oox tdf#117274 XLSX export: fix VML comment shape type id 2019-09-13 07:59:53 +02:00
opencl
osx
package Fix typos 2019-09-10 11:56:52 +02:00
postprocess
pyuno
qadevOOo Fix typos 2019-09-12 14:38:29 +02:00
readlicense_oo
registry
remotebridges
reportbuilder
reportdesign tdf#45789 [API CHANGE] Automatic row height in reports 2019-09-13 10:45:01 +02:00
ridljar
sal Fix Unicode to Shift JIS/MS932 conversion data 2019-09-11 19:25:49 +02:00
salhelper
sax tdf#117274 XLSX export: fix VML comment shape type id 2019-09-13 07:59:53 +02:00
sc tdf#117274 XLSX export: fix VML comment shape type id 2019-09-13 07:59:53 +02:00
scaddins
sccomp
schema
scp2
scripting
sd sd edit diagram: dispose the diagram dialog after we don't need it 2019-09-12 21:57:34 +02:00
sdext Add version resource to executables where it was missing 2019-08-31 00:22:28 +02:00
setup_native
sfx2 Related: tdf#127195 use MessageDialogController to relocate checkbox 2019-09-13 17:15:52 +02:00
shell
slideshow Fix typos 2019-09-10 15:08:15 +02:00
smoketest
solenv xmloff: create XMLDrawExportOOO instances with an uno constructor 2019-09-13 09:26:10 +02:00
soltools gcc9.2.1 also warns about truncation here 2019-09-12 11:05:19 +02:00
sot Fix '..' 2019-09-01 12:29:39 +02:00
starmath
stoc
store
svgio loplugin:returnconstval in svgio 2019-08-25 08:14:02 +02:00
svl Add IwyuFilter_svl.yaml 2019-09-12 19:42:50 +02:00
svtools Fix typos 2019-09-10 14:18:04 +02:00
svx Fix typos 2019-09-10 14:18:14 +02:00
sw Disable test testFdo37606Copy::Import when we don't have UI 2019-09-13 10:59:04 +02:00
swext Fix typos 2019-08-12 15:03:11 +02:00
sysui
test Fix typos 2019-09-10 14:17:49 +02:00
testtools
toolkit Fix typos 2019-09-12 14:38:29 +02:00
tools
translations@1416d2d6d4
ucb
ucbhelper
udkapi Fix typos 2019-09-10 14:18:14 +02:00
uitest Let's revert this so no confusion. 2019-08-31 17:20:52 +02:00
UnoControls loplugin:returnconstval in UnoControls 2019-08-24 16:12:11 +02:00
unodevtools Fix typos 2019-08-12 11:31:51 +02:00
unoidl
unoil
unotest
unotools
unoxml
ure
uui enable route to get ParentWindow from an existing UUIInteractionHelper 2019-09-09 16:25:06 +01:00
vbahelper
vcl vcl: document what LO_COLLECT_UIINFO does and how to use it 2019-09-12 20:29:28 +02:00
winaccessibility Fix typos 2019-09-12 14:38:29 +02:00
wizards Fix typos 2019-09-10 14:18:14 +02:00
writerfilter
writerperfect
xmerge
xmlhelp
xmloff tdf#45789 [API CHANGE] Automatic row height in reports 2019-09-13 10:45:01 +02:00
xmlreader
xmlscript Avoid -fsanitizeinvalid-null-argument 2019-08-23 23:33:18 +02:00
xmlsecurity Fix typos 2019-09-10 14:18:14 +02:00
.buckconfig Add build toolchain to upload LibreOffice API to Maven Central 2015-12-03 23:32:11 +00:00
.buckversion
.clang-format
.editorconfig
.git-blame-ignore-revs
.gitattributes
.gitignore
.gitmodules uset https:// instead of git:// for submodules 2018-12-20 19:52:51 +01:00
.gitreview
autogen.sh
BUCK
config.guess
config.sub
config_host.mk.in add -latomic configure check... 2019-09-02 19:11:38 +02:00
config_host_lang.mk.in
configure.ac
COPYING
COPYING.LGPL
COPYING.MPL
download.lst external: update pdfium to 3896 2019-09-11 08:04:00 +02:00
g ./g: don't exit early on ./g checkout -f 2018-07-02 23:51:08 +02:00
hardened_runtime.xcent
install-sh
leak-suppress.txt
Library_merged.mk gbuild: Remove MSVC 2013 legacy code 2017-04-21 18:18:44 +02:00
lo.xcent
logerrit Fixing '....' 2019-09-06 14:12:27 +02:00
Makefile.fetch
Makefile.gbuild
Makefile.in
README.cross
README.md
README.Solaris remove use of Archive::Zip 2016-06-04 08:09:56 +02:00
Repository.mk [API CHANGE] remove MacroMigrationWizard 2019-08-31 15:07:47 +02:00
RepositoryExternal.mk
RepositoryFixes.mk
RepositoryModule_build.mk
RepositoryModule_host.mk
sanitize-ubsan-blacklist
setup.cfg
TEMPLATE.SOURCECODE.HEADER

LibreOffice

Coverity Scan Build Status CII Best Practices

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 2017 version 15.7
  • macOS:
    • Runtime: 10.10
    • Build: 10.13.2 + Xcode 9.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

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 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 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.