Test repository to check push and ssh key
Find a file
Andrea Gelmini ae372725fe Removed duplicated include
Change-Id: I1b015e76112e5587bf0a349d3034adc6a2118754
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142381
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2022-11-07 17:26:04 +01:00
.git-hooks
.github
.vscode
accessibility
android
animations
apple_remote
avmedia
basctl
basegfx tdf#126788 use singleton to avoid initial allocation 2022-10-30 11:26:39 +01:00
basic -Werror,-Wdeprecated-declarations (sprintf, macOS 13 SDK): basic 2022-11-05 17:17:54 +01:00
bean
bin upload_symbols: Clarify parameters 2022-11-01 15:57:32 +01:00
binaryurp
bridges
canvas
chart2 tdf#141908 - CppUnittests: replace usage of sal_Int32 with colors 2022-11-07 09:58:04 +01:00
cli_ure
codemaker
comphelper TempFile: Initialise handle 2022-11-07 09:09:14 +01:00
compilerplugins -Werror,-Wdeprecated-declarations (sprintf, macOS 13 SDK): compilerplugins 2022-11-06 01:14:05 +01:00
config_host
configmgr
connectivity
cppcanvas UnoApiTest: factor out common code 2022-10-24 18:05:04 +02:00
cppu
cppuhelper
cpputools
cui No point in abbreviating like that in the middle of the sentence 2022-11-07 05:26:28 +01:00
dbaccess calling getCaughtException twice in one catch block is not allowed 2022-11-04 13:14:47 +01:00
desktop -Werror,-Wdeprecated-declarations (sprintf, macOS 13 SDK): desktop 2022-11-06 01:15:04 +01:00
dictionaries@2ee18117fc Update git submodules 2022-11-07 03:31:32 +01:00
distro-configs add bisect configs 2022-10-24 15:11:51 +02:00
drawinglayer Remove double functionality 2022-11-06 11:57:01 +01:00
editeng Related: tdf#149932 honour PANGO_UNDERLINE_DOUBLE for preedit underline 2022-11-03 20:48:37 +01:00
embeddedobj CppunitTest_embeddedobj_msole: inherit from UnoApiXmlTest 2022-11-04 08:52:57 +01:00
embedserv tdf#143148 Use of #pragma once instead of include guards. 2022-11-02 18:44:39 +01:00
emfio -Werror,-Wdeprecated-declarations (sprintf, macOS 13 SDK): emfio 2022-11-05 19:20:30 +01:00
eventattacher
extensions -Werror,-Wdeprecated-declarations (sprintf, macOS 13 SDK): extensions 2022-11-05 18:27:41 +01:00
external upgrade Expat to 2.5.0 2022-11-04 14:14:00 +01:00
extras Templates: tdf#86483: Add "Localization" category and add a template for zh_CN 2022-11-04 21:29:33 +01:00
filter -Werror,-Wdeprecated-declarations (sprintf, macOS 13 SDK): filter 2022-11-05 18:27:01 +01:00
forms
formula
fpicker
framework lok: fix convert-to batch mode, quiet interaction 2022-10-31 13:29:39 +01:00
helpcompiler
helpcontent2@b310c2a8fb Update git submodules 2022-11-07 01:53:03 +01:00
hwpfilter ofz#52490 Timeout 2022-11-06 14:15:25 +01:00
i18nlangtag
i18npool -Werror,-Wdeprecated-declarations (sprintf, macOS 13 SDK): i18npool 2022-11-06 01:14:25 +01:00
i18nutil Update to ICU 72.1 2022-10-25 01:39:21 +02:00
icon-themes tdf#151071 Sifr follow upstream: Form Control, Record, Cell Styles, Shadow 2022-10-31 06:24:47 +01:00
idl
idlc/test/parser
include Fix typos 2022-11-07 14:33:51 +01:00
instsetoo_native
io
ios
javaunohelper
jurt
jvmaccess
jvmfwk
l10ntools
librelogo
libreofficekit lok: You can't assume that destroyView would only destroy one view 2022-10-28 13:59:36 +02:00
lingucomponent
linguistic
lotuswordpro -Werror,-Wdeprecated-declarations (sprintf, macOS 13 SDK): lotuswordpro 2022-11-06 01:14:44 +01:00
m4
nlpsolver
o3tl Fix MulDivSaturate to avoid overflow 2022-10-24 14:07:31 +02:00
odk Avoid nesting using 'else conditional-directive' 2022-10-23 22:15:48 +02:00
offapi sw content controls: enable data binding for date 2022-10-26 10:47:59 +02:00
officecfg tdf#151605 Don't include hidden text by default in HTML filter 2022-11-07 08:32:05 +01:00
onlineupdate
oovbaapi
oox tdf#141908 - CppUnittests: replace usage of sal_Int32 with colors 2022-11-07 09:58:04 +01:00
opencl
osx
package cid#1242675 Untrusted value as argument 2022-10-27 09:47:54 +02:00
pch
postprocess
pyuno
qadevOOo
readlicense_oo update credits 2022-11-02 11:08:20 +01:00
registry
remotebridges
reportbuilder
reportdesign tdf#54857 use OUStringConstExpr in XMLPropertyMapEntry 2022-11-04 06:50:43 +01:00
ridljar
sal file: Use calloc 2022-11-07 09:11:30 +01:00
salhelper
sax
sc Fix typos 2022-11-07 14:33:51 +01:00
scaddins tdf#150465 Improve description of RANDBETWEEN in function wizard 2022-10-31 17:08:04 +01:00
sccomp UnoApiTest: factor out common code 2022-10-24 18:05:04 +02:00
schema
scp2 Match conditionals in dictionaries/Module_dictionaries.mk 2022-11-07 00:02:57 +01:00
scripting use more TempFileFastService in scripting 2022-10-22 09:11:21 +02:00
sd tdf#144399 Don't allow editing in r/o mode 2022-11-07 15:23:22 +01:00
sdext sdext.pdfimport Writer: Do not visit DrawElement twice in WriterXmlEmitter 2022-11-06 12:43:07 +01:00
setup_native
sfx2 Remove double functionality 2022-11-06 11:57:01 +01:00
shell
slideshow
smoketest
solenv Do not merge filesarrayref and unixlinksarrayref when filtering out directories 2022-11-03 17:23:11 +01:00
soltools
sot
starmath Use o3tl::convert instead of temporary Fractions 2022-11-07 06:03:48 +01:00
static tdf#142446 follow up: Fix missing ui file crash and a11y ui errors 2022-11-01 06:13:01 +01:00
stoc Use o3tl::to_underlying() instead of static_cast<int>() 2022-11-02 11:21:21 +01:00
store
svgio
svl -Werror,-Wdeprecated-declarations (sprintf, macOS 13 SDK): svl 2022-11-05 19:19:06 +01:00
svtools ofz#53011 Timeout: drop categorized tokens we don't have handlers for 2022-11-04 22:03:18 +01:00
svx cid#1516651 Dereference after null check 2022-11-05 22:13:43 +01:00
sw Removed duplicated include 2022-11-07 17:26:04 +01:00
swext
sysui macOS: add XCode and SDK buildversions to Info.plist 2022-10-23 12:11:29 +02:00
test CppunitTest_sc_html_export_test: inherit from UnoApiXmlTest 2022-11-03 17:33:42 +01:00
testtools
toolkit
tools -Werror,-Wdeprecated-declarations (sprintf, macOS 13 SDK): tools 2022-11-06 01:13:45 +01:00
translations@b03d019e0d Update git submodules 2022-11-05 18:19:13 +01:00
ucb ucb: FTP UCP: report CURLE_URL_MALFORMAT as IllegalIdentifierException 2022-10-26 16:02:25 +02:00
ucbhelper
udkapi
uitest
UnoControls
unodevtools
unoidl tdf#147021 Use std::size() instead of SAL_N_ELEMENTS() macro 2022-11-06 01:22:27 +01:00
unoil
unotest tdf#147021 Use std::size() instead of SAL_N_ELEMENTS() macro 2022-11-06 01:22:27 +01:00
unotools tdf#147021 Use std::size() instead of SAL_N_ELEMENTS() macro 2022-11-06 01:22:27 +01:00
unoxml tdf#147021 Use std::size() instead of SAL_N_ELEMENTS() macro 2022-11-06 01:22:27 +01:00
ure Revert "tdf#145538 Use range based for loops" 2022-11-07 08:20:46 +01:00
uui
vbahelper
vcl cid#1516751 Improper use of negative value 2022-11-07 16:35:01 +01:00
winaccessibility
wizards ScriptForge - (SF_Datasheet) Filter, OrderBy properties 2022-11-06 17:37:10 +01:00
writerfilter CppunitTest_writerfilter_dmapper: inherit from UnoApiTest 2022-11-01 14:56:54 +01:00
writerperfect
xmerge
xmlhelp
xmloff xmloff: write transliteration-spellout only in extended ODF 2022-11-07 13:53:48 +01:00
xmlreader
xmlscript
xmlsecurity sync mscrypt impl with nss impl 2022-11-06 17:36:47 +01:00
.buckconfig
.buckversion
.clang-format Document that .clang-format would benefit from StatementMacros 2022-11-06 15:38:07 +01:00
.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 Enable gtktiledviewer on Windows 2022-10-26 13:58:41 +02:00
config_host_lang.mk.in
configure.ac Adapt to llvm-config --src-root dropped from LLVM 16 trunk 2022-11-07 08:15:36 +01:00
COPYING
COPYING.LGPL
COPYING.MPL
cpp.hint
download.lst upgrade Expat to 2.5.0 2022-11-04 14:14:00 +01:00
g
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 use https instead of http 2022-11-01 14:14:45 +01:00
README.cross
README.help.md
README.md
README.Solaris
Repository.mk Enable gtktiledviewer on Windows 2022-10-26 13:58:41 +02:00
RepositoryExternal.mk
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.