Test repository to check push and ssh key
Find a file
Noel Grandin c4d760b9ed add some __attribute__ ((format
found by -Wsuggest-attribute=format

Change-Id: Ib4430805ddebf4d90e07a3f9d06fd6d832c244a4
Reviewed-on: https://gerrit.libreoffice.org/81582
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2019-10-28 09:02:50 +01:00
.git-hooks
.github
accessibility
android android: Fix problems with unwinding in the Online-based Android app. 2019-10-25 13:46:01 +02:00
animations
apple_remote
avmedia
basctl loplugin:virtualdead unused param in SfxObjectShell::FillClass 2019-10-21 13:06:49 +02:00
basegfx size some stringbuffer to prevent re-alloc 2019-10-26 12:38:33 +02:00
basic size some stringbuffer to prevent re-alloc 2019-10-26 12:38:33 +02:00
bean
bin bin/lo-xlate-lang: map szl -> upper_silesian 2019-10-27 11:19:21 +01:00
binaryurp
bridges
canvas
chart2 loplugin:getstr (--enable-chart-tests) 2019-10-23 20:32:38 +02:00
cli_ure
codemaker size some stringbuffer to prevent re-alloc 2019-10-23 08:55:00 +02:00
comphelper size some stringbuffer to prevent re-alloc 2019-10-23 08:55:00 +02:00
compilerplugins compilerplugins: fix -Werror,-Wunused-lambda-capture 2019-10-25 09:09:53 +02:00
config_host
configmgr loplugin:stringadd (clang-cl) 2019-10-23 20:33:17 +02:00
connectivity size some stringbuffer to prevent re-alloc 2019-10-26 12:38:33 +02:00
cppcanvas
cppu
cppuhelper
cpputools
cui Improve the way %PRODUCTVERSION is expanded in 'tipoftheday' 2019-10-28 08:33:55 +01:00
dbaccess size some stringbuffer to prevent re-alloc 2019-10-26 12:38:33 +02:00
desktop remove unnecessary .uis 'require' on lib=LibreOffice 2019-10-25 14:30:52 +02:00
dictionaries@41c5fc0693 Update git submodules 2019-10-24 14:28:09 +02:00
distro-configs gandalf is no longer using devtoolset 2019-10-24 16:09:11 +02:00
drawinglayer
dtrans
editeng loplugin:unusedfields 2019-10-23 10:28:55 +02:00
embeddedobj OUStringChar must either take a sal_Unicode or an ASCII char 2019-10-19 16:52:22 +02:00
embedserv
emfio
eventattacher
extensions Make this SAL_INFO less elaborate 2019-10-24 23:09:53 +02:00
external Removed executable bits on patch file 2019-10-24 18:54:32 +02:00
extras tdf#114746 Restore asian and complex tags in Progress template 2019-10-21 22:50:24 +02:00
filter size some stringbuffer to prevent re-alloc 2019-10-26 12:38:33 +02:00
forms loplugin:virtualdead unused params in forms 2019-10-21 18:13:44 +02:00
formula
fpicker loplugin:unusedmethods 2019-10-23 10:12:04 +02:00
framework size some stringbuffer to prevent re-alloc 2019-10-26 12:38:33 +02:00
helpcompiler
helpcontent2@3f8a68dca7 Update git submodules 2019-10-26 20:51:00 +02:00
hwpfilter
i18nlangtag Add bin/lo-xlate-lang 2019-10-27 19:35:16 +01:00
i18npool size some stringbuffer to prevent re-alloc 2019-10-23 08:55:00 +02:00
i18nutil
icon-themes Colibre: tdf#127976, Fix icons in Navigator Writer master document mode 2019-10-26 23:30:10 +02:00
idl Introduce OStringChar 2019-10-24 17:17:46 +02:00
idlc size some stringbuffer to prevent re-alloc 2019-10-23 08:55:00 +02:00
include add some __attribute__ ((format 2019-10-28 09:02:50 +01:00
instsetoo_native
io
ios Fix typo and dots 2019-10-19 08:58:47 +02:00
javaunohelper
jurt
jvmaccess
jvmfwk Introduce OStringChar 2019-10-24 17:17:46 +02:00
l10ntools
librelogo
libreofficekit lok: improve tilebench and add an unpleasant text rendering test case. 2019-10-25 22:21:20 +02:00
lingucomponent
linguistic loplugin:unusedmethods 2019-10-19 07:59:43 +02:00
lotuswordpro
m4
nlpsolver
o3tl
odk ODK: cleanup windows linker debug args 2019-10-23 09:02:55 +02:00
offapi speed-up shape import if shapes need z-order rearranging 2019-10-25 16:27:04 +02:00
officecfg writerfilter: add config to import all fields as generic, incl. commands 2019-10-23 13:09:44 +02:00
onlineupdate
oovbaapi
oox tdf#126324 Import custom date as custom XTextField 2019-10-25 20:22:35 +02:00
opencl Directly use OUStringBuffer::append overload taking a single sal_Unicode 2019-10-19 15:37:03 +02:00
osx
package size some stringbuffer to prevent re-alloc 2019-10-26 12:38:33 +02:00
pch
postprocess
pyuno
qadevOOo tdf#45904 Move XPropertySet Java tests to C++ 2019-10-27 22:04:11 +01:00
readlicense_oo readlicense_oo: update requirements 2019-10-24 10:09:16 +02:00
registry size some stringbuffer to prevent re-alloc 2019-10-23 08:55:00 +02:00
remotebridges
reportbuilder
reportdesign loplugin:unusedfields 2019-10-19 11:17:20 +02:00
ridljar
sal -Werror,-Wdeprecated-volatile (clang-cl) 2019-10-23 21:05:05 +02:00
salhelper
sax size some stringbuffer to prevent re-alloc 2019-10-23 08:55:00 +02:00
sc tdf#45904 Move XPropertySet Java tests to C++ 2019-10-27 22:04:11 +01:00
scaddins
sccomp
schema
scp2
scripting
sd sd: fix missing include 2019-10-25 19:43:42 +02:00
sdext loplugin:stringadd (clang-cl) 2019-10-23 20:33:17 +02:00
setup_native
sfx2 size some stringbuffer to prevent re-alloc 2019-10-26 12:38:33 +02:00
shell loplugin:stringadd (clang-cl) 2019-10-23 20:33:17 +02:00
slideshow loplugin:virtualdead unused params in OGLTransitionImpl 2019-10-19 07:58:26 +02:00
smoketest
solenv xmloff: create XMLDrawMetaExportOasis instances with an uno constructor 2019-10-25 08:55:04 +02:00
soltools add some __attribute__ ((format 2019-10-28 09:02:50 +01:00
sot
starmath fix alignment of fontdialog in smath 2019-10-23 09:40:59 +02: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-10-26 12:38:33 +02:00
svtools tdf#42949 Fix IWYU warning in include/vcl/window.hxx 2019-10-25 17:47:42 +02:00
svx svx: fix missing include 2019-10-25 18:29:18 +02:00
sw jsdialogs: make possible to set .uno:FontColor 2019-10-28 08:54:51 +01:00
swext
sysui
test
testtools
toolkit
tools size some stringbuffer to prevent re-alloc 2019-10-26 12:38:33 +02:00
translations@4960b59e9c
ucb Silence new Clang 10 trunk -std=c++2a -Wambiguous-reversed-operator for now 2019-10-21 22:54:34 +02:00
ucbhelper
udkapi
uitest
UnoControls
unodevtools
unoidl size some stringbuffer to prevent re-alloc 2019-10-21 08:36:01 +02:00
unoil
unotest
unotools size some stringbuffer to prevent re-alloc 2019-10-21 08:36:01 +02:00
unoxml add some __attribute__ ((format 2019-10-28 09:02:50 +01:00
ure
uui
vbahelper
vcl size some stringbuffer to prevent re-alloc 2019-10-26 12:38:33 +02:00
winaccessibility
wizards
writerfilter size some stringbuffer to prevent re-alloc 2019-10-26 12:38:33 +02:00
writerperfect tdf#128251 EPUB Export Dialog update 2019-10-25 08:50:18 +02:00
xmerge
xmlhelp Introduce OStringChar 2019-10-24 17:17:46 +02:00
xmloff speed-up shape import if shapes need z-order rearranging 2019-10-25 16:27:04 +02:00
xmlreader
xmlscript size some stringbuffer to prevent re-alloc 2019-10-26 12:38:33 +02:00
xmlsecurity
.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 android: Allow specification of the API level. 2019-10-24 00:37:05 +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 Missing test dependency 2019-10-22 22:44:05 +02: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 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.