Test repository to check push and ssh key
Find a file
Caolán McNamara cd173ae7d6 cid#1448226 silence RV: Bad use of return value
Change-Id: Ie85ea159ebed117c11a1d5d67c4292be8ca5b8e8
Reviewed-on: https://gerrit.libreoffice.org/82994
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2019-11-16 20:23:44 +01:00
.git-hooks
.github
accessibility loplugin:singlevalfields 2019-11-16 20:19:54 +01:00
android android: keep float for row/column dimensions to unbreak build 2019-11-15 18:14:58 +01:00
animations
apple_remote
avmedia loplugin:fakebool and loplugin:consttobool (macOS) 2019-11-15 19:29:54 +01:00
basctl Fix macro disabling in Basic IDE 2019-11-12 08:10:07 +01:00
basegfx size some stringbuffer to prevent re-alloc 2019-10-26 12:38:33 +02:00
basic cid#1448329 Wrapper object use after free 2019-11-14 20:29:57 +01:00
bean cid#1448226 silence RV: Bad use of return value 2019-11-16 20:23:44 +01:00
bin make bin/update_pch work with srcdir != builddir 2019-11-11 10:21:31 +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/*/*cxx 2019-11-06 14:23:21 +01:00
chart2 ChartTypePanel: Remove unused vars 2019-11-16 15:02:21 +01:00
cli_ure
codemaker loplugin:stringadd improve detection 2019-10-28 12:07:54 +01:00
comphelper Replace comphelper::ServiceInfoHelper::addToSequence 2019-11-16 14:07:45 +01:00
compilerplugins loplugin:singlevalfields 2019-11-16 20:19:54 +01:00
config_host fix vcldemo lookup of icons 2019-10-30 12:06:24 +01:00
configmgr use std::move when popping stuff off stacks 2019-11-12 13:59:50 +01:00
connectivity make some classes module-private 2019-11-15 08:13:06 +01:00
cppcanvas tdf#42949 restore vcl/canvastools.hxx for OSL_DEBUG_LEVEL > 2 2019-11-03 16:11:26 +01:00
cppu Avoid repeated calls cppu::detail::loadModule -> osl_getModuleURLFromAddress 2019-11-08 14:19:10 +01:00
cppuhelper
cpputools
cui tdf#128257 Bullet and Numbering Dialog 2019-11-16 13:08:09 +01:00
dbaccess make some classes module-private 2019-11-15 08:13:06 +01:00
desktop Replace some std::once with static initializers 2019-11-16 11:45:21 +01:00
dictionaries@4fb010374f Update git submodules 2019-11-13 00:44:49 +01:00
distro-configs gandalf is no longer using devtoolset 2019-10-24 16:09:11 +02:00
drawinglayer loplugin:unusedvariablecheck tweak to find more stuff 2019-11-06 10:47:15 +01:00
dtrans Fix typo 2019-11-11 09:38:03 +01:00
editeng Replace comphelper::ServiceInfoHelper::addToSequence 2019-11-16 14:07:45 +01:00
embeddedobj
embedserv Avoid C++20 comparison operator overloading ambiguities (clang-cl -std=c++2a) 2019-11-08 15:39:15 +01:00
emfio
eventattacher
extensions loplugin:stringadd (clang-cl) 2019-11-08 11:28:31 +01:00
external CVE-2019-16707 2019-11-13 09:55:10 +01:00
extras tdf#114746 Restore asian and complex tags in Classy_Red template 2019-11-14 19:16:18 +01:00
filter tdf#128303 PDF Dialog update 2019-11-16 09:13:03 +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 loplugin:fakebool and loplugin:consttobool (macOS) 2019-11-15 19:29:54 +01:00
framework tdf#42949 Fix IWYU warnings in framework/*/*hxx 2019-11-11 09:48:23 +01:00
helpcompiler make some classes module-private 2019-11-03 17:12:00 +01:00
helpcontent2@4ad79a357b Update git submodules 2019-11-14 21:47:29 +01:00
hwpfilter -Werror,-Wunused-macros (clang-cl) 2019-11-08 12:37:45 +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: tdf#127458: Add Auto Redact icons 2019-11-11 05:25:52 +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:singlevalfields 2019-11-16 20:19:54 +01:00
instsetoo_native User interface languages: At least one is required 2019-11-11 16:11:34 +01:00
io loplugin:stringadd 2019-11-03 17:11:14 +01:00
ios
javaunohelper Extend loplugin:salbool to loplugin:fakebool 2019-11-13 15:06:42 +01:00
jurt
jvmaccess
jvmfwk Introduce OStringChar 2019-10-24 17:17:46 +02:00
l10ntools loplugin:stringadd 2019-11-03 17:11:14 +01:00
librelogo
libreofficekit New loplugin:consttobool 2019-11-14 19:53:53 +01:00
lingucomponent
linguistic no need to construct an extra parser in ConvDicXMLImport 2019-11-15 20:14:44 +01:00
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 revert action button changes to UNO XStyleSetting 2019-11-13 21:39:25 +01:00
officecfg Add ChartTypePanel to the ChartDeck 2019-11-14 21:13:19 +01:00
onlineupdate
oovbaapi
oox oox: avoid control freeze on exception 2019-11-16 19:19:40 +01:00
opencl
osx
package do not clean up EncryptionData during SaveAs 2019-11-15 12:50:38 +01: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 readlicense_oo: update requirements 2019-10-24 10:09:16 +02:00
registry
remotebridges
reportbuilder
reportdesign no need to store reference to Import here 2019-11-13 10:26:35 +01:00
ridljar
sal Silence -Werror=sign-compare (--enable-cipher-openssl-backend) 2019-11-12 13:03:16 +01:00
salhelper
sax Also consider saved exceptions when terminating parse 2019-11-16 20:13:40 +01:00
sc loplugin:unusedfields 2019-11-16 12:27:59 +01:00
scaddins loplugin:stringadd 2019-11-03 17:11:14 +01:00
sccomp
schema
scp2 User interface languages: At least one is required 2019-11-11 16:11:34 +01:00
scripting tdf#80731: Only check closing parenthesis when in IDE 2019-11-09 09:53:38 +01:00
sd Replace comphelper::ServiceInfoHelper::addToSequence 2019-11-16 14:07:45 +01:00
sdext tdf#42949 Fix IWYU warnings in sdext/ 2019-11-13 09:45:38 +01:00
setup_native
sfx2 revert cid#1455212 Uncaught exception 2019-11-16 17:39:04 +01:00
shell tdf#128538: Open filesystem directories in Finder after all 2019-11-15 09:44:28 +01:00
slideshow use std::move when popping stuff off stacks 2019-11-12 13:59:50 +01:00
smoketest
solenv sort items 2019-11-16 18:06:25 +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 widget theme: Gradient support when drawing widgets 2019-11-08 12:09:48 +01:00
svl Unit test for fixed locale Excel export formats, tdf#128649 2019-11-08 09:39:20 +01:00
svtools loplugin:unusedfields 2019-11-16 12:27:59 +01:00
svx Replace comphelper::ServiceInfoHelper::addToSequence 2019-11-16 14:07:45 +01:00
sw Also consider saved exceptions when terminating parse 2019-11-16 20:13:40 +01:00
swext
sysui
test
testtools
toolkit make some classes module-private 2019-11-15 08:13:06 +01:00
tools Don't compile cpuid test with INTRINSICS_CXXFLAGS 2019-11-11 22:21:38 +01:00
translations@6d4072204c Update git submodules 2019-11-13 15:27:23 +01:00
ucb Extend loplugin:salbool to loplugin:fakebool 2019-11-13 15:06:42 +01:00
ucbhelper
udkapi
uitest Add UI Test for tdf#128004 2019-11-08 21:16:22 +01:00
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 Better throw RuntimeException than assert here 2019-11-12 14:50:25 +01:00
vbahelper loplugin:indentation find broken if statements 2019-11-06 06:27:51 +01:00
vcl loplugin:singlevalfields 2019-11-16 20:19:54 +01:00
winaccessibility
wizards
writerfilter Also consider saved exceptions when terminating parse 2019-11-16 20:13:40 +01:00
writerperfect clang-format: don't fix up namespace comments 2019-11-14 08:30:47 +01:00
xmerge
xmlhelp loplugin:stringadd improve detection 2019-10-28 12:07:54 +01:00
xmloff use FasterParser for XMLVersionListPersistence 2019-11-16 12:27:35 +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-15 08:13:06 +01:00
.buckconfig
.buckversion
.clang-format clang-format: don't fix up namespace comments 2019-11-14 08:30:47 +01:00
.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 --with-windows-sdk: correct parameter is 10.0, not 10 2019-11-14 04:27:16 +01:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst external: update pdfium to 3963 2019-11-13 09:02:30 +01:00
g
hardened_runtime.xcent
install-sh
leak-suppress.txt fix doc 2019-11-13 06:13:09 +01:00
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.