Test repository to check push and ssh key
Find a file
Samuel Mehrbrodt 6d9cf22b22 tdf#130793 Fix import/export of image URLs
Change-Id: I329af3b0d5a81d9f31def9c2ad861d0e83e3714c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89388
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2020-02-26 06:40:23 +01:00
.git-hooks
.github
accessibility Drop o3tl::optional wrapper 2020-02-21 14:50:28 +01:00
android
animations
apple_remote Blind fix of -Werror,-Wpointer-to-int-cast in apple_remote 2020-02-21 16:30:11 +01:00
avmedia
basctl check if edit can be enabled after setting cursor into tree 2020-02-25 22:11:26 +01:00
basegfx
basic Renaming variables for upcoming commit for tdf#36737 2020-02-24 12:02:39 +01:00
bean
bin boost: disable -Wmaybe-uninitialized from GCC 9.2.1 -Og 2020-02-24 19:15:16 +01:00
binaryurp
bridges .eh_frame section should probably have type @unwind 2020-02-23 19:46:00 +01:00
canvas Drop o3tl::optional wrapper 2020-02-21 14:50:28 +01:00
chart2 loplugin:referencecasting 2020-02-25 08:37:17 +01:00
cli_ure
codemaker
comphelper Fix currency symbol selection in Calc on mobile 2020-02-25 09:25:33 +01:00
compilerplugins Revert "loplugin:sequenceloop improve rvalue detection" 2020-02-23 11:10:18 +01:00
config_host
configmgr
connectivity Postgresql unused POSTGRE_TRACE 2020-02-24 22:59:19 +01:00
cppcanvas Drop o3tl::optional wrapper 2020-02-21 14:50:28 +01:00
cppu Fix typo 2020-02-24 19:30:59 +01:00
cppuhelper
cpputools
cui Drop o3tl::optional wrapper 2020-02-21 14:50:28 +01:00
dbaccess Resolves: tdf130874 reversed logic 2020-02-25 20:50:25 +01:00
desktop Fix currency symbol selection in Calc on mobile 2020-02-25 09:25:33 +01:00
dictionaries@6e60b3ca21
distro-configs Revert "make Linux Clang Jenkins builds use -Og" 2020-02-21 11:22:17 +01:00
drawinglayer
dtrans
editeng Convert gentoken from Perl to Python. 2020-02-25 08:33:07 +01:00
embeddedobj Remove some unused includes 2020-02-20 08:44:08 +01:00
embedserv
emfio Drop o3tl::optional wrapper 2020-02-21 14:50:28 +01:00
eventattacher
extensions
external boost: disable -Wmaybe-uninitialized from GCC 9.2.1 -Og 2020-02-24 19:15:16 +01:00
extras tdf#130711: [tr] Extend Autocorrect list for Turkish language (Start with B) 2020-02-25 17:13:19 +01:00
filter SVG export: try to reuse original bitmap data for JPG and PNG bitmaps 2020-02-25 16:20:51 +01:00
forms Drop o3tl::optional wrapper 2020-02-21 14:50:28 +01:00
formula
fpicker
framework tdf#130163 Show undock or dock menu item in toolbar menu 2020-02-24 08:00:46 +01:00
helpcompiler
helpcontent2@03e9a3022c Update git submodules 2020-02-24 17:30:25 +01:00
hwpfilter
i18nlangtag
i18npool Resolves: tdf#130563 Add predefined 4-digit year date+time format 2020-02-22 20:17:54 +01:00
i18nutil
icon-themes Sifr: fix for tdf#130885: missing Slide Layout icons 2020-02-23 23:16:32 +01:00
idl
idlc Drop o3tl::optional wrapper 2020-02-21 14:50:28 +01:00
include SVG export: try to reuse original bitmap data for JPG and PNG bitmaps 2020-02-25 16:20:51 +01:00
instsetoo_native add macOS malloc debugging env vars 2020-02-20 07:11:13 +01:00
io
ios
javaunohelper
jurt
jvmaccess
jvmfwk Drop o3tl::optional wrapper 2020-02-21 14:50:28 +01:00
l10ntools
librelogo
libreofficekit Drop o3tl::optional wrapper 2020-02-21 14:50:28 +01:00
lingucomponent
linguistic
lotuswordpro workaround GCC 9.2.1 -Og -Werror=maybe-uninitialized 2020-02-24 19:23:38 +01:00
m4
nlpsolver
o3tl Adapt o3tl::span to removal of std::span::cbegin et al 2020-02-22 19:41:50 +01:00
odk Fix typo 2020-02-24 19:30:59 +01:00
offapi [API CHANGE] remove BasicImport UNO interfaces 2020-02-25 18:07:04 +01:00
officecfg Make shortcut of .uno:TraceChangeMode preferred 2020-02-23 12:33:20 +01:00
onlineupdate
oovbaapi
oox loplugin:referencecasting 2020-02-25 08:37:17 +01:00
opencl
osx
package
pch Drop o3tl::optional wrapper 2020-02-21 14:50:28 +01:00
postprocess
pyuno python 3.8.2 compile: add tp_print to PyTypeObject 2020-02-22 07:43:02 +01:00
qadevOOo tdf#45904 Move XNameAccess Java tests to C++ 2020-02-26 05:05:24 +01:00
readlicense_oo update credits 2020-02-20 20:37:40 +01:00
registry
remotebridges
reportbuilder
reportdesign Drop o3tl::optional wrapper 2020-02-21 14:50:28 +01:00
ridljar
sal
salhelper
sax Drop o3tl::optional wrapper 2020-02-21 14:50:28 +01:00
sc tdf#45904 Move XNameAccess Java tests to C++ 2020-02-26 05:05:24 +01:00
scaddins tdf#42982: improve UNO API error reportings 2020-02-24 10:23:34 +01:00
sccomp
schema
scp2
scripting
sd inherit SdTransferable from TransferDataContainer instead of TransferableHelper 2020-02-25 09:51:23 +01:00
sdext Move Boost.Spirit usage away from legacy namespace 2020-02-20 18:50:24 +01:00
setup_native
sfx2 Fix currency symbol selection in Calc on mobile 2020-02-25 09:25:33 +01:00
shell
slideshow Drop o3tl::optional wrapper 2020-02-21 14:50:28 +01:00
smoketest
solenv [API CHANGE] remove BasicImport UNO interfaces 2020-02-25 18:07:04 +01:00
soltools
sot
starmath Drop o3tl::optional wrapper 2020-02-21 14:50:28 +01:00
stoc
store
svgio Drop o3tl::optional wrapper 2020-02-21 14:50:28 +01:00
svl Fix currency symbol selection in Calc on mobile 2020-02-25 09:25:33 +01:00
svtools Drop o3tl::optional wrapper 2020-02-21 14:50:28 +01:00
svx SVG export: try to reuse original bitmap data for JPG and PNG bitmaps 2020-02-25 16:20:51 +01:00
sw tdf#123757 DOCX import: separate different style tables 2020-02-25 19:54:19 +01:00
swext
sysui
test
testtools
toolkit Drop o3tl::optional wrapper 2020-02-21 14:50:28 +01:00
tools tdf#75280: Convert inappropriate use of sal_uIntPtr to better integer types 2020-02-21 10:27:50 +01:00
translations@614eb34296
ucb Drop o3tl::optional wrapper 2020-02-21 14:50:28 +01:00
ucbhelper
udkapi Update the reference rdbs to libreoffice-6.4.0.3-buildfix1 2020-02-19 17:50:45 +01:00
uitest uitest: make sure UITEST_TEST_NAME matches exactly one test function 2020-02-19 09:03:59 +01:00
UnoControls tdf#42982 add detail exception reason for UnoControls 2020-02-19 12:31:30 +01:00
unodevtools
unoidl
unoil
unotest
unotools Fix currency symbol selection in Calc on mobile 2020-02-25 09:25:33 +01:00
unoxml Drop o3tl::optional wrapper 2020-02-21 14:50:28 +01:00
ure
uui
vbahelper Drop o3tl::optional wrapper 2020-02-21 14:50:28 +01:00
vcl vcl: move GraphicID out of impgraph.{cxx,hxx} 2020-02-25 19:30:53 +01:00
winaccessibility
wizards
writerfilter tdf#123757 DOCX import: separate different style tables 2020-02-25 19:54:19 +01:00
writerperfect
xmerge
xmlhelp
xmloff Resolves: tdf#130563 Add predefined 4-digit year date+time format 2020-02-22 20:17:54 +01:00
xmlreader
xmlscript tdf#130793 Fix import/export of image URLs 2020-02-26 06:40:23 +01:00
xmlsecurity
.buckconfig
.buckversion
.clang-format
.editorconfig
.git-blame-ignore-revs
.gitattributes
.gitignore
.gitmodules
.gitreview
antivirusDetection.vbs
autogen.sh
BUCK
config.guess
config.sub
config_host.mk.in macOS Xcode ld is known to always support -platform_version now 2020-02-20 23:15:52 +01:00
config_host_lang.mk.in
configure.ac configure: fix outdated doc on --with-tls default 2020-02-25 22:28:20 +01:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst
g
hardened_runtime.xcent
install-sh
leak-suppress.txt
Library_merged.mk
lo.xcent
logerrit
Makefile.fetch
Makefile.gbuild
Makefile.in
README.cross
README.md Bump macOS build baseline to Xcode 11.3 and macOS 10.14.4 2020-02-20 21:19:26 +01:00
README.Solaris
Repository.mk
RepositoryExternal.mk
RepositoryFixes.mk
RepositoryModule_build.mk
RepositoryModule_host.mk
sanitize-ubsan-blacklist
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 2017 version 15.7
  • 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

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