Test repository to check push and ssh key
Find a file
Noel Grandin 664f8632b1 loplugin:virtualdead in basegfx
Change-Id: I8b3f7810eb08b5217df30b7be27aafadeeed247a
Reviewed-on: https://gerrit.libreoffice.org/79647
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2019-09-28 17:56:57 +02:00
.git-hooks
.github
accessibility loplugin:virtualdead in vcl 2019-09-26 20:13:30 +02:00
android
animations
apple_remote
avmedia
basctl loplugin:virtualdead in basctl 2019-09-28 13:46:14 +02:00
basegfx loplugin:virtualdead in basegfx 2019-09-28 17:56:57 +02:00
basic tdf#62326 - Macros: Converting Hex strings of negative value 2019-09-27 18:22:26 +02:00
bean
bin
binaryurp
bridges
canvas remove internal use of 16-bit packed formats 2019-09-26 03:04:01 +02:00
chart2 loplugin:virtualdead in chart2 2019-09-28 17:56:49 +02:00
cli_ure
codemaker
comphelper add property name when throwing css::uno::UnknownPropertyException 2019-09-26 18:32:25 +02:00
compilerplugins loplugin:virtualdead in basegfx 2019-09-28 17:56:57 +02:00
config_host constinit, here we come 2019-09-25 20:55:53 +02:00
configmgr Add conversion from rtl::OStringNumber to std::string_view 2019-09-27 23:41:23 +02:00
connectivity
cppcanvas
cppu
cppuhelper add property name when throwing css::uno::UnknownPropertyException 2019-09-26 18:32:25 +02:00
cpputools
cui add translator comments to [L] [S] 2019-09-27 20:31:57 +02:00
dbaccess loplugin:virtualdead in dbaccess 2019-09-28 13:46:26 +02:00
desktop drop unnecessary includes and update pch 2019-09-26 09:55:44 +02:00
dictionaries@e2f020e6e2
distro-configs
drawinglayer
dtrans
editeng loplugin:virtualdead in editeng 2019-09-28 08:59:30 +02:00
embeddedobj Remove some unused includes 2019-09-26 10:53:41 +02:00
embedserv
emfio loplugin:constmethod in embeddedobj..extensions 2019-09-26 09:18:39 +02:00
eventattacher
extensions loplugin:virtualdead in extensions 2019-09-28 08:59:07 +02:00
external external/breakpad: glibc 2.30 declares tgkill 2019-09-27 07:09:37 +02:00
extras weld ORelationDialog and DlgQryJoin 2019-09-26 16:46:22 +02:00
filter filter: XHTML: make "calc-heading-digit" a little faster 2019-09-27 17:27:04 +02:00
forms loplugin:constmethod in forms..fpicker 2019-09-26 03:04:34 +02:00
formula
fpicker loplugin:constmethod in forms..fpicker 2019-09-26 03:04:34 +02:00
framework loplugin:virtualdead in svl 2019-09-27 14:50:11 +02:00
helpcompiler
helpcontent2@5b3e68e1ce Update git submodules 2019-09-28 15:42:13 +02:00
hwpfilter loplugin:constmethod in framework..lotuswordpro 2019-09-26 03:04:45 +02:00
i18nlangtag Resolves: tdf#127786 cache Glibc locale string in LanguageTagImpl 2019-09-28 01:19:33 +02:00
i18npool
i18nutil
icon-themes
idl
idlc
include loplugin:virtualdead in basegfx 2019-09-28 17:56:57 +02:00
instsetoo_native
io
ios
javaunohelper
jurt
jvmaccess
jvmfwk
l10ntools
librelogo
libreofficekit cid#1454003 silence 'Constant' variable guards dead code 2019-09-27 12:14:52 +02:00
lingucomponent
linguistic
lotuswordpro loplugin:constmethod in framework..lotuswordpro 2019-09-26 03:04:45 +02:00
m4
nlpsolver
o3tl
odk
offapi
officecfg
onlineupdate
oovbaapi
oox Deduplicate O(U)StringNumber definitions; add toAsciiUpperCase 2019-09-27 15:03:41 +02:00
opencl
osx
package add property name when throwing css::uno::UnknownPropertyException 2019-09-26 18:32:25 +02:00
postprocess
pyuno
qadevOOo
readlicense_oo
registry
remotebridges
reportbuilder
reportdesign drop unnecessary includes and update pch 2019-09-26 09:55:44 +02:00
ridljar
sal
salhelper
sax
sc Deduplicate O(U)StringNumber definitions; add toAsciiUpperCase 2019-09-27 15:03:41 +02:00
scaddins Deduplicate O(U)StringNumber definitions; add toAsciiUpperCase 2019-09-27 15:03:41 +02:00
sccomp loplugin:constmethod in sc 2019-09-26 10:15:00 +02:00
schema
scp2
scripting loplugin:constmethod in sc 2019-09-26 10:15:00 +02:00
sd loplugin:virtualdead in sd 2019-09-27 21:09:20 +02:00
sdext loplugin:constmethod in sdext..starmath 2019-09-28 13:47:28 +02:00
setup_native
sfx2 add property name when throwing css::uno::UnknownPropertyException 2019-09-26 18:32:25 +02:00
shell cid#1448334 silence Untrusted value as argument 2019-09-27 13:30:36 +02:00
slideshow loplugin:constmethod in sdext..starmath 2019-09-28 13:47:28 +02:00
smoketest
solenv xmloff: create XMLDrawContentExportOOO instances with an uno constructor 2019-09-27 08:45:50 +02:00
soltools
sot tdf#116685: Make the RICHTEXT take precedence over EMBED_SOURCE. 2019-09-27 09:54:06 +02:00
starmath loplugin:constmethod in sdext..starmath 2019-09-28 13:47:28 +02:00
stoc
store
svgio
svl Deduplicate O(U)StringNumber definitions; add toAsciiUpperCase 2019-09-27 15:03:41 +02:00
svtools loplugin:virtualdead in vcl 2019-09-26 20:13:30 +02:00
svx tdf#127676: avoid flickering in line width popup 2019-09-27 19:15:51 +02:00
sw loplugin:constmethod in sw 2019-09-28 11:28:41 +02:00
swext
sysui
test
testtools
toolkit add property name when throwing css::uno::UnknownPropertyException 2019-09-26 18:32:25 +02:00
tools
translations@1416d2d6d4
ucb loplugin:constmethod in ucb..uui 2019-09-28 11:30:49 +02:00
ucbhelper add property name when throwing css::uno::UnknownPropertyException 2019-09-26 18:32:25 +02:00
udkapi
uitest
UnoControls
unodevtools
unoidl Deduplicate O(U)StringNumber definitions; add toAsciiUpperCase 2019-09-27 15:03:41 +02:00
unoil
unotest
unotools
unoxml loplugin:constmethod in ucb..uui 2019-09-28 11:30:49 +02:00
ure
uui loplugin:constmethod in ucb..uui 2019-09-28 11:30:49 +02:00
vbahelper loplugin:constmethod in vbahelper 2019-09-26 09:05:31 +02:00
vcl Use G_ADD_PRIVATE and *_get_instance_private 2019-09-28 14:23:53 +02:00
winaccessibility Deduplicate O(U)StringNumber definitions; add toAsciiUpperCase 2019-09-27 15:03:41 +02:00
wizards tdf#50846 - Wrong type of function GetLastUsedRow 2019-09-27 20:26:35 +02:00
writerfilter loplugin:constmethod in writerfilter 2019-09-28 13:47:45 +02:00
writerperfect
xmerge
xmlhelp tdf#42949 Fix IWYU warnings in xmlhelp/ 2019-09-27 10:06:51 +02:00
xmloff Deduplicate O(U)StringNumber definitions; add toAsciiUpperCase 2019-09-27 15:03:41 +02:00
xmlreader
xmlscript
xmlsecurity Remove some unused includes 2019-09-26 10:53:41 +02: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 Revert "tdf#121925 test for URLClassPath.ClassPathURLCheck" 2019-09-27 18:14:20 +02:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst
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

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.