Test repository to check push and ssh key
Find a file
Michael Stahl a71ce24626 flat-odf-cleanup.py: remove some presentation related styles
Change-Id: I385941f83237464eb02e4e543a67e24f22bddac7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143498
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2022-11-30 18:44:54 +01:00
.git-hooks
.github
.vscode
accessibility loplugin:unusedfields make some fields private 2022-11-23 20:49:03 +01:00
android
animations
apple_remote
avmedia
basctl Make entry visible after scroll_to_row in Macro Organizer dialog 2022-11-28 20:54:12 +01:00
basegfx
basic Fold OldBasicPassword into basic::SfxScriptLibraryContainer 2022-11-25 10:12:38 +01:00
bean
bin flat-odf-cleanup.py: remove some presentation related styles 2022-11-30 18:44:54 +01:00
binaryurp
bridges
canvas New loplugin:crosscast 2022-11-29 18:07:23 +01:00
chart2 New loplugin:crosscast 2022-11-29 18:07:23 +01:00
cli_ure
codemaker
comphelper sfx2: extend .uno:SetDocumentProperties to update custom doc props 2022-11-30 16:51:00 +01:00
compilerplugins New loplugin:crosscast 2022-11-29 18:07:23 +01:00
config_host
configmgr
connectivity Resolves: tdf#152114 Use comphelper::date algorithms 2022-11-22 18:38:52 +01:00
cppcanvas Remove some unused includes 2022-11-24 08:09:53 +01:00
cppu
cppuhelper
cpputools
cui DeepL: Only enable Translate menu if it's set up 2022-11-28 14:31:35 +01:00
dbaccess dbaccess: remove unused includes 2022-11-29 14:51:01 +01:00
desktop sw lok, .uno:SetDocumentProperties: expose value of custom document properties 2022-11-30 08:13:28 +01:00
dictionaries@2b234ba64f Update git submodules 2022-11-25 23:07:30 +01:00
distro-configs Move Qt5 and scripting options for Emscripten to the distro-configs file 2022-11-30 12:27:24 +01:00
drawinglayer tdf#57423 drawinglayer: PDF/UA export: more Alt texts for SdrObjects 2022-11-25 11:47:13 +01:00
editeng tdf#151801 solves bug for autocorrect non default quotes 2022-11-25 11:08:12 +01:00
embeddedobj Remove some unused includes 2022-11-24 08:09:53 +01:00
embedserv Drop redundant -Wnon-virtual-dtor 2022-11-24 10:38:28 +01:00
emfio
eventattacher
extensions Resolves: tdf#152157 show update icon on all menubars 2022-11-24 21:33:17 +01:00
external if we --disable-arm-neon then also use the new --disable-arm-a64-neon 2022-11-30 12:12:15 +01:00
extras
filter tdf#77650 Add option to place comments in margin (PDF Export) 2022-11-28 11:24:57 +01:00
forms loplugin:unusedfields make some fields private 2022-11-23 20:49:03 +01:00
formula
fpicker
framework CppunitTest_framework_services: inherit from UnoApiTest 2022-11-22 14:52:43 +01:00
helpcompiler
helpcontent2@23d4609281 Update git submodules 2022-11-30 16:29:28 +01:00
hwpfilter hwpfilter: Fix use of std::char_trait<unsigned short> 2022-11-24 17:37:21 +01:00
i18nlangtag Resolves: tdf#148792 Add Portuguese (Mozambique) {pt-MZ} locale and data 2022-11-28 17:29:55 +01:00
i18npool Resolves: tdf#148792 Add Portuguese (Mozambique) {pt-MZ} locale and data 2022-11-28 17:29:55 +01:00
i18nutil tdf#104597 related: restore the mirroring of Bidi_Mirrored characters 2022-11-30 13:40:24 +01:00
icon-themes sw: change statusbar to use an icon, fix statusbar updating 2022-11-22 14:56:20 +01:00
idl
idlc/test/parser
include tdf#104597 related: restore the mirroring of Bidi_Mirrored characters 2022-11-30 13:40:24 +01:00
instsetoo_native
io loplugin:unusedfields make some fields private 2022-11-24 07:00:02 +01:00
ios
javaunohelper
jurt
jvmaccess
jvmfwk loplugin:unusedfields make some fields private 2022-11-24 07:00:02 +01:00
l10ntools Work around system(3) dropping DYLD_LIBRARY_PATH on macOS 2022-11-23 08:47:26 +01:00
librelogo
libreofficekit libreofficekit: add a way to invoke getCommandValues() 2022-11-30 10:26:06 +01:00
lingucomponent Disable languagetool for WASM build 2022-11-28 16:46:58 +01:00
linguistic WASM linguistic,sw: disable curl-using deepl code 2022-11-28 15:32:47 +01:00
lotuswordpro loplugin:unusedfields make some fields private 2022-11-24 07:00:02 +01:00
m4
nlpsolver
o3tl
odk
offapi DOCX filter: fix <w:id> creating both grab-bag and content control for <w:sdt> 2022-11-22 19:36:37 +01:00
officecfg tdf#77650 Add option to place comments in margin (PDF Export) 2022-11-28 11:24:57 +01:00
onlineupdate
oovbaapi tdf#151548 vba ContentControls: Add word::XContentControlListEntry 2022-11-25 18:09:32 +01:00
oox tdf#152152 DOCX export: fix lost WDP images in artistic effects 2022-11-29 17:37:28 +01:00
opencl
osx
package loplugin:unusedfields 2022-11-22 11:04:08 +01:00
pch
postprocess
pyuno
qadevOOo Add some more failure information 2022-11-30 16:44:07 +01:00
readlicense_oo
registry
remotebridges
reportbuilder
reportdesign tdf#133343 collect autostyle prop names 2022-11-30 08:38:57 +01:00
ridljar
sal We won't need Executable_osl_process_child for WASM in the foreseeable future 2022-11-30 14:50:12 +01:00
salhelper
sax
sc tdf#151702 Improve contrast of down arrow of AutoFilter in dark mode 2022-11-30 18:02:43 +01:00
scaddins
sccomp
schema
scp2
scripting loplugin:unusedfields 2022-11-22 05:39:20 +01:00
sd CppunitTest_sd_uiimpress: fix asserts 2022-11-30 16:21:02 +01:00
sdext tdf#104597 related: restore the mirroring of Bidi_Mirrored characters 2022-11-30 13:40:24 +01:00
setup_native
sfx2 sfx2: extend .uno:SetDocumentProperties to update custom doc props 2022-11-30 16:51:00 +01:00
shell Drop redundant -Wnon-virtual-dtor 2022-11-24 10:38:28 +01:00
slideshow New loplugin:crosscast 2022-11-29 18:07:23 +01:00
smoketest
solenv New loplugin:crosscast 2022-11-29 18:07:23 +01:00
soltools
sot
starmath loplugin:unusedfields make some fields private 2022-11-24 13:51:10 +01:00
static Don't build the Qt5 Mandelbrot demos unless we have Qt5 2022-11-29 01:56:23 +01:00
stoc
store
svgio SVG import: add support for semi-transparent text 2022-11-29 11:32:14 +01:00
svl fix assert 2022-11-25 10:53:05 +01:00
svtools Resolves: tdf#148792 Add Portuguese (Mozambique) {pt-MZ} locale and data 2022-11-28 17:29:55 +01:00
svx Resolves: tdf#152311 inform EditEngine what the bg color is 2022-11-30 17:17:06 +01:00
sw WASM: conditionalize one more Deepl usage in sw 2022-11-30 14:42:04 +01:00
swext
sysui
test sd: test exporting to odp/pptx with password protection 2022-11-29 14:04:50 +01:00
testtools
toolkit
tools Calculate null-date days to assert only once 2022-11-22 20:13:01 +01:00
translations@f1680ed534 Update git submodules 2022-11-25 14:09:33 +01:00
ucb
ucbhelper
udkapi
uitest
UnoControls
unodevtools
unoidl
unoil
unotest
unotools
unoxml
ure
uui loplugin:unusedfields 2022-11-22 05:38:48 +01:00
vbahelper
vcl Typo: appropiate->appropriate 2022-11-30 17:25:58 +01:00
winaccessibility Drop redundant -Wnon-virtual-dtor 2022-11-24 10:38:28 +01:00
wizards
writerfilter tdf#152289: implement external glossary relations roundtrip 2022-11-30 06:52:09 +01:00
writerperfect Remove some unused includes 2022-11-24 08:09:53 +01:00
xmerge
xmlhelp
xmloff tdf#133343 collect autostyle prop names 2022-11-30 08:38:57 +01:00
xmlreader
xmlscript
xmlsecurity New loplugin:crosscast 2022-11-29 18:07:23 +01: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 Disable languagetool for WASM build 2022-11-28 16:46:58 +01:00
config_host_lang.mk.in
configure.ac Make it possible build for WASM with --disable-gui, without Qt5 2022-11-30 14:59:54 +01:00
COPYING
COPYING.LGPL
COPYING.MPL
cpp.hint
download.lst pixman: upgrade to release 0.42.2 2022-11-29 14:18:28 +01:00
g Avoid refreshing all hooks in secondary worktrees 2022-11-28 05:18:12 +01:00
hardened_runtime.xcent.in
install-sh
install_deps.sh
leak-suppress.txt
Library_merged.mk
lo.xcent.in
logerrit
Makefile.fetch
Makefile.gbuild
Makefile.in
README.cross
README.help.md
README.md
README.Solaris
Repository.mk vcl: list the glyphs and bound rects of a specified font 2022-11-25 14:04:20 +01:00
RepositoryExternal.mk Fix Linux --without-system-cairo build 2022-11-29 14:21:33 +01:00
RepositoryFixes.mk
RepositoryModule_build.mk
RepositoryModule_host.mk
sanitize-ubsan-excludelist
setup.cfg
TEMPLATE.SOURCECODE.HEADER
tsan-suppress.txt

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 and Developers Guide. 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.10
  • macOS:
    • Runtime: 10.14
    • Build: 11.0 + Xcode 12.5
  • Linux:
    • Runtime: RHEL 7 or CentOS 7
    • Build: either GCC 7.0.0; or Clang 8.0.1 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

Java is required for building many parts of LibreOffice. In TDF Wiki article Development/Java, the exact modules that depend on Java are listed.

The baseline for Java is Java Development Kit (JDK) Version 11 or later. It is possible to build LibreOffice with JDK version 9, but it is no longer supported by the JDK vendors, thus it should be avoided.

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