Test repository to check push and ssh key
Find a file
Stephan Bergmann cf7306194f No longer need to worry about ambiguous operator== in loplugin:stringviewparam
...after 46c5de8328 "make *String(string_view)
constructors explicit"

Change-Id: I6e884c762a2fc91f5dd6fbb197a596fd60f17cae
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108043
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-12-20 13:07:02 +01:00
.git-hooks
.github
.vscode add a visual studio code workspace template (created by configure.ac) 2020-12-15 11:56:11 +01:00
accessibility don't need to include vcl/menu.hxx here 2020-12-15 13:41:42 +01:00
android
animations
apple_remote
avmedia make *String(string_view) constructors explicit 2020-12-19 17:53:06 +01:00
basctl don't mention VclBuilder in the dialog tests docs 2020-12-19 21:36:02 +01:00
basegfx
basic tdf#84098 kill copy+paste in VBA tests 2020-12-19 23:40:13 +01:00
bean
bin Related tdf#138715: kill last Mork refs 2020-12-19 09:52:31 +01:00
binaryurp
bridges Mention relevant Clang bug in comment 2020-12-18 22:01:54 +01:00
canvas
chart2 don't mention VclBuilder in the dialog tests docs 2020-12-19 21:36:02 +01:00
cli_ure
codemaker
comphelper
compilerplugins No longer need to worry about ambiguous operator== in loplugin:stringviewparam 2020-12-20 13:07:02 +01:00
config_host tdf#115643 make onedrive work again by switching to graph API 2020-12-14 12:22:18 +01:00
configmgr
connectivity tdf#124176 Use #pragma once in connectivity 2020-12-20 10:26:28 +01:00
cppcanvas update pches 2020-12-15 14:10:44 +01:00
cppu
cppuhelper
cpputools
cui No longer need to worry about ambiguous operator== in loplugin:stringviewparam 2020-12-20 13:07:02 +01:00
dbaccess don't mention VclBuilder in the dialog tests docs 2020-12-19 21:36:02 +01:00
desktop don't mention VclBuilder in the dialog tests docs 2020-12-19 21:36:02 +01:00
dictionaries@57698337d6 Update git submodules 2020-12-17 07:24:59 +01:00
distro-configs
drawinglayer Fix typo 2020-12-17 18:36:48 +01:00
editeng use more string_view in SfxItemPropertyMap 2020-12-19 08:02:56 +01:00
embeddedobj make *String(string_view) constructors explicit 2020-12-19 17:53:06 +01:00
embedserv make *String(string_view) constructors explicit 2020-12-19 17:53:06 +01:00
emfio throw exception in SvStream when reading past end of file 2020-12-18 06:54:06 +01:00
eventattacher
extensions make *String(string_view) constructors explicit 2020-12-19 17:53:06 +01:00
external pdfium: backport GetTrailerEnds whitespace fix 2020-12-17 09:08:37 +01:00
extras
filter No longer need to worry about ambiguous operator== in loplugin:stringviewparam 2020-12-20 13:07:02 +01:00
forms
formula don't mention VclBuilder in the dialog tests docs 2020-12-19 21:36:02 +01:00
fpicker don't mention VclBuilder in the dialog tests docs 2020-12-19 21:36:02 +01:00
framework make *String(string_view) constructors explicit 2020-12-19 17:53:06 +01:00
helpcompiler
helpcontent2@6cbff81636 Update git submodules 2020-12-20 09:34:55 +01:00
hwpfilter
i18nlangtag
i18npool
i18nutil
icon-themes elementary: tdf#139046 update arrow for Export & Import icons 2020-12-19 11:02:27 +01:00
idl No longer need to worry about ambiguous operator== in loplugin:stringviewparam 2020-12-20 13:07:02 +01:00
idlc No longer need to worry about ambiguous operator== in loplugin:stringviewparam 2020-12-20 13:07:02 +01:00
include No longer need to worry about ambiguous operator== in loplugin:stringviewparam 2020-12-20 13:07:02 +01:00
instsetoo_native
io
ios
javaunohelper
jurt
jvmaccess
jvmfwk
l10ntools
librelogo
libreofficekit
lingucomponent
linguistic
lotuswordpro throw exception in SvStream when reading past end of file 2020-12-18 06:54:06 +01:00
m4
nlpsolver
o3tl
odk
offapi
officecfg tdf#138621 relabel .uno:OpenTemplate command; change .uno:NewDoc tooltip 2020-12-20 09:19:55 +01:00
onlineupdate
oovbaapi
oox tdf#129961 oox: add PPTX export for table shadow as direct format 2020-12-17 09:08:18 +01:00
opencl
osx
package
pch
postprocess
pyuno tdf#138987 pyuno: PyEval_InitThreads is a no-op in Python 3.9 2020-12-19 17:34:50 +01:00
qadevOOo
readlicense_oo
registry
remotebridges
reportbuilder
reportdesign don't mention VclBuilder in the dialog tests docs 2020-12-19 21:36:02 +01:00
ridljar
sal Check intermediate for not to be rounded value, tdf#138360 follow-up 2020-12-18 03:17:21 +01:00
salhelper
sax No longer need to worry about ambiguous operator== in loplugin:stringviewparam 2020-12-20 13:07:02 +01:00
sc weld autosum menu 2020-12-19 23:05:10 +01:00
scaddins
sccomp
schema
scp2 package Korean(ko-KR) dictionaries into installset 2020-12-17 14:27:33 +01:00
scripting
sd don't mention VclBuilder in the dialog tests docs 2020-12-19 21:36:02 +01:00
sdext No longer need to worry about ambiguous operator== in loplugin:stringviewparam 2020-12-20 13:07:02 +01:00
setup_native package Korean(ko-KR) dictionaries into installset 2020-12-17 14:27:33 +01:00
sfx2 No longer need to worry about ambiguous operator== in loplugin:stringviewparam 2020-12-20 13:07:02 +01:00
shell
slideshow
smoketest
solenv vcl: move Floyd-Steinberg constants and defines to own local header 2020-12-19 04:19:27 +01:00
soltools
sot throw exception in SvStream when reading past end of file 2020-12-18 06:54:06 +01:00
starmath don't mention VclBuilder in the dialog tests docs 2020-12-19 21:36:02 +01:00
stoc lok: add pre-condition "DontEnableJava" 2020-12-18 22:22:58 +01:00
store
svgio
svl make *String(string_view) constructors explicit 2020-12-19 17:53:06 +01:00
svtools don't mention VclBuilder in the dialog tests docs 2020-12-19 21:36:02 +01:00
svx No longer need to worry about ambiguous operator== in loplugin:stringviewparam 2020-12-20 13:07:02 +01:00
sw No longer need to worry about ambiguous operator== in loplugin:stringviewparam 2020-12-20 13:07:02 +01:00
swext
sysui
test
testtools
toolkit
tools use CLZ intrinsic in tools::Fraction 2020-12-20 09:08:09 +01:00
translations@14f402c214 Update git submodules 2020-12-17 18:36:04 +01:00
ucb tdf#115643 make onedrive work again by switching to graph API 2020-12-14 12:22:18 +01:00
ucbhelper
udkapi
uitest tdf#138976 change "Cancel" button to "Close" in Template Manager dialog 2020-12-17 11:25:49 +01:00
UnoControls
unodevtools
unoidl
unoil
unotest throw exception in SvStream when reading past end of file 2020-12-18 06:54:06 +01:00
unotools
unoxml update pches 2020-12-15 14:10:44 +01:00
ure
uui don't mention VclBuilder in the dialog tests docs 2020-12-19 21:36:02 +01:00
vbahelper
vcl No longer need to worry about ambiguous operator== in loplugin:stringviewparam 2020-12-20 13:07:02 +01:00
winaccessibility Silence warning C4189: local variable is initialized but not referenced 2020-12-15 09:36:36 +01:00
wizards ScriptForge - (SF_Base) new OpenFormDocument() method 2020-12-20 10:42:17 +01:00
writerfilter make *String(string_view) constructors explicit 2020-12-19 17:53:06 +01:00
writerperfect don't mention VclBuilder in the dialog tests docs 2020-12-19 21:36:02 +01:00
xmerge
xmlhelp
xmloff make *String(string_view) constructors explicit 2020-12-19 17:53:06 +01:00
xmlreader
xmlscript
xmlsecurity don't mention VclBuilder in the dialog tests docs 2020-12-19 21:36:02 +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
config_host_lang.mk.in
configure.ac cross-compile: make sure configure fails if build-side configure fails 2020-12-19 00:25:51 +01:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst
g
hardened_runtime.xcent.in
install-sh
leak-suppress.txt
Library_merged.mk
lo.xcent
logerrit
Makefile.fetch
Makefile.gbuild
Makefile.in Add generated vs-code-template.code-workspace to distclean 2020-12-16 14:01:15 +01:00
README.cross
README.md
README.Solaris
Repository.mk tdf#138715 remove mork strings and install targets 2020-12-14 16:16:09 +01:00
RepositoryExternal.mk
RepositoryFixes.mk
RepositoryModule_build.mk
RepositoryModule_host.mk
sanitize-ubsan-excludelist
setup.cfg
TEMPLATE.SOURCECODE.HEADER

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.4
  • 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

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 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 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.freenode.net - 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.