Test repository to check push and ssh key
Find a file
Andrea Gelmini c7d4de8e02 Fix typo
Change-Id: If61ec79ef2953a708aa786b78eeaac0e19676910
Reviewed-on: https://gerrit.libreoffice.org/84498
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2019-12-05 10:21:50 +01:00
.git-hooks Don't count terminating newline when determining line length 2019-12-03 20:21:33 +01:00
.github
accessibility remove some unnecessary includes and update pches 2019-12-04 09:58:27 +01:00
android android: Allow zooming for Calc as well 2019-12-04 22:19:41 +01:00
animations
apple_remote
avmedia loplugin:mergeclasses SoundHandler 2019-11-30 21:34:29 +01:00
basctl remove some unnecessary includes and update pches 2019-12-04 09:58: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 tdf#129107 objects in basic disappear 2019-12-04 08:59:40 +01:00
bean
bin make some classes module private 2019-12-05 07:01: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 Fix typo 2019-12-05 10:07:35 +01:00
cli_ure
codemaker
comphelper remove some useless comment lines 2019-12-03 12:46:27 +01:00
compilerplugins Adapt compilerplugins/clang/test/getstr.cxx to C++20 deleted ostream << 2019-12-04 15:46:05 +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 Use SAL_STRINGIFY 2019-12-04 15:45:07 +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 unnecessary includes and update pches 2019-12-04 09:58:27 +01:00
dbaccess drop some unnecessary includes 2019-12-03 21:05:02 +01:00
desktop Fix typo 2019-12-05 10:08:34 +01:00
dictionaries@4fb010374f
distro-configs Disable skia for online 2019-11-29 07:25:28 +01:00
drawinglayer Fix typo 2019-12-05 10:05:14 +01:00
dtrans
editeng remove some useless comment lines 2019-12-03 12:46:27 +01:00
embeddedobj
embedserv
emfio vcl: fix number of polygons shown in SAL_INFO message 2019-12-04 08:10:16 +01:00
eventattacher
extensions Fix typo 2019-12-05 07:09:20 +01:00
external external/icu: Fix -Werror=deprecated-copy-dtor 2019-12-04 18:47:40 +01:00
extras
filter Use o3tl::doAccess, prevent -Werror=maybe-uninitialized 2019-12-04 18:00:05 +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 -Werror=maybe-uninitialized 2019-12-04 20:44:33 +01:00
helpcompiler make some classes module private 2019-12-05 07:01:44 +01:00
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: Fix for tdf#127415 2019-12-04 21:40:06 +01:00
idl
idlc Introduce o3tl::optional as an alias for std::optional 2019-12-01 14:57:16 +01:00
include Fix typo 2019-12-05 10:12:34 +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 Fix typo 2019-12-05 10:05:40 +01:00
l10ntools remove some useless comment lines 2019-12-03 12:46:27 +01:00
librelogo
libreofficekit Silence -Werror=maybe-uninitialized 2019-12-04 20:10:38 +01:00
lingucomponent
linguistic
lotuswordpro
m4
nlpsolver
o3tl
odk Fix typo 2019-12-05 10:08:04 +01:00
offapi
officecfg drop dbgutil SdrItemBrowser FloatingWindow 2019-12-04 13:06:42 +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 Fix typo 2019-12-05 10:21:12 +01:00
remotebridges
reportbuilder
reportdesign drop some unnecessary includes 2019-12-04 15:46:37 +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 tdf#109425 NB tabbed accessible for screen reader users 2019-12-05 07:53:55 +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 tdf#109425 NB tabbed accessible for screen reader users 2019-12-05 07:53:55 +01:00
sdext Fix build with poppler-0.83 2019-12-04 11:43:12 +01:00
setup_native
sfx2 remove some unnecessary includes and update pches 2019-12-04 09:58:27 +01:00
shell remove some useless comment lines 2019-12-03 12:46:27 +01:00
slideshow Fix typo 2019-12-05 07:53:35 +01:00
smoketest
solenv tdf#128133 WIN don't exit after link-output filter 2019-12-04 20:23:52 +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-04 08:49:55 +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 unnecessary includes and update pches 2019-12-04 09:58:27 +01:00
svx make some classes module private 2019-12-05 07:01:44 +01:00
sw Fix typo 2019-12-05 10:19: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 headless: Don't leak the cairo context in drawPixel(). 2019-12-05 10:18:44 +01:00
winaccessibility
wizards
writerfilter writerfilter: name the FiltersTest test CppunitTest_writerfilter_filters_test 2019-12-05 08:46:16 +01:00
writerperfect
xmerge Fix typo 2019-12-05 10:21:50 +01:00
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
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.