Test repository to check push and ssh key
Find a file
Stephan Bergmann ba2166ab40 Typo in error message
Change-Id: Ia56a47b46989027588afc291bf8f82299903cdaa
2018-03-16 16:18:45 +01:00
.git-hooks
accessibility accessibility: simplify getSelection when possible 2018-03-13 10:00:59 +01:00
android tdf#96796 - Added clipboard actions for the Android Viewer 2018-03-15 00:28:31 +01:00
animations
apple_remote
avmedia
basctl use more TypedWhichId in sfxsids 2018-03-16 08:25:02 +01:00
basegfx
basic change recursive ImageURL prop. search to use XGraphic 2018-03-15 04:11:02 +01:00
bean
bin
binaryurp
bridges iOS, added description of __cxa_throw 2018-03-16 09:21:50 +01:00
canvas loplugin:unusedmethods 2018-03-14 13:21:49 +01:00
chart2 chart2 lok: tunnel context menu of the chart edit view 2018-03-16 13:41:06 +01:00
cli_ure
codemaker
comphelper
compilerplugins loplugin:unusedmethods 2018-03-15 07:30:34 +01:00
config_host
configmgr
connectivity loplugin:redundantfcast look for redundant copies in return statements 2018-03-12 07:37:24 +01:00
cppcanvas loplugin:unusedmethods 2018-03-14 13:21:49 +01:00
cppu
cppuhelper
cpputools
cui weld SvxObjectTitleDescDialog 2018-03-16 13:18:25 +01:00
dbaccess change recursive ImageURL prop. search to use XGraphic 2018-03-15 04:11:02 +01:00
desktop tdf#96796 - Added clipboard actions for the Android Viewer 2018-03-15 00:28:31 +01:00
dictionaries@3bc3ffdb0b Updated core 2018-03-14 11:42:08 +01:00
distro-configs --without-lxml for Flatpak builds 2018-03-15 14:31:53 +01:00
drawinglayer tdf#115297: 1bit images displaying fixed (again) 2018-03-14 11:13:52 +01:00
dtrans Use for-range loops in drawinglayer and dtrans 2018-03-11 00:15:19 +01:00
editeng Fix typos 2018-03-16 08:54:55 +01:00
embeddedobj
embedserv
emfio move emf code to vcl 2018-03-15 11:08:58 +01:00
eventattacher
extensions filedialog: use isGraphicObjectUniqueIdURL instead of constant 2018-03-15 23:16:15 +01:00
external
extras weld color picker 2018-03-11 21:34:45 +01:00
filter Modernize a bit filter (part2) 2018-03-16 07:05:11 +01:00
forms forms: Don't create a GraphicObject URL if we have xGraphic anyway 2018-03-15 23:15:40 +01:00
formula
fpicker
framework simplify ImageList::GetAsHorizontalStrip 2018-03-16 15:15:15 +01:00
helpcompiler
helpcontent2@dd03b7ecde Updated core 2018-03-15 13:57:35 +01:00
hwpfilter
i18nlangtag
i18npool tdf#116072 Add PrefixLetter ")" in Hungarian word breaking 2018-03-15 17:05:22 +01:00
i18nutil loplugin:redundantfcast look for redundant copies in return statements 2018-03-12 07:37:24 +01:00
icon-themes Colibre Icons: add CellBorder icons for Calc sidebar 2018-03-14 23:57:42 +01:00
idl SDI: don't #define/#undef names of actual classes for slot headers 2018-03-13 14:14:12 +01:00
idlc
include weld SvxObjectTitleDescDialog 2018-03-16 13:18:25 +01:00
instsetoo_native
io
ios iOS, solved corrupted stack in cpp -> uno 2018-03-15 13:28:25 +01:00
javaunohelper
jurt
jvmaccess
jvmfwk
l10ntools
librelogo
libreofficekit move Bitmap::ScopedWriteAccess inside vcl 2018-03-15 12:37:35 +01:00
lingucomponent
linguistic loplugin:redundantfcast 2018-03-12 09:01:18 +01:00
lotuswordpro cppcheck: useInitializationList 2018-03-14 07:23:10 +01:00
m4
mysqlc loplugin:unusedmethods 2018-03-12 07:36:37 +01:00
nlpsolver
o3tl
odk Change ODK example to use Graphic property instead of GraphicURL 2018-03-13 00:35:32 +01:00
offapi add comments to XGraphicStorageHandler.idl 2018-03-15 02:44:12 +01:00
officecfg tdf#116342 Allow selecting text boxes anywhere by default 2018-03-14 20:04:54 +01:00
onlineupdate
oovbaapi
oox tdf#104792 Double check for target shape 2018-03-14 15:18:56 +01:00
opencl
osx
package tdf#116351: fix re-use of AttributeList on PGP manifest 2018-03-14 00:19:38 +01:00
postprocess Move (and rename) graphic stuff from svtools to vcl 2018-03-11 13:37:21 +01:00
pyuno loplugin:redundantfcast look for redundant copies in return statements 2018-03-12 07:37:24 +01:00
qadevOOo
readlicense_oo update credits 2018-03-13 13:47:29 +01:00
registry
remotebridges
reportbuilder
reportdesign use more TypedWhichId in sfxsids 2018-03-16 08:25:02 +01:00
ridljar
sal
salhelper
sax crashtesting: asserts on legal xml names on export 2018-03-16 00:23:59 +01:00
sc weld SvxObjectTitleDescDialog 2018-03-16 13:18:25 +01:00
scaddins
sccomp
schema
scp2
scripting
sd weld SvxObjectTitleDescDialog 2018-03-16 13:18:25 +01:00
sdext Moving XSAXDocumentBuilder2 to use XFastDocumentHandler: 2018-03-14 14:12:08 +01:00
setup_native
sfx2 use more TypedWhichId in sfxsids 2018-03-16 08:25:02 +01:00
shell
slideshow Move (and rename) graphic stuff from svtools to vcl 2018-03-11 13:37:21 +01:00
smoketest
solenv sdk/lib dir missing from Linux installation sets 2018-03-16 14:21:01 +01:00
soltools
sot
starmath use more TypedWhichId in sfxsids 2018-03-16 08:25:02 +01:00
stoc loplugin:redundantfcast 2018-03-12 09:48:19 +01:00
store
svgio loplugin:redundantfcast look for redundant copies in return statements 2018-03-12 07:37:24 +01:00
svl
svtools tdf#116334: Actually when there is no handler, we have to return 'true'. 2018-03-13 16:28:40 +01:00
svx don't bother dithering for 256bit displays 2018-03-16 12:07:32 +01:00
sw ofz#6950 Integer-overflow 2018-03-16 15:47:21 +01:00
swext
sysui
test
testtools
toolkit move framework/toolkit use of BitmapEx::GetMask inside vcl 2018-03-16 11:45:19 +01:00
tools loplugin:constantparam 2018-03-14 14:30:35 +01:00
translations@db79c92222
ucb loplugin:redundantfcast 2018-03-12 10:12:49 +01:00
ucbhelper loplugin:redundantfcast look for redundant copies in return statements 2018-03-12 07:37:24 +01:00
udkapi
uitest
UnoControls Sorry, could not resist: Drive-by cosmetic changes 2018-03-13 08:07:07 +01:00
unodevtools Fix typos 2018-03-15 20:09:53 +01:00
unoidl Typo in error message 2018-03-16 16:18:45 +01:00
unoil
unotest
unotools tdf#114751 Update the default UI fonts for Japanese locale 2018-03-14 09:37:44 +01:00
unoxml Moving XSAXDocumentBuilder2 to use XFastDocumentHandler: 2018-03-14 14:12:08 +01:00
ure
uui loplugin:redundantfcast look for redundant copies in return statements 2018-03-12 07:37:24 +01:00
vbahelper loplugin:redundantfcast look for redundant copies in return statements 2018-03-12 07:37:24 +01:00
vcl weld SvxObjectTitleDescDialog 2018-03-16 13:18:25 +01:00
winaccessibility winaccessibility: GraphicURL is not set anymore 2018-03-13 08:30:59 +01:00
wizards
writerfilter tdf#113182: DOCX filter: new values of wrap property in text box 2018-03-16 15:40:45 +01:00
writerperfect
xmerge
xmlhelp loplugin:redundantfcast look for redundant copies in return statements 2018-03-12 07:37:24 +01:00
xmloff Fix typos 2018-03-15 20:09:53 +01:00
xmlreader
xmlscript xmlscript: change import/export to not use GraphicObject URL 2018-03-15 02:50:31 +01:00
xmlsecurity loplugin:redundantfcast look for redundant copies in return statements 2018-03-12 07:37:24 +01: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 --without-lxml for Flatpak builds 2018-03-15 14:31:53 +01:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst
g Revert "g: ignore submodule changes" 2018-03-12 20:38:49 +01:00
install-sh
leak-suppress.txt
Library_merged.mk
lo.xcent.in
logerrit
Makefile.fetch
Makefile.gbuild
Makefile.in Allow use of "git worktree" in Makefile.in 2018-03-11 12:30:05 +01:00
README.cross
README.md
README.Solaris
Repository.mk
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 2015 Update 3
  • 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.2 (only support for newer i devices == 64 bit)
    • Build: Xcode 9.0 and iPhone SDK 11.2

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.