Test repository to check push and ssh key
Find a file
Andrea Gelmini caa6268094 Fix typos
Change-Id: I2b9361433df39f66ec8328262a3128cf7294b6e1
Reviewed-on: https://gerrit.libreoffice.org/76720
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2019-07-31 15:10:24 +02:00
.git-hooks
accessibility Improved loplugin:stringconstant (now that GCC 7 supports it): accessibility 2019-07-31 13:01:36 +02:00
android
animations Improved loplugin:stringconstant (now that GCC 7 supports it): animations 2019-07-31 13:01:28 +02:00
apple_remote
avmedia Improved loplugin:stringconstant (now that GCC 7 supports it): avmedia 2019-07-31 13:01:19 +02:00
basctl Improved loplugin:stringconstant (now that GCC 7 supports it): basctl 2019-07-31 13:01:09 +02:00
basegfx Improved loplugin:stringconstant (now that GCC 7 supports it): basegfx 2019-07-31 13:01:01 +02:00
basic Improved loplugin:stringconstant (now that GCC 7 supports it): basic 2019-07-31 13:00:51 +02:00
bean
bin find-unneeded-includes: warn first time user nicely about missing file 2019-07-29 09:10:00 +02:00
binaryurp Improved loplugin:stringconstant (now that GCC 7 supports it): binaryurp 2019-07-31 13:00:45 +02:00
bridges
canvas Improved loplugin:stringconstant (now that GCC 7 supports it): canvas 2019-07-31 13:00:39 +02:00
chart2 Improved loplugin:stringconstant (now that GCC 7 supports it): chart2 2019-07-31 13:00:34 +02:00
cli_ure Fix typos 2019-07-29 10:08:01 +02:00
codemaker
comphelper Improved loplugin:stringconstant (now that GCC 7 supports it): comphelper 2019-07-31 13:00:27 +02:00
compilerplugins remove newly unused SvxCheckListBox 2019-07-30 21:14:11 +02:00
config_host
configmgr Improved loplugin:stringconstant (now that GCC 7 supports it): configmgr 2019-07-31 13:00:19 +02:00
connectivity Improved loplugin:stringconstant (now that GCC 7 supports it): connectivity 2019-07-31 13:00:14 +02:00
cppcanvas rhbz#1728763 black bg seen in renderer emfs 2019-07-23 17:16:38 +02:00
cppu cid#1448407 silence Resource leak 2019-07-26 13:38:03 +02:00
cppuhelper Improved loplugin:stringconstant (now that GCC 7 supports it): cppuhelper 2019-07-31 13:00:08 +02:00
cpputools
cui Improved loplugin:stringconstant (now that GCC 7 supports it): cui 2019-07-31 12:59:58 +02:00
dbaccess Improved loplugin:stringconstant (now that GCC 7 supports it): dbaccess 2019-07-31 12:59:48 +02:00
desktop Improved loplugin:stringconstant (now that GCC 7 supports it): desktop 2019-07-31 12:59:38 +02:00
dictionaries@86b4b5bfbf
distro-configs
drawinglayer Improved loplugin:stringconstant (now that GCC 7 supports it): drawinglayer 2019-07-31 12:59:32 +02:00
dtrans Improved loplugin:stringconstant (now that GCC 7 supports it): dtrans 2019-07-31 12:59:26 +02:00
editeng Improved loplugin:stringconstant (now that GCC 7 supports it): editeng 2019-07-31 12:59:19 +02:00
embeddedobj Improved loplugin:stringconstant (now that GCC 7 supports it): embeddedobj 2019-07-31 12:59:11 +02:00
embedserv
emfio Improved loplugin:stringconstant (now that GCC 7 supports it): emfio 2019-07-31 12:59:07 +02:00
eventattacher Improved loplugin:stringconstant (now that GCC 7 supports it): eventattacher 2019-07-31 12:59:01 +02:00
extensions Improved loplugin:stringconstant (now that GCC 7 supports it): extensions 2019-07-31 12:58:51 +02:00
external
extras weld SwCompatibilityOptPage 2019-07-30 21:13:56 +02:00
filter Improved loplugin:stringconstant (now that GCC 7 supports it): filter 2019-07-31 12:58:46 +02:00
forms Improved loplugin:stringconstant (now that GCC 7 supports it): forms 2019-07-31 12:58:39 +02:00
formula Improved loplugin:stringconstant (now that GCC 7 supports it): formula 2019-07-31 12:58:32 +02:00
fpicker Improved loplugin:stringconstant (now that GCC 7 supports it): fpicker 2019-07-31 12:58:22 +02:00
framework Improved loplugin:stringconstant (now that GCC 7 supports it): framework 2019-07-31 12:58:15 +02:00
helpcompiler
helpcontent2@276be19271 Update git submodules 2019-07-29 16:59:00 +02:00
hwpfilter Improved loplugin:stringconstant (now that GCC 7 supports it): hwpfilter 2019-07-31 12:58:09 +02:00
i18nlangtag Improved loplugin:stringconstant (now that GCC 7 supports it): i18nlangtag 2019-07-31 12:58:00 +02:00
i18npool Improved loplugin:stringconstant (now that GCC 7 supports it): i18npool 2019-07-31 12:57:53 +02:00
i18nutil
icon-themes Add Redaction toolbar icons from colibre to tango 2019-07-25 11:51:27 +02:00
idl
idlc Improved loplugin:stringconstant (now that GCC 7 supports it): idlc 2019-07-31 12:57:45 +02:00
include Improved loplugin:stringconstant (now that GCC 7 supports it): comphelper 2019-07-31 13:00:27 +02:00
instsetoo_native
io Improved loplugin:stringconstant (now that GCC 7 supports it): io 2019-07-31 12:57:36 +02:00
ios
javaunohelper Fix typos 2019-07-27 11:49:10 +02:00
jurt
jvmaccess
jvmfwk Improved loplugin:stringconstant (now that GCC 7 supports it): jvmfwk 2019-07-31 12:57:29 +02:00
l10ntools Improved loplugin:stringconstant (now that GCC 7 supports it): l10ntools 2019-07-31 12:57:20 +02:00
librelogo
libreofficekit lok: send cell selection rectangle and cell area fill rectangle 2019-07-28 12:35:39 +02:00
lingucomponent Improved loplugin:stringconstant (now that GCC 7 supports it): lingucomponent 2019-07-31 12:57:11 +02:00
linguistic Improved loplugin:stringconstant (now that GCC 7 supports it): linguistic 2019-07-31 12:57:03 +02:00
lotuswordpro Improved loplugin:stringconstant (now that GCC 7 supports it): lotuswordpro 2019-07-31 12:56:55 +02:00
m4
nlpsolver Fix typos 2019-07-27 11:49:10 +02:00
o3tl
odk Fix typo 'a SDK' 2019-07-24 11:53:09 +02:00
offapi Fix typos 2019-07-29 10:09:50 +02:00
officecfg "Basic macros" instead of "$Productname Basic macros" 2019-07-24 12:27:37 +02:00
onlineupdate Fix typos 2019-07-23 22:19:26 +02:00
oovbaapi
oox Improved loplugin:stringconstant (now that GCC 7 supports it): oox 2019-07-31 12:56:48 +02:00
opencl Improved loplugin:stringconstant (now that GCC 7 supports it): opencl 2019-07-31 12:56:42 +02:00
osx
package Improved loplugin:stringconstant (now that GCC 7 supports it): package 2019-07-31 12:56:35 +02:00
postprocess
pyuno Improved loplugin:stringconstant (now that GCC 7 supports it): pyuno 2019-07-31 12:56:29 +02:00
qadevOOo Fix typos 2019-07-30 23:47:47 +02:00
readlicense_oo
registry Fix typos 2019-07-30 23:47:47 +02:00
remotebridges Improved loplugin:stringconstant (now that GCC 7 supports it): remotebridges 2019-07-31 12:56:18 +02:00
reportbuilder Fix typos 2019-07-31 15:10:24 +02:00
reportdesign Improved loplugin:stringconstant (now that GCC 7 supports it): reportdesign 2019-07-31 12:56:10 +02:00
ridljar Fix typos 2019-07-26 18:50:35 +02:00
sal Improved loplugin:stringconstant (now that GCC 7 supports it): sal 2019-07-31 12:56:03 +02:00
salhelper
sax Improved loplugin:stringconstant (now that GCC 7 supports it): sax 2019-07-31 12:55:55 +02:00
sc Improved loplugin:stringconstant (now that GCC 7 supports it): sc 2019-07-31 12:55:48 +02:00
scaddins Improved loplugin:stringconstant (now that GCC 7 supports it): scaddins 2019-07-31 12:55:39 +02:00
sccomp Improved loplugin:stringconstant (now that GCC 7 supports it): sccomp 2019-07-31 12:55:32 +02:00
schema tdf#119228 Add storage and serialisation for the Resolved flag 2019-07-25 10:38:36 +02:00
scp2 Correct a fragmented sentence 2019-07-25 23:11:42 -05:00
scripting Improved loplugin:stringconstant (now that GCC 7 supports it): scripting 2019-07-31 12:55:24 +02:00
sd Improved loplugin:stringconstant (now that GCC 7 supports it): sd 2019-07-31 12:55:16 +02:00
sdext Improved loplugin:stringconstant (now that GCC 7 supports it): sdext 2019-07-31 12:55:10 +02:00
setup_native setup_native: document more obscure epmfile.pm input 2019-07-29 17:14:48 +02:00
sfx2 Improved loplugin:stringconstant (now that GCC 7 supports it): sfx2 2019-07-31 12:55:02 +02:00
shell Improved loplugin:stringconstant (now that GCC 7 supports it): shell 2019-07-31 12:54:55 +02:00
slideshow Simplify Sequence iterations in shell..svgio 2019-07-22 18:42:35 +02:00
smoketest
solenv remove newly unused SvxCheckListBox 2019-07-30 21:14:11 +02:00
soltools cid#1448523 silence bogus Out-of-bounds read 2019-07-24 17:20:04 +02:00
sot Improved loplugin:stringconstant (now that GCC 7 supports it): sot 2019-07-31 12:54:49 +02:00
starmath Improved loplugin:stringconstant (now that GCC 7 supports it): starmath 2019-07-31 12:54:43 +02:00
stoc Improved loplugin:stringconstant (now that GCC 7 supports it): stoc 2019-07-31 12:54:36 +02:00
store
svgio Improved loplugin:stringconstant (now that GCC 7 supports it): svgio 2019-07-31 12:54:31 +02:00
svl Improved loplugin:stringconstant (now that GCC 7 supports it): svl 2019-07-31 12:54:24 +02:00
svtools Improved loplugin:stringconstant (now that GCC 7 supports it): svtools 2019-07-31 12:54:17 +02:00
svx Improved loplugin:stringconstant (now that GCC 7 supports it): svx 2019-07-31 12:54:10 +02:00
sw Improved loplugin:stringconstant (now that GCC 7 supports it): sw 2019-07-31 12:54:02 +02:00
swext Fix typo 2019-07-26 16:00:12 +02:00
sysui sysui: fix rpm errors in freedesktop-menus (4.14.1) 2019-07-31 12:40:51 +02:00
test loplugin:sequentialassign 2019-07-29 08:53:23 +02:00
testtools Improved loplugin:stringconstant (now that GCC 7 supports it): testtools 2019-07-31 12:53:48 +02:00
toolkit Improved loplugin:stringconstant (now that GCC 7 supports it): toolkit 2019-07-31 12:53:40 +02:00
tools Improved loplugin:stringconstant (now that GCC 7 supports it): tools 2019-07-31 12:53:30 +02:00
translations@a6f6a9d0e6
ucb Improved loplugin:stringconstant (now that GCC 7 supports it): ucb 2019-07-31 12:53:24 +02:00
ucbhelper Improved loplugin:stringconstant (now that GCC 7 supports it): ucbhelper 2019-07-31 12:53:18 +02:00
udkapi Fix typos 2019-07-27 08:37:12 +02:00
uitest UI tests opening all dialogs in writer and see if it crashes 2019-07-26 08:18:22 +02:00
UnoControls Improved loplugin:stringconstant (now that GCC 7 supports it): UnoControls 2019-07-31 13:01:42 +02:00
unodevtools
unoidl Improved loplugin:stringconstant (now that GCC 7 supports it): unoidl 2019-07-31 12:53:12 +02:00
unoil
unotest
unotools Improved loplugin:stringconstant (now that GCC 7 supports it): unotools 2019-07-31 12:53:03 +02:00
unoxml Improved loplugin:stringconstant (now that GCC 7 supports it): unoxml 2019-07-31 12:52:54 +02:00
ure
uui Improved loplugin:stringconstant (now that GCC 7 supports it): uui 2019-07-31 12:52:48 +02:00
vbahelper Improved loplugin:stringconstant (now that GCC 7 supports it): vbahelper 2019-07-31 12:52:40 +02:00
vcl Fix typos 2019-07-31 15:10:24 +02:00
winaccessibility Fix typos 2019-07-29 11:15:42 +02:00
wizards Fix typo 2019-07-27 10:02:06 +02:00
writerfilter Improved loplugin:stringconstant (now that GCC 7 supports it): writerfilter 2019-07-31 12:52:27 +02:00
writerperfect Improved loplugin:stringconstant (now that GCC 7 supports it): writerperfect 2019-07-31 12:52:19 +02:00
xmerge Fix typos 2019-07-24 23:34:49 +02:00
xmlhelp Improved loplugin:stringconstant (now that GCC 7 supports it): xmlhelp 2019-07-31 12:52:08 +02:00
xmloff Improved loplugin:stringconstant (now that GCC 7 supports it): xmloff 2019-07-31 12:51:59 +02:00
xmlreader
xmlscript Improved loplugin:stringconstant (now that GCC 7 supports it): xmlscript 2019-07-31 12:51:48 +02:00
xmlsecurity Improved loplugin:stringconstant (now that GCC 7 supports it): xmlsecurity 2019-07-31 12:51:43 +02:00
.buckconfig
.buckversion
.clang-format
.editorconfig
.gitattributes
.gitignore
.gitmodules
.gitreview
autogen.sh
BUCK
config.guess
config.sub
config_host.mk.in
config_host_lang.mk.in
configure.ac sysui: fix rpm errors in freedesktop-menus (4.14.1) 2019-07-31 12:40:51 +02: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 external qrcodegen looks under qrcodegen 2019-07-25 14:53:18 +02: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

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
  • 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

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.