Test repository to check push and ssh key
Find a file
Caolán McNamara 36a1484f72 cid#1546421 COPY_INSTEAD_OF_MOVE
Change-Id: Ifab2f2f5ec8c7f41cd705e0fb07d1273a34b879d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161724
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-01-06 21:52:26 +01:00
.git-hooks
.github
.vscode
accessibility use string OUString literals in a11y for XServiceInfo impl. 2023-12-29 00:36:51 +01:00
android android-viewer translated using Weblate 2024-01-05 13:39:34 +01:00
animations
apple_remote
avmedia Remove DeleteItemOnIdlex 2023-12-21 21:13:55 +01:00
basctl cid#1545421 COPY_INSTEAD_OF_MOVE 2023-12-30 22:07:47 +01:00
basegfx
basic ofz#65329 Fuzzing build failure 2023-12-29 14:54:54 +01:00
bean
bin Fix make create-update-info also for non-Windows 2024-01-05 17:55:08 +01:00
binaryurp
bridges
canvas tdf#145538 Use range based for loops 2024-01-02 22:35:26 +01:00
chart2 UnoApiTest::loadFromURL -> UnoApiTest::loadFromFile 2024-01-03 07:51:28 +01:00
cli_ure
codemaker
comphelper move IsFuzzing to comphelper 2023-12-30 12:45:45 +01:00
compilerplugins Drop now unused SvtSlideSorterBarOptions class 2024-01-03 15:38:17 +01:00
config_host
configmgr
connectivity tdf#134526 Firebird: upgrade to release 3.0.11 2024-01-06 02:37:26 +01:00
cppcanvas UnoApiTest::loadFromURL -> UnoApiTest::loadFromFile 2024-01-03 07:51:28 +01:00
cppu
cppuhelper
cpputools
cui Resolves: tdf#158965 Find Record: Similarities dialog doesn't appear 2024-01-05 09:51:39 +01:00
dbaccess UnoApiTest::loadFromURL -> UnoApiTest::loadFromFile 2024-01-03 07:51:28 +01:00
desktop Also copy updater.ini (so that updater progress UI will actually shown up) 2024-01-05 14:47:29 +01:00
dictionaries@ef5ed1ca0e Update git submodules 2024-01-04 14:19:23 +01:00
distro-configs Hard-code --with-online-update-mar-channel=LOOnlineUpdater 2024-01-02 21:23:39 +01:00
docmodel
drawinglayer tdf#158913 secure Primitive 'visit' using mutex 2024-01-02 20:38:23 +01:00
editeng editeng: preserve ContentNode in a unique_ptr when moving paras 2024-01-02 09:56:55 +01:00
embeddedobj move IsFuzzing to comphelper 2023-12-30 12:45:45 +01:00
embedserv
emfio UnoApiTest::loadFromURL -> UnoApiTest::loadFromFile 2024-01-03 07:51:28 +01:00
eventattacher
extensions tdf#148251 Use std::swap instead of using temporary values 2024-01-01 14:27:36 +01:00
external cid#1546421 COPY_INSTEAD_OF_MOVE 2024-01-06 21:52:26 +01:00
extras tdf#158863 Move README to meta.xml 2024-01-02 13:01:08 +01:00
filter upgrade libxml2, libxslt & liblangtag 2024-01-05 11:05:36 +01:00
forms cid#1560053 Missing move assignment operator 2024-01-06 19:48:25 +01:00
formula Use emplace_back instead of push_back (Formula) 2023-12-27 12:19:27 +01:00
fpicker
framework tdf#127856: fix cell selection language 2024-01-05 18:14:26 +01:00
helpcompiler upgrade libxml2, libxslt & liblangtag 2024-01-05 11:05:36 +01:00
helpcontent2@9054c070a7 Update git submodules 2024-01-06 17:37:06 +01:00
hwpfilter move IsFuzzing to comphelper 2023-12-30 12:45:45 +01:00
i18nlangtag
i18npool Japanese word for 'reiwa' added to ja.dic 2024-01-02 10:38:03 +01:00
i18nutil move IsFuzzing to comphelper 2023-12-30 12:45:45 +01:00
icon-themes tdf#158114 SwNavigator: Make images with broken links easier to find 2023-12-21 21:45:23 +01:00
idl
idlc/test/parser
include Update comment to match function parameters 2024-01-05 23:30:47 +01:00
instsetoo_native Hard-code --with-online-update-mar-channel=LOOnlineUpdater 2024-01-02 21:23:39 +01:00
io
ios
javaunohelper
jurt
jvmaccess
jvmfwk
l10ntools
librelogo
libreofficekit Send tooltip text to LOK 2024-01-04 14:12:23 +01:00
lingucomponent tdf#158885 sw: don't hyphenate right after a stem boundary 2024-01-01 00:42:35 +01:00
linguistic tdf#158885 sw: don't hyphenate right after a stem boundary 2024-01-01 00:42:35 +01:00
lotuswordpro UnoApiTest::loadFromURL -> UnoApiTest::loadFromFile 2024-01-03 07:51:28 +01:00
m4
msicreator
nlpsolver
o3tl
odk tdf#158803 Remove unused imports from odk 2023-12-29 17:33:48 +01:00
offapi we are at 24.8 in trunk now, not 24.2 2023-12-21 15:36:08 +01:00
officecfg tdf#156719: use unique accelerator for Insert > Signature Line 2023-12-22 18:13:42 +01:00
oovbaapi
oox Use officecfg instead of SvtFilterOptions wrapper in sfx2, sd, oox 2024-01-05 19:01:25 +01:00
opencl
osx
package ofz#65480: Integer-overflow 2024-01-02 20:15:00 +01:00
pch
postprocess No good reason to not --enable-windows-build-signing with --enable-dbgutil 2023-12-21 15:47:05 +01:00
pyuno tdf#158803 Fix issues detected by pyflakes 2023-12-27 13:48:47 +01:00
qadevOOo cid#1545822 SSD: Do not use an instance lock to protect shared static data 2024-01-03 22:12:19 +01:00
readlicense_oo update credits 2023-12-21 17:25:32 +01:00
registry
remotebridges
reportbuilder
reportdesign
ridljar
sal Silence new GCC 14 trunk -Werror=alloc-size 2023-12-24 14:58:09 +01:00
salhelper Keep elements of salhelper::TimerManager::m_pHead list refcounted 2023-12-28 14:38:55 +01:00
sax
sc tdf#73678 Prevent conditional formatting from being lost in Calc 2024-01-06 18:20:29 +01:00
scaddins Use emplace_back instead of push_back (scaddins) 2023-12-26 21:31:01 +01:00
sccomp UnoApiTest::loadFromURL -> UnoApiTest::loadFromFile 2024-01-03 07:51:28 +01:00
schema
scp2 Fix Windows MSI custom action for --enable-online-update-mar 2023-12-22 18:47:14 +01:00
scripting cid#1545222 COPY_INSTEAD_OF_MOVE 2023-12-19 09:42:03 +01:00
sd tdf#158743: sd_png_export: Add unittest 2024-01-05 23:41:33 +01:00
sdext cid#1546464 COPY_INSTEAD_OF_MOVE 2023-12-31 23:08:51 +01:00
setup_native
sfx2 Use officecfg instead of SvtFilterOptions wrapper in sfx2, sd, oox 2024-01-05 19:01:25 +01:00
shell
slideshow UnoApiTest::loadFromURL -> UnoApiTest::loadFromFile 2024-01-03 07:51:28 +01:00
smoketest
solenv Don't mess with UserInstallation setting of --with-package-format=archive 2024-01-04 23:07:13 +01:00
soltools
sot use more unique_ptr in StgTmpStrm 2023-12-30 08:13:21 +01:00
starmath UnoApiTest::loadFromURL -> UnoApiTest::loadFromFile 2024-01-03 07:51:28 +01:00
static
stoc cid#1545470 COPY_INSTEAD_OF_MOVE 2023-12-24 13:23:45 +01:00
store
svgio cid#1545470 COPY_INSTEAD_OF_MOVE 2023-12-24 13:23:45 +01:00
svl tdf#114441 sal_uLong to better integer type 2024-01-04 12:38:38 +01:00
svtools Drop now unused SvtSlideSorterBarOptions class 2024-01-03 15:38:17 +01:00
svx cid#1560053 Missing move assignment operator 2024-01-06 19:48:25 +01:00
sw cid#1545576 COPY_INSTEAD_OF_MOVE 2024-01-06 19:48:32 +01:00
swext
sysui
test UnoApiTest::loadFromURL -> UnoApiTest::loadFromFile 2024-01-03 07:51:28 +01:00
testtools
toolkit cid#1545965 COPY_INSTEAD_OF_MOVE 2023-12-30 19:58:54 +01:00
tools no need to use SvLockBytes in forms 2023-12-30 13:45:53 +01:00
translations@2a46004be9 Update git submodules 2023-12-30 16:09:09 +01:00
ucb cid#1545411 Resource leak 2024-01-01 10:25:38 +01:00
ucbhelper
udkapi
uitest tdf#158803 Fix issues detected by pyflakes 2023-12-27 13:48:47 +01:00
UnoControls
unodevtools Don't use boost in code generated by uno-skeletonmaker 2023-12-22 11:17:45 +01:00
unoidl
unoil
unotest tdf#158803 Fix issues detected by pyflakes 2023-12-27 13:48:47 +01:00
unotools lok: import Work path from LOK_WORKDIR 2024-01-02 13:00:33 +01:00
unoxml std::size/SAL_N_ELEMENTS also counts the null terminator 2024-01-05 09:51:27 +01:00
ure
uui
vbahelper
vcl report what font is missing when terminating test 2024-01-05 20:30:40 +01:00
winaccessibility Remove unused headers found by bin/find-unusedheaders.sh 2023-12-24 11:50:41 +01:00
wizards tdf#158803 Remove unused imports from wizards 2023-12-29 23:56:27 +01:00
writerfilter UnoApiTest::loadFromURL -> UnoApiTest::loadFromFile 2024-01-03 07:51:28 +01:00
writerperfect UnoApiTest::loadFromURL -> UnoApiTest::loadFromFile 2024-01-03 07:51:28 +01:00
xmerge
xmlhelp
xmloff UnoApiTest::loadFromURL -> UnoApiTest::loadFromFile 2024-01-03 07:51:28 +01:00
xmlreader
xmlscript
xmlsecurity upgrade libxml2, libxslt & liblangtag 2024-01-05 11:05:36 +01:00
.buckconfig
.buckversion
.clang-format
.editorconfig
.git-blame-ignore-revs tdf#157638 Added to git blame ignore list 2023-12-29 17:01:32 +01:00
.gitattributes
.gitignore
.gitmodules
.gitpod.dockerfile
.gitpod.yml
.gitreview
antivirusDetection.vbs
autogen.sh
BUCK
config.guess
config.sub
config_host.mk.in Hard-code --with-online-update-mar-channel=LOOnlineUpdater 2024-01-02 21:23:39 +01:00
config_host_lang.mk.in
configure.ac Actually drop --with-online-update-mar-channel 2024-01-03 16:14:42 +01:00
COPYING
COPYING.LGPL
COPYING.MPL
cpp.hint
download.lst tdf#134526 Firebird: upgrade to release 3.0.11 2024-01-06 02:37:26 +01:00
g
install-sh
install_deps.sh
leak-suppress.txt
Library_merged.mk
logerrit
Makefile.fetch argon2: add new external library 2023-12-19 17:25:05 +01:00
Makefile.gbuild Fix make create-update-info also for non-Windows 2024-01-05 17:55:08 +01:00
Makefile.in
README.cross
README.help.md
README.md
README.Solaris
Repository.mk Re-enable MOZ_VERIFY_MAR_SIGNATURE feature 2024-01-02 21:23:48 +01:00
RepositoryExternal.mk argon2: add new external library 2023-12-19 17:25:05 +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.15
    • Build: 12 (13 for aarch64) + Xcode 14
  • Linux:
    • Runtime: RHEL 8 or CentOS 8 and comparable
    • Build: either GCC 12; or Clang 12 with libstdc++ 8.5
  • 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 r23 and SDK 30.0.3
  • 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 17 or later.

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.