Test repository to check push and ssh key
Find a file
Noel Grandin b27fee9e0e loplugin:useuniqueptr cppu,idlc,io,ucbhelper
Change-Id: I6d8c24fabd52b39c66ce0b88b547df7ec85dad76
Reviewed-on: https://gerrit.libreoffice.org/47725
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-01-11 07:37:16 +01:00
.git-hooks
accessibility lokdialog: Allow switching language of some of the ResMgr's. 2017-12-22 22:39:39 +01:00
android
animations
apple_remote
avmedia convert (a>b?a:b) to std::max(a,b) 2018-01-11 07:35:43 +01:00
basctl convert (a>b?a:b) to std::max(a,b) 2018-01-11 07:35:43 +01:00
basegfx basegfx: extract svg path import/export test to own file 2018-01-04 07:38:42 +01:00
basic tdf#96099 Removed some trivial typedefs related to UnOrderedMap and size_t. 2018-01-10 15:20:44 +01:00
bean Fix typos 2017-12-28 14:43:13 +01:00
bin Silence clang-cl -Werror,-Wmicrosoft-unqualified-friend in external/boost 2018-01-09 23:20:20 +01:00
binaryurp
bridges
canvas Fix typos 2018-01-02 15:46:36 +01:00
chart2 convert (a>b?a:b) to std::max(a,b) 2018-01-11 07:35:43 +01:00
cli_ure
codemaker Fix typos 2017-12-29 09:56:34 +01:00
comphelper loplugin:unusedfields 2018-01-04 07:17:23 +01:00
compilerplugins loplugin:useuniqueptr in l10ntools 2018-01-11 07:36:26 +01:00
config_host request installation of langpack via packagekit 2017-12-22 20:08:51 +01:00
configmgr loplugin:passstuffbyref improved returns 2017-12-23 08:04:54 +01:00
connectivity convert (a>b?a:b) to std::max(a,b) 2018-01-11 07:35:43 +01:00
cppcanvas tdf#42949 Fix some Include What You Use warnings 2017-12-22 10:49:55 +01:00
cppu loplugin:useuniqueptr cppu,idlc,io,ucbhelper 2018-01-11 07:37:16 +01:00
cppuhelper Do use just std::cerr in cppuhelper::ServiceManager::preloadImplementations() 2018-01-10 20:07:12 +02:00
cpputools
cui convert (a>b?a:b) to std::max(a,b) 2018-01-11 07:35:43 +01:00
dbaccess convert (a>b?a:b) to std::max(a,b) 2018-01-11 07:35:43 +01:00
desktop iOS, corrected path in LO 2018-01-10 14:23:02 +01:00
dictionaries@58274a91b8 Updated core 2018-01-10 17:14:48 +01:00
distro-configs Let flatpak-builder build .Debug extension 2018-01-08 22:51:22 +01:00
drawinglayer convert (a>b?a:b) to std::max(a,b) 2018-01-11 07:35:43 +01:00
dtrans
editeng convert (a>b?a:b) to std::max(a,b) 2018-01-11 07:35:43 +01:00
embeddedobj convert (a>b?a:b) to std::max(a,b) 2018-01-11 07:35:43 +01:00
embedserv
emfio ofz#4980 bail early with 0 points 2018-01-06 22:08:16 +01:00
eventattacher
extensions Various loplugin (clang-cl) 2018-01-09 23:21:08 +01:00
external Silence clang-cl -Werror,-Wmicrosoft-unqualified-friend, redux 2018-01-10 19:41:47 +01:00
extras tdf#95024 Add user dictionary for hu dict package 2018-01-05 01:58:33 +01:00
filter convert (a>b?a:b) to std::max(a,b) 2018-01-11 07:35:43 +01:00
forms lokdialog: Allow switching language of some of the ResMgr's. 2017-12-22 22:39:39 +01:00
formula lokdialog: Allow switching language of some of the ResMgr's. 2017-12-22 22:39:39 +01:00
fpicker loplugin:unnecessaryparen (clang-cl) 2018-01-09 23:17:23 +01:00
framework Fix typos 2018-01-05 11:03:10 +01:00
helpcompiler
helpcontent2@2575baa6d1 Updated core 2018-01-11 02:31:15 +01:00
hwpfilter Fix typos 2017-12-29 09:56:34 +01:00
i18nlangtag ofz#4952 avoid liblangtag config when fuzzing enabled 2018-01-05 20:21:41 +01:00
i18npool convert (a>b?a:b) to std::max(a,b) 2018-01-11 07:35:43 +01:00
i18nutil tdf#114681: Adding support for case folding in Glagolitic 2018-01-02 10:33:22 +01:00
icon-themes tdf#75256 Sifr new entirecell icons 2018-01-08 00:55:57 +01:00
idl
idlc loplugin:useuniqueptr cppu,idlc,io,ucbhelper 2018-01-11 07:37:16 +01:00
include convert (a>b?a:b) to std::max(a,b) 2018-01-11 07:35:43 +01:00
instsetoo_native
io loplugin:useuniqueptr cppu,idlc,io,ucbhelper 2018-01-11 07:37:16 +01:00
ios iOS, missed remove debug line 2018-01-10 17:26:24 +01:00
javaunohelper
jurt
jvmaccess
jvmfwk
l10ntools loplugin:useuniqueptr in l10ntools 2018-01-11 07:36:26 +01:00
librelogo
libreofficekit Fix typo 2018-01-10 03:12:13 +01:00
lingucomponent
linguistic Add optional title: field to user dictionaries 2018-01-05 02:01:16 +01:00
lotuswordpro ofz#5157 Direct-leak 2018-01-09 17:19:22 +01:00
m4
mysqlc
nlpsolver
o3tl
odk Bump copyright year to 2018 2018-01-01 00:00:00 -06:00
offapi tdf#113572: allow switching to data range in copypasted chart 2018-01-10 01:24:06 +01:00
officecfg tdf#103705 Tooltip improvement for clone formatting 2018-01-11 00:44:18 +01:00
onlineupdate Updater Icon: Shrink svg file 2017-12-30 23:58:27 +01:00
oovbaapi
oox tdf#96099 Removed some trivial typedefs related to UnOrderedMap and size_t. 2018-01-10 15:20:44 +01:00
opencl
osx Add a few Mac-specific source files in avmedia for easier breakpointing 2018-01-08 12:01:29 +02:00
package tdf#114819 - include the synthetic encrpytion header into the size. 2018-01-06 16:00:26 +01:00
postprocess
pyuno
qadevOOo tdf#45904 Move _SpreadsheetViewSettings Java tests to C++ 2018-01-09 06:22:27 +01:00
readlicense_oo Bump copyright year to 2018 2018-01-01 00:00:00 -06:00
registry
remotebridges
reportbuilder
reportdesign remove dead eeitemid.hxx 2018-01-05 07:38:01 +01:00
ridljar
sal convert (a>b?a:b) to std::max(a,b) 2018-01-11 07:35:43 +01:00
salhelper
sax ofz#4392 sax: guard access to Entity::maSavedException with mutex 2018-01-06 16:08:55 +01:00
sc convert (a>b?a:b) to std::max(a,b) 2018-01-11 07:35:43 +01:00
scaddins convert (a>b?a:b) to std::max(a,b) 2018-01-11 07:35:43 +01:00
sccomp lokdialog: Allow switching language of some of the ResMgr's. 2017-12-22 22:39:39 +01:00
schema
scp2 tdf#95024 Add user dictionary for hu dict package 2018-01-05 01:58:33 +01:00
scripting tdf#96099 Removed some trivial typedefs related to UnOrderedMap and size_t. 2018-01-10 15:20:44 +01:00
sd convert (a>b?a:b) to std::max(a,b) 2018-01-11 07:35:43 +01:00
sdext Allow building with poppler-0.62 2018-01-08 16:07:05 +01:00
setup_native Bump copyright year to 2018 2018-01-01 00:00:00 -06:00
sfx2 convert (a>b?a:b) to std::max(a,b) 2018-01-11 07:35:43 +01:00
shell loplugin:unnecessaryparen (clang-cl) 2018-01-09 23:17:23 +01:00
slideshow loplugin:passstuffbyref improved return in xmlhelp,slideshow 2017-12-29 10:55:41 +01:00
smoketest
solenv gbuild: print a better error message when adding non-existing Module 2018-01-10 15:27:28 +01:00
soltools
sot loplugin:convertlong in ucb,sot 2018-01-09 07:20:44 +01:00
starmath convert (a>b?a:b) to std::max(a,b) 2018-01-11 07:35:43 +01:00
stoc
store loplugin:convertlong in ucb,sot 2018-01-09 07:20:44 +01:00
svgio loplugin:passstuffbyref improved return in sd,various 2018-01-02 13:15:33 +01:00
svl loplugin:convertlong in ucb,sot 2018-01-09 07:20:44 +01:00
svtools convert (a>b?a:b) to std::max(a,b) 2018-01-11 07:35:43 +01:00
svx convert (a>b?a:b) to std::max(a,b) 2018-01-11 07:35:43 +01:00
sw convert (a>b?a:b) to std::max(a,b) 2018-01-11 07:35:43 +01:00
swext
sysui Include new .svg icons in freedesktop-menus.spec 2018-01-05 12:35:29 +01:00
test tdf#45904 Move _SpreadsheetViewSettings Java tests to C++ 2018-01-09 06:22:27 +01:00
testtools
toolkit toolkit: disable the UnitConversion test only on WNT 2018-01-08 16:15:42 +01:00
tools ofz#5000 Integer-overflow 2018-01-09 10:04:24 +01:00
translations@37dce4e457 Updated core 2018-01-10 18:27:26 +01:00
ucb loplugin:convertlong in ucb,sot 2018-01-09 07:20:44 +01:00
ucbhelper loplugin:useuniqueptr cppu,idlc,io,ucbhelper 2018-01-11 07:37:16 +01:00
udkapi Fix typo 2018-01-05 02:44:43 +01:00
uitest uitest: add a shared helper method for selecting text 2018-01-08 00:58:06 +01:00
UnoControls
unodevtools
unoidl
unoil
unotest
unotools lokdialog: Few more places that need to take LOK's LanguageTag into account. 2018-01-08 11:40:42 +01:00
unoxml ofz#4940 Null-dereference READ 2018-01-04 22:22:05 +01:00
ure
uui remove NoPath from LoginFlags 2018-01-05 09:20:10 +01:00
vbahelper
vcl convert (a>b?a:b) to std::max(a,b) 2018-01-11 07:35:43 +01:00
winaccessibility Fix spelling in comments 2017-12-28 02:43:37 +01:00
wizards tdf#114881: Re-introduce ConfigurationUpdateAccess 2018-01-08 23:24:03 +01:00
writerfilter convert (a>b?a:b) to std::max(a,b) 2018-01-11 07:35:43 +01:00
writerperfect upload libe-book 0.1.3 2018-01-05 19:47:10 +01:00
xmerge
xmlhelp convert (a>b?a:b) to std::max(a,b) 2018-01-11 07:35:43 +01:00
xmloff RotateFlyFrameFix: Add RotCenter info to ODF export 2018-01-11 01:53:16 +01:00
xmlreader
xmlscript loplugin:passstuffbyref improved returns 2017-12-23 08:04:54 +01:00
xmlsecurity xmlsecurity: remove unused xml_security::serial_number_adapter 2018-01-05 09:03:48 +01:00
.buckconfig
.buckversion
.clang-format
.editorconfig
.gitattributes
.gitignore .gitignore vscode ide files 2017-12-24 05:02:17 +01:00
.gitmodules
.gitreview
autogen.sh
BUCK
config.guess
config.sub
config_host.mk.in
config_host_lang.mk.in
configure.ac Find JDK 9 on Windows 2018-01-07 20:14:17 +01:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst pdfium: update to 3312 2018-01-10 14:35:13 +01:00
g
install-sh
leak-suppress.txt
Library_merged.mk
lo.xcent.in
logerrit
Makefile.fetch tdf#113532 Add Arabic fonts into default installation 2017-12-21 20:16:57 +01:00
Makefile.gbuild
Makefile.in Let flatpak-builder build .Debug extension 2018-01-08 22:51:22 +01:00
README.cross
README.md iOS, bump version to 11.2 2017-12-30 13:30:39 +01:00
README.Solaris
Repository.mk Blind fix 2017-12-23 22:43:01 +01:00
RepositoryExternal.mk
RepositoryFixes.mk
RepositoryModule_build.mk
RepositoryModule_host.mk
sanitize-ubsan-blacklist
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 2015 Update 3
  • macOS:
    • Runtime: 10.9
    • Build: 10.12 + Xcode 8
  • Linux:
    • Runtime: RHEL 6 or CentOS 6
    • Build: GCC 4.8.1 or Clang
  • iOS (only for LibreOfficeKit):
    • Runtime: 11.2 (only support for newer i devices == 64 bit)
    • Build: Xcode 9.0 and iPhone SDK 11.2

At least Clang 3.4.2 is known to be too old to pass the configure.ac check "whether $CXX supports C++17, C++14, or C++11" in its current form (due to the #pragma GCC diagnostic ignored "-Wpragmas" that it does not understand).

If you want to use Clang with the LibreOffice compiler plugins, the minimal version of Clang is 3.8. 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:

http://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.

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.