Test repository to check push and ssh key
Find a file
Stephan Bergmann 43542cc07e Missing include
(for std::unique_ptr, with recent libstdc++ 12 trunk)

Change-Id: I61b7823dd740ea7cdfe0d7403a50ac73b24d1c4e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120229
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2021-08-10 07:39:00 +02:00
.git-hooks
.github
.vscode
accessibility no need to allocate ControlLayoutData separately 2021-08-08 22:32:12 +02:00
android
animations
apple_remote
avmedia create comphelper::OMultiTypeInterfaceContainerHelper2 and use it 2021-08-07 21:34:33 +02:00
basctl drop intermediate vcl::Window from Application::GetDefDialogParent 2021-08-06 10:55:18 +02:00
basegfx
basic Move variable definition to usage site 2021-08-06 23:04:14 +02:00
bean
bin enforce no image-position in GtkCheckButton/GtkRadioButton 2021-08-09 15:12:01 +02:00
binaryurp Consolidate on C++17 std::scoped_lock instead of std::lock_guard 2021-08-03 12:20:53 +02:00
bridges Consolidate on C++17 std::scoped_lock instead of std::lock_guard 2021-08-03 12:20:53 +02:00
canvas use some forward declares 2021-08-08 17:12:12 +02:00
chart2 Missing include 2021-08-10 07:39:00 +02:00
cli_ure
codemaker
comphelper Guard read of rCont_.bIsList with rCont_.rMutex 2021-08-09 16:19:32 +02:00
compilerplugins Missing include 2021-08-10 07:39:00 +02:00
config_host
configmgr
connectivity Missing include 2021-08-10 07:39:00 +02:00
cppcanvas
cppu return a reference instead of a pointer 2021-08-06 12:14:58 +02:00
cppuhelper Consolidate on C++17 std::scoped_lock instead of std::lock_guard 2021-08-03 12:20:53 +02:00
cpputools
cui Pass context and resource string down to boost::locale separately 2021-08-05 09:39:11 +02:00
dbaccess create comphelper:OMultiTypeInterfaceContainerHelperVar2 and use it 2021-08-08 17:04:03 +02:00
desktop improve LOK notifyInvalidation 2021-08-05 22:20:13 +02:00
dictionaries@e9915d1db3 Update git submodules 2021-08-01 01:29:25 +02:00
distro-configs disable scripting for fuzzing 2021-08-07 22:40:27 +02:00
drawinglayer Remove harmful static_cast<int> 2021-08-05 10:05:42 +02:00
editeng Pass context and resource string down to boost::locale separately 2021-08-05 09:39:11 +02:00
embeddedobj create comphelper:OMultiTypeInterfaceContainerHelperVar2 and use it 2021-08-08 17:04:03 +02:00
embedserv create comphelper:OMultiTypeInterfaceContainerHelperVar2 and use it 2021-08-08 17:04:03 +02:00
emfio
eventattacher Consolidate on C++17 std::scoped_lock instead of std::lock_guard 2021-08-03 12:20:53 +02:00
extensions stray unwanted and unneeded image-position properties 2021-08-09 14:40:42 +02:00
external external/harfbuzz: hb_graphite2_cluster_t::advance can apparently be negative 2021-08-09 11:39:05 +02:00
extras
filter Missing include 2021-08-10 07:39:00 +02:00
forms Missing include 2021-08-10 07:39:00 +02:00
formula cid#1489780 Explicit null dereferenced 2021-08-06 12:49:39 +02:00
fpicker Missing include 2021-08-10 07:39:00 +02:00
framework create comphelper:OMultiTypeInterfaceContainerHelperVar2 and use it 2021-08-08 17:04:03 +02:00
helpcompiler
helpcontent2@6ca79c5a1a Update git submodules 2021-08-03 12:42:52 +02:00
hwpfilter convert #defines to OUStringLiteral 2021-08-02 14:43:58 +02:00
i18nlangtag Adapt LCIDs and language tags to [MS-LCID] rev.15 2021-08-06 23:44:49 +02:00
i18npool Consolidate on C++17 std::scoped_lock instead of std::lock_guard 2021-08-03 12:20:53 +02:00
i18nutil
icon-themes No need for extra uno commands for shape hyperlinks 2021-08-05 10:52:03 +02:00
idl
idlc
include Missing include 2021-08-10 07:39:00 +02:00
instsetoo_native tdf#143686 Increase a width of the label 2021-08-04 18:30:07 +02:00
io use more comphelper::OInterfaceContainerHelper2 2021-08-06 22:26:13 +02:00
ios
javaunohelper
jurt
jvmaccess
jvmfwk Fix alternate JREs missing bin/ directory on java.library.path 2021-08-04 09:28:28 +02:00
l10ntools
librelogo
libreofficekit convert #defines to OUStringLiteral 2021-08-02 14:43:58 +02:00
lingucomponent Consolidate on C++17 std::scoped_lock instead of std::lock_guard 2021-08-03 12:20:53 +02:00
linguistic create comphelper:OMultiTypeInterfaceContainerHelperVar2 and use it 2021-08-08 17:04:03 +02:00
lotuswordpro Fix typos 2021-08-03 14:17:59 +02:00
m4
nlpsolver cid#1489772 UR: Uninitialized read of field in constructor 2021-08-06 15:22:37 +02:00
o3tl sw: remove all uses of MM50 with (added) o3tl::toTwip 2021-08-10 03:02:52 +02:00
odk
offapi tdf#64086 tdf#143623 tdf#66250 XLSX: fix named ranges in charts 2021-08-09 19:32:36 +02:00
officecfg No need for extra uno commands for shape hyperlinks 2021-08-05 10:52:03 +02:00
onlineupdate
oovbaapi
oox tdf#64086 tdf#143623 tdf#66250 XLSX: fix named ranges in charts 2021-08-09 19:32:36 +02:00
opencl
osx
package create comphelper::OMultiTypeInterfaceContainerHelper2 and use it 2021-08-07 21:34:33 +02:00
pch
postprocess
pyuno
qadevOOo
readlicense_oo
registry
remotebridges
reportbuilder
reportdesign drop unneeded forward declares of Control 2021-08-05 17:37:42 +02:00
ridljar
sal display stack trace on assert for windows jenkins builds 2021-08-02 13:52:15 +02:00
salhelper
sax Consolidate on C++17 std::scoped_lock instead of std::lock_guard 2021-08-03 12:20:53 +02:00
sc tdf#64086 tdf#143623 tdf#66250 XLSX: fix named ranges in charts 2021-08-09 19:32:36 +02:00
scaddins Pass context and resource string down to boost::locale separately 2021-08-05 09:39:11 +02:00
sccomp use Helper_optional SCRIPTING for libs that don't exist if --disable-scripting 2021-08-06 21:16:43 +02:00
schema
scp2
scripting Pass context and resource string down to boost::locale separately 2021-08-05 09:39:11 +02:00
sd stray unwanted and unneeded image-position properties 2021-08-09 14:40:42 +02:00
sdext Avoid ODR violation, consistently define ZLIB_CONST 2021-08-05 10:04:42 +02:00
setup_native Fix and simplify "any bundled extensions installed" check 2021-08-06 13:18:25 +02:00
sfx2 gtk4: g_menu_item_set_detailed_action aborts with ids with spaces in them 2021-08-09 10:15:17 +02:00
shell Missing include 2021-08-10 07:39:00 +02:00
slideshow use some forward declares 2021-08-08 17:12:12 +02:00
smoketest
solenv remove unneeded -ldl for DISABLE_DYNLOADING 2021-08-09 12:34:50 +02:00
soltools
sot Missing include 2021-08-10 07:39:00 +02:00
starmath Missing include 2021-08-10 07:39:00 +02:00
stoc osl::Mutex->std::mutex in UriReference 2021-08-03 13:21:07 +02:00
store
svgio
svl tdf#143664: svl_qa_cppunit: Add unittest 2021-08-09 16:44:02 +02:00
svtools Adapt LCIDs and language tags to [MS-LCID] rev.15 2021-08-06 23:44:49 +02:00
svx Missing include 2021-08-10 07:39:00 +02:00
sw Missing include 2021-08-10 07:39:00 +02:00
swext
sysui
test No need for extra uno commands for shape hyperlinks 2021-08-05 10:52:03 +02:00
testtools tdf#143450: Special integre+fp struct return case needs a fix too, of course 2021-08-02 18:21:30 +02:00
toolkit osl::Mutex->std::mutex in VCLXPointer 2021-08-04 14:22:31 +02:00
tools improve LOK notifyInvalidation 2021-08-05 22:20:13 +02:00
translations@879d0acff3 Update git submodules 2021-08-04 15:35:18 +02:00
ucb can pass PropertyChangeNotifier around by value 2021-08-09 12:37:55 +02:00
ucbhelper no need to use UNO_QUERY here 2021-08-07 17:17:25 +02:00
udkapi
uitest
UnoControls create comphelper::OMultiTypeInterfaceContainerHelper2 and use it 2021-08-07 21:34:33 +02:00
unodevtools
unoidl
unoil
unotest make --disable-scripting compile 2021-08-06 21:15:31 +02:00
unotools Pass context and resource string down to boost::locale separately 2021-08-05 09:39:11 +02:00
unoxml Consolidate on C++17 std::scoped_lock instead of std::lock_guard 2021-08-03 12:20:53 +02:00
ure
uui drop unneeded forward declare 2021-08-05 11:51:32 +02:00
vbahelper convert #defines to OUStringLiteral 2021-08-02 14:43:58 +02:00
vcl return true to indicate event was consumed 2021-08-09 20:40:44 +02:00
wasm-qt
winaccessibility
wizards Fix typo in code 2021-08-03 14:36:54 +02:00
writerfilter tdf#143476 improve import of lockedCanvas 2021-08-04 14:39:34 +02:00
writerperfect Pass context and resource string down to boost::locale separately 2021-08-05 09:39:11 +02:00
xmerge
xmlhelp Consolidate on C++17 std::scoped_lock instead of std::lock_guard 2021-08-03 12:20:53 +02:00
xmloff Consolidate on C++17 std::scoped_lock instead of std::lock_guard 2021-08-03 12:20:53 +02:00
xmlreader
xmlscript Consolidate on C++17 std::scoped_lock instead of std::lock_guard 2021-08-03 12:20:53 +02:00
xmlsecurity Missing include 2021-08-10 07:39:00 +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 Always provision PATH the cygwin way under Windows 2021-08-04 11:08:29 +02:00
config_host_lang.mk.in
configure.ac Always provision PATH the cygwin way under Windows 2021-08-04 11:08:29 +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 oss-fuzz: drop more_fonts build step and just install the min wanted 2021-08-08 17:16:20 +02:00
README.cross
README.help.md
README.md
README.Solaris
README.wasm
Repository.mk
RepositoryExternal.mk Avoid ODR violation, consistently define ZLIB_CONST 2021-08-05 10:04:42 +02:00
RepositoryFixes.mk
RepositoryModule_build.mk
RepositoryModule_host.mk
sanitize-ubsan-excludelist
setup.cfg
TEMPLATE.SOURCECODE.HEADER
tsan-suppress.txt more TSAN suppressions 2021-08-05 12:28:40 +02:00

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.