Test repository to check push and ssh key
Find a file
Jan-Marek Glogowski 70e4c65058 Install GDB pretty printers into cross-toolset
Change-Id: Id42dd694514e104d03c649a19788b5c192ec35a4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116116
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
2021-05-25 20:04:54 +02:00
.git-hooks
.github
.vscode tell vscode to treat our patch.<level> files as diffs 2021-05-19 15:40:33 +02:00
accessibility
android tdf#106893 android: Show whole doc when closing soft keyboard 2021-05-21 22:00:24 +02:00
animations
apple_remote
avmedia
basctl add Toggleable as a separate thing to a Button 2021-05-21 18:19:58 +02:00
basegfx
basic fix leak in dbaccess 2021-05-24 14:20:28 +02:00
bean
bin move some headers inside modules 2021-05-20 14:59:02 +02:00
binaryurp
bridges loplugin:noexcept (clang-cl) 2021-05-19 08:53:34 +02:00
canvas adapt oglcanvas::SpriteDeviceHelper::getDeviceHandle 2021-05-24 17:19:14 +02:00
chart2 stlFindInsert: No unnecessary search before insertion to map 2021-05-23 15:29:35 +02:00
cli_ure
codemaker Use implicit conversion from OStringBuffer to std::string_view 2021-05-18 08:29:18 +02:00
comphelper
compilerplugins Adapt loplugin:noexcept to system macro BEGIN_COM_MAP (clang-cl) 2021-05-19 07:27:59 +02:00
config_host
configmgr
connectivity loplugin:noexcept (clang-cl) 2021-05-19 08:53:34 +02:00
cppcanvas
cppu
cppuhelper
cpputools
cui tdf#116491: Customize: Hide experimental commands when not in experimental mode 2021-05-23 00:18:41 +02:00
dbaccess fix leak in CppunitTest_dbaccess_macros_test 2021-05-25 11:38:02 +02:00
desktop fix some crypto leaks 2021-05-25 19:56:32 +02:00
dictionaries@4fa94195b8
distro-configs Adapt Flatpak build to switch from qrcodegen to zxing 2021-05-19 08:44:50 +02:00
drawinglayer properly draw only parts of FillGradientPrimitive2D (tdf#139000) 2021-05-21 16:53:21 +02:00
editeng add Toggleable as a separate thing to a Button 2021-05-21 18:19:58 +02:00
embeddedobj loplugin:external (clang-cl) 2021-05-19 07:27:09 +02:00
embedserv
emfio tdf#55007 EMF Allow negatives values for Start Point and End Point 2021-05-22 20:08:11 +02:00
eventattacher
extensions add Toggleable as a separate thing to a Button 2021-05-21 18:19:58 +02:00
external upgrade to Expat 2.4.1 2021-05-25 14:26:18 +02:00
extras Removed 1/2, 1/4, 3/4, and 0.5 from autocorr/lang/ja/DocumentList.xml 2021-05-25 05:10:11 +02:00
filter add Toggleable as a separate thing to a Button 2021-05-21 18:19:58 +02:00
forms ImplPlayWithRenderer never checks its OutputDevice against nullptr 2021-05-19 09:45:46 +02:00
formula add Toggleable as a separate thing to a Button 2021-05-21 18:19:58 +02:00
fpicker add Toggleable as a separate thing to a Button 2021-05-21 18:19:58 +02:00
framework
helpcompiler
helpcontent2@0251fd88ce Update git submodules 2021-05-25 18:23:48 +02:00
hwpfilter
i18nlangtag
i18npool don't leak ICU transliterator 2021-05-17 19:43:49 +02:00
i18nutil
icon-themes Sukapura: Update Undo & Redo, Repeat icons 2021-05-19 17:46:10 +02:00
idl
idlc
include tdf#131390 PPTX: fix custom slide show is not imported. 2021-05-25 15:44:40 +02:00
instsetoo_native
io Add forgotten io/Executable_io-testconnection.mk 2021-05-25 18:45:50 +02:00
ios
javaunohelper
jurt
jvmaccess
jvmfwk
l10ntools
librelogo
libreofficekit
lingucomponent
linguistic
lotuswordpro
m4
nlpsolver
o3tl
odk
offapi tdf#142448 sw offapi: add custom color metadata field shading 2021-05-23 18:51:58 +02:00
officecfg tdf#142257 Replace Ctrl+[ / ] shortcuts for Hungarian 2021-05-25 13:20:51 +02:00
onlineupdate
oovbaapi
oox tdf#131390 PPTX: fix custom slide show is not imported. 2021-05-25 15:44:40 +02:00
opencl
osx
package
pch
postprocess
pyuno
qadevOOo
readlicense_oo
registry
remotebridges
reportbuilder
reportdesign add Toggleable as a separate thing to a Button 2021-05-21 18:19:58 +02:00
ridljar
sal Related: tdf#136794 tdf#137063 Unlimit decimals in rtl_math_round() 2021-05-23 03:04:56 +02:00
salhelper
sax
sc tdf#141644 OOXML shape import: fix upright text rotate angle 2021-05-25 13:41:29 +02:00
scaddins
sccomp don't leak on error path in Coin solver 2021-05-17 19:43:56 +02:00
schema tdf#142448 sw offapi: add custom color metadata field shading 2021-05-23 18:51:58 +02:00
scp2
scripting
sd tdf#131390 PPTX: fix custom slide show is not imported. 2021-05-25 15:44:40 +02:00
sdext LineParser::readNextToken gets called with m_nCharIndex==npos after all 2021-05-21 14:50:14 +02:00
setup_native
sfx2 fix leak in SfxTabDialogController 2021-05-24 14:20:37 +02:00
shell shell : use std::mutex in CmdMailMsg 2021-05-20 12:02:32 +02:00
slideshow crash on launching opengl slide transitions under gtk3 2021-05-24 16:23:08 +02:00
smoketest
solenv gbuild: make pre_BuildTools.mk better readable 2021-05-25 18:06:36 +02:00
soltools
sot
starmath fix some starmath test leaks 2021-05-23 15:43:58 +02:00
stoc
store
svgio
svl tdf#100834: svl_qa_cppunit: Add unittest 2021-05-24 21:28:37 +02:00
svtools tdf#142479 on 'return' select the entry the cursor is in before calling Select 2021-05-25 16:19:07 +02:00
svx tdf#138141 sw: fix textbox z-order 2021-05-25 13:06:22 +02:00
sw tdf#138141 sw: fix textbox z-order 2021-05-25 13:06:22 +02:00
swext
sysui
test
testtools
toolkit fix leak in toolkit test 2021-05-25 14:11:08 +02:00
tools tdf#55007 tdf#142263 tdf#142268 EMF ARC, PIE, CHORD allow to draw circle 2021-05-21 07:30:28 +02:00
translations@48ffdf216a
ucb
ucbhelper
udkapi
uitest
UnoControls
unodevtools
unoidl
unoil
unotest
unotools
unoxml tdf#142448 sw offapi: add custom color metadata field shading 2021-05-23 18:51:58 +02:00
ure
uui add Toggleable as a separate thing to a Button 2021-05-21 18:19:58 +02:00
vbahelper fix shutdown leak VbaGlobalsBase 2021-05-21 14:29:09 +02:00
vcl gtk[3|4] reimplement ImmobilizedViewport without access to opaque GtkViewport 2021-05-25 15:01:12 +02:00
wasm-qt
winaccessibility
wizards ScriptForge - (scriptforge.py.SF_Basic): methods in alphabatical order 2021-05-24 15:53:25 +02:00
writerfilter tdf#132752: docx import: improvements for first line indent in lists 2021-05-25 11:42:14 +02:00
writerperfect
xmerge
xmlhelp
xmloff simplify some XMLPropertyState memory management 2021-05-20 10:47:35 +02:00
xmlreader
xmlscript fix leaks in loading xmlscript 2021-05-25 11:47:48 +02:00
xmlsecurity add Toggleable as a separate thing to a Button 2021-05-21 18:19:58 +02:00
.buckconfig
.buckversion
.clang-format
.editorconfig
.git-blame-ignore-revs
.gitattributes
.gitignore
.gitmodules
.gitpod.dockerfile Upgrade .gitpod.dockerfile to Ubuntu focal 2021-05-22 19:35:47 +02:00
.gitpod.yml
.gitreview
antivirusDetection.vbs
autogen.sh
BUCK
config.guess
config.sub
config_host.mk.in
config_host_lang.mk.in
configure.ac configure: Replace tabs with spaces 2021-05-25 18:47:18 +02:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst upgrade to Expat 2.4.1 2021-05-25 14:26:18 +02:00
g
hardened_runtime.xcent.in
install-sh
install_deps.sh
leak-suppress.txt suppress more leaks in external libraries 2021-05-21 13:45:19 +02:00
Library_merged.mk
lo.xcent
logerrit
Makefile.fetch
Makefile.gbuild
Makefile.in Install GDB pretty printers into cross-toolset 2021-05-25 20:04:54 +02:00
README.cross
README.md
README.Solaris
README.wasm
Repository.mk Resurrect io testconnection executable 2021-05-25 16:13:08 +02:00
RepositoryExternal.mk postgres: fix internal linking with WITH_GSSAPI 2021-05-25 18:07:41 +02:00
RepositoryFixes.mk
RepositoryModule_build.mk
RepositoryModule_host.mk
sanitize-ubsan-excludelist
setup.cfg
TEMPLATE.SOURCECODE.HEADER

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
  • Emscripten / WASM:
    • Runtime: a browser with SharedMemory support (threads + atomics)
    • Build: Qt 5.15 with Qt supported Emscripten 1.39.8
    • See README.wasm

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.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.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.