Test repository to check push and ssh key
Find a file
Xisco Fauli a865d042ef CppunitTest_sc_subsequent_export_test: inherit from UnoApiXmlTest
Some notes:
* testLinkedGraphicRT needed to be adapted. Saving to
Calc Office Open XML doesn't keep IsLinkedGraphic.
Reported in tdf#152036. No idea why it didn't fail before

* Some tests used "generic_HTML" as export filter format, which
is wrong. Instead, "HTML (StarCalc)" should have been used.
But then, the test would have failed with
- unsatisfied query for interface of type com.sun.star.sheet.XSpreadsheetDocument!
So trying to export to html in those tests is not expected.
No idea why it didn't fail before

* testTdf90299 fails now with
- Expected: 'file:///tmp/lu23738863wthph.tmp/dummy.xls'#$Sheet1.A1
- Actual  : 'file:///tmp/lu23738863wthph.tmp/lu23738863wthpg.tmp/dummy.xls'#$Sheet1.A1
I added a TODO to check it later

* testNamedRangeBugfdo62729 fails on mac with an infinite loop

Change-Id: I63168583a47f510d1ac22971a274e28d085de61b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142576
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-11-15 11:56:34 +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
animations
apple_remote
avmedia
basctl
basegfx
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
connectivity
cppcanvas UnoApiTest: simplify code by using tempfile member 2022-11-08 11:54:22 +01:00
cppu
cppuhelper
cpputools
cui tdf#107405 Allow kerning less than -2 2022-11-10 08:30:40 +01:00
dbaccess tdf#114441: Convert use of sal_uLong to better integer types 2022-11-13 11:56:35 +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
drawinglayer Fix typos 2022-11-13 22:21:58 +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 Fix typo 2022-11-12 08:51:04 +01:00
forms
formula
fpicker
framework Simplify the method and fix its description 2022-11-10 14:45:57 +01:00
helpcompiler
helpcontent2@edc4b1fe0d Update git submodules 2022-11-14 14:28:46 +01:00
hwpfilter ofz#52490 Timeout 2022-11-06 14:15:25 +01:00
i18nlangtag
i18npool tdf#115007 i18npool: add NatNum12 support to Persian, fix Hebrew 2022-11-14 09:28:28 +01:00
i18nutil
icon-themes
idl
idlc/test/parser
include CppunitTest_sc_subsequent_export_test: inherit from UnoApiXmlTest 2022-11-15 11:56:34 +01:00
instsetoo_native
io
ios
javaunohelper
jurt
jvmaccess
jvmfwk Add riscv64 support 2022-11-10 13:47:06 +01:00
l10ntools A better fix for C++23 P2266R1 2022-11-08 17:28:32 +01:00
librelogo
libreofficekit gtktiledviewer: Don't call updateClientZoom until zoom is initialized 2022-11-15 10:11:06 +01:00
lingucomponent
linguistic
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
odk
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
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
sc CppunitTest_sc_subsequent_export_test: inherit from UnoApiXmlTest 2022-11-15 11:56:34 +01:00
scaddins tdf#150465 Improve description of RANDBETWEEN in function wizard 2022-10-31 17:08:04 +01:00
sccomp
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
sd Replace do while with all_foreach 2022-11-15 08:53:41 +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
slideshow Fix typo 2022-11-10 12:53:58 +01:00
smoketest
solenv sc: factor out common code in makefiles 2022-11-14 16:21:27 +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
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 tdf#148971 Make a11y check dlg non-modal 2022-11-14 15:24:20 +01:00
sw sw: add new FieldCode parameter for the .uno:TextFormField command 2022-11-15 11:34:49 +01:00
swext
sysui
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
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
vbahelper
vcl bump required cairo version to 1.12.0 2022-11-14 20:49:21 +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
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 bump required cairo version to 1.12.0 2022-11-14 20:49:21 +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
RepositoryExternal.mk
RepositoryFixes.mk
RepositoryModule_build.mk
RepositoryModule_host.mk
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.