Test repository to check push and ssh key
Find a file
Miklos Vajna 8fc1b60f62 sw SVG export: try to reuse original bitmap data for JPG and PNG bitmaps
Writer shapes are implemented using SwXShape, Impress shapes use
SdrGrafObj. So switch to working with the XShape interface, which is
supported by both.

Also, don't work with the transformed graphic if it has the same
checksum as the original graphic: the transformed graphic is not linked
to the original JPG/PNG data.

Now selecting an image in Writer Online has the same speedup that
Impress Online already had.

Change-Id: Iab2791c5f5c7a2754e3de0ebb2d6ea664f6c77e4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89540
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2020-02-27 10:33:24 +01:00
.git-hooks
.github
accessibility Drop o3tl::optional wrapper 2020-02-21 14:50:28 +01:00
android GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
animations
apple_remote Blind fix of -Werror,-Wpointer-to-int-cast in apple_remote 2020-02-21 16:30:11 +01:00
avmedia tdf#124176: Use pragma once instead of include guards 2020-02-16 20:50:48 +01:00
basctl explicitly call ActivatePageHdl when programatically calling set_current_page 2020-02-26 09:51:34 +01:00
basegfx tdf#130655 callback interface for 3D and secure dash 2020-02-14 19:19:49 +01:00
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 fix regression in chart keyboard handling 2020-02-27 08:30:16 +01:00
cli_ure
codemaker
comphelper Fix currency symbol selection in Calc on mobile 2020-02-25 09:25:33 +01:00
compilerplugins loplugin:unusedfields 2020-02-27 09:52:09 +01:00
config_host
configmgr
connectivity remove postgresql-sdbc.ini 2020-02-27 09:09:28 +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 tdf#42949 Fix IWYU warnings in dbaccess/source/*/*hxx 2020-02-27 09:05:38 +01:00
desktop Drop checking for user extensions w/ the same ID on every synchronization 2020-02-27 10:09:10 +01:00
dictionaries@6e60b3ca21 Update git submodules 2020-02-16 20:22:16 +01:00
distro-configs Revert "make Linux Clang Jenkins builds use -Og" 2020-02-21 11:22:17 +01:00
drawinglayer tdf#129675: This should be EmfPlusPenDataDashedLine 2020-02-17 20:31:07 +01:00
dtrans
editeng new loplugin:xmlimport 2020-02-26 07:06:32 +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 drop unneeded include 2020-02-17 21:35:44 +01:00
external boost: disable -Wmaybe-uninitialized from GCC 9.2.1 -Og 2020-02-24 19:15:16 +01:00
extras weld impress navigator 2020-02-26 17:24:59 +01:00
filter sw SVG export: try to reuse original bitmap data for JPG and PNG bitmaps 2020-02-27 10:33:24 +01:00
forms Drop o3tl::optional wrapper 2020-02-21 14:50:28 +01:00
formula clang-format f*,h* with under 5-percent lines of change 2020-02-16 14:10:39 +01:00
fpicker clang-format f*,h* with under 5-percent lines of change 2020-02-16 14:10:39 +01:00
framework tdf#130163 Show undock or dock menu item in toolbar menu 2020-02-24 08:00:46 +01:00
helpcompiler
helpcontent2@3c28b5afd1 Update git submodules 2020-02-27 00:28:14 +01:00
hwpfilter clang-format f*,h* with under 5-percent lines of change 2020-02-16 14:10:39 +01:00
i18nlangtag Resolves: tdf#130757 Add Minangkabau [min-ID] to language list 2020-02-18 23:00:32 +01:00
i18npool Resolves: tdf#130563 Add predefined 4-digit year date+time format 2020-02-22 20:17:54 +01:00
i18nutil Add case table for Adlam 2020-02-16 16:31:08 +01:00
icon-themes Sukapura: Update Draw/Impress non cmd icons 2020-02-27 03:05:20 +01:00
idl
idlc Drop o3tl::optional wrapper 2020-02-21 14:50:28 +01:00
include loplugin:unusedfields 2020-02-27 09:52:09 +01:00
instsetoo_native add macOS malloc debugging env vars 2020-02-20 07:11:13 +01:00
io
ios Move the "registry" directory to be under "share" on iOS, too 2020-02-17 15:56:02 +02:00
javaunohelper
jurt
jvmaccess
jvmfwk Drop o3tl::optional wrapper 2020-02-21 14:50:28 +01:00
l10ntools
librelogo GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
libreofficekit Drop o3tl::optional wrapper 2020-02-21 14:50:28 +01:00
lingucomponent
linguistic new loplugin:xmlimport 2020-02-26 07:06:32 +01:00
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 Quote * at start of continuation line in Doxygen /** .. */ comment 2020-02-26 22:24:59 +01:00
officecfg tdf#130886 add ... to Edit Macros in Tools - Macros menu 2020-02-26 14:00:16 +01:00
onlineupdate Proper error check for fwrite in updater.cxx 2020-02-16 22:32:47 +01:00
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 GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
pyuno python 3.8.2 compile: add tp_print to PyTypeObject 2020-02-22 07:43:02 +01:00
qadevOOo tdf#45904 Move XIndexAccess Java tests to C++ 2020-02-27 08:41:47 +01:00
readlicense_oo Resolves tdf#130500 - Sukapura icon theme 2020-02-26 09:16:27 +01:00
registry
remotebridges
reportbuilder
reportdesign new loplugin:xmlimport 2020-02-26 07:06:32 +01:00
ridljar GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
sal
salhelper
sax Drop o3tl::optional wrapper 2020-02-21 14:50:28 +01:00
sc tdf#130959 crash when opening file with non-existing hyperlinks 2020-02-27 10:17:29 +01:00
scaddins tdf#42982: improve UNO API error reportings 2020-02-24 10:23:34 +01:00
sccomp
schema
scp2
scripting
sd weld impress navigator 2020-02-26 17:24:59 +01:00
sdext Move Boost.Spirit usage away from legacy namespace 2020-02-20 18:50:24 +01:00
setup_native
sfx2 Related: tdf#128191 tdf#130862 Use whole words in lieu of clippings in UI strings 2020-02-27 04:10:31 +01:00
shell GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
slideshow Drop o3tl::optional wrapper 2020-02-21 14:50:28 +01:00
smoketest
solenv weld impress navigator 2020-02-26 17:24:59 +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 tdf#130952 crash launching bullets and numbering from sidebar more... dropdown 2020-02-26 14:56:45 +01:00
sw tdf#130933 wraptools are berserk 2020-02-27 09:50:59 +01:00
swext
sysui GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
test
testtools Remove never-executed else-block 2020-02-17 15:36:04 +01:00
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 inline some acquire/release calls 2020-02-17 08:59:01 +01:00
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 GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
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 loplugin:unusedfields 2020-02-27 09:52:09 +01:00
winaccessibility GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
wizards GBUILD_TRACE, support for finding out where the build time is spent 2020-02-16 14:49:45 +01:00
writerfilter tdf#123757 DOCX import: separate different style tables 2020-02-25 19:54:19 +01:00
writerperfect
xmerge
xmlhelp
xmloff tdf#129532 tdf#98839 fixes for mirror of custom shapes 2020-02-26 12:04:11 +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 clang-format: don't sort using declarations 2020-02-26 09:12:49 +01:00
.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 Resolves tdf#130500 - Sukapura icon theme 2020-02-26 09:16:27 +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 drop workben outdevgrind 2020-02-13 16:50:38 +01:00
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.