Test repository to check push and ssh key
Find a file
Caolán McNamara 4829542997 ofz#7063 ensure lifecycle
Change-Id: I18d62bc3bd409ca65c85ea47e8d5b3930481edf9
Reviewed-on: https://gerrit.libreoffice.org/51731
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2018-03-22 17:48:23 +01:00
.git-hooks
accessibility coverity#1430077 add assert for 'Division or modulo by zero' 2018-03-19 21:19:21 +01:00
android tdf#96796 - Added clipboard actions for the Android Viewer 2018-03-15 00:28:31 +01:00
animations
apple_remote
avmedia
basctl drop unnecessary includes 2018-03-20 13:08:20 +01:00
basegfx
basic drop unnecessary includes 2018-03-20 13:08:20 +01:00
bean
bin Don't generate filters with empty Includes 2018-03-21 10:03:48 +01:00
binaryurp
bridges iOS, simplified assembler 2018-03-20 13:17:52 +01:00
canvas drop unnecessary includes 2018-03-20 13:08:20 +01:00
chart2 support both vcl and weld in genericunodialog for interim 2018-03-21 15:48:12 +01:00
cli_ure
codemaker
comphelper
compilerplugins loplugin:unusedmethods 2018-03-15 07:30:34 +01:00
config_host properly check for gpgconf (and --create-socketdir) working 2018-03-18 17:21:03 +01:00
configmgr
connectivity remove unused ucbstreamhelper includes 2018-03-19 07:38:49 +01:00
cppcanvas
cppu
cppuhelper
cpputools
cui coverity#1430229 Unchecked return value 2018-03-21 12:52:24 +01:00
dbaccess dbahsql: refactor move index parser to parseschema 2018-03-22 13:49:00 +01:00
desktop drop unnecessary includes 2018-03-20 13:08:20 +01:00
dictionaries@3bc3ffdb0b
distro-configs --without-lxml for Flatpak builds 2018-03-15 14:31:53 +01:00
drawinglayer
dtrans
editeng drop unnecessary includes 2018-03-20 13:08:20 +01:00
embeddedobj Use for-range loops in embeddedobj, embedserv and formula 2018-03-17 18:30:39 +01:00
embedserv Use for-range loops in embeddedobj, embedserv and formula 2018-03-17 18:30:39 +01:00
emfio move emf code to vcl 2018-03-15 11:08:58 +01:00
eventattacher
extensions support both vcl and weld in genericunodialog for interim 2018-03-21 15:48:12 +01:00
external
extras tdf#114749 Replace fonts in templates 2018-03-21 20:38:51 +01:00
filter Fix lifetime of referenced-by-reference EnhancedCustomShape2d 2018-03-21 18:01:50 +01:00
forms drop unnecessary includes 2018-03-20 13:08:20 +01:00
formula Avoid creating a compiler for matrix check if there is no matrix support 2018-03-20 14:59:33 +01:00
fpicker drop unnecessary includes 2018-03-20 13:08:20 +01:00
framework tdf#115683 there are other cases of dialogs before document load 2018-03-21 15:48:27 +01:00
helpcompiler Use for-range loops in helpcompiler 2018-03-18 09:13:59 +01:00
helpcontent2@0d0de1b0c1 Updated core 2018-03-22 14:10:08 +01:00
hwpfilter Use for-range loops in hwpfilter, i18n*, idl* and io 2018-03-18 11:33:16 +01:00
i18nlangtag Use for-range loops in hwpfilter, i18n*, idl* and io 2018-03-18 11:33:16 +01:00
i18npool Use for-range loops in hwpfilter, i18n*, idl* and io 2018-03-18 11:33:16 +01:00
i18nutil
icon-themes Colibre icons: update base table small icons 2018-03-20 01:13:54 +01:00
idl Use for-range loops in hwpfilter, i18n*, idl* and io 2018-03-18 11:33:16 +01:00
idlc Use for-range loops in hwpfilter, i18n*, idl* and io 2018-03-18 11:33:16 +01:00
include tdf#45904 Move _SpreadsheetDocumentSettings Java test to C++ 2018-03-22 16:56:04 +01:00
instsetoo_native
io Use for-range loops in hwpfilter, i18n*, idl* and io 2018-03-18 11:33:16 +01:00
ios iOS, remove copy of source code to instdir 2018-03-17 07:49:35 +01:00
javaunohelper
jurt
jvmaccess
jvmfwk
l10ntools
librelogo
libreofficekit lok: be informative and exit when tilebench fails to initialize 2018-03-21 23:35:43 +01:00
lingucomponent coverity#1430057 silence Argument cannot be negative 2018-03-19 21:19:36 +01:00
linguistic
lotuswordpro ofz#7063 ensure lifecycle 2018-03-22 17:48:23 +01:00
m4
mysqlc
nlpsolver
o3tl
odk Typos concerning hierarchy 2018-03-17 18:56:05 +01:00
offapi First cut at annotating 'exotic' filters. 2018-03-16 21:33:50 +01:00
officecfg Add missing ellipsis to insert signatureline 2018-03-22 17:01:17 +01:00
onlineupdate updater: Tone down the geekiness in user-facing strings 2018-03-20 05:35:42 -06:00
oovbaapi
oox oox: don't segfault when failing to open a custom fragment 2018-03-22 09:51:55 +01:00
opencl
osx
package Typos concerning hierarchy 2018-03-17 18:56:05 +01:00
postprocess CppunitTest_services: check service impls support properties as advertised 2018-03-21 10:26:22 +01:00
pyuno
qadevOOo tdf#45904 Move _SpreadsheetDocumentSettings Java test to C++ 2018-03-22 16:56:04 +01:00
readlicense_oo
registry
remotebridges
reportbuilder
reportdesign drop unnecessary includes 2018-03-20 13:08:20 +01:00
ridljar
sal
salhelper
sax crashtesting: asserts on legal xml names on export 2018-03-16 00:23:59 +01:00
sc tdf#45904 Move _SpreadsheetDocumentSettings Java test to C++ 2018-03-22 16:56:04 +01:00
scaddins
sccomp
schema
scp2
scripting
sd loplugin:useuniqueptr in DrawDocShell 2018-03-22 07:37:35 +01:00
sdext pdf: refactor poppler importer 2018-03-21 01:57:28 +01:00
setup_native
sfx2 set parent for password dialog 2018-03-22 16:08:02 +01:00
shell Fix typo 2018-03-21 10:02:39 +01:00
slideshow remove unused ucbstreamhelper includes 2018-03-19 07:38:49 +01:00
smoketest
solenv move btndlg from vcl to toolkit 2018-03-22 00:29:00 +01:00
soltools
sot
starmath loplugin:useuniqueptr in SmDocShell 2018-03-22 07:37:23 +01:00
stoc
store
svgio
svl Remove redundant assert 2018-03-21 10:16:38 +01:00
svtools support both vcl and weld in genericunodialog for interim 2018-03-21 15:48:12 +01:00
svx tdf#83877 Move SignatureLineDialog to svx 2018-03-22 16:06:41 +01:00
sw tdf#83877 Move SignatureLineDialog to svx 2018-03-22 16:06:41 +01:00
swext
sysui
test tdf#45904 Move _SpreadsheetDocumentSettings Java test to C++ 2018-03-22 16:56:04 +01:00
testtools
toolkit move btndlg from vcl to toolkit 2018-03-22 00:29:00 +01:00
tools loplugin:constantparam 2018-03-14 14:30:35 +01:00
translations@db79c92222
ucb tdf#116489 - fix ucb TaskManager deadlock. 2018-03-19 13:48:13 +01:00
ucbhelper
udkapi
uitest
UnoControls
unodevtools Fix typos 2018-03-15 20:09:53 +01:00
unoidl Typo in error message 2018-03-16 16:18:45 +01:00
unoil
unotest
unotools remove unused ucbstreamhelper includes 2018-03-19 07:38:49 +01:00
unoxml
ure
uui weld MacroWarning 2018-03-20 15:28:36 +01:00
vbahelper
vcl move btndlg from vcl to toolkit 2018-03-22 00:29:00 +01:00
winaccessibility
wizards Access2Base - Bypass Basic IDE shortcoming 2018-03-22 13:19:35 +01:00
writerfilter tdf#116269 RTF import: implement reverse deduplication for lists 2018-03-20 09:06:18 +01:00
writerperfect
xmerge
xmlhelp
xmloff tdf#115005 Do not remove original vector images from slides 2018-03-20 07:48:05 +01:00
xmlreader
xmlscript xmlscript: change import/export to not use GraphicObject URL 2018-03-15 02:50:31 +01:00
xmlsecurity xmlsecurity: create XMLDocumentWrapper instances with a constructor 2018-03-22 09:05:41 +01:00
.buckconfig
.buckversion
.clang-format
.editorconfig
.gitattributes
.gitignore
.gitmodules
.gitreview
autogen.sh
BUCK
config.guess
config.sub
config_host.mk.in revert accidentially comitted local changes :( 2018-03-18 19:28:55 +01:00
config_host_lang.mk.in
configure.ac this is sh, not make... 2018-03-18 20:36:45 +01:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst curl: upgrade to release 7.59.0 2018-03-19 13:08:56 +01:00
g
install-sh
leak-suppress.txt
Library_merged.mk
lo.xcent.in
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
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 2015 Update 3
  • macOS:
    • Runtime: 10.9
    • Build: 10.12 + Xcode 8
  • Linux:
    • Runtime: RHEL 6 or CentOS 6
    • Build: GCC 4.8.1 or Clang
  • iOS (only for LibreOfficeKit):
    • Runtime: 11.2 (only support for newer i devices == 64 bit)
    • Build: Xcode 9.0 and iPhone SDK 11.2

At least Clang 3.4.2 is known to be too old to pass the configure.ac check "whether $CXX supports C++17, C++14, or C++11" in its current form (due to the #pragma GCC diagnostic ignored "-Wpragmas" that it does not understand).

If you want to use Clang with the LibreOffice compiler plugins, the minimal version of Clang is 3.8. 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.

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.