Test repository to check push and ssh key
Find a file
Caolán McNamara 77cb90532d cid#1448239 unsafe_xml_parse_config
This branch is only in use for the build-tool mode, so doesn't affect extension
help.

I can find no difference in our output help dir with these removed vs in place
so lets remove it.

Change-Id: If8511b6cb74f1af136a71ab39a7a5759d50c43eb
Reviewed-on: https://gerrit.libreoffice.org/83480
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2019-11-22 15:31:07 +01:00
.git-hooks
.github
accessibility loplugin:unusedfields 2019-11-21 18:27:56 +01:00
android android: fixup - the menu file was meant to go to the non-extracted assets 2019-11-20 19:36:08 +01:00
animations Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
apple_remote
avmedia loplugin:fakebool (clang-cl) 2019-11-19 21:34:30 +01:00
basctl Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
basegfx Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
basic Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
bean
bin symstore.sh: use logical operators for test statements 2019-11-19 11:17:57 +01:00
binaryurp
bridges Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
canvas Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
chart2 Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
cli_ure
codemaker
comphelper Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
compilerplugins Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
config_host
configmgr
connectivity Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
cppcanvas
cppu Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
cppuhelper Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
cpputools Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
cui Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
dbaccess Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
desktop Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
dictionaries@4fb010374f
distro-configs
drawinglayer Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
dtrans loplugin:fakebool (clang-cl) 2019-11-19 21:34:30 +01:00
editeng Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
embeddedobj Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
embedserv loplugin:fakebool (clang-cl) 2019-11-19 21:34:30 +01:00
emfio Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
eventattacher Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
extensions Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
external Replace hotfix with upstream patch, tdf#127887 follow-up 2019-11-22 02:26:31 +01:00
extras
filter Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
forms Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
formula mark with override 2019-11-22 15:11:14 +01:00
fpicker Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
framework Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
helpcompiler cid#1448239 unsafe_xml_parse_config 2019-11-22 15:31:07 +01:00
helpcontent2@b01173d325 Update git submodules 2019-11-21 21:21:41 +01:00
hwpfilter Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
i18nlangtag Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
i18npool Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
i18nutil Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
icon-themes
idl Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
idlc Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
include tdf#128153 docx/VML: apply style properties to shape text 2019-11-22 10:47:44 +01:00
instsetoo_native tdf#127711 Fix msi-soffice.ini CrashDumpEnable-entry 2019-11-20 11:42:59 +01:00
io Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
ios
javaunohelper
jurt
jvmaccess
jvmfwk Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
l10ntools
librelogo
libreofficekit Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
lingucomponent Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
linguistic Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
lotuswordpro
m4
nlpsolver
o3tl Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
odk loplugin:fakebool (clang-cl) 2019-11-19 21:34:30 +01:00
offapi editeng: add UNO API for semi-transparent text 2019-11-19 13:16:48 +01:00
officecfg Add command .uno:EditChart 2019-11-22 13:36:25 +01:00
onlineupdate
oovbaapi
oox Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
opencl
osx Add some more source files for breakpointing convenience 2019-11-20 14:19:05 +02:00
package Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
pch
postprocess
pyuno Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
qadevOOo
readlicense_oo
registry Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
remotebridges Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
reportbuilder
reportdesign Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
ridljar
sal Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
salhelper
sax improve exception message 2019-11-19 10:12:47 +01:00
sc tdf#128894: unit test for the bugfix 2019-11-22 13:24:32 +01:00
scaddins
sccomp Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
schema xmloff: add ODF import/export for semi-transparent shape text 2019-11-21 12:40:39 +01:00
scp2 tdf#127711 Fix msi-soffice.ini CrashDumpEnable-entry 2019-11-20 11:42:59 +01:00
scripting Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
sd Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
sdext Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
setup_native loplugin:fakebool (clang-cl) 2019-11-19 21:34:30 +01:00
sfx2 Warn user when output format does not support used encryption 2019-11-22 14:30:43 +01:00
shell loplugin:fakebool (clang-cl) 2019-11-19 21:34:30 +01:00
slideshow Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
smoketest
solenv xmloff: create XMLDrawStylesExportOasis instances with an uno constructor 2019-11-22 09:08:19 +01:00
soltools
sot Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
starmath Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
stoc Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
store Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
svgio Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
svl Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
svtools Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
svx Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
sw tdf#128499 DOC export: fix lost ToC formatting regression 2019-11-22 14:59:19 +01:00
swext
sysui sysui: Add C header to libreofficekitgtk introspection 2019-11-19 09:59:05 +01:00
test Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
testtools Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
toolkit Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
tools Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
translations@6d4072204c
ucb Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
ucbhelper Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
udkapi
uitest
UnoControls
unodevtools
unoidl
unoil
unotest
unotools Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
unoxml Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
ure
uui Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
vbahelper Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
vcl Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
winaccessibility loplugin:fakebool (clang-cl) 2019-11-19 21:34:30 +01:00
wizards
writerfilter Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
writerperfect Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
xmerge
xmlhelp Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
xmloff Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
xmlreader
xmlscript Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
xmlsecurity Extend loplugin:external to warn about classes 2019-11-22 12:57:32 +01:00
.buckconfig
.buckversion
.clang-format
.editorconfig
.git-blame-ignore-revs
.gitattributes
.gitignore
.gitmodules
.gitreview
autogen.sh
BUCK
config.guess
config.sub
config_host.mk.in
config_host_lang.mk.in
configure.ac python3: upgrade to release 3.5.9 2019-11-19 12:22:59 +01:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst libxslt: upgrade to release 1.1.34 2019-11-21 12:34:34 +01:00
g
hardened_runtime.xcent
install-sh
leak-suppress.txt
Library_merged.mk
lo.xcent
logerrit
Makefile.fetch
Makefile.gbuild
Makefile.in
README.cross
README.md
README.Solaris
Repository.mk
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 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 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 and SDK 22.6.2

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.