Test repository to check push and ssh key
Find a file
Stephan Bergmann 6cd9bc8aa4 Remove unhelpful "Check for whitespace in front of *'s" from .git-hooks
It was added with 60f200caa4 "git-hooks: Copy them
from the build repo", but I don't see its purpose, and it caused trouble for me
now when trying to commit <https://gerrit.libreoffice.org/67672> "Merge in
Flatpak improvements".

Change-Id: I922b5be87549793466f99db8b12be6081e683292
Reviewed-on: https://gerrit.libreoffice.org/67674
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-02-13 10:24:26 +01:00
.git-hooks Remove unhelpful "Check for whitespace in front of *'s" from .git-hooks 2019-02-13 10:24:26 +01:00
accessibility tdf#120703 PVS: remove redundant static casts 2019-02-12 09:04:54 +01:00
android
animations
apple_remote
avmedia
basctl merge together as get_checkbox_column_width 2019-02-12 12:48:10 +01:00
basegfx loplugin:indentation in basctl..bridges 2019-02-08 10:01:05 +01:00
basic tdf#112689: Replace chained O(U)StringBuffer::append() with operator+ 2019-02-11 14:33:12 +01:00
bean
bin find-unneeded-includes: Skip headers used only for compile test 2019-02-11 09:41:35 +01:00
binaryurp
bridges Revert "tdf#112689: Replace changed O(U)StringBuffer::append() with operator+" 2019-02-11 15:16:06 +02:00
canvas loplugin:indentation in canvas..chart2 2019-02-08 10:01:20 +01:00
chart2 tdf#123400 OOXML Chart: Export Data Label Separator 2019-02-13 10:06:29 +01:00
cli_ure
codemaker loplugin:indentation in codemaker..comphelper 2019-02-08 10:01:40 +01:00
comphelper Fix typo 2019-02-12 07:23:34 +01:00
compilerplugins Fix typo 2019-02-13 05:07:43 +01:00
config_host
configmgr
connectivity new loplugin writeonlyvars 2019-02-11 13:25:31 +01:00
cppcanvas
cppu loplugin:indentation in cppu..cui 2019-02-08 13:16:15 +01:00
cppuhelper loplugin:indentation in cppu..cui 2019-02-08 13:16:15 +01:00
cpputools
cui merge together as get_checkbox_column_width 2019-02-12 12:48:10 +01:00
dbaccess Remove dead and broken EmbeddedDatabases configuration 2019-02-13 10:24:09 +01:00
desktop tdf#120703 PVS: remove redundant static casts 2019-02-12 09:04:54 +01:00
dictionaries@6811c96b9d
distro-configs
drawinglayer move and extend primitive2dxmldump to drawinglayer 2019-02-09 11:58:06 +01:00
dtrans Win64 fixes for dtrans. 2019-02-10 21:59:28 +01:00
editeng sw btlr writing mode: implement UNO API 2019-02-12 16:34:14 +01:00
embeddedobj loplugin:indentation in editeng..extensions 2019-02-08 14:37:05 +01:00
embedserv
emfio move and extend primitive2dxmldump to drawinglayer 2019-02-09 11:58:06 +01:00
eventattacher tdf#120703 PVS: remove redundant static casts 2019-02-12 09:04:54 +01:00
extensions Make LDAP support optional 2019-02-10 07:56:14 +01:00
external The ARM Neon stuff is needed for ARM64, too (iOS at least) 2019-02-12 15:30:47 +02:00
extras weld SvBaseLinksDlg 2019-02-11 16:34:44 +01:00
filter tdf#114441: Convert use of sal_uLong to better integer types 2019-02-12 14:35:34 +01:00
forms loplugin:indentation in forms..fpicker 2019-02-09 17:07:19 +01:00
formula
fpicker loplugin:indentation in forms..fpicker 2019-02-09 17:07:19 +01:00
framework new loplugin writeonlyvars 2019-02-11 13:25:31 +01:00
helpcompiler loplugin:indentation in helpcompiler..io 2019-02-09 17:07:29 +01:00
helpcontent2@1002c14fea Update git submodules 2019-02-12 09:08:10 +01:00
hwpfilter loplugin:indentation in helpcompiler..io 2019-02-09 17:07:29 +01:00
i18nlangtag
i18npool tdf#120703 PVS: V560 A part of conditional expression is always true/false 2019-02-11 07:07:30 +01:00
i18nutil loplugin:indentation in helpcompiler..io 2019-02-09 17:07:29 +01:00
icon-themes sifr icon theme update 2019-02-12 09:01:41 +01:00
idl loplugin:indentation in helpcompiler..io 2019-02-09 17:07:29 +01:00
idlc loplugin:indentation in helpcompiler..io 2019-02-09 17:07:29 +01:00
include weld ScNamePasteDlg 2019-02-12 18:32:07 +01:00
instsetoo_native
io loplugin:indentation in helpcompiler..io 2019-02-09 17:07:29 +01:00
ios
javaunohelper
jurt
jvmaccess
jvmfwk loplugin:indentation in jvmfwk..lotuswordpro 2019-02-09 17:07:36 +01:00
l10ntools new loplugin writeonlyvars 2019-02-11 13:25:31 +01:00
librelogo
libreofficekit
lingucomponent loplugin:indentation in lingucomponent..tools 2019-02-11 07:00:45 +01:00
linguistic loplugin:indentation in jvmfwk..lotuswordpro 2019-02-09 17:07:36 +01:00
lotuswordpro tdf#120703 PVS: V560 A part of conditional expression is always true/false 2019-02-11 07:08:50 +01:00
m4
nlpsolver
o3tl
odk
offapi sw btlr wrting mode: implement document model 2019-02-12 14:35:44 +01:00
officecfg Remove dead and broken EmbeddedDatabases configuration 2019-02-13 10:24:09 +01:00
onlineupdate
oovbaapi
oox tdf#123400 OOXML Chart: Export Data Label Separator 2019-02-13 10:06:29 +01:00
opencl
osx
package tdf#120703 PVS: V560 A part of conditional expression is always true/false 2019-02-11 07:09:11 +01:00
postprocess Make LDAP support optional 2019-02-10 07:56:14 +01:00
pyuno
qadevOOo tdf#45904 Move XEnumerationAccess Java tests to C++ 2019-02-12 07:12:43 +01:00
readlicense_oo
registry loplugin:indentation in registry..sax 2019-02-09 17:08:00 +01:00
remotebridges
reportbuilder
reportdesign Simplify containers iterations in reportdesign, sal, sax 2019-02-12 07:37:08 +01:00
ridljar
sal Simplify containers iterations in reportdesign, sal, sax 2019-02-12 07:37:08 +01:00
salhelper
sax Simplify containers iterations in reportdesign, sal, sax 2019-02-12 07:37:08 +01:00
sc Resolves tdf#122998 - Position of all/none checkboxes in Autofilter 2019-02-13 08:36:41 +01:00
scaddins loplugin:indentation in sd 2019-02-09 21:04:23 +01:00
sccomp
schema
scp2
scripting tdf#120703 PVS: remove redundant static casts 2019-02-12 09:04:54 +01:00
sd Avoid -fsanitize=implicit-signed-integer-truncation in weld::MetricSpinButton 2019-02-13 10:06:21 +01:00
sdext Indexing is not needed for single getToken() call 2019-02-13 07:59:39 +01:00
setup_native
sfx2 Use indexed getToken() 2019-02-13 07:57:13 +01:00
shell tdf#119890 Lookup XDG_(DOCUMENTS|TEMPLATES)_DIR correctly 2019-02-13 10:02:02 +01:00
slideshow loplugin:indentation in sfx2..slideshow 2019-02-09 21:04:42 +01:00
smoketest
solenv makeSvTabListBox is gone now 2019-02-12 15:30:41 +02:00
soltools new loplugin writeonlyvars 2019-02-11 13:25:31 +01:00
sot loplugin:indentation in soltools..svl 2019-02-10 11:18:35 +01:00
starmath loplugin:indentation in soltools..svl 2019-02-10 11:18:35 +01:00
stoc Avoid index for single getToken() call 2019-02-13 07:46:26 +01:00
store
svgio move and extend primitive2dxmldump to drawinglayer 2019-02-09 11:58:06 +01:00
svl Use indexed getToken() 2019-02-13 07:44:13 +01:00
svtools Avoid index for single getToken() call 2019-02-13 07:38:29 +01:00
svx o3tl::make_unique -> std::make_unique in svx/ 2019-02-12 14:59:17 +01:00
sw Add note with link to bug report for double-removal of annotations 2019-02-13 10:16:43 +01:00
swext
sysui
test move and extend primitive2dxmldump to drawinglayer 2019-02-09 11:58:06 +01:00
testtools
toolkit new loplugin writeonlyvars 2019-02-11 13:25:31 +01:00
tools loplugin:indentation in lingucomponent..tools 2019-02-11 07:00:45 +01:00
translations@46a65ed743
ucb tdf#120703 PVS: remove redundant static casts 2019-02-12 09:04:54 +01:00
ucbhelper loplugin:indentation in ucb..ucbhelper 2019-02-11 07:00:53 +01:00
udkapi
uitest
UnoControls loplugin:indentation in UnoControls..accessibility 2019-02-08 10:02:05 +01:00
unodevtools
unoidl
unoil
unotest
unotools loplugin:indentation in unotools..vbahelper 2019-02-11 07:01:05 +01:00
unoxml tdf#120703 PVS: remove redundant static casts 2019-02-12 09:04:54 +01:00
ure
uui loplugin:indentation in unotools..vbahelper 2019-02-11 07:01:05 +01:00
vbahelper loplugin:indentation in unotools..vbahelper 2019-02-11 07:01:05 +01:00
vcl weld ScNamePasteDlg 2019-02-12 18:32:07 +01:00
winaccessibility
wizards
writerfilter writerfilter: make RTF TableRowBuffer members private 2019-02-13 09:02:54 +01:00
writerperfect o3tl::make_unique -> std::make_unique in tools..xmloff 2019-02-08 12:30:06 +01:00
xmerge
xmlhelp new loplugin writeonlyvars 2019-02-11 13:25:31 +01:00
xmloff tdf#120703 PVS: V560 A part of conditional expression is always true/false 2019-02-11 07:09:11 +01:00
xmlreader
xmlscript new loplugin indentation 2019-02-11 08:24:19 +01:00
xmlsecurity tdf#120703 PVS: remove redundant static casts 2019-02-12 09:04:54 +01:00
.buckconfig
.buckversion
.clang-format
.editorconfig
.gitattributes
.gitignore
.gitmodules
.gitreview
autogen.sh
BUCK
config.guess
config.sub
config_host.mk.in
config_host_lang.mk.in
configure.ac Remove outdated comment 2019-02-13 09:39:56 +01:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst
g
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 Make LDAP support optional 2019-02-10 07:56:14 +01:00
RepositoryExternal.mk Make LDAP support optional 2019-02-10 07:56:14 +01:00
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
  • macOS:
    • Runtime: 10.10
    • Build: 10.13.2 + Xcode 9.3
  • Linux:
    • Runtime: RHEL 6 or CentOS 6
    • 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

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.