Test repository to check push and ssh key
Find a file
Michael Stahl 634844354e sysui: fix rpm errors in freedesktop-menus (4.14.1)
RPM build errors:
    Explicit %attr() mode not applicable to symlink: /workdir/CustomTarget/sysui/rpm/libreofficedev/freedesktop/usr/bin/libreofficedev6.1
    Installed (but unpackaged) file(s) found:
   /usr/local/lib/girepository-1.0/LOKDocView-0.1.typelib
   /usr/share/gir-1.0/LOKDocView-0.1.gir

The LOKDocView problem turned out to be the result of the first
incremental build after adding --with-package-format, and previously it
was avoided with a if in configure; moving the commands out of
create_tree.sh should be more obvious and reliable though.

Change-Id: I69c1566e26eeaa1d8bf88a3650a78da6ddfb5a3b
Reviewed-on: https://gerrit.libreoffice.org/76596
Tested-by: Jenkins
Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
2019-07-31 12:40:51 +02:00
.git-hooks
accessibility cid#1448398 Dereference before null check 2019-07-23 09:33:28 +02:00
android
animations
apple_remote
avmedia avmedia: Drop 'wrap_*' functions 2019-07-22 17:40:50 +02:00
basctl cid#1292911 Big parameter passed by value 2019-07-26 16:58:32 +02:00
basegfx loplugin:oncevar 2019-07-28 16:51:51 +02:00
basic loplugin:collapseif 2019-07-28 16:52:06 +02:00
bean
bin find-unneeded-includes: warn first time user nicely about missing file 2019-07-29 09:10:00 +02:00
binaryurp
bridges
canvas tdf#74702: vcl add OutputDevice::Flush() to remove GetOutDevType() 2019-07-27 15:23:30 +02:00
chart2 tdf#126524 Use shorter default name for unnamed data series 2019-07-30 16:48:06 +02:00
cli_ure Fix typos 2019-07-29 10:08:01 +02:00
codemaker
comphelper Don't draw gridlines and document background in Online server process 2019-07-23 15:54:48 +02:00
compilerplugins remove newly unused SvxCheckListBox 2019-07-30 21:14:11 +02:00
config_host tdf#125922 rename kde5 to kf5 + plasma5 2019-07-21 23:22:46 +02:00
configmgr
connectivity mysqlc: Support reading blob as string 2019-07-31 10:53:18 +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 loplugin:sequentialassign 2019-07-29 08:53:23 +02:00
cpputools
cui weld OfaMSFilterTabPage2 2019-07-31 12:15:32 +02:00
dbaccess tdf#121599, tdf#123099: ignore migration dialog when 2019-07-31 03:49:17 +02:00
desktop sfx2: Enable sidebar on calc and writer, but not in impress 2019-07-30 18:52:48 +02:00
dictionaries@86b4b5bfbf
distro-configs tdf#125922 rename kde5 to kf5 + plasma5 2019-07-21 23:22:46 +02:00
drawinglayer Be careful not to add empty rect representation to contour polypolygon 2019-07-26 08:40:38 +02:00
dtrans Fix typo 2019-07-30 07:57:06 +02:00
editeng Removed duplicated include 2019-07-30 23:47:18 +02:00
embeddedobj loplugin:referencecasting in embeddedobj 2019-07-19 21:49:20 +02:00
embedserv
emfio
eventattacher
extensions Fix typos 2019-07-30 08:52:21 +02:00
external
extras weld SwCompatibilityOptPage 2019-07-30 21:13:56 +02:00
filter Fix typos 2019-07-25 21:30:50 +02:00
forms loplugin:referencecasting in forms..fpicker 2019-07-19 18:29:34 +02:00
formula
fpicker loplugin:referencecasting in forms..fpicker 2019-07-19 18:29:34 +02:00
framework loplugin:sequentialassign 2019-07-29 08:53:23 +02:00
helpcompiler cid#1448495 Unchecked return value 2019-07-19 09:43:02 +02:00
helpcontent2@276be19271 Update git submodules 2019-07-29 16:59:00 +02:00
hwpfilter
i18nlangtag
i18npool Avoid out-of-bounds string access 2019-07-31 09:18:23 +02:00
i18nutil
icon-themes Add Redaction toolbar icons from colibre to tango 2019-07-25 11:51:27 +02:00
idl
idlc cid#1448213 Assignment of overlapping memory 2019-07-24 17:44:29 +02:00
include remove newly unused SvxCheckListBox 2019-07-30 21:14:11 +02:00
instsetoo_native
io Fix typos 2019-07-27 11:49:10 +02:00
ios
javaunohelper Fix typos 2019-07-27 11:49:10 +02:00
jurt
jvmaccess
jvmfwk Avoid memcpy nonnull issue 2019-07-29 10:21:45 +02:00
l10ntools Fix typos 2019-07-29 10:09:50 +02:00
librelogo
libreofficekit lok: send cell selection rectangle and cell area fill rectangle 2019-07-28 12:35:39 +02:00
lingucomponent loplugin:sequentialassign 2019-07-29 08:53:23 +02:00
linguistic loplugin:referencecasting in linguistic 2019-07-20 07:55:53 +02:00
lotuswordpro Fix typos 2019-07-29 10:09:50 +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 tdf#114166 DOCX chart import: fix missing complex categories 2019-07-24 14:04:06 +02:00
opencl Fix typos 2019-07-23 22:19:26 +02:00
osx
package Fix typo 2019-07-26 16:00:12 +02:00
postprocess tdf#125922 rename kde5 to kf5 + plasma5 2019-07-21 23:22:46 +02:00
pyuno Fix typo in code 2019-07-26 08:36:46 +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
reportbuilder Fix typos 2019-07-25 07:07:25 +02:00
reportdesign dispose() methods should clear their smart pointers 2019-07-23 06:46:13 +02:00
ridljar Fix typos 2019-07-26 18:50:35 +02:00
sal Fix typos 2019-07-30 08:52:21 +02:00
salhelper
sax cid#1448394 try silence unsafe_xml_parse_config 2019-07-26 12:38:07 +02:00
sc tdf#125800: accessing cond format props in UNO throws error 2019-07-30 18:03:33 +02:00
scaddins Simplify Sequence iterations in scaddins, sccomp, scripting 2019-07-30 11:16:00 +02:00
sccomp Simplify Sequence iterations in scaddins, sccomp, scripting 2019-07-30 11:16:00 +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 Simplify Sequence iterations in scaddins, sccomp, scripting 2019-07-30 11:16:00 +02:00
sd tdf#126511 Show only icon names instead of full path. 2019-07-31 10:54:46 +02:00
sdext Simplify Sequence iterations in sdext 2019-07-29 18:44:51 +02:00
setup_native setup_native: document more obscure epmfile.pm input 2019-07-29 17:14:48 +02:00
sfx2 tdf#126508 Fix crash when changing icon style 2019-07-31 07:12:13 +02:00
shell tdf#126597 don't use modeless dialog for senddoc.exe 2019-07-30 16:15:16 +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 Simplify Sequence iterations in shell..svgio 2019-07-22 18:42:35 +02:00
starmath tdf#74702: vcl add OutputDevice::Flush() to remove GetOutDevType() 2019-07-27 15:23:30 +02:00
stoc Simplify Sequence iterations in shell..svgio 2019-07-22 18:42:35 +02:00
store
svgio Simplify Sequence iterations in shell..svgio 2019-07-22 18:42:35 +02:00
svl loplugin:collapseif 2019-07-28 16:52:06 +02:00
svtools cid#1448414 silence Explicit null dereferenced 2019-07-26 17:24:11 +02:00
svx remove newly unused SvxCheckListBox 2019-07-30 21:14:11 +02:00
sw Avoid -fsanitize=float-cast-overflow 2019-07-31 09:17:41 +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 Fix typo in code 2019-07-30 23:04:38 +02:00
toolkit loplugin:referencecasting in test..toolkit 2019-07-21 08:49:13 +02:00
tools
translations@a6f6a9d0e6
ucb Fix typos 2019-07-29 10:08:01 +02:00
ucbhelper
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 loplugin:referencecasting in various 2019-07-21 16:04:20 +02:00
unodevtools
unoidl cid#1448388 Assignment of overlapping memory 2019-07-26 13:26:01 +02:00
unoil
unotest loplugin:referencecasting in unotools..uui 2019-07-21 08:49:56 +02:00
unotools Fix typos 2019-07-29 11:15:42 +02:00
unoxml unordf: oops, and we forgot to amend with <= instead of < 2019-07-30 16:25:18 +02:00
ure
uui loplugin:referencecasting in unotools..uui 2019-07-21 08:49:56 +02:00
vbahelper Fix typos 2019-07-29 11:15:42 +02:00
vcl Revert header guard 2019-07-31 09:21:44 +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 writerfilter: merge indentical branches in switch 2019-07-31 11:19:39 +02:00
writerperfect Always pair openTable/closeTable calls 2019-07-31 09:18:54 +02:00
xmerge Fix typos 2019-07-24 23:34:49 +02:00
xmlhelp loplugin:oncevar 2019-07-28 16:51:51 +02:00
xmloff Fix typos 2019-07-26 18:50:35 +02:00
xmlreader
xmlscript loplugin:sequentialassign 2019-07-29 08:53:23 +02:00
xmlsecurity Fix typos 2019-07-25 07:07:25 +02:00
.buckconfig
.buckversion
.clang-format
.editorconfig
.gitattributes
.gitignore
.gitmodules
.gitreview
autogen.sh
BUCK
config.guess
config.sub
config_host.mk.in tdf#125922 rename kde5 to kf5 + plasma5 2019-07-21 23:22:46 +02:00
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 tdf#125922 rename kde5 to kf5 + plasma5 2019-07-21 23:22:46 +02:00
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.