Test repository to check push and ssh key
Find a file
Caolán McNamara 6bad4f6aed cid#1509284 DMI: Dubious method invocation
Change-Id: I1fd1f710ae2a6b8ebc9506a56d522006509fc935
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139515
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-09-06 16:28:30 +02:00
.git-hooks
.github
.vscode
accessibility [API CHANGE] tdf#150683 a11y: Switch a11y child index to 64 bit 2022-09-02 15:47:37 +02:00
android android: Add scrollbars.ui into APK 2022-08-08 13:23:15 +02:00
animations Animations : no need to use the global mutex here 2022-07-17 19:29:22 +02:00
apple_remote
avmedia tdf#149971 avmedia: implement video crop support in the gsteamer backend 2022-08-26 11:48:41 +02:00
basctl [API CHANGE] tdf#150683 a11y: Switch a11y child index to 64 bit 2022-09-02 15:47:37 +02:00
basegfx reduce cost of B2DHomMatrix::isIdentity 2022-09-01 19:31:07 +02:00
basic tdf147132 basic : flaten some functions 2022-09-05 16:04:25 +02:00
bean
bin Simplify by using replace instead of replaceAt in loop in sc/compiler 2022-09-06 11:53:37 +02:00
binaryurp cid#1500596 silence Resource leak 2022-08-27 13:13:29 +02:00
bridges cid#1500671 silence Resource leak 2022-08-22 16:18:23 +02:00
canvas Move tools/diagnose_ex.h to comphelper/diagnose_ex.hxx 2022-08-18 17:10:19 +02:00
chart2 tdf#147021 Use std::size() instead of SAL_N_ELEMENTS() macro 2022-09-04 20:04:23 +02:00
cli_ure
codemaker
comphelper [API CHANGE] tdf#150683 a11y: Switch a11y child index to 64 bit 2022-09-02 15:47:37 +02:00
compilerplugins vcl: Rename LongPress event to GestureLongPress 2022-09-05 16:22:31 +02:00
config_host
configmgr Move tools/diagnose_ex.h to comphelper/diagnose_ex.hxx 2022-08-18 17:10:19 +02:00
connectivity tdf#147021 Use std::size() instead of SAL_N_ELEMENTS() macro 2022-09-04 20:04:23 +02:00
cppcanvas Move tools/diagnose_ex.h to comphelper/diagnose_ex.hxx 2022-08-18 17:10:19 +02:00
cppu Better cast to sal_[u]IntPtr when passing pointer to O[U]String::number 2022-08-10 13:40:09 +02:00
cppuhelper
cpputools clang-tidy modernize-pass-by-value in various 2022-08-13 19:11:49 +02:00
cui tdf#147021 Use std::size() instead of SAL_N_ELEMENTS() macro 2022-09-04 20:04:23 +02:00
dbaccess tdf#147021 Use std::size() instead of SAL_N_ELEMENTS() macro 2022-09-05 17:16:42 +02:00
desktop tdf#147021 Use std::size() instead of SAL_N_ELEMENTS() macro 2022-09-05 18:57:53 +02:00
dictionaries@97a0bfd2ed Update git submodules 2022-08-28 03:23:25 +02:00
distro-configs explicitly build for x86_64 in jenkins' mac-tinderbox configs 2022-08-20 01:22:37 +02:00
drawinglayer tdf#136370 Very large Shape with pattern/hatch makes scrolling slow 2022-09-02 13:22:13 +02:00
editeng Simplify by using replace instead of replaceAt in loop in editeng 2022-09-05 15:54:20 +02:00
embeddedobj Move tools/diagnose_ex.h to comphelper/diagnose_ex.hxx 2022-08-18 17:10:19 +02:00
embedserv
emfio tools: rename Rectangle::Justify() to Rectangle::Normalize() 2022-08-24 10:55:15 +02:00
eventattacher clang-tidy modernize-pass-by-value in various 2022-08-13 19:11:49 +02:00
extensions cid#1509230 Inefficient vector resizing with reserve. 2022-08-31 18:21:56 +02:00
external tdf#150749 Find and replace on very large sheet 2022-09-05 13:45:36 +02:00
extras There is no "Liberation Sans Unicode MS" font 2022-08-21 11:49:43 +02:00
filter Revert naming back to lool to fix break with LibreOffice Online 2022-09-05 10:48:13 +02:00
forms cid#1500688 silence Dereference after null check 2022-08-27 15:30:03 +02:00
formula A ColRowName (label) is a QuotedLabel is a SingleQuoted 2022-09-06 15:40:59 +02:00
fpicker Simplify by using replace instead of replaceAt in loop in fpicker 2022-09-05 15:54:42 +02:00
framework tdf#150773: Avoid bringing loading files to front several times 2022-09-04 19:44:49 +02:00
helpcompiler
helpcontent2@0d08951af8 Update git submodules 2022-09-03 13:37:11 +02:00
hwpfilter ofz#47118 Timeout 2022-08-25 21:45:33 +02:00
i18nlangtag Resolves: tdf#150370 Accept 'art-x-...' private-use input in language box 2022-09-01 11:30:56 +02:00
i18npool tdf#135451 - Change the skipSpace implementation of the break iterator 2022-08-21 14:12:43 +02:00
i18nutil
icon-themes Fix btn image size inconsistencies on CustomAnimationsPanel 2022-08-19 10:53:20 +02:00
idl
idlc/test/parser
include Related: tdf#150307 Use SfxHintId::ScAreasChanged, tdf#137577 follow-up 2022-09-06 01:20:14 +02:00
instsetoo_native windows packaging: remove unused msp creation 2022-08-18 16:07:43 +02:00
io
ios
javaunohelper
jurt
jvmaccess
jvmfwk Add loongarch64 support. 2022-08-11 10:53:00 +02:00
l10ntools
librelogo
libreofficekit tdf#147021 Use std::size() instead of SAL_N_ELEMENTS() macro 2022-09-06 02:26:36 +02:00
lingucomponent clang-tidy modernize-pass-by-value in various 2022-08-13 19:11:49 +02:00
linguistic cid#1500669 silence Dereference after null check 2022-08-26 11:35:50 +02:00
lotuswordpro ofz#50756 Direct-leak 2022-08-30 12:20:55 +02:00
m4
nlpsolver
o3tl
odk cid#1500586 Resource leak 2022-08-18 16:05:26 +02:00
offapi offapi: document com.sun.star.text.ContentControl 2022-09-05 13:15:57 +02:00
officecfg Add .uno:SidebarDeck.ElementsDeck to MathCommands.xcu 2022-08-24 21:09:36 +02:00
onlineupdate
oovbaapi VBA Add conversion methods to global 2022-08-06 14:16:50 +02:00
oox tdf#147021 Use std::size() instead of SAL_N_ELEMENTS() macro 2022-09-06 02:26:36 +02:00
opencl clang-tidy modernize-pass-by-value in various 2022-08-13 19:11:49 +02:00
osx Add all vcl subdirs to soffice.xcodeproj 2022-09-01 11:51:38 +02:00
package Move tools/diagnose_ex.h to comphelper/diagnose_ex.hxx 2022-08-18 17:10:19 +02:00
pch
postprocess windows signing: use sha256 (instead of the default sha1) 2022-08-03 11:05:40 +02:00
pyuno tdf#97361 replace getCellByPosition with access by subscript 2022-09-05 16:05:56 +02:00
qadevOOo cid#1509284 DMI: Dubious method invocation 2022-09-06 16:28:30 +02:00
readlicense_oo update credits 2022-08-31 16:33:49 +02:00
registry cid#1500700 silence Resource leak 2022-08-22 13:12:49 +02:00
remotebridges
reportbuilder Fix typos 2022-08-12 13:24:49 +02:00
reportdesign Simplify by using replace instead of replaceAt in 2 loops in reportdesign 2022-09-05 15:52:12 +02:00
ridljar warning: empty <p> tag 2022-08-13 00:35:17 +02:00
sal Use some more C++ in sal/osl/w32 2022-08-30 12:41:51 +02:00
salhelper
sax Move tools/diagnose_ex.h to comphelper/diagnose_ex.hxx 2022-08-18 17:10:19 +02:00
sc cid#1509199 silence Constant expression result 2022-09-06 16:28:17 +02:00
scaddins tdf#148251 Use std::swap instead of using temporary values 2022-08-23 10:45:41 +02:00
sccomp
schema Fix typo 2022-08-18 09:59:50 +02:00
scp2 Add Persian (fa-IR) dictionary to installset 2022-08-27 17:55:44 +02:00
scripting Move tools/diagnose_ex.h to comphelper/diagnose_ex.hxx 2022-08-18 17:10:19 +02:00
sd Replace leftover use of StarSymbol with OpenSymbol 2022-09-06 12:13:24 +02:00
sdext [API CHANGE] tdf#150683 a11y: Switch a11y child index to 64 bit 2022-09-02 15:47:37 +02:00
setup_native Add Persian (fa-IR) dictionary to installset 2022-08-27 17:55:44 +02:00
sfx2 [API CHANGE] tdf#150683 a11y: Switch a11y child index to 64 bit 2022-09-02 15:47:37 +02:00
shell Inline some macro wizardry 2022-08-30 14:43:27 +02:00
slideshow CppunitTest_slideshow_engine: remove unused includes 2022-09-06 09:35:50 +02:00
smoketest clang-tidy modernize-pass-by-value in various 2022-08-13 19:11:49 +02:00
solenv vcl: fontinstance.{cxx,hxx} -> LogicalFontInstance.{cxx,hxx} 2022-09-05 20:04:43 +02:00
soltools
sot cid#1500658 silence Resource leak 2022-08-28 21:12:21 +02:00
starmath Connect new import / export to starmath 2022-09-05 18:22:01 +02:00
static
stoc
store clang-tidy modernize-pass-by-value in various 2022-08-13 19:11:49 +02:00
svgio tdf#141908 Replace usage of sal_Int32 with Color in unit tests 2022-08-30 22:33:06 +02:00
svl tdf#150712 reduce cost of SharedString::getString 2022-09-02 11:56:45 +02:00
svtools Simplify by using replaceAll instead of replaceAt in a loop 2022-09-03 21:52:16 +02:00
svx cid#1500657 silence Resource leak 2022-09-05 22:09:38 +02:00
sw use more SwPosition::Assign 2022-09-06 10:13:59 +02:00
swext
sysui
test [API CHANGE] tdf#150683 a11y: Switch a11y child index to 64 bit 2022-09-02 15:47:37 +02:00
testtools clang-tidy modernize-pass-by-value in various 2022-08-13 19:11:49 +02:00
toolkit [API CHANGE] tdf#150683 a11y: Switch a11y child index to 64 bit 2022-09-02 15:47:37 +02:00
tools ofz#50761 Integer-overflow 2022-08-30 11:52:00 +02:00
translations@eb38107f17 Update git submodules 2022-08-24 13:05:44 +02:00
ucb Move tools/diagnose_ex.h to comphelper/diagnose_ex.hxx 2022-08-18 17:10:19 +02:00
ucbhelper loplugin:passstuffbyref 2022-08-10 08:07:03 +02:00
udkapi
uitest tdf#97361 replace getCellByPosition with access by subscript 2022-09-05 16:05:56 +02:00
UnoControls
unodevtools
unoidl elide some makeStringAndClear() calls 2022-07-22 11:13:45 +02:00
unoil
unotest Verify signing certificate cryptographically before use in tests 2022-07-29 22:55:07 +02:00
unotools Remove comment that has been outdated since 2001 2022-08-31 12:00:02 +02:00
unoxml Move tools/diagnose_ex.h to comphelper/diagnose_ex.hxx 2022-08-18 17:10:19 +02:00
ure
uui Move tools/diagnose_ex.h to comphelper/diagnose_ex.hxx 2022-08-18 17:10:19 +02:00
vbahelper Move tools/diagnose_ex.h to comphelper/diagnose_ex.hxx 2022-08-18 17:10:19 +02:00
vcl vcl: Drop unused SalGraphics::CreateFontSubset() argument 2022-09-06 15:09:57 +02:00
winaccessibility [API CHANGE] tdf#150683 a11y: Switch a11y child index to 64 bit 2022-09-02 15:47:37 +02:00
wizards These commands are always URLs already 2022-08-30 17:23:52 +02:00
writerfilter crashtesting: fix DOCX export of forum-mso-en-11199.docx 2022-09-06 10:05:24 +02:00
writerperfect tdf#141908 Replace usage of sal_Int32 with Color in unit tests 2022-08-30 22:33:06 +02:00
xmerge
xmlhelp Move tools/diagnose_ex.h to comphelper/diagnose_ex.hxx 2022-08-18 17:10:19 +02:00
xmloff no need to use unique_ptr for this map in XMLRedlineExport 2022-09-03 11:37:34 +02:00
xmlreader clang-tidy modernize-pass-by-value in xmlreader 2022-07-29 13:10:15 +02:00
xmlscript Move tools/diagnose_ex.h to comphelper/diagnose_ex.hxx 2022-08-18 17:10:19 +02:00
xmlsecurity Set EXTRA_ENV_VARS with += 2022-09-02 16:14:31 +02:00
.buckconfig
.buckversion
.clang-format
.editorconfig
.git-blame-ignore-revs
.gitattributes
.gitignore
.gitmodules
.gitpod.dockerfile
.gitpod.yml
.gitreview
antivirusDetection.vbs
autogen.sh
BUCK
config.guess
config.sub
config_host.mk.in tdf#150452: Revert "tdf#130795 use concurrent hashmap in SharedStringPool" 2022-08-17 16:59:14 +02:00
config_host_lang.mk.in
configure.ac Make configure work with gpgme >= 1.18 2022-08-25 07:52:18 +02:00
COPYING
COPYING.LGPL
COPYING.MPL
cpp.hint Add a VisualStudio cpp.hint file 2022-08-22 16:01:16 +02:00
download.lst upgrade openssl-1.1.1q 2022-09-06 12:52:16 +02:00
g
hardened_runtime.xcent.in
install-sh
install_deps.sh
leak-suppress.txt
Library_merged.mk
lo.xcent.in
logerrit
Makefile.fetch tdf#150452: Revert "tdf#130795 use concurrent hashmap in SharedStringPool" 2022-08-17 16:59:14 +02:00
Makefile.gbuild
Makefile.in
README.cross
README.help.md Fix typo 2022-07-30 23:26:39 +02:00
README.md
README.Solaris
Repository.mk
RepositoryExternal.mk tdf#150452: Revert "tdf#130795 use concurrent hashmap in SharedStringPool" 2022-08-17 16:59:14 +02:00
RepositoryFixes.mk
RepositoryModule_build.mk
RepositoryModule_host.mk
sanitize-ubsan-excludelist
setup.cfg
TEMPLATE.SOURCECODE.HEADER
tsan-suppress.txt add more tsan supress 2022-09-02 10:58:42 +02: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 and Developers Guide. 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.10
  • macOS:
    • Runtime: 10.14
    • Build: 11.0 + Xcode 12.5
  • Linux:
    • Runtime: RHEL 7 or CentOS 7
    • Build: either GCC 7.0.0; or Clang 8.0.1 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
  • Emscripten / WASM:
    • Runtime: a browser with SharedMemory support (threads + atomics)
    • Build: Qt 5.15 with Qt supported Emscripten 1.39.8
    • See README.wasm

Java is required for building many parts of LibreOffice. In TDF Wiki article Development/Java, the exact modules that depend on Java are listed.

The baseline for Java is Java Development Kit (JDK) Version 11 or later. It is possible to build LibreOffice with JDK version 9, but it is no longer supported by the JDK vendors, thus it should be avoided.

If you want to use Clang with the LibreOffice compiler plugins, the minimal version of Clang is 12.0.1. 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.md 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.md 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.libera.chat - 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.