Test repository to check push and ssh key
Find a file
Noel Grandin 7b99cdb2d7 loplugin:indentation find broken if statements
so I don't read the "then" block as being a sequential statements

Change-Id: Ib2004acd3518bd4ebd2246f02a26c2c0a8bbab4c
Reviewed-on: https://gerrit.libreoffice.org/82069
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2019-11-06 06:27:51 +01:00
.git-hooks
.github
accessibility loplugin:indentation find broken if statements 2019-11-06 06:27:51 +01:00
android
animations
apple_remote
avmedia
basctl pass an explicit parent for the password dialogs 2019-10-31 20:12:08 +01:00
basegfx size some stringbuffer to prevent re-alloc 2019-10-26 12:38:33 +02:00
basic loplugin:indentation find broken if statements 2019-11-06 06:27:51 +01:00
bean
bin make some classes module-private 2019-11-03 17:12:00 +01:00
binaryurp
bridges loplugin:indentation find broken if statements 2019-11-06 06:27:51 +01:00
canvas tdf#42949 Fix IWYU warnings in canvas/source/*/*hxx 2019-10-30 10:35:10 +01:00
chart2 loplugin:indentation find broken if statements 2019-11-06 06:27:51 +01:00
cli_ure
codemaker loplugin:stringadd improve detection 2019-10-28 12:07:54 +01:00
comphelper Revert "sc lok: Implement hi-dpi and zoom for spreadsheets." 2019-11-06 01:18:53 +01:00
compilerplugins loplugin:indentation find broken if statements 2019-11-06 06:27:51 +01:00
config_host fix vcldemo lookup of icons 2019-10-30 12:06:24 +01:00
configmgr
connectivity Build mysql_jdbc library even when building without java 2019-11-04 09:25:55 +01:00
cppcanvas tdf#42949 restore vcl/canvastools.hxx for OSL_DEBUG_LEVEL > 2 2019-11-03 16:11:26 +01:00
cppu loplugin:stringadd improve detection 2019-10-28 12:07:54 +01:00
cppuhelper
cpputools
cui Connector Dialog update 2019-11-05 14:09:37 +01:00
dbaccess loplugin:stringadd 2019-11-03 17:11:14 +01:00
desktop loplugin:indentation find broken if statements 2019-11-06 06:27:51 +01:00
dictionaries@41c5fc0693
distro-configs
drawinglayer
dtrans
editeng loplugin:indentation find broken if statements 2019-11-06 06:27:51 +01:00
embeddedobj
embedserv
emfio
eventattacher
extensions aControlPos is unused 2019-11-05 17:11:19 +01:00
external coinmp: disable "glpk", whatever that is 2019-11-01 10:32:22 +01:00
extras SvtURLBox not used in any .ui files anymore 2019-10-29 14:45:29 +01:00
filter ofz#18683 NotifyFreeObj override is not helpful 2019-11-04 10:47:36 +01:00
forms avoid intermediate vcl::Windows 2019-10-31 13:30:59 +01:00
formula loplugin:stringadd 2019-11-03 17:11:14 +01:00
fpicker New loplugin:conditionalstring 2019-11-02 21:47:38 +01:00
framework readme not a sufficient indicator 2019-11-04 16:44:54 +01:00
helpcompiler make some classes module-private 2019-11-03 17:12:00 +01:00
helpcontent2@18310e0cae Update git submodules 2019-11-04 12:45:47 +01:00
hwpfilter loplugin:indentation find broken if statements 2019-11-06 06:27:51 +01:00
i18nlangtag Add bin/lo-xlate-lang 2019-10-27 19:35:16 +01:00
i18npool loplugin:stringadd 2019-11-03 17:11:14 +01:00
i18nutil Upgrade to ICU 64.2 2019-10-28 18:01:27 +01:00
icon-themes Breeze & Sifr: fix for tdf#126796 wrong percent stacked chart images 2019-10-31 02:19:42 +01:00
idl loplugin:indentation find broken if statements 2019-11-06 06:27:51 +01:00
idlc loplugin:stringadd improve detection 2019-10-28 12:07:54 +01:00
include loplugin:indentation find broken if statements 2019-11-06 06:27:51 +01:00
instsetoo_native
io loplugin:stringadd 2019-11-03 17:11:14 +01:00
ios
javaunohelper
jurt
jvmaccess
jvmfwk
l10ntools loplugin:stringadd 2019-11-03 17:11:14 +01:00
librelogo
libreofficekit lok: tilebench: implement zoom tests. 2019-11-05 22:19:28 +01:00
lingucomponent
linguistic
lotuswordpro loplugin:stringadd 2019-11-03 17:11:14 +01:00
m4
nlpsolver
o3tl
odk odk: fix for change directory in complextoolbarcontrols sample 2019-11-01 00:27:35 +01:00
offapi Add link to FilterName list 2019-10-30 15:17:35 +01:00
officecfg Fix option to disable macros 2019-11-05 15:06:25 +01:00
onlineupdate
oovbaapi
oox loplugin:indentation find broken if statements 2019-11-06 06:27:51 +01:00
opencl
osx
package size some stringbuffer to prevent re-alloc 2019-10-26 12:38:33 +02:00
pch
postprocess Build mysql_jdbc library even when building without java 2019-11-04 09:25:55 +01:00
pyuno
qadevOOo tdf#45904 Move XPropertySet Java tests to C++ 2019-10-27 22:04:11 +01:00
readlicense_oo
registry
remotebridges
reportbuilder
reportdesign New loplugin:conditionalstring 2019-11-02 21:47:38 +01:00
ridljar
sal tdf#125688 speed up load of change-tracking ODS 2019-10-31 07:02:09 +01:00
salhelper
sax tdf#125688, special-case empty return 2019-10-31 08:25:40 +01:00
sc loplugin:indentation find broken if statements 2019-11-06 06:27:51 +01:00
scaddins loplugin:stringadd 2019-11-03 17:11:14 +01:00
sccomp
schema
scp2
scripting Fix option to disable macros 2019-11-05 15:06:25 +01:00
sd loplugin:indentation find broken if statements 2019-11-06 06:27:51 +01:00
sdext loplugin:indentation find broken if statements 2019-11-06 06:27:51 +01:00
setup_native
sfx2 loplugin:indentation find broken if statements 2019-11-06 06:27:51 +01:00
shell
slideshow remove unnecessary includes 2019-10-29 17:27:23 +01:00
smoketest
solenv Remove unused devsnapshotbuild code 2019-11-05 22:51:40 +01:00
soltools loplugin:indentation find broken if statements 2019-11-06 06:27:51 +01:00
sot loplugin:stringadd 2019-11-03 17:11:14 +01:00
starmath loplugin:stringadd 2019-11-03 17:11:14 +01:00
stoc size some stringbuffer to prevent re-alloc 2019-10-26 12:38:33 +02:00
store
svgio
svl size some stringbuffer to prevent re-alloc 2019-11-03 17:11:32 +01:00
svtools loplugin:indentation find broken if statements 2019-11-06 06:27:51 +01:00
svx loplugin:indentation find broken if statements 2019-11-06 06:27:51 +01:00
sw loplugin:indentation find broken if statements 2019-11-06 06:27:51 +01:00
swext
sysui
test
testtools
toolkit ProgressBar now only use in vcl and toolkit 2019-11-04 16:45:12 +01:00
tools size some stringbuffer to prevent re-alloc 2019-11-03 17:11:32 +01:00
translations@93e4c126a9 Update git submodules 2019-11-01 11:33:56 +01:00
ucb loplugin:stringadd 2019-11-03 17:11:14 +01:00
ucbhelper
udkapi
uitest
UnoControls
unodevtools
unoidl
unoil
unotest
unotools loplugin:indentation find broken if statements 2019-11-06 06:27:51 +01:00
unoxml add some __attribute__ ((format 2019-10-28 09:02:50 +01:00
ure
uui
vbahelper loplugin:indentation find broken if statements 2019-11-06 06:27:51 +01:00
vcl loplugin:indentation find broken if statements 2019-11-06 06:27:51 +01:00
winaccessibility
wizards
writerfilter loplugin:indentation find broken if statements 2019-11-06 06:27:51 +01:00
writerperfect
xmerge
xmlhelp loplugin:stringadd improve detection 2019-10-28 12:07:54 +01:00
xmloff loplugin:indentation find broken if statements 2019-11-06 06:27:51 +01:00
xmlreader
xmlscript size some stringbuffer to prevent re-alloc 2019-10-26 12:38:33 +02:00
xmlsecurity make some classes module-private 2019-11-05 12:18:29 +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 find Clang headers also if it's Clang built from source 2019-11-04 10:30:02 +01:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst Update to language-subtag-registry-2019-09-16 2019-10-30 09:58:01 +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: Add Weblate badge for core l10n 2019-11-01 14:07:58 +01:00
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.