Test repository to check push and ssh key
Find a file
Tor Lillqvist c9d8ee0b42 Skip Executable_canvasdemo unless DESKTOP
For example, we don't build the vclmain library for non-DESKTOP.

Change-Id: I01a1bcd6387e86c60e5543fcb8009fd1df914a20
2018-12-21 00:16:24 +02:00
.git-hooks
accessibility
android
animations
apple_remote
avmedia tdf#42949 Fix IWYU warnings in include/vcl/[t-u]* 2018-12-20 12:36:41 +01:00
basctl tdf#42949 Fix IWYU warnings in include/vcl/[t-u]* 2018-12-20 12:36:41 +01:00
basegfx
basic
bean
bin Refactor bin/run 2018-12-19 08:02:27 +01:00
binaryurp
bridges Fix typo 2018-12-20 07:06:52 +01:00
canvas Skip Executable_canvasdemo unless DESKTOP 2018-12-21 00:16:24 +02:00
chart2 Removed executable permission on data file 2018-12-19 08:48:06 +01:00
cli_ure
codemaker
comphelper
compilerplugins
config_host kde5: remove older kde/tde plugins, and references to that 2018-12-17 18:33:13 +01:00
configmgr
connectivity use unique_ptr in connectivity 2018-12-19 12:31:19 +01:00
cppcanvas
cppu
cppuhelper kde5: remove older kde/tde plugins, and references to that 2018-12-17 18:33:13 +01:00
cpputools
cui tdf#120562 , Selection of favorite character is not applied. 2018-12-20 16:42:48 +01:00
dbaccess tdf#42949 Fix IWYU warnings in include/vcl/[t-u]* 2018-12-20 12:36:41 +01:00
desktop missing test dependencies 2018-12-20 12:18:01 +01:00
dictionaries@37f536403a Update git submodules 2018-12-16 18:40:37 +01:00
distro-configs Enable --help=html for flatpak 2018-12-20 12:17:19 +01:00
drawinglayer
dtrans
editeng
embeddedobj
embedserv
emfio
eventattacher
extensions tdf#42949 Fix IWYU warnings in include/vcl/[t-u]* 2018-12-20 12:36:41 +01:00
external forcepoint#77 null-deref 2018-12-19 09:54:19 +01:00
extras weld SwTOXEntryTabPage 2018-12-20 09:51:15 +01:00
filter Resolves: tdf#122219 base form writer-window doesn't honour CloseVeto properly 2018-12-20 22:12:49 +01:00
forms tdf#122152 set dialog parent 2018-12-17 22:06:35 +01:00
formula
fpicker Resolve deprecated implicit capture of *this by reference in C++20 2018-12-17 14:44:14 +01:00
framework tdf#42949 Fix IWYU warnings in include/vcl/[t-u]* 2018-12-20 12:36:41 +01:00
helpcompiler
helpcontent2@50e18a0776 Update git submodules 2018-12-20 15:34:42 +01:00
hwpfilter -Werror=class-memaccess (trunk towards GCC 9) 2018-12-19 08:36:15 +01:00
i18nlangtag
i18npool Fix typo in code 2018-12-20 08:49:50 +01:00
i18nutil Fix typo in code 2018-12-20 08:49:50 +01:00
icon-themes KJ: Fix typos 2018-12-18 16:37:53 +01:00
idl
idlc
include tdf#42949 Fix IWYU warnings in include/vcl/[t-u]* 2018-12-20 12:36:41 +01:00
instsetoo_native tdf#122134: use CurrentMajorVersionNumber to filter out Windows 10 2018-12-17 05:22:36 +01:00
io use unique_ptr in io 2018-12-19 07:04:51 +01:00
ios
javaunohelper
jurt
jvmaccess
jvmfwk
l10ntools
librelogo
libreofficekit
lingucomponent
linguistic
lotuswordpro Fix typo 2018-12-18 07:04:15 +01:00
m4
nlpsolver
o3tl Fix o3tl::string_view streaming operator << 2018-12-16 17:14:33 +01:00
odk
offapi tdf#122152 set dialog parent 2018-12-17 22:06:35 +01:00
officecfg Related: tdf#103884 remove dangling menubar command 2018-12-18 17:03:56 +01:00
onlineupdate
oovbaapi
oox sd: support for saving into .potx file 2018-12-20 19:26:21 +01:00
opencl
osx
package
postprocess kde5: remove older kde/tde plugins, and references to that 2018-12-17 18:33:13 +01:00
pyuno
qadevOOo tdf#45904 Move XTableRows Java tests to C++ 2018-12-19 18:45:45 +01:00
readlicense_oo
registry
remotebridges
reportbuilder
reportdesign tdf#42949 Fix IWYU warnings in include/vcl/[t-u]* 2018-12-20 12:36:41 +01:00
ridljar
sal tdf#98343 follow-up: don't fail on UNC prefixes 2018-12-15 16:30:08 +01:00
salhelper
sax
sc Resolves: tdf#114695 limit width of this combo 2018-12-20 22:13:16 +01:00
scaddins Simplify containers iterations in scaddins, sccomp, scripting 2018-12-20 08:15:54 +01:00
sccomp Simplify containers iterations in scaddins, sccomp, scripting 2018-12-20 08:15:54 +01:00
schema
scp2 kde5: remove older kde/tde plugins, and references to that 2018-12-17 18:33:13 +01:00
scripting Restore original behavior of MasterScriptProvider::hasByName 2018-12-20 09:12:36 +01:00
sd sd: support for saving into .potx file 2018-12-20 19:26:21 +01:00
sdext
setup_native tdf#121987 follow-up: never fail MSU install; warn instead. 2018-12-16 15:10:47 +01:00
sfx2 Silence -Werror=shadow 2018-12-20 17:17:25 +01:00
shell kde5: remove older kde/tde plugins, and references to that 2018-12-17 18:33:13 +01:00
slideshow
smoketest
solenv Enable --help=html for flatpak 2018-12-20 12:17:19 +01:00
soltools
sot
starmath starmath: create SmFilterDetect instances with an uno constructor 2018-12-20 08:56:44 +01:00
stoc
store
svgio
svl tdf#120750: Revert "tdf#96248 delete SfxPoolItems with Which Id >= 4000" 2018-12-14 12:44:30 +01:00
svtools tdf#42949 Fix IWYU warnings in include/vcl/[t-u]* 2018-12-20 12:36:41 +01:00
svx tdf#119180 Use 100th_mm in UNO API implementation 2018-12-20 20:25:28 +01:00
sw tdf#122217: Don't allow to change readonly content with Alt+X 2018-12-20 20:46:09 +01:00
swext
sysui kde5: remove older kde/tde plugins, and references to that 2018-12-17 18:33:13 +01:00
test tdf#45904 Move XTableRows Java tests to C++ 2018-12-19 18:45:45 +01:00
testtools
toolkit
tools
translations@46a65ed743 Update git submodules 2018-12-19 18:09:48 +01:00
ucb use unique_ptr in ucb 2018-12-20 12:35:50 +01:00
ucbhelper
udkapi
uitest
UnoControls
unodevtools
unoidl
unoil
unotest
unotools
unoxml
ure
uui tdf#119217 Deleting of unnecessary empty space in Document in use dialog 2018-12-16 17:10:13 +01:00
vbahelper
vcl Add follow-up comment with guess why it must be 96 2018-12-21 00:08:13 +02:00
winaccessibility
wizards
writerfilter sw: DOCX: allow editing of unprotected areas in protected doc 2018-12-20 15:16:34 +01:00
writerperfect
xmerge
xmlhelp
xmloff use unique_ptr in xmloff 2018-12-20 09:37:03 +01:00
xmlreader
xmlscript
xmlsecurity tdf#42949 Fix IWYU warnings in include/vcl/[t-u]* 2018-12-20 12:36:41 +01:00
.buckconfig
.buckversion
.clang-format
.editorconfig
.gitattributes
.gitignore No more need to generate lo.xcent from lo.xcent.in 2018-12-18 09:37:00 +01:00
.gitmodules uset https:// instead of git:// for submodules 2018-12-20 19:52:51 +01:00
.gitreview
autogen.sh
BUCK
config.guess
config.sub
config_host.mk.in kde5: remove older kde/tde plugins, and references to that 2018-12-17 18:33:13 +01:00
config_host_lang.mk.in
configure.ac No more need to generate lo.xcent from lo.xcent.in 2018-12-18 09:37:00 +01:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst Resolves: tdf#121676 - Update Liberation fonts from new source 2018-12-18 01:40:02 +01:00
g
install-sh
leak-suppress.txt
Library_merged.mk
lo.xcent No more need to generate lo.xcent from lo.xcent.in 2018-12-18 09:37:00 +01:00
logerrit
Makefile.fetch
Makefile.gbuild
Makefile.in No more need to generate lo.xcent from lo.xcent.in 2018-12-18 09:37:00 +01:00
README.cross
README.md
README.Solaris
Repository.mk Convert canvasdemo to gbuild 2018-12-20 14:13:23 +01:00
RepositoryExternal.mk kde5: remove older kde/tde plugins, and references to that 2018-12-17 18:33:13 +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

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 6 or CentOS 6
    • 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.