Test repository to check push and ssh key
Find a file
Stephan Bergmann 4544713d3a Adapt remaining cpp_uno bridges to #i114635#
..."C++ UNO bridge should convert non-UNO exceptions into RuntimeException"
(<https://bz.apache.org/ooo/show_bug.cgi?id=114635>), see
<https://lists.freedesktop.org/archives/libreoffice/2018-April/079985.html>
"Re: CppunitTest_sw_filters_test failing on x86 Linux, std::exception ->
uno::RuntimeException".

(The msvc_win32_{intel,x86-64} versions already handle non-UNO exceptions in
their msc{i,x}_filterCppException functions, in a different way.)

Change-Id: Ie359affed6831d16be0de3e3ff065484e28bd9c3
Reviewed-on: https://gerrit.libreoffice.org/52665
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-04-10 13:16:23 +02:00
.git-hooks
accessibility fix wrong mismatch of type modifiers 2018-04-08 21:29:56 +02:00
android add hint on how to use lldb pretty-printers form within android studio 2018-04-07 22:17:41 +02:00
animations
apple_remote
avmedia Revert "long->sal_Int32 in tools/gen.hxx" 2018-04-07 14:13:18 +02:00
basctl SOSAW080: Added first bunch of basic changes to helpers 2018-04-07 00:28:30 +02:00
basegfx SOSAW080: Added first bunch of basic changes to helpers 2018-04-07 00:28:30 +02:00
basic tdf#111313: Honor bWriteNoLenParam in !bCompatibility, too 2018-04-06 14:56:20 +02:00
bean
bin Add IWYU wrapper script to find unused includes 2018-04-07 13:57:01 +02:00
binaryurp
bridges Adapt remaining cpp_uno bridges to #i114635# 2018-04-10 13:16:23 +02:00
canvas Revert "long->sal_Int32 in tools/gen.hxx" 2018-04-07 14:13:18 +02:00
chart2 tdf#104658: Fix jumping bitmap-filled chart bars 2018-04-09 22:05:40 +02:00
cli_ure tdf#94265: use install directory on delay load failure 2018-04-09 09:06:46 +02:00
codemaker
comphelper loplugin:unusedmethods 2018-04-10 08:44:23 +02:00
compilerplugins loplugin:unusedfield improvements 2018-04-10 10:38:23 +02:00
config_host
configmgr Ignore dangling symlink configuration files 2018-04-04 17:22:25 +02:00
connectivity Remove dead HSQLDB driver 2018-04-10 11:34:35 +02:00
cppcanvas use more DBG_UNHANDLED_EXCEPTION 2018-04-09 08:46:34 +02:00
cppu
cppuhelper
cpputools
cui loplugin:unusedfield improvements 2018-04-10 10:38:23 +02:00
dbaccess Remove dead HSQLDB driver 2018-04-10 11:34:35 +02:00
desktop tdf#42949 Remove unnecessary localization headers from desktop 2018-04-10 09:36:18 +02:00
dictionaries@c8e86617a7
distro-configs Remove dead HSQLDB driver 2018-04-10 11:34:35 +02:00
drawinglayer graphic: rename Set{Get,Is}Link to Set{Get,Is}GfxLink 2018-04-10 08:34:44 +02:00
dtrans
editeng loplugin:unusedmethods 2018-04-10 08:44:23 +02:00
embeddedobj pass area param to DBG_UNHANDLED_EXCEPTION 2018-04-03 08:38:50 +02:00
embedserv
emfio Revert "long->sal_Int32 in tools/gen.hxx" 2018-04-07 14:13:18 +02:00
eventattacher
extensions weld linkeditdialog 2018-04-06 16:48:12 +02:00
external Remove dead HSQLDB driver 2018-04-10 11:34:35 +02:00
extras
filter tdf#116555 filter: make sure default extension for HTML is not .xhtml 2018-04-10 10:58:44 +02:00
forms weld linkeditdialog 2018-04-06 16:48:12 +02:00
formula pass area param to DBG_UNHANDLED_EXCEPTION 2018-04-03 08:38:50 +02:00
fpicker
framework Revert "long->sal_Int32 in tools/gen.hxx" 2018-04-07 14:13:18 +02:00
helpcompiler
helpcontent2@fbf5957db2 Updated core 2018-04-10 12:36:20 +02:00
hwpfilter
i18nlangtag
i18npool use https links for api.libreoffice.org and opengrok 2018-04-02 22:25:53 +02:00
i18nutil
icon-themes Colibre icons: add help icons 2018-04-10 09:52:33 +02:00
idl
idlc fflush() followed by fclose() is redundant 2018-04-06 06:35:02 +02:00
include xmloff: fix leak in XMLPropertySetMapperEntry_Impl 2018-04-10 12:10:00 +02:00
instsetoo_native tdf#108580 related: Check for SP level of the minimal supported OS 2018-04-09 14:40:18 +02:00
io
ios
javaunohelper
jurt
jvmaccess
jvmfwk
l10ntools
librelogo
libreofficekit sw lok: View jumps to cursor position even if it is moved by an other view. 2018-04-07 08:05:04 +02:00
lingucomponent
linguistic assert on empty line 2018-04-07 21:04:14 +02:00
lotuswordpro loplugin:useuniqueptr in XFStyleContainer 2018-04-03 12:38:46 +02:00
m4
mysqlc Don't link Library_mysqlc against -lnsl 2018-04-07 14:02:35 +02:00
nlpsolver
o3tl
odk use https links for api.libreoffice.org and opengrok 2018-04-02 22:25:53 +02:00
offapi tdf#114523 Make inline tooltips for changes optional 2018-04-10 00:47:22 +02:00
officecfg Remove dead HSQLDB driver 2018-04-10 11:34:35 +02:00
onlineupdate
oovbaapi
oox graphic: rename Set{Get,Is}Link to Set{Get,Is}GfxLink 2018-04-10 08:34:44 +02:00
opencl
osx
package forcepoint#37 revert tdf#108572 let remove storage element 2018-04-09 11:03:37 +02:00
postprocess Remove dead HSQLDB driver 2018-04-10 11:34:35 +02:00
pyuno configure,pyuno: require at least Python 2.7 2018-04-09 10:32:47 +02:00
qadevOOo tdf#45904 Move _XCellRangeMovement Java tests to C++ 2018-04-06 17:32:47 +02:00
readlicense_oo
registry
remotebridges
reportbuilder
reportdesign Make getSdrModelFromUnoModel work with SdrModel& 2018-04-09 10:51:56 +02:00
ridljar
sal Properly filter(out) - pattern words are the first argument 2018-04-08 20:34:56 +02:00
salhelper
sax
sc loplugin:useuniqueptr in ScDrawTransferObj 2018-04-10 12:07:33 +02:00
scaddins
sccomp
schema
scp2
scripting pass area param to DBG_UNHANDLED_EXCEPTION 2018-04-03 08:38:50 +02:00
sd loplugin:unusedmethods 2018-04-10 08:44:23 +02:00
sdext use more DBG_UNHANDLED_EXCEPTION 2018-04-09 08:46:34 +02:00
setup_native
sfx2 loplugin:unusedfield improvements 2018-04-10 10:38:23 +02:00
shell
slideshow use more DBG_UNHANDLED_EXCEPTION 2018-04-09 08:46:34 +02:00
smoketest
solenv vcl: detach usage and remove GraphicManager and GraphicCache 2018-04-10 08:33:55 +02:00
soltools
sot tdf#89453 - Improve the wording of "Paste Special" options 2018-04-07 14:02:18 +02:00
starmath weld SmFontSizeDialog 2018-04-10 09:51:50 +02:00
stoc use more DBG_UNHANDLED_EXCEPTION 2018-04-09 08:46:34 +02:00
store
svgio tdf#114738 Add support for transparency for EMF+ records 2018-04-06 16:03:01 +02:00
svl Prefix SfxStyleSheetBase::pPool member 2018-04-07 23:03:00 +02:00
svtools loplugin:unusedfield improvements 2018-04-10 10:38:23 +02:00
svx crashtesting: failure on loading ooo38880-1.doc 2018-04-10 12:55:43 +02:00
sw loplugin:unusedfield improvements 2018-04-10 10:38:23 +02:00
swext
sysui
test tdf#45904 Move _XCellRangeMovement Java tests to C++ 2018-04-06 17:32:47 +02:00
testtools
toolkit use more DBG_UNHANDLED_EXCEPTION 2018-04-09 08:46:34 +02:00
tools Revert "long->sal_Int32 in tools/gen.hxx" 2018-04-07 14:13:18 +02:00
translations@db79c92222
ucb ucb: Fix overwriting at index 7 2018-04-08 08:38:56 +02:00
ucbhelper
udkapi
uitest Create temp copies of test docs in Python/UITests 2018-04-03 08:23:44 +02:00
UnoControls
unodevtools
unoidl
unoil
unotest Fix Python file URL construction on Windows 2018-04-06 10:48:17 +02:00
unotools use more DBG_UNHANDLED_EXCEPTION 2018-04-09 08:46:34 +02:00
unoxml use https links for api.libreoffice.org and opengrok 2018-04-02 22:25:53 +02:00
ure Remove std::bad_alloc -> css::uno::RuntimeException mappings 2018-04-09 21:25:18 +02:00
uui Remove std::bad_alloc -> css::uno::RuntimeException mappings 2018-04-09 21:25:18 +02:00
vbahelper pass area param to DBG_UNHANDLED_EXCEPTION 2018-04-03 08:38:50 +02:00
vcl loplugin:unusedfield improvements 2018-04-10 10:38:23 +02:00
winaccessibility
wizards
writerfilter use more DBG_UNHANDLED_EXCEPTION 2018-04-09 08:46:34 +02:00
writerperfect tdf#115623: invoke openPageSpan / closePageSpan 2018-04-10 09:33:51 +02:00
xmerge use https links for api.libreoffice.org and opengrok 2018-04-02 22:25:53 +02:00
xmlhelp
xmloff xmloff: fix leak in XMLPropertySetMapperEntry_Impl 2018-04-10 12:10:00 +02:00
xmlreader
xmlscript fflush() followed by fclose() is redundant 2018-04-06 06:35:02 +02:00
xmlsecurity use more DBG_UNHANDLED_EXCEPTION 2018-04-09 08:46:34 +02:00
.buckconfig
.buckversion
.clang-format
.editorconfig
.gitattributes
.gitignore
.gitmodules
.gitreview
autogen.sh
BUCK
config.guess
config.sub
config_host.mk.in Remove dead HSQLDB driver 2018-04-10 11:34:35 +02:00
config_host_lang.mk.in
configure.ac Remove dead HSQLDB driver 2018-04-10 11:34:35 +02:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst Remove dead HSQLDB driver 2018-04-10 11:34:35 +02:00
g
install-sh
leak-suppress.txt
Library_merged.mk
lo.xcent.in
logerrit
Makefile.fetch Remove dead HSQLDB driver 2018-04-10 11:34:35 +02:00
Makefile.gbuild
Makefile.in Revert "Fix protection of some unnecessarily strictly protected files" 2018-04-08 17:37:56 +03:00
README.cross
README.md
README.Solaris
Repository.mk Remove dead HSQLDB driver 2018-04-10 11:34:35 +02:00
RepositoryExternal.mk Remove dead HSQLDB driver 2018-04-10 11:34:35 +02:00
RepositoryFixes.mk Remove dead HSQLDB driver 2018-04-10 11:34:35 +02:00
RepositoryModule_build.mk
RepositoryModule_host.mk
sanitize-ubsan-blacklist
TEMPLATE.SOURCECODE.HEADER

LibreOffice

Coverity Scan Build Status CII Best Practices

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 2015 Update 3
  • macOS:
    • Runtime: 10.9
    • Build: 10.12 + Xcode 8
  • Linux:
    • Runtime: RHEL 6 or CentOS 6
    • Build: GCC 4.8.1 or Clang
  • iOS (only for LibreOfficeKit):
    • Runtime: 11.3 (only support for newer i devices == 64 bit)
    • Build: Xcode 9.3 and iPhone SDK 11.3

At least Clang 3.4.2 is known to be too old to pass the configure.ac check "whether $CXX supports C++17, C++14, or C++11" in its current form (due to the #pragma GCC diagnostic ignored "-Wpragmas" that it does not understand).

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

Finding out more

Beyond this, you can read the README 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.