Test repository to check push and ssh key
Find a file
Xisco Fauli ea9c2c4edb CppunitTest_sc_shapetest: inherit from ScModelTestBase
which inherits from UnoApiXmlTest.
In order to get rid of duplicated code

Change-Id: I36b1edf21fd58eecce482331f5cca577ac7f7b01
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142758
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-11-16 11:56:55 +01:00
.git-hooks .git-hook: Emit some warning about clang-format and renamed files 2022-11-11 17:18:43 +01:00
.github
.vscode
accessibility
android WASM add Calc as optional build result, make it build & run 2022-10-14 09:21:30 +02:00
animations
apple_remote
avmedia
basctl tdf#114441 Convert use of sal_uLong to sal_uInt32 2022-10-16 09:19:41 +02:00
basegfx tdf#126788 use singleton to avoid initial allocation 2022-10-30 11:26:39 +01:00
basic -Werror,-Wdeprecated-declarations (sprintf, macOS 13 SDK): basic 2022-11-05 17:17:54 +01:00
bean
bin Allow using bin/list-dispatch-commands.py with separate builddir 2022-11-15 10:37:08 +01:00
binaryurp
bridges Add riscv64 support 2022-11-10 13:47:06 +01:00
canvas tdf#145416 canvas: fix rotated, not zero-sized bitmap, which is not rendered 2022-11-15 09:57:01 +01:00
chart2 Drop a counterproductive top-level const 2022-11-11 10:30:26 +01:00
cli_ure
codemaker
comphelper Drop counterproductive top-level const 2022-11-11 12:30:03 +01:00
compilerplugins New loplugin:constmove 2022-11-11 19:37:16 +01:00
config_host Send build config (configure options) in LOKit version info JSON 2022-11-07 20:35:46 +01:00
configmgr Deduplicate O(U)StringConcatenation 2022-10-11 12:46:01 +02:00
connectivity loplugin:referencecasting look for a new pattern 2022-10-21 15:50:35 +02:00
cppcanvas UnoApiTest: simplify code by using tempfile member 2022-11-08 11:54:22 +01:00
cppu Deduplicate O(U)StringConcatenation 2022-10-11 12:46:01 +02:00
cppuhelper
cpputools
cui tdf#107405 Allow kerning less than -2 2022-11-10 08:30:40 +01:00
dbaccess Resolves: tdf#152043 line wrap the label 2022-11-15 14:17:36 +01:00
desktop gtktiledviewer: Fix getting tiles on Windows 2022-11-14 19:22:04 +01:00
dictionaries@43a746e2dc Update git submodules 2022-11-11 06:11:48 +01:00
distro-configs add bisect configs 2022-10-24 15:11:51 +02:00
drawinglayer Use BitmapEx in BitmapPrimitive2D 2022-11-16 07:57:00 +01:00
editeng ofz#53182 Timeout 2022-11-13 20:50:18 +01:00
embeddedobj move password handling from SwModelTestBase to UnoApiTest 2022-11-11 20:09:41 +01:00
embedserv tdf#143148 Use of #pragma once instead of include guards. 2022-11-02 18:44:39 +01:00
emfio Revert useless std::move of const object 2022-11-11 11:31:18 +01:00
eventattacher
extensions -Werror,-Wdeprecated-declarations (sprintf, macOS 13 SDK): extensions 2022-11-05 18:27:41 +01:00
external tdf#115007 tdf#148672 bump libnumbertext 1.0.11 2022-11-14 09:26:20 +01:00
extras Templates: tdf#86483: Add "Localization" category and add a template for zh_CN 2022-11-04 21:29:33 +01:00
filter Use BitmapEx in BitmapPrimitive2D 2022-11-16 07:57:00 +01:00
forms loplugin:referencecasting look for a new pattern 2022-10-21 15:50:35 +02:00
formula
fpicker
framework Simplify the method and fix its description 2022-11-10 14:45:57 +01:00
helpcompiler
helpcontent2@a443db6322 Update git submodules 2022-11-15 15:30:00 +01:00
hwpfilter ofz#52490 Timeout 2022-11-06 14:15:25 +01:00
i18nlangtag Deduplicate O(U)StringConcatenation 2022-10-11 12:46:01 +02:00
i18npool tdf#115007 i18npool: add NatNum12 support to Persian, fix Hebrew 2022-11-14 09:28:28 +01:00
i18nutil Update to ICU 72.1 2022-10-25 01:39:21 +02:00
icon-themes tdf#151071 Sifr follow upstream: Form Control, Record, Cell Styles, Shadow 2022-10-31 06:24:47 +01:00
idl
idlc/test/parser
include sw content controls, date: improve PDF export test 2022-11-16 08:07:31 +01:00
instsetoo_native
io
ios
javaunohelper
jurt
jvmaccess
jvmfwk Add riscv64 support 2022-11-10 13:47:06 +01:00
l10ntools asan: fix leak in lcl_MergeLevel 2022-11-15 19:38:32 +01:00
librelogo LibreLogo: fix ast, gug, hsb and sid language support 2022-09-30 14:28:44 +02:00
libreofficekit gtktiledviewer: Don't call updateClientZoom until zoom is initialized 2022-11-15 10:11:06 +01:00
lingucomponent use more string_view 2022-10-17 10:39:11 +02:00
linguistic cid#1515996 silence Unchecked return value from library 2022-10-14 20:44:37 +02:00
lotuswordpro UnoApiTest: simplify code by using tempfile member 2022-11-08 11:54:22 +01:00
m4 Add riscv64 support 2022-11-10 13:47:06 +01:00
nlpsolver
o3tl Fix MulDivSaturate to avoid overflow 2022-10-24 14:07:31 +02:00
odk Avoid nesting using 'else conditional-directive' 2022-10-23 22:15:48 +02:00
offapi tdf#115007 tdf#148672 bump libnumbertext 1.0.11 2022-11-14 09:26:20 +01:00
officecfg sw: add online accessibility check implementation 2022-11-15 00:03:41 +01:00
onlineupdate
oovbaapi tdf#151548 vba FormFields: Add basic word::XDropDown support 2022-11-15 11:07:06 +01:00
oox tdf#151891 PPTX import: fix regression of connector position 2022-11-14 13:31:36 +01:00
opencl
osx
package cid#1242675 Untrusted value as argument 2022-10-27 09:47:54 +02:00
pch
postprocess
pyuno
qadevOOo Fix typos 2022-11-13 22:21:58 +01:00
readlicense_oo update credits 2022-11-02 11:08:20 +01:00
registry
remotebridges
reportbuilder
reportdesign tdf#54857 use OUStringConstExpr in XMLPropertyMapEntry 2022-11-04 06:50:43 +01:00
ridljar
sal Drop useless std::move of const object 2022-11-11 15:40:45 +01:00
salhelper
sax remove comment 2022-10-20 17:48:49 +02:00
sc CppunitTest_sc_shapetest: inherit from ScModelTestBase 2022-11-16 11:56:55 +01:00
scaddins tdf#150465 Improve description of RANDBETWEEN in function wizard 2022-10-31 17:08:04 +01:00
sccomp UnoApiTest: factor out common code 2022-10-24 18:05:04 +02:00
schema sw content controls: allow no list items in a dropdown 2022-11-09 17:00:00 +01:00
scp2 Fix VS2022 MSMs detection 2022-11-11 21:31:35 +01:00
scripting use more TempFileFastService in scripting 2022-10-22 09:11:21 +02:00
sd tdf#132293 remove unused imports from uitest 2022-11-15 17:41:46 +01:00
sdext sdext.pdfimport - Wirter: add handling for continuous space characters 2022-11-08 08:40:29 +01:00
setup_native
sfx2 sw: add online accessibility check implementation 2022-11-15 00:03:41 +01:00
shell Deduplicate O(U)StringConcatenation 2022-10-11 12:46:01 +02:00
slideshow Fix typo 2022-11-10 12:53:58 +01:00
smoketest
solenv bugfix-test.cxx: use clang-format 2022-11-15 23:57:24 +01:00
soltools -Werror,-Wdeprecated-declarations (sprintf, macOS 13 SDK): soltools 2022-11-10 14:50:53 +01:00
sot
starmath Use o3tl::convert instead of temporary Fractions 2022-11-07 06:03:48 +01:00
static WASM: fix loading writer docs after rebase 2022-11-14 08:18:57 +01:00
stoc Destruction of Registry and RegitsryKey isn't MT-safe 2022-11-14 18:19:24 +01:00
store
svgio Use BitmapEx in BitmapPrimitive2D 2022-11-16 07:57:00 +01:00
svl -Werror,-Wdeprecated-declarations (sprintf, macOS 13 SDK): svl 2022-11-05 19:19:06 +01:00
svtools tdf#151519 Make ticks in ruler visible again 2022-11-09 16:07:13 +01:00
svx Use BitmapEx in BitmapPrimitive2D 2022-11-16 07:57:00 +01:00
sw tdf#151548: cleanup "Add basic word::XFormField support" etc. 2022-11-16 09:02:17 +01:00
swext
sysui macOS: add XCode and SDK buildversions to Info.plist 2022-10-23 12:11:29 +02:00
test CppunitTest_sc_subsequent_export_test: inherit from UnoApiXmlTest 2022-11-15 11:56:34 +01:00
testtools
toolkit tdf#152012 Fix assert fail on opening date picker 2022-11-14 12:08:08 +01:00
tools Fix typos 2022-11-13 22:21:58 +01:00
translations@3322d894ee Update git submodules 2022-11-14 19:12:44 +01:00
ucb Drop counterproductive top-level consts 2022-11-11 12:29:28 +01:00
ucbhelper
udkapi
uitest tdf#132293 remove unused imports from uitest 2022-11-15 17:41:46 +01:00
UnoControls
unodevtools
unoidl tdf#147021 Use std::size() instead of SAL_N_ELEMENTS() macro 2022-11-06 01:22:27 +01:00
unoil
unotest tdf#147021 Use std::size() instead of SAL_N_ELEMENTS() macro 2022-11-06 01:22:27 +01:00
unotools A better fix for C++23 P2266R1 2022-11-08 17:28:32 +01:00
unoxml tdf#147021 Use std::size() instead of SAL_N_ELEMENTS() macro 2022-11-06 01:22:27 +01:00
ure Revert "tdf#145538 Use range based for loops" 2022-11-07 08:20:46 +01:00
uui use more string_view 2022-10-17 10:39:11 +02:00
vbahelper sw vba: add WordBasic.MsgBox 2022-10-17 14:14:53 +02:00
vcl tdf#152061 Fix bitmap image scaling 2022-11-16 11:17:29 +01:00
winaccessibility
wizards ScriptForge - (SF_Datasheet) Filter, OrderBy properties 2022-11-06 17:37:10 +01:00
writerfilter Add some missing member operator== const qualifiers 2022-11-14 13:33:25 +01:00
writerperfect CppunitTest_writerperfect_epubexport: inherit from UnoApiXmlTest 2022-11-08 14:26:45 +01:00
xmerge
xmlhelp
xmloff move password handling from SwModelTestBase to UnoApiTest 2022-11-11 20:09:41 +01:00
xmlreader
xmlscript use more string_view 2022-10-17 10:39:11 +02:00
xmlsecurity tdf#147201 Use std::size() instead of SAL_N_ELEMENTS() macro 2022-11-10 02:27:45 +01:00
.buckconfig
.buckversion
.clang-format Document that .clang-format would benefit from StatementMacros 2022-11-06 15:38:07 +01:00
.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 actually don't compile tools/source/misc/fix16.cxx with system-libfixmath 2022-11-15 11:09:29 +01:00
config_host_lang.mk.in
configure.ac configure: Allow to override CXXFLAGS_CXX11 2022-11-16 08:53:58 +01:00
COPYING
COPYING.LGPL
COPYING.MPL
cpp.hint
download.lst tdf#115007 tdf#148672 bump libnumbertext 1.0.11 2022-11-14 09:26:20 +01:00
g
hardened_runtime.xcent.in
install-sh
install_deps.sh
leak-suppress.txt
Library_merged.mk
lo.xcent.in
logerrit
Makefile.fetch
Makefile.gbuild
Makefile.in use https instead of http 2022-11-01 14:14:45 +01:00
README.cross
README.help.md
README.md
README.Solaris
Repository.mk Enable gtktiledviewer on Windows 2022-10-26 13:58:41 +02:00
RepositoryExternal.mk Revert "Use libo_CHECK_SYSTEM_MODULE for eot" 2022-10-01 14:21:28 +02:00
RepositoryFixes.mk
RepositoryModule_build.mk
RepositoryModule_host.mk WASM add Calc as optional build result, make it build & run 2022-10-14 09:21:30 +02:00
sanitize-ubsan-excludelist
setup.cfg
TEMPLATE.SOURCECODE.HEADER
tsan-suppress.txt

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.