Test repository to check push and ssh key
Find a file
Mike Kaganski 359a17d021 Prepare for removal of non-const operator[] from Sequence in unoxml
Change-Id: Ie7738eb599ac2ae98618e258786b2a0d956cb9dd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124408
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2021-10-31 21:36:50 +01:00
.git-hooks
.github
.vscode
accessibility Prepare for removal of non-const operator[] from Sequence in accessibility 2021-10-28 20:09:41 +02:00
android LOK: maintain blocked command list per view 2021-10-22 17:49:20 +02:00
animations
apple_remote Add support for macOS SDK 12.0 2021-10-27 16:32:04 +02:00
avmedia Prepare for removal of non-const operator[] from Sequence in avmedia 2021-10-28 20:09:59 +02:00
basctl Prepare for removal of non-const operator[] from Sequence in basctl 2021-10-28 20:09:27 +02:00
basegfx
basic tdf#145371 - Delete array variable only before ReDim 2021-10-30 18:28:17 +02:00
bean
bin uniformly allow focus into GtkToolbar 2021-10-31 15:07:28 +01:00
binaryurp Prepare for removal of non-const operator[] from Sequence in binaryurp 2021-10-29 06:50:43 +02:00
bridges Revert broken optimization attempt 2021-10-28 14:35:26 +02:00
canvas add o3tl::span ctor from std::vector 2021-10-31 15:52:02 +01:00
chart2 crashtesting: assert on conversion of fdo67521-1.odg to pdf 2021-10-31 21:07:55 +01:00
cli_ure
codemaker Prepare for removal of non-const operator[] from Sequence in codemaker 2021-10-29 10:31:18 +02:00
comphelper Prepare for removal of non-const operator[] from Sequence in comphelper 2021-10-29 10:31:35 +02:00
compilerplugins tdf#142010 XLS import: fix bad calculation after editing 2021-10-26 09:51:17 +02:00
config_host
configmgr Prepare for removal of non-const operator[] from Sequence in configmgr 2021-10-29 10:33:14 +02:00
connectivity Prepare for removal of non-const operator[] from Sequence in connectivity 2021-10-29 10:31:51 +02:00
cppcanvas add o3tl::span ctor from std::vector 2021-10-31 15:52:02 +01:00
cppu d46f659c75 follow-up: simplify checks 2021-10-26 23:09:34 +02:00
cppuhelper Prepare for removal of non-const operator[] from Sequence in cppuhelper 2021-10-29 13:15:15 +02:00
cpputools
cui uniformly allow focus into GtkToolbar 2021-10-31 15:07:28 +01:00
dbaccess uniformly allow focus into GtkToolbar 2021-10-31 15:07:28 +01:00
desktop Prepare for removal of non-const operator[] from Sequence in desktop 2021-10-30 17:39:47 +02:00
dictionaries@6c9f1f6c25
distro-configs
drawinglayer crashtesting: failure on conversion of fdo74498-1.doc to pdf 2021-10-31 17:33:46 +01:00
editeng add o3tl::span ctor from std::vector 2021-10-31 15:52:02 +01:00
embeddedobj Prepare for removal of non-const operator[] from Sequence in embeddedobj 2021-10-30 00:30:58 +02:00
embedserv Prepare for removal of non-const operator[] from Sequence in embedserv 2021-10-30 00:30:25 +02:00
emfio add o3tl::span ctor from std::vector 2021-10-31 15:52:02 +01:00
eventattacher Prepare for removal of non-const operator[] from Sequence in eventattacher 2021-10-30 08:02:12 +02:00
extensions uniformly allow focus into GtkToolbar 2021-10-31 15:07:28 +01:00
external Switch to a newer version of ZXing library 2021-10-30 18:56:48 +02:00
extras
filter add o3tl::span ctor from std::vector 2021-10-31 15:52:02 +01:00
forms Prepare for removal of non-const operator[] from Sequence in forms 2021-10-30 09:28:10 +02:00
formula Prepare for removal of non-const operator[] from Sequence in formula 2021-10-30 08:02:43 +02:00
fpicker uniformly allow focus into GtkToolbar 2021-10-31 15:07:28 +01:00
framework Prepare for removal of non-const operator[] from Sequence in framework 2021-10-30 10:31:26 +02:00
helpcompiler Revert "Simplify vector initialization in helpcompiler" 2021-10-22 19:30:32 +02:00
helpcontent2@081aa4f6de Update git submodules 2021-10-30 20:50:10 +02:00
hwpfilter Prepare for removal of non-const operator[] from Sequence in hwpfilter 2021-10-30 11:15:49 +02:00
i18nlangtag Introduce LanguageTag::convertToLanguageTypeWithFallback(Locale) 2021-10-25 13:07:50 +02:00
i18npool Prepare for removal of non-const operator[] from Sequence in i18npool 2021-10-30 10:55:23 +02:00
i18nutil
icon-themes
idl
idlc
include backendtest: Drawing Open Polygon test 2021-10-31 18:47:39 +01:00
instsetoo_native Split overly long line into multiple logically separate pieces for sanity 2021-10-29 14:09:14 +02:00
io
ios
javaunohelper
jurt
jvmaccess
jvmfwk
l10ntools
librelogo
libreofficekit uniformly allow focus into GtkToolbar 2021-10-31 15:07:28 +01:00
lingucomponent Prepare for removal of non-const operator[] from Sequence in lingucomponent 2021-10-30 18:27:34 +02:00
linguistic Prepare for removal of non-const operator[] from Sequence in linguistic 2021-10-30 18:27:43 +02:00
lotuswordpro Prepare for removal of non-const operator[] from Sequence in lotuswordpro 2021-10-30 17:39:15 +02:00
m4 Fix macro "AC_HELP_STRING" is obsolete (m4) 2021-10-29 16:36:00 +02:00
nlpsolver
o3tl
odk Cleanup DocumentLoader C++ SDK example 2021-10-25 09:05:23 +02:00
offapi tdf#141193 Added support for bar codes in qrcode dialog box[API Change]. 2021-10-29 13:46:12 +02:00
officecfg tdf#141193 Added support for bar codes in qrcode dialog box[API Change]. 2021-10-29 13:46:12 +02:00
onlineupdate
oovbaapi
oox Prepare for removal of non-const operator[] from Sequence in oox 2021-10-30 19:22:33 +02:00
opencl Prepare for removal of non-const operator[] from Sequence in opencl 2021-10-30 21:55:44 +02:00
osx
package Prepare for removal of non-const operator[] from Sequence in package 2021-10-30 20:17:13 +02:00
pch
postprocess
pyuno Prepare for removal of non-const operator[] from Sequence in pyuno 2021-10-30 20:16:57 +02:00
qadevOOo
readlicense_oo update credits 2021-10-27 12:41:52 +02:00
registry
remotebridges
reportbuilder
reportdesign uniformly allow focus into GtkToolbar 2021-10-31 15:07:28 +01:00
ridljar
sal move access inside mutex guard 2021-10-23 20:47:38 +02:00
salhelper
sax Prepare for removal of non-const operator[] from Sequence in sax 2021-10-30 21:12:29 +02:00
sc add o3tl::span ctor from std::vector 2021-10-31 15:52:02 +01:00
scaddins
sccomp Prepare for removal of non-const operator[] from Sequence in sccomp 2021-10-30 21:55:34 +02:00
schema tdf#141193 Added support for bar codes in qrcode dialog box[API Change]. 2021-10-29 13:46:12 +02:00
scp2
scripting Prepare for removal of non-const operator[] from Sequence in scripting 2021-10-30 22:04:01 +02:00
sd gtk[3 vs 4]: remove can-focus from GtkToolButton 2021-10-31 15:07:12 +01:00
sdext Prepare for removal of non-const operator[] from Sequence in sdext 2021-10-31 06:56:57 +01:00
setup_native Fix misuses of NULL across Windows-only code 2021-10-29 13:26:12 +02:00
sfx2 Support system async file pickers 2021-10-31 21:06:51 +01:00
shell Prepare for removal of non-const operator[] from Sequence in shell 2021-10-30 23:18:51 +02:00
slideshow Prepare for removal of non-const operator[] from Sequence in slideshow 2021-10-31 06:57:10 +01:00
smoketest Prepare for removal of non-const operator[] from Sequence in smoketest 2021-10-31 06:57:21 +01:00
solenv fix usage of MSVC's -debug:fastlink 2021-10-31 20:13:28 +01:00
soltools
sot Prepare for removal of non-const operator[] from Sequence in sot 2021-10-31 10:30:32 +01:00
starmath Prepare for removal of non-const operator[] from Sequence in starmath 2021-10-31 10:30:23 +01:00
stoc Prepare for removal of non-const operator[] from Sequence in stoc 2021-10-31 15:49:25 +01:00
store
svgio Prepare for removal of non-const operator[] from Sequence in svgio 2021-10-31 11:34:17 +01:00
svl Prepare for removal of non-const operator[] from Sequence in svl 2021-10-31 11:49:22 +01:00
svtools Prepare for removal of non-const operator[] from Sequence in svtools 2021-10-31 15:49:34 +01:00
svx add o3tl::span ctor from std::vector 2021-10-31 15:52:02 +01:00
sw SwNavigator: Improve tracking on showing 2021-10-31 17:20:57 +01:00
swext
sysui
test Prepare for removal of non-const operator[] from Sequence in test 2021-10-31 20:27:57 +01:00
testtools
toolkit Prepare for removal of non-const operator[] from Sequence in toolkit 2021-10-31 18:42:08 +01:00
tools Prepare for removal of non-const operator[] from Sequence in tools 2021-10-31 18:41:42 +01:00
translations@327c876f4c Update git submodules 2021-10-29 18:31:09 +02:00
ucb
ucbhelper Prepare for removal of non-const operator[] from Sequence in ucbhelper 2021-10-31 21:28:26 +01:00
udkapi
uitest uitest: execute setActiveFrame in load_file first 2021-10-25 17:54:39 +02:00
UnoControls
unodevtools
unoidl
unoil
unotest
unotools
unoxml Prepare for removal of non-const operator[] from Sequence in unoxml 2021-10-31 21:36:50 +01:00
ure
uui Prepare for removal of non-const operator[] from Sequence in uui 2021-10-31 21:32:36 +01:00
vbahelper
vcl tdf#145363 Qt reparent modal dialogs on show 2021-10-31 21:04:33 +01:00
wasm-qt
winaccessibility Fix misuses of NULL across Windows-only code 2021-10-29 13:26:12 +02:00
wizards ScriptForge - (SF_Calc) new ShiftDown, ShiftLeft, ShiftRight, ShiftUp methods 2021-10-31 18:16:42 +01:00
writerfilter tdf#145215: docx: do not initialize prefix/suffix and include levels 2021-10-23 21:28:25 +02:00
writerperfect
xmerge
xmlhelp
xmloff add o3tl::span ctor from std::vector 2021-10-31 15:52:02 +01:00
xmlreader
xmlscript
xmlsecurity loplugin:simplifybool (clang-cl) 2021-10-28 14:34:54 +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 upgrade libjpeg-turbo to 2.1.1 2021-10-30 11:06:48 +02:00
config_host_lang.mk.in
configure.ac upgrade libjpeg-turbo to 2.1.1 2021-10-30 11:06:48 +02:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst Switch to a newer version of ZXing library 2021-10-30 18:56:48 +02:00
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 ofz: build failure 2021-10-31 15:56:19 +01:00
README.cross
README.help.md
README.md
README.Solaris
Repository.mk
RepositoryExternal.mk upgrade libjpeg-turbo to 2.1.1 2021-10-30 11:06:48 +02: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 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.