Test repository to check push and ssh key
Find a file
Caolán McNamara 860b2d0123 update pches
Change-Id: Ic4586057346b6de700c1bb6ff4cd759a11bb3e4d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111231
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-02-19 20:42:34 +01:00
.git-hooks replace stock button images 2021-01-15 17:37:36 +01:00
.github add .github/lockdown.yml to auto-close issues/pull-requests 2021-01-27 11:20:04 +01:00
.vscode vscode: make it work better when srcdir=buildir and add mac lldb config 2021-02-13 13:13:35 +01:00
accessibility update pches 2021-02-19 20:42:34 +01:00
android Fixed few grammar mistakes 2021-01-09 10:20:29 +01:00
animations PPTX filter: fix lost is-narration property for slide narrations 2021-01-27 18:04:44 +01:00
apple_remote tdf#123936 Formatting files in module apple_remote with clang-format 2020-11-16 12:29:44 +01:00
avmedia loplugin:referencecasting (macOS) 2021-02-18 19:01:33 +01:00
basctl update pches 2021-02-19 20:42:34 +01:00
basegfx update pches 2021-02-08 12:11:17 +01:00
basic tdf#130677 Write new tests for literals 2021-02-17 15:34:22 +01:00
bean tdf#96505 : Get rid of cargo cult long integer literals 2021-01-05 08:36:28 +01:00
bin qtcreator: Show actual names for build configurations 2021-02-07 19:53:11 +01:00
binaryurp loplugin:referencecasting in basctl..binaryurp 2021-02-16 08:57:02 +01:00
bridges Remove unneeded breaks 2021-02-10 08:52:11 +01:00
canvas loplugin:referencecasting in canvas 2021-02-17 07:45:37 +01:00
chart2 update pches 2021-02-19 20:42:34 +01:00
cli_ure tdf#96505 Get rid of cargo cult 'long' integer literals 2021-01-27 12:35:39 +01:00
codemaker fix fuzzer build 2021-02-12 21:21:09 +01:00
comphelper loplugin:referencecasting in comphelper 2021-02-17 07:45:18 +01:00
compilerplugins compilerplugins: fix referencecasting for clang 7.0.1 2021-02-19 11:20:53 +01:00
config_host add --disable-librelogo to disable LibreLogo at build time 2021-01-19 13:55:08 +01:00
configmgr loplugin:referencecasting in configmgr 2021-02-17 09:13:20 +01:00
connectivity update pches 2021-02-19 20:42:34 +01:00
cppcanvas update pches 2021-02-19 20:42:34 +01:00
cppu sal_Unicode is always char16_t in LIBO_INTERNAL_ONLY code now 2021-02-08 15:59:10 +01:00
cppuhelper update pches 2021-02-19 20:42:34 +01:00
cpputools Adapt the remaining OUString functions to std string_view 2020-12-11 21:25:10 +01:00
cui update pches 2021-02-19 20:42:34 +01:00
dbaccess update pches 2021-02-19 20:42:34 +01:00
desktop update pches 2021-02-19 20:42:34 +01:00
dictionaries@a968e48f9b Update git submodules 2021-01-27 11:23:47 +01:00
distro-configs Remove vlc part since experimental since 5 years 2020-12-25 14:18:24 +01:00
drawinglayer update pches 2021-02-19 20:42:34 +01:00
editeng update pches 2021-02-19 20:42:34 +01:00
embeddedobj loplugin:referencecasting in editeng..framework 2021-02-16 07:52:37 +01:00
embedserv loplugin:fakebool (clang-cl) 2021-02-09 19:41:51 +01:00
emfio update pches 2021-02-19 20:42:34 +01:00
eventattacher tdf#42949 Fix new IWYU warnings in directories [e-f]* 2020-11-12 10:53:07 +01:00
extensions foward declare NotebookBarAddonsItem instead of using include 2021-02-19 18:11:36 +01:00
external tdf#140234: Fix xmlsec on Windows 7 2021-02-15 10:18:19 +01:00
extras Add Japanese label makers data 2021-02-19 15:46:25 +01:00
filter Move GIF writer from filter module into VCL 2021-02-18 04:12:27 +01:00
forms loplugin:referencecasting in editeng..framework 2021-02-16 07:52:37 +01:00
formula move async focus-in/focus-out workaround to known client that needs it 2021-02-18 21:04:32 +01:00
fpicker loplugin:referencecasting in editeng..framework 2021-02-16 07:52:37 +01:00
framework update pches 2021-02-19 20:42:34 +01:00
helpcompiler Use GetShortPathNameW workaround on Windows for help indexer 2021-01-02 07:25:45 +01:00
helpcontent2@9b39373c05 Update git submodules 2021-02-19 18:44:04 +01:00
hwpfilter loplugin:referencecasting in hwpfilter..lotuswordpro 2021-02-16 07:52:11 +01:00
i18nlangtag Resolves: tdf#138839 Add Cabécar {cjp-CR} 0x06AA, Bribri {bzd-CR} 0x06AB 2021-02-13 00:05:47 +01:00
i18npool tdf#42982 Add descriptions to some runtime exceptions 2021-02-12 14:01:45 +01:00
i18nutil add string_view variants of methods to O[U]StringBuffer 2021-01-28 11:11:28 +01:00
icon-themes update Find & Replace icons & Show Drawing icon 2021-02-17 00:33:21 +01:00
idl -Werror,-Wformat in idl with Raspberry pi 4b 2021-02-14 09:42:44 +01:00
idlc -Wdeprecated-copy-dtor 2021-01-14 08:42:49 +01:00
include move FixedText into toolkit-only headers 2021-02-19 20:41:48 +01:00
instsetoo_native packaging: remove resolve_variables_in_downloadname 2021-01-27 18:59:17 +01:00
io loplugin:referencecasting add check for new rtl::Reference operator 2021-02-18 13:45:03 +01:00
ios Retire the bit-rotting LibreOfficeLight iOS app 2020-12-21 23:55:09 +01:00
javaunohelper Fix some warnings for Raspberry pi 4 (part5) 2021-01-10 12:35:13 +01:00
jurt Avoid macro redefinition warnings in sanitizer builds 2021-02-08 20:57:10 +01:00
jvmaccess tdf#123936 Formatting files in module jvmaccess with clang-format 2020-11-13 08:20:01 +01:00
jvmfwk loplugin:stringviewparam extend to new.. 2021-01-29 09:25:12 +01:00
l10ntools HelpParser::ProcessHelp: Tidy Null checks 2021-01-30 08:12:47 +01:00
librelogo Fix typos 2020-11-02 20:42:17 +01:00
libreofficekit tdf#138848 add truncate-multiline to all GtkEntries and GtkSpinButtons 2021-01-15 10:10:14 +01:00
lingucomponent Use Unicode paths on Windows in libnumbertext 2021-01-01 17:29:42 +01:00
linguistic loplugin:referencecasting in hwpfilter..lotuswordpro 2021-02-16 07:52:11 +01:00
lotuswordpro loplugin:referencecasting in hwpfilter..lotuswordpro 2021-02-16 07:52:11 +01:00
m4 Remove odd comment about MINGWSTRIP from m4/README 2020-12-02 18:25:57 +01:00
nlpsolver
o3tl Fix copy-paste leftover 2021-02-14 14:11:58 +01:00
odk Drop FAR/NEAR from 16-bit WinAPI times 2021-02-01 07:47:11 +01:00
offapi tdf#94235 Add support for series name in data series labels 2021-02-08 07:52:27 +01:00
officecfg Starmath now allows multiple parsers 2021-02-19 15:01:16 +01:00
onlineupdate Replace more deprecated gtk_hbox_new/gtk_vbox_new with gtk_box_new 2020-12-21 09:42:50 +01:00
oovbaapi
oox update pches 2021-02-19 20:42:34 +01:00
opencl Update OpenCL denylist and allowlist 2021-02-11 10:02:21 +01:00
osx Add more source files for breakpointing convenience 2021-01-14 12:26:49 +01:00
package loplugin:referencecasting in oox..package 2021-02-16 07:52:03 +01:00
pch
postprocess restore com.sun.star.mozilla.MozillaBootstrap 2021-02-05 10:11:28 +01:00
pyuno tdf#138987 Python 3.12 preparations 2021-02-05 11:44:52 +01:00
qadevOOo Fix typo in code 2020-09-26 12:50:19 +02:00
readlicense_oo update credits 2021-01-27 19:48:12 +01:00
registry loplugin:stringviewparam extend to new.. 2021-01-29 09:25:12 +01:00
remotebridges
reportbuilder
reportdesign update pches 2021-02-19 20:42:34 +01:00
ridljar Adapt buck build to jars merged into libreoffice.jar 2020-11-30 11:27:47 +01:00
sal tdf#137208 Assume that dladdr provides an absolute pathname 2021-02-16 22:16:04 +01:00
salhelper tdf#123936 Formatting files in module salhelper with clang-format 2020-11-19 19:24:26 +01:00
sax loplugin:referencecasting in sax 2021-02-18 08:16:49 +01:00
sc update pches 2021-02-19 20:42:34 +01:00
scaddins Resolves: tdf#139173 One-off error in limits for DEC2HEX() 2021-01-06 17:37:40 +01:00
sccomp loplugin:stringviewparam: operator + 2020-12-29 16:42:33 +01:00
schema tdf#91920 sw page gutter margin: add ODF filter 2021-02-03 16:55:51 +01:00
scp2 Switch http -> https also in scp2-based version ini-file 2021-01-24 10:04:39 +01:00
scripting tdf#124176 Used pragma once instead of include guards 2021-02-06 15:38:35 +01:00
sd update pches 2021-02-19 20:42:34 +01:00
sdext loplugin:referencecasting in sdext 2021-02-18 09:13:48 +01:00
setup_native tdf#134607 mac-langpacks: always query for full name with extension 2021-02-05 15:30:26 +01:00
sfx2 update pches 2021-02-19 20:42:34 +01:00
shell Improve checkExtension 2021-02-16 11:08:33 +01:00
slideshow loplugin:referencecasting in slideshow..starmath 2021-02-16 15:00:01 +01:00
smoketest loplugin:stringviewparam: operator + 2020-12-29 16:42:33 +01:00
solenv move FixedText into toolkit-only headers 2021-02-19 20:41:48 +01:00
soltools tdf#123936 Formatting files in module soltools with clang-format 2020-11-19 14:46:26 +01:00
sot update pches 2021-02-19 20:42:34 +01:00
starmath Starmath now allows multiple parsers 2021-02-19 15:01:16 +01:00
stoc loplugin:referencecasting in stoc..svtools 2021-02-16 20:18:01 +01:00
store Replace #if with if constexpr() 2020-11-18 15:18:25 +01:00
svgio update pches 2021-02-08 12:11:17 +01:00
svl update pches 2021-02-19 20:42:34 +01:00
svtools update pches 2021-02-19 20:42:34 +01:00
svx update pches 2021-02-19 20:42:34 +01:00
sw update pches 2021-02-19 20:42:34 +01:00
swext
sysui tdf#135504: Install application metadata in /usr/share/metainfo 2020-12-23 16:21:31 +01:00
test loplugin:referencecasting in test..toolkit 2021-02-17 07:44:18 +01:00
testtools fix coverity parse errors 2021-01-09 13:01:49 +01:00
toolkit foward declare NotebookBarAddonsItem instead of using include 2021-02-19 18:11:36 +01:00
tools Improve loplugin:cppunitassertequal for CPPUNIT_ASSERT(a && b) 2021-02-08 09:15:01 +01:00
translations@71f0c6a472 Update git submodules 2021-02-17 17:20:27 +01:00
ucb loplugin:refcounting in ucb 2021-02-19 13:15:56 +01:00
ucbhelper loplugin:referencecasting add check for new rtl::Reference operator 2021-02-18 13:45:03 +01:00
udkapi
uitest uitest: sd: check embedded document is open in a new dialog 2021-02-10 19:38:49 +01:00
UnoControls loplugin:referencecasting in UnoControls..unoxml 2021-02-16 20:17:39 +01:00
unodevtools loplugin:stringviewparam: operator + 2020-12-29 16:42:33 +01:00
unoidl loplugin:referencecasting in UnoControls..unoxml 2021-02-16 20:17:39 +01:00
unoil
unotest loplugin:stringviewparam: operator + 2020-12-29 16:42:33 +01:00
unotools loplugin:referencecasting in UnoControls..unoxml 2021-02-16 20:17:39 +01:00
unoxml loplugin:refcounting in unoxml 2021-02-19 11:24:22 +01:00
ure
uui update pches 2021-02-19 20:42:34 +01:00
vbahelper loplugin:refcounting in vbahelper 2021-02-19 11:29:21 +01:00
vcl update pches 2021-02-19 20:42:34 +01:00
winaccessibility Remove unneeded breaks 2021-02-10 08:52:11 +01:00
wizards ScriptForge - (SF_String) more severe check on the date validity of IsADate() 2021-02-09 12:32:50 +01:00
writerfilter tdf#120351 DOCX import: fix slow endnote import 2021-02-18 13:30:55 +01:00
writerperfect loplugin:referencecasting in writerperfect 2021-02-18 08:17:57 +01:00
xmerge
xmlhelp loplugin:refcounting in xmlhelp 2021-02-19 08:46:22 +01:00
xmloff update pches 2021-02-19 20:42:34 +01:00
xmlreader
xmlscript update pches 2021-02-19 20:42:34 +01:00
xmlsecurity update pches 2021-02-19 20:42:34 +01:00
.buckconfig
.buckversion
.clang-format
.editorconfig
.git-blame-ignore-revs put clang-format commits to .git-blame-ignore-revs 2020-10-18 22:35:07 +02:00
.gitattributes
.gitignore Drop some dubious .gitignore entries 2020-12-30 07:43:23 +01:00
.gitmodules gitmodules: use relative paths 2020-10-21 21:51:54 +02:00
.gitpod.dockerfile
.gitpod.yml
.gitreview
antivirusDetection.vbs
autogen.sh Enable building for WSL (Linux) on WSL 2020-10-09 17:27:24 +02:00
BUCK Adapt buck build to jars merged into libreoffice.jar 2020-11-30 11:27:47 +01:00
config.guess
config.sub
config_host.mk.in More targeted suppression of bogus GCC -Werror=stringop-overflow= 2021-02-17 14:17:12 +01:00
config_host_lang.mk.in
configure.ac python3: upgrade to release 3.8.8rc1 2021-02-19 15:02:20 +01:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst python3: upgrade to release 3.8.8rc1 2021-02-19 15:02:20 +01:00
g
hardened_runtime.xcent.in Explicitly require com.apple.security.cs.allow-jit 2020-12-08 15:35:29 +01:00
install-sh
leak-suppress.txt
Library_merged.mk
lo.xcent
logerrit
Makefile.fetch Replace unowinreg.dll with execution of reg QUERY 2020-12-03 15:01:00 +01:00
Makefile.gbuild
Makefile.in Library_gie no longer exists 2021-02-18 22:20:38 +01:00
README.cross
README.md Bump MSVC baseline to Visual Studio 2019 version 16.5 2021-01-14 16:43:04 +01:00
README.Solaris
Repository.mk Move GIF writer from filter module into VCL 2021-02-18 04:12:27 +01:00
RepositoryExternal.mk tdf#140236 WIN install libffi with Python 2021-02-07 19:17:35 +01:00
RepositoryFixes.mk
RepositoryModule_build.mk Don't lock galleries build into DESKTOP 2020-12-23 01:52:11 +01:00
RepositoryModule_host.mk add --disable-librelogo to disable LibreLogo at build time 2021-01-19 13:55:08 +01:00
sanitize-ubsan-excludelist
setup.cfg
TEMPLATE.SOURCECODE.HEADER Make it clear that the text is in addition to the previous 2021-01-27 08:02:35 +01:00

LibreOffice

Coverity Scan Build Status CII Best Practices Translation status

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 2019 version 16.5
  • macOS:
    • Runtime: 10.10
    • Build: 10.14.4 + Xcode 11.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
  • Android:
    • Build: NDK r19c and SDK 22.6.2

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.