Test repository to check push and ssh key
Find a file
Noel Grandin 748e354af8 loplugin:unusedfields
Change-Id: Iaf188bfd43396eeec31e62ac3de3fbc76da4331a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86653
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2020-01-13 09:07:23 +01:00
.git-hooks
.github
accessibility
android android: don't try to copy the apk if it does not exist 2020-01-03 16:53:07 +01:00
animations
apple_remote
avmedia
basctl use more std::make_shared 2020-01-10 13:07:41 +01:00
basegfx
basic use more std::make_shared 2020-01-10 13:07:41 +01:00
bean
bin python3: bundle libffi for GNU/Linux builds 2020-01-09 17:56:19 +01:00
binaryurp
bridges aarch64 r18 is reserved at least on Android 2020-01-07 20:27:57 +01:00
canvas use more std::make_shared 2020-01-10 13:07:41 +01:00
chart2 tdf#129857 Chart OOXML export: fix deleted legend entries 2020-01-10 14:22:57 +01:00
cli_ure
codemaker
comphelper Improve loplugin:redundantcast for sal_Int... vs. ::sal_Int... 2020-01-09 20:21:59 +01:00
compilerplugins loplugin:unusedfields 2020-01-13 09:07:23 +01:00
config_host add setting to config_skia.h whether to use 32bpp bitmaps 2020-01-09 15:26:31 +01:00
configmgr use more std::make_shared 2020-01-10 13:07:41 +01:00
connectivity use more std::make_shared 2020-01-10 13:07:41 +01:00
cppcanvas use more std::make_shared 2020-01-10 13:07:41 +01:00
cppu Replace a CPPUNIT_ASSERT_EQUAL with a static_assert 2020-01-07 20:27:04 +01:00
cppuhelper use more std::make_shared 2020-01-10 13:07:41 +01:00
cpputools
cui Resolves: tdf#127417 delete-all tabs doesn't work 2020-01-11 14:58:03 +01:00
dbaccess loplugin:unusedfields 2020-01-13 09:07:23 +01:00
desktop Make RunQuickstartAtFirstStart branding-dependent key 2020-01-12 13:20:24 +01:00
dictionaries@3097066a2e Update git submodules 2020-01-12 20:39:28 +01:00
distro-configs
drawinglayer Improve loplugin:redundantcast for sal_Int... vs. ::sal_Int... 2020-01-09 20:21:59 +01:00
dtrans
editeng cid#705996 unintended sign extension 2020-01-11 22:23:32 +01:00
embeddedobj
embedserv
emfio use more std::make_shared 2020-01-10 13:07:41 +01:00
eventattacher
extensions tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor 2020-01-12 17:07:31 +01:00
external python3: bundle libffi for GNU/Linux builds 2020-01-09 17:56:19 +01:00
extras SvxFillTypeBox is now not used directly from any .uis 2020-01-06 16:45:02 +01:00
filter tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor 2020-01-12 17:07:31 +01:00
forms Improve loplugin:redundantcast for sal_Int... vs. ::sal_Int... 2020-01-09 20:21:59 +01:00
formula
fpicker tdf#96505:Get rid of cargo cult long integer literals 2020-01-08 17:47:54 +01:00
framework loplugin:unusedfields 2020-01-13 09:07:23 +01:00
helpcompiler
helpcontent2@8a54ad38c5 Update git submodules 2020-01-12 17:27:40 +01:00
hwpfilter tdf#96505:Get rid of cargo cult long integer literals 2020-01-08 17:47:54 +01:00
i18nlangtag
i18npool tdf#96505:Get rid of cargo cult long integer literals 2020-01-08 17:47:54 +01:00
i18nutil Fix Osage lowercase-to-uppercase mappings 2020-01-10 15:18:25 +01:00
icon-themes Sifr: Fix for tdf#127415, tdf#129846 2020-01-10 04:45:10 +01:00
idl
idlc
include loplugin:unusedfields 2020-01-13 09:07:23 +01:00
instsetoo_native
io
ios
javaunohelper
jurt
jvmaccess
jvmfwk
l10ntools
librelogo
libreofficekit
lingucomponent Use only the 'MacOSXSpell' component on iOS, not the 'spell' one 2020-01-03 17:53:00 +01:00
linguistic use more std::make_shared 2020-01-10 13:07:41 +01:00
lotuswordpro ofz#19961 Invalid-enum-value 2020-01-09 11:10:33 +01:00
m4
nlpsolver
o3tl
odk Avoid $(shell $(gb_MKTEMP)) 2020-01-06 17:30:26 +01:00
offapi tdf#129859 XLSX import: don't show deleted legend entries 2020-01-10 14:21:35 +01:00
officecfg tdf#128658 presentation optimizer default image settings update 2020-01-13 08:23:18 +01:00
onlineupdate
oovbaapi
oox cid#1457617 Unchecked return value 2020-01-12 16:34:28 +01:00
opencl
osx
package tdf88205 Adapt uses of css::uno::Sequence to use initializer_list ctor 2020-01-12 17:09:42 +01:00
pch
postprocess Use only the 'MacOSXSpell' component on iOS, not the 'spell' one 2020-01-03 17:53:00 +01:00
pyuno pyuno: remove racy debug check 2020-01-09 13:55:45 +01:00
qadevOOo
readlicense_oo python3: bundle libffi for GNU/Linux builds 2020-01-09 17:56:19 +01:00
registry
remotebridges
reportbuilder
reportdesign use more std::make_shared 2020-01-10 13:07:41 +01:00
ridljar
sal Grammar fixes 2020-01-08 13:25:05 +01:00
salhelper
sax use more std::make_shared 2020-01-10 13:07:41 +01:00
sc tdf88205 Adapt uses of css::uno::Sequence to use initializer_list ctor 2020-01-12 17:09:42 +01:00
scaddins Make OPT_ functions string more meaningful. 2020-01-08 12:21:07 +01:00
sccomp tdf88205 Adapt uses of css::uno::Sequence to use initializer_list ctor 2020-01-12 17:09:42 +01:00
schema
scp2 Make RunQuickstartAtFirstStart branding-dependent key 2020-01-12 13:20:24 +01:00
scripting Fix typo 2020-01-07 11:53:39 +01:00
sd Fix typo 2020-01-10 23:29:12 +01:00
sdext use more std::make_shared 2020-01-10 13:07:41 +01:00
setup_native Improve logging of feature states 2020-01-10 15:14:10 +01:00
sfx2 lok: jsdialog creation for sidebar panels cleanup. 2020-01-10 22:07:06 +01:00
shell loplugin:finalclasses in starmath 2020-01-11 11:59:28 +01:00
slideshow use more std::make_shared 2020-01-10 13:07:41 +01:00
smoketest
solenv xmloff: create AnimationsImport instances with an uno constructor 2020-01-10 08:36:30 +01:00
soltools
sot tdf#96505 Get rid of cargo cult long integer literals 2020-01-02 19:58:48 +01:00
starmath convert mathml to FastParser 2020-01-12 19:08:59 +01:00
stoc
store
svgio loplugin:finalclasses in svgio 2020-01-11 11:59:15 +01:00
svl Fix typo 2020-01-08 14:08:57 +01:00
svtools loplugin:unusedfields 2020-01-13 09:07:23 +01:00
svx tdf#128658 update image compress dialog default settings 2020-01-13 08:23:36 +01:00
sw tdf#115600 Fix navigate by reminder wrap messages 2020-01-13 04:21:54 +01:00
swext
sysui
test
testtools
toolkit Improve loplugin:redundantcast for sal_Int... vs. ::sal_Int... 2020-01-09 20:21:59 +01:00
tools tdf#96505 Get rid of cargo cult long integer literals 2020-01-08 14:00:31 +01:00
translations@6d4072204c
ucb
ucbhelper
udkapi
uitest
UnoControls
unodevtools
unoidl
unoil
unotest
unotools
unoxml use more std::make_shared 2020-01-10 13:07:41 +01:00
ure
uui
vbahelper
vcl Use static initializer 2020-01-13 03:38:20 +01:00
winaccessibility
wizards
writerfilter tdf#120344 DOCX: fix font style of numbering 2020-01-10 14:25:15 +01:00
writerperfect use more std::make_shared 2020-01-10 13:07:41 +01:00
xmerge
xmlhelp
xmloff use more std::make_shared 2020-01-10 13:07:41 +01:00
xmlreader
xmlscript use more std::make_shared 2020-01-10 13:07:41 +01:00
xmlsecurity [API CHANGE] extend css.security.XDocumentDigitalSignatures 2020-01-08 21:27:55 +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 python3: bundle libffi for GNU/Linux builds 2020-01-09 17:56:19 +01:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst python3: bundle libffi for GNU/Linux builds 2020-01-09 17:56:19 +01:00
g
hardened_runtime.xcent
install-sh
leak-suppress.txt
Library_merged.mk
lo.xcent
logerrit logerrit: support submitting private and wip changes 2020-01-06 20:43:52 +01:00
Makefile.fetch python3: bundle libffi for GNU/Linux builds 2020-01-09 17:56:19 +01:00
Makefile.gbuild
Makefile.in allow root under podman 2020-01-04 18:35:26 +01:00
README.cross
README.md
README.Solaris
Repository.mk Register spsupp*.dll during installation 2020-01-09 07:23:48 +01:00
RepositoryExternal.mk python3: bundle libffi for GNU/Linux builds 2020-01-09 17:56:19 +01: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 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.