Test repository to check push and ssh key
Find a file
Stephan Bergmann 0e4c7a8061 external/boost: Replace constexpr.patch.0 with alternative upstream fix
Change-Id: I168c3bfbf5a194f7f5565ba2dc6086f3b4053d12
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142828
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-11-17 13:15:16 +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 tdf#150703 Replace Axes with Axis 2022-11-16 13:06:18 +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 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
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
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 external/boost: Replace constexpr.patch.0 with alternative upstream fix 2022-11-17 13:15:16 +01:00
extras
filter Use BitmapEx in BitmapPrimitive2D 2022-11-16 07:57:00 +01:00
forms
formula
fpicker
framework Simplify the method and fix its description 2022-11-10 14:45:57 +01:00
helpcompiler
helpcontent2@98d79c6538 Update git submodules 2022-11-16 15:13:45 +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 lok: handle mouse/keyboard events in Math embedded in Calc 2022-11-16 22:15:19 +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
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 tdf#33495: Allow presenter console in windowed mode 2022-11-17 06:57:40 +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-16 17:56:33 +01:00
registry
remotebridges
reportbuilder
reportdesign
ridljar
sal Drop useless std::move of const object 2022-11-11 15:40:45 +01:00
salhelper
sax
sc sc: remove blank document, just create it on the fly 2022-11-17 13:12:01 +01:00
scaddins
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 tdf#33495: Allow presenter console in windowed mode 2022-11-17 06:57:40 +01:00
sdext tdf#33495: Allow presenter console in windowed mode 2022-11-17 06:57:40 +01:00
setup_native
sfx2 lok: handle mouse/keyboard events in Math embedded in Calc 2022-11-16 22:15:19 +01:00
shell
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 tdf#149322 apparent distortion of glyphs on scrolling 2022-11-16 20:35:46 +01:00
sw DeepL: add Spanish to list of languages for translation 2022-11-17 12:22:21 +01:00
swext
sysui
test CppunitTest_sc_uicalc: inherit from ScModelTestBase 2022-11-16 20:08:29 +01:00
testtools
toolkit tdf#152012 Fix assert fail on opening date picker 2022-11-14 12:08:08 +01:00
tools ofz#53450 Integer-overflow 2022-11-17 10:31:21 +01:00
translations@7050fcc7a3 Update git submodules 2022-11-16 15:26:18 +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
vbahelper
vcl ofz#53434 Out-of-memory 2022-11-17 10:31:49 +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 configure: Allow to override CXXFLAGS_CXX11 2022-11-16 08:53:58 +01:00
COPYING
COPYING.LGPL
COPYING.MPL
cpp.hint
download.lst Update freetype to 2.12.0 2022-11-16 14:47:29 +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
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.