Test repository to check push and ssh key
Find a file
Noel Grandin f08a06052b loplugin:unusedfields,can-be-const in xmlscript
Change-Id: Ibd733b822bb2eee9de6319b5ea9e4d8dd3641cdc
Reviewed-on: https://gerrit.libreoffice.org/57850
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-07-24 08:32:37 +02:00
.git-hooks
accessibility Remove dead code from textwindowaccessibility.cxx 2018-07-20 23:00:58 +02:00
android
animations
apple_remote
avmedia
basctl Remove commented-out code from bastypes.cxx 2018-07-20 22:44:32 +02:00
basegfx Fix typos 2018-07-20 12:34:10 +02:00
basic Fix typos 2018-07-23 23:40:22 +02:00
bean Fix typos 2018-07-22 20:26:06 +02:00
bin Fix variable name 2018-07-24 08:22:20 +02:00
binaryurp
bridges Fix typos 2018-07-23 23:39:10 +02:00
canvas fix oss-fuzz build 2018-07-22 20:10:54 +02:00
chart2 Fix typos 2018-07-19 13:59:35 +02:00
cli_ure Fix typos 2018-07-23 11:44:59 +02:00
codemaker
comphelper Fix typos 2018-07-23 23:38:57 +02:00
compilerplugins loplugin:unusedfields 2018-07-23 09:55:40 +02:00
config_host
configmgr
connectivity
cppcanvas
cppu
cppuhelper Fix typos 2018-07-19 13:59:35 +02:00
cpputools
cui Fix typos 2018-07-23 14:18:49 +02:00
dbaccess Fix typos 2018-07-24 08:22:05 +02:00
desktop Fix typos 2018-07-23 16:55:32 +02:00
dictionaries@43f9b34b3b
distro-configs
drawinglayer Fix typos 2018-07-18 12:49:03 +02:00
dtrans
editeng Fix typos 2018-07-20 18:55:16 +02:00
embeddedobj Fix typos 2018-07-22 20:25:25 +02:00
embedserv Fix typos 2018-07-23 23:38:57 +02:00
emfio
eventattacher
extensions Fix typos 2018-07-23 11:44:59 +02:00
external pdfium: update to 3471 2018-07-18 09:13:06 +02:00
extras
filter Fix typos 2018-07-24 08:22:05 +02:00
forms Fix typos 2018-07-20 18:55:16 +02:00
formula Do not force all string results to be recalculated if no style set 2018-07-18 23:21:26 +02:00
fpicker
framework Fix typos 2018-07-23 14:18:49 +02:00
helpcompiler
helpcontent2@c8d840200b Update git submodules 2018-07-23 19:09:25 +02:00
hwpfilter
i18nlangtag
i18npool Fix typos 2018-07-23 23:40:22 +02:00
i18nutil Upgrade to ICU 62.1 2018-07-16 17:36:35 +02:00
icon-themes KJ:^ PDF 32px, caption 16px, Writer's sidebar icons 2018-07-20 07:48:23 +02:00
idl
idlc
include loplugin:unusedfields,can-be-const in xmlscript 2018-07-24 08:32:37 +02:00
instsetoo_native
io Fix typos 2018-07-23 11:59:51 +02:00
ios Use $(ICU_MAJOR) instead of hard coded (Upgrade to ICU 62.1) 2018-07-17 17:41:10 +02:00
javaunohelper Fix typos 2018-07-23 11:44:59 +02:00
jurt
jvmaccess
jvmfwk
l10ntools Fix typos 2018-07-23 23:38:57 +02:00
librelogo
libreofficekit
lingucomponent
linguistic Fix typos 2018-07-18 12:49:03 +02:00
lotuswordpro Fix typos 2018-07-23 23:40:22 +02:00
m4
mysqlc
nlpsolver
o3tl
odk Fix typos 2018-07-23 23:38:57 +02:00
offapi Fix typos 2018-07-23 23:40:07 +02:00
officecfg tdf#118402 Add ellipsis to New -> Templates 2018-07-20 13:08:37 +02:00
onlineupdate
oovbaapi
oox Fix typos 2018-07-23 23:40:07 +02:00
opencl
osx
package
postprocess Fix typos 2018-07-24 08:22:05 +02:00
pyuno
qadevOOo Fix typos 2018-07-23 23:40:07 +02:00
readlicense_oo
registry
remotebridges
reportbuilder Fix typos 2018-07-23 11:44:59 +02:00
reportdesign Fix typos 2018-07-20 12:34:10 +02:00
ridljar
sal Missing includes (--disable-pch) 2018-07-23 17:26:07 +02:00
salhelper
sax tdf#79878 perf loading docx file, pendingChars 2018-07-20 08:58:45 +02:00
sc Fix typos 2018-07-24 08:21:32 +02:00
scaddins
sccomp
schema
scp2
scripting
sd Fix typos 2018-07-23 23:38:57 +02:00
sdext Fix typos 2018-07-23 23:38:57 +02:00
setup_native Fix typos 2018-07-19 18:54:50 +02:00
sfx2 Fix typos 2018-07-23 23:39:10 +02:00
shell
slideshow
smoketest
solenv Fix typos 2018-07-23 23:38:57 +02:00
soltools
sot make some fields in StgCache private 2018-07-23 13:28:10 +02:00
starmath tdf#118681 make sure we're using the right font char map 2018-07-16 18:22:39 +02:00
stoc
store
svgio crashtesting: infinite recurse with moz455984-5.svg 2018-07-23 22:17:40 +02:00
svl Fix typos 2018-07-24 08:22:05 +02:00
svtools Fix typos of commit 26f1fc7 2018-07-23 16:31:57 +02:00
svx Fix typos 2018-07-23 23:39:34 +02:00
sw tdf#72560 ExchangeLeftRight shouldn't use DefaultParaStyle 2018-07-24 06:11:45 +02:00
swext
sysui Fix typos 2018-07-18 12:49:03 +02:00
test
testtools
toolkit Fix typos of commit 26f1fc7 2018-07-23 16:31:57 +02:00
tools Fix typos 2018-07-18 12:49:03 +02:00
translations@1ed5e59b7c
ucb Fix typos 2018-07-23 11:44:59 +02:00
ucbhelper
udkapi
uitest
UnoControls
unodevtools
unoidl
unoil
unotest
unotools
unoxml
ure
uui
vbahelper Fix typos 2018-07-23 23:40:22 +02:00
vcl Fix typos 2018-07-24 08:22:05 +02:00
winaccessibility
wizards Access2Base - tdf#118767 Fix DLookup for Firebird 2018-07-19 19:02:30 +02:00
writerfilter tdf#72560 writerfilter: StyleProperty - also check DocDefaults 2018-07-24 06:09:20 +02:00
writerperfect
xmerge Fix typos 2018-07-22 02:03:13 +02:00
xmlhelp
xmloff Fix typos 2018-07-23 11:44:59 +02:00
xmlreader
xmlscript loplugin:unusedfields,can-be-const in xmlscript 2018-07-24 08:32:37 +02:00
xmlsecurity Fix typos 2018-07-23 11:44:59 +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 Fix typos 2018-07-24 08:22:05 +02:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst pdfium: update to 3471 2018-07-18 09:13:06 +02:00
g
install-sh
leak-suppress.txt
Library_merged.mk
lo.xcent.in
logerrit
Makefile.fetch
Makefile.gbuild
Makefile.in
README.cross
README.md
README.Solaris
Repository.mk drop reference to removed chart2_opengl_shader 2018-07-17 09:30:54 +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 2017
  • 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.4 (only support for newer i devices == 64 bit)
    • Build: Xcode 9.3 and iPhone SDK 11.4

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:

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.

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.