Test repository to check push and ssh key
Find a file
Caolán McNamara 79260c7cd8 ofz#35150 crash in Bitmap::Crop from wmf load
which is a problem since...

commit 33d2cf7008
Date:   Sat Jun 5 19:30:46 2021 +0200

    WMF Change the sign of read fields in BITBLT and DIB records

Change-Id: Iea1261a52866d691435f0612f672636009c00355
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117039
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-06-11 12:47:38 +02:00
.git-hooks
.github
.vscode
accessibility Simplify Sequences initializations (accessibility/binaryurp) 2021-06-05 16:21:03 +02:00
android
animations
apple_remote -Werror,-Wunused-but-set-variable (Clang 13 trunk) 2021-06-10 15:52:51 +02:00
avmedia
basctl
basegfx
basic
bean
bin find-unneeded-includes: fix YAMLLoadWarning on newer systems 2021-06-07 12:06:03 +02:00
binaryurp Revert "improve logging message" 2021-06-07 22:05:23 +02:00
bridges
canvas Simplify Sequences initializations (canvas) 2021-06-07 12:58:48 +02:00
chart2 tdf#139658 OOXML: fix broken chart import at labels with quotes 2021-06-10 15:04:50 +02:00
cli_ure
codemaker
comphelper Fix syntax error in the "arguments" of a TraceEvent 2021-06-09 13:53:49 +02:00
compilerplugins Adapt compilerplugins to Clang VK_RValue -> VK_PRValue rename 2021-06-10 15:42:45 +02:00
config_host HAVE_FIREBIRD_30 is not used anymore 2021-06-10 14:07:16 +02:00
configmgr
connectivity update firebird modelines 2021-06-10 12:01:19 +02:00
cppcanvas Simplify Sequences initializations (cppcanvas) 2021-06-08 13:20:39 +02:00
cppu
cppuhelper
cpputools
cui tdf#130428 remove unnecessary usage of SfxItemState::UNKNOWN 2021-06-10 11:11:26 +02:00
dbaccess Related: tdf#139447 DBTreeViewBase ctor takes a bool if its a sqltype or not 2021-06-11 12:19:23 +02:00
desktop scale VCL's scale cache according to the number of Online views 2021-06-09 21:21:45 +02:00
dictionaries@29eb293030 Update git submodules 2021-06-02 22:31:54 +02:00
distro-configs Enable PdfIum for android build 2021-06-04 10:38:48 +02:00
drawinglayer "drawinglayer" -> "drawinglayer.emf" log area for some emf code 2021-06-11 10:18:55 +02:00
editeng tdf#130428 remove unnecessary usage of SfxItemState::UNKNOWN 2021-06-11 09:40:32 +02:00
embeddedobj Simplify Sequences initializations (desktop/e*/filter/forms/formula/fpicker) 2021-06-08 17:08:06 +02:00
embedserv
emfio ofz#35150 crash in Bitmap::Crop from wmf load 2021-06-11 12:47:38 +02:00
eventattacher Simplify Sequences initializations (desktop/e*/filter/forms/formula/fpicker) 2021-06-08 17:08:06 +02:00
extensions Revert "Initialize vector directly with the already known count number" 2021-06-03 09:38:58 +02:00
external external/mdds: Mark patch as upstreamed 2021-06-10 10:29:25 +02:00
extras tdf#127028 "bpmn" template should have ext. otg instead of ott 2021-06-07 12:25:29 +02:00
filter Simplify Sequences initializations (desktop/e*/filter/forms/formula/fpicker) 2021-06-08 17:08:06 +02:00
forms Simplify Sequences initializations (desktop/e*/filter/forms/formula/fpicker) 2021-06-08 17:08:06 +02:00
formula Simplify Sequences initializations (desktop/e*/filter/forms/formula/fpicker) 2021-06-08 17:08:06 +02:00
fpicker -Werror,-Wunused-but-set-variable (Clang 13 trunk) 2021-06-10 16:54:48 +02:00
framework loplugin:unnecessaryreturn AddonsOptions_Impl 2021-06-10 16:26:43 +02:00
helpcompiler
helpcontent2@2b074d47c5 Update git submodules 2021-06-10 16:32:25 +02:00
hwpfilter
i18nlangtag
i18npool dtd files are not xml files and shouldn't have xml headers 2021-06-09 12:41:53 +02:00
i18nutil
icon-themes
idl
idlc
include "drawinglayer" -> "drawinglayer.emf" log area for some emf code 2021-06-11 10:18:55 +02:00
instsetoo_native
io
ios
javaunohelper
jurt
jvmaccess
jvmfwk
l10ntools -Werror,-Wunused-but-set-variable (Clang 13 trunk) 2021-06-03 16:13:24 +02:00
librelogo
libreofficekit
lingucomponent -Werror,-Wunused-but-set-variable (Clang 13 trunk) 2021-06-10 17:35:59 +02:00
linguistic Simplify Sequences initializations (i*->p*) 2021-06-09 10:49:26 +02:00
lotuswordpro
m4
nlpsolver
o3tl allow altering the max size of o3tl::lru_cache 2021-06-09 21:20:09 +02:00
odk
offapi Fix typos 2021-06-09 07:42:08 +02:00
officecfg tdf#142257 Add Word-compatible secondary shortcuts for Grow/Shrink 2021-06-10 13:58:16 +02:00
onlineupdate
oovbaapi
oox tdf#140623 Chart OOXML import: set text overlap to false 2021-06-10 15:03:52 +02:00
opencl
osx
package dtd files are not xml files and shouldn't have xml headers 2021-06-09 12:41:53 +02:00
pch
postprocess
pyuno
qadevOOo Explicitly set ForceFocusAndToFront to false for unit tests 2021-06-04 16:59:07 +02:00
readlicense_oo update credits 2021-06-04 16:23:19 +02:00
registry
remotebridges
reportbuilder
reportdesign Even more simplification in initializations (reportdesign) 2021-06-09 10:22:39 +02:00
ridljar
sal
salhelper
sax
sc tdf#130428 remove unnecessary usage of SfxItemState::UNKNOWN 2021-06-11 09:40:45 +02:00
scaddins
sccomp Simplify Sequences initializations (sccomp) 2021-06-09 19:57:11 +02:00
schema schema: update to ODF 1.3 OS 2021-06-10 19:07:36 +02:00
scp2
scripting
sd tdf#130428 remove unnecessary usage of SfxItemState::UNKNOWN 2021-06-11 09:40:45 +02:00
sdext Simplify Sequences initializations (sdext) 2021-06-09 21:27:29 +02:00
setup_native
sfx2 Simplify Sequences initializations (sfx2) 2021-06-09 21:28:05 +02:00
shell
slideshow
smoketest
solenv update add-modelines to the TEMPLATE.SOURCECODE.HEADER pattern 2021-06-10 11:46:14 +02:00
soltools
sot loplugin:unnecessaryreturn SotStorageStream::Commit 2021-06-10 20:09:29 +02:00
starmath move unique use of secondary-icon-tooltip-text to tooltip-text 2021-06-04 21:00:33 +02:00
stoc Simplify Sequences initializations (sot/stock/svl/svtools/svx) 2021-06-10 08:30:12 +02:00
store
svgio
svl small optimisation in SvtListener::EndListening 2021-06-10 16:19:52 +02:00
svtools Simplify Sequences initializations (sot/stock/svl/svtools/svx) 2021-06-10 08:30:12 +02:00
svx tdf#130428 remove unnecessary usage of SfxItemState::UNKNOWN 2021-06-11 09:41:03 +02:00
sw loplugin:unnecessaryreturn in sw/ 2021-06-11 11:48:15 +02:00
swext
sysui math.desktop include "Spreadsheet" category 2021-06-11 11:10:29 +02:00
test schema: update to ODF 1.3 OS 2021-06-10 19:07:36 +02:00
testtools
toolkit
tools ofz#33769 Integer-overflow 2021-06-03 13:37:36 +02:00
translations@c856f9a263 Update git submodules 2021-06-07 07:03:50 +02:00
ucb
ucbhelper
udkapi
uitest editengine-columns: Create document model and dialog page 2021-06-08 14:50:33 +02:00
UnoControls
unodevtools -Werror,-Wunused-but-set-variable (Clang 13 trunk) 2021-06-03 15:16:27 +02:00
unoidl
unoil
unotest
unotools
unoxml
ure
uui tdf#66553 - Add file/product name to title bar for password managers 2021-06-09 21:45:53 +02:00
vbahelper
vcl ofz#35150 crash in Bitmap::Crop from wmf load 2021-06-11 12:47:38 +02:00
wasm-qt
winaccessibility
wizards ScriptForge - (scriptforge.py) ThisComponent, ThisDatabaseDocument 2021-06-04 10:21:54 +02:00
writerfilter loplugin:unnecessaryreturn FontTable::addEmbeddedFont 2021-06-10 14:35:38 +02:00
writerperfect
xmerge dtd files are not xml files and shouldn't have xml headers 2021-06-09 12:41:53 +02:00
xmlhelp
xmloff dtd files are not xml files and shouldn't have xml headers 2021-06-09 12:41:53 +02:00
xmlreader
xmlscript dtd files are not xml files and shouldn't have xml headers 2021-06-09 12:41:53 +02:00
xmlsecurity CppunitTest_xmlsecurity_signing: remove not needed direct pdfium dependency 2021-06-10 09:01:53 +02:00
.buckconfig
.buckversion
.clang-format
.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
config_host_lang.mk.in
configure.ac HAVE_FIREBIRD_30 is not used anymore 2021-06-10 14:07:16 +02:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst
g
hardened_runtime.xcent.in
install-sh
install_deps.sh
leak-suppress.txt
Library_merged.mk
lo.xcent
logerrit
Makefile.fetch
Makefile.gbuild
Makefile.in
README.cross
README.md
README.Solaris
README.wasm
Repository.mk
RepositoryExternal.mk fix packaging on mac/linux re cairo/pixman 2021-06-08 23:26:06 +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.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.