Test repository to check push and ssh key
Find a file
Andrea Gelmini 90417749fa Removed duplicated includes
Change-Id: Ica64e5b201689930ff400070fb773832d4a97d78
Reviewed-on: https://gerrit.libreoffice.org/84191
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2019-12-04 07:06:49 +01:00
.git-hooks Don't count terminating newline when determining line length 2019-12-03 20:21:33 +01:00
.github
accessibility loplugin:mergeclasses ListBoxAccessibleBase with AccessibleListBoxEntry 2019-12-03 20:01:46 +01:00
android android: Fix linking of liblo-native-code.so on aarch64. 2019-12-02 09:14:37 +01:00
animations
apple_remote
avmedia loplugin:mergeclasses SoundHandler 2019-11-30 21:34:29 +01:00
basctl remove some useless comment lines 2019-12-03 12:46:27 +01:00
basegfx Adapt SAL_WARN to C++20 deleted ostream << for sal_Unicode (aka char16_t) 2019-12-03 22:17:21 +01:00
basic remove some useless comment lines 2019-12-03 12:46:27 +01:00
bean
bin make update_pch work again 2019-12-01 22:19:44 +01:00
binaryurp
bridges bridges arm64: Use [[falltrough]]. 2019-12-02 11:34:25 +01:00
canvas Introduce o3tl::optional as an alias for std::optional 2019-12-01 14:57:16 +01:00
chart2 some std::set->o3tl::sorted_vector 2019-12-04 07:01:53 +01:00
cli_ure
codemaker
comphelper remove some useless comment lines 2019-12-03 12:46:27 +01:00
compilerplugins desktop: disable callback handling while changing the view 2019-12-03 09:47:25 +01:00
config_host android: Introduce --enable-android-lok configure switch to fix RGB vs. BGR. 2019-11-27 15:52:35 +01:00
configmgr
connectivity Simplify SQLError::ParamValue to just o3tl::optional<OUString> 2019-12-02 17:48:06 +01:00
cppcanvas Introduce o3tl::optional as an alias for std::optional 2019-12-01 14:57:16 +01:00
cppu Adapt CPPUNIT_ASSERT to C++20 deleted ostream << for sal_Unicode (aka char16_t) 2019-12-03 21:18:57 +01:00
cppuhelper remove some useless comment lines 2019-12-03 12:46:27 +01:00
cpputools
cui remove some useless comment lines 2019-12-03 12:46:27 +01:00
dbaccess drop some unnecessary includes 2019-12-03 21:05:02 +01:00
desktop use scoped enum 2019-12-03 15:46:23 +01:00
dictionaries@4fb010374f
distro-configs Disable skia for online 2019-11-29 07:25:28 +01:00
drawinglayer handle properly true 32bit bitmaps in some places 2019-11-27 09:55:18 +01:00
dtrans
editeng remove some useless comment lines 2019-12-03 12:46:27 +01:00
embeddedobj
embedserv
emfio Introduce o3tl::optional as an alias for std::optional 2019-12-01 14:57:16 +01:00
eventattacher
extensions remove some useless comment lines 2019-12-03 12:46:27 +01:00
external external/clucene: Adapt to C++20 deleted ostream << for non-plain char types 2019-12-03 16:06:05 +01:00
extras Resolves tdf# 129052 - Misspelled gradient 2019-11-27 11:02:03 +01:00
filter remove some useless comment lines 2019-12-03 12:46:27 +01:00
forms some std::set->o3tl::sorted_vector 2019-12-04 07:01:53 +01:00
formula remove some useless comment lines 2019-12-03 12:46:27 +01:00
fpicker remove some useless comment lines 2019-12-03 12:46:27 +01:00
framework enum WindowsStateMask type itself is unused 2019-12-03 15:04:20 +01:00
helpcompiler
helpcontent2@ccbdf9f943 Update git submodules 2019-12-02 17:22:02 +01:00
hwpfilter
i18nlangtag Resolves: tdf#129045 add Guadeloupean Creole French [gcf-GP] to language list 2019-11-28 02:43:25 +01:00
i18npool Adapt CPPUNIT_ASSERT to C++20 deleted ostream << for sal_Unicode (aka char16_t) 2019-12-03 21:18:57 +01:00
i18nutil
icon-themes Colibre: content tilting 2019-11-28 04:11:07 +01:00
idl
idlc Introduce o3tl::optional as an alias for std::optional 2019-12-01 14:57:16 +01:00
include Adapt CPPUNIT_ASSERT to C++20 deleted ostream << for sal_Unicode (aka char16_t) 2019-12-03 21:18:57 +01:00
instsetoo_native MSI: Disable creation of system restore points during installation 2019-11-30 14:24:14 +01:00
io
ios
javaunohelper
jurt
jvmaccess
jvmfwk Introduce o3tl::optional as an alias for std::optional 2019-12-01 14:57:16 +01:00
l10ntools remove some useless comment lines 2019-12-03 12:46:27 +01:00
librelogo
libreofficekit Introduce o3tl::optional as an alias for std::optional 2019-12-01 14:57:16 +01:00
lingucomponent
linguistic
lotuswordpro
m4
nlpsolver
o3tl
odk
offapi tdf#108642 load accessibility children faster 2019-11-27 10:28:52 +01:00
officecfg Make OpenCLMinimumDataSize configuration property non-nillable 2019-12-03 09:50:24 +01:00
onlineupdate
oovbaapi
oox Simplify a bit use of LabelPlacementParam (oox/chartexport) 2019-12-03 15:30:11 +01:00
opencl
osx
package check crcs when fuzzing after all 2019-11-28 16:51:22 +01:00
pch Removed duplicated includes 2019-12-04 07:06:49 +01:00
postprocess tdf#128974: TB Addressbook not available directly as existing database (Win) 2019-11-29 09:10:38 +01:00
pyuno
qadevOOo
readlicense_oo
registry
remotebridges
reportbuilder
reportdesign drop some unnecessary includes 2019-12-03 21:05:02 +01:00
ridljar
sal Adapt CPPUNIT_ASSERT to C++20 deleted ostream << for sal_Unicode (aka char16_t) 2019-12-03 21:18:57 +01:00
salhelper
sax Introduce o3tl::optional as an alias for std::optional 2019-12-01 14:57:16 +01:00
sc Removed duplicated includes 2019-12-04 07:06:49 +01:00
scaddins tdf#129098: parameters mixed in OPT_PROB_INMONEY (scaddins) 2019-11-29 20:20:12 +01:00
sccomp
schema Remove trailing whitespace 2019-12-03 10:09:59 +01:00
scp2
scripting remove some useless comment lines 2019-12-03 12:46:27 +01:00
sd use scoped enum 2019-12-03 16:28:19 +01:00
sdext
setup_native
sfx2 drop some unnecessary includes 2019-12-03 21:05:02 +01:00
shell remove some useless comment lines 2019-12-03 12:46:27 +01:00
slideshow Introduce o3tl::optional as an alias for std::optional 2019-12-01 14:57:16 +01:00
smoketest
solenv unused suppression 2019-12-02 09:52:10 +01:00
soltools
sot
starmath some std::set->o3tl::sorted_vector 2019-12-04 07:01:53 +01:00
stoc use scoped enum 2019-12-03 16:28:34 +01:00
store
svgio Use initializer instead of using several inserts (svgio/svgtoken) 2019-12-03 12:02:55 +01:00
svl Adapt CPPUNIT_ASSERT to C++20 deleted ostream << for sal_Unicode (aka char16_t) 2019-12-03 21:18:57 +01:00
svtools remove some useless comment lines 2019-12-03 12:46:27 +01:00
svx weld OAddFieldWindow 2019-12-03 21:04:45 +01:00
sw Removed duplicated includes 2019-12-04 07:06:49 +01:00
swext
sysui
test Silence false -Werror=maybe-uninitialized 2019-12-03 19:42:51 +01:00
testtools
toolkit remove some useless comment lines 2019-12-03 12:46:27 +01:00
tools remove some useless comment lines 2019-12-03 12:46:27 +01:00
translations@6d4072204c
ucb remove some useless comment lines 2019-12-03 12:46:27 +01:00
ucbhelper remove some useless comment lines 2019-12-03 12:46:27 +01:00
udkapi
uitest
UnoControls
unodevtools
unoidl
unoil
unotest
unotools remove some useless comment lines 2019-12-03 12:46:27 +01:00
unoxml Introduce o3tl::optional as an alias for std::optional 2019-12-01 14:57:16 +01:00
ure
uui Remove nonsense check 2019-11-30 02:50:41 +01:00
vbahelper Introduce o3tl::optional as an alias for std::optional 2019-12-01 14:57:16 +01:00
vcl toolbar item visibilty defaults to false in GtkBuilder but true in vcl 2019-12-03 22:14:34 +01:00
winaccessibility
wizards
writerfilter some std::set->o3tl::sorted_vector 2019-12-04 07:01:53 +01:00
writerperfect
xmerge
xmlhelp remove some useless comment lines 2019-12-03 12:46:27 +01:00
xmloff remove some useless comment lines 2019-12-03 12:46:27 +01:00
xmlreader
xmlscript remove some useless comment lines 2019-12-03 12:46:27 +01:00
xmlsecurity boost::optional: replace uses of get_value_or with value_or 2019-12-01 13:58:49 +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 split instrinsics CXXFLAGS per each instruction set 2019-12-03 10:43:30 +01:00
config_host_lang.mk.in
configure.ac split instrinsics CXXFLAGS per each instruction set 2019-12-03 10:43:30 +01: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 make SkiaSalGraphicsImpl use GPU-backed SkSurface also for offscreen 2019-11-27 09:55:16 +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.