Test repository to check push and ssh key
Find a file
Caolán McNamara 38f2078321 add -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED to gtk cflags
Change-Id: If642e9ec03a092375acb9b0624e62eec33ebd716
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108063
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2020-12-21 09:44:35 +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 fix for Windows x86-64 build 2020-12-21 07:29:49 +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 Adapt the remaining OUString functions to std string_view 2020-12-11 21:25:10 +01:00
comphelper cid#1470590 silence bogus Out-of-bounds access 2020-12-13 20:03:37 +01:00
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 Adapt the remaining OUString functions to std string_view 2020-12-11 21:25:10 +01:00
cppuhelper
cpputools Adapt the remaining OUString functions to std string_view 2020-12-11 21:25:10 +01:00
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 tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor 2020-12-20 16:14:19 +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 Adapt the remaining OUString functions to std string_view 2020-12-11 21:25:10 +01:00
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 tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor 2020-12-20 16:14:19 +01:00
helpcompiler Adapt the remaining OUString functions to std string_view 2020-12-11 21:25:10 +01:00
helpcontent2@6cbff81636 Update git submodules 2020-12-20 09:34:55 +01:00
hwpfilter
i18nlangtag Adapt the remaining OUString functions to std string_view 2020-12-11 21:25:10 +01:00
i18npool Check Calendar unoid for unknown and duplicates 2020-12-20 22:11:08 +01:00
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 Make OStringLiteral ctor non-explicit 2020-12-20 21:28:23 +01:00
instsetoo_native
io
ios
javaunohelper
jurt
jvmaccess
jvmfwk Adapt the remaining OUString functions to std string_view 2020-12-11 21:25:10 +01:00
l10ntools Adapt the remaining OUString functions to std string_view 2020-12-11 21:25:10 +01:00
librelogo
libreofficekit
lingucomponent Adapt the remaining OUString functions to std string_view 2020-12-11 21:25:10 +01:00
linguistic Adapt the remaining OUString functions to std string_view 2020-12-11 21:25:10 +01:00
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 Replace more deprecated gtk_hbox_new/gtk_vbox_new with gtk_box_new 2020-12-21 09:42:50 +01:00
oovbaapi
oox tdf#129961 oox: add PPTX export for table shadow as direct format 2020-12-17 09:08:18 +01:00
opencl Adapt the remaining OUString functions to std string_view 2020-12-11 21:25:10 +01:00
osx
package Adapt the remaining OUString functions to std string_view 2020-12-11 21:25:10 +01:00
pch
postprocess tdf#138715 remove mork driver 2020-12-13 17:29:09 +01:00
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 Adapt the remaining OUString functions to std string_view 2020-12-11 21:25:10 +01:00
remotebridges
reportbuilder
reportdesign don't mention VclBuilder in the dialog tests docs 2020-12-19 21:36:02 +01:00
ridljar
sal Remove the OUString vs. std::u16string_view comparison operators again 2020-12-20 14:26:49 +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 Adapt the remaining OUString functions to std string_view 2020-12-11 21:25:10 +01:00
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 Fix domain in ui files (found with ui-checkdomain.sh) 2020-12-20 13:42:52 +01:00
shell Adapt the remaining OUString functions to std string_view 2020-12-11 21:25:10 +01:00
slideshow
smoketest
solenv drop never completed GtkSalPrinter 2020-12-20 20:31:11 +01:00
soltools
sot throw exception in SvStream when reading past end of file 2020-12-18 06:54:06 +01:00
starmath Update Starmath examples 2020-12-21 07:37:22 +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 tdf#139063 crash when add a new sheet to a RTL sheet 2020-12-20 17:36:53 +01:00
svx tdf#139063 crash when add a new sheet to a RTL sheet 2020-12-20 17:36:53 +01:00
sw tdf#138739 sw: fix regression of first paragraph 2020-12-21 09:07:46 +01:00
swext
sysui
test Adapt the remaining OUString functions to std string_view 2020-12-11 21:25:10 +01:00
testtools Adapt the remaining OUString functions to std string_view 2020-12-11 21:25:10 +01:00
toolkit Adapt the remaining OUString functions to std string_view 2020-12-11 21:25:10 +01:00
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 Adapt the remaining OUString functions to std string_view 2020-12-11 21:25:10 +01:00
udkapi
uitest tdf#138976 change "Cancel" button to "Close" in Template Manager dialog 2020-12-17 11:25:49 +01:00
UnoControls
unodevtools Adapt the remaining OUString functions to std string_view 2020-12-11 21:25:10 +01:00
unoidl loplugin:stringview (macOS) 2020-12-13 22:24:54 +01:00
unoil
unotest throw exception in SvStream when reading past end of file 2020-12-18 06:54:06 +01:00
unotools Adapt the remaining OUString functions to std string_view 2020-12-11 21:25:10 +01:00
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 drop GTK_STOCK_* label uses 2020-12-21 09:43:51 +01:00
winaccessibility Silence warning C4189: local variable is initialized but not referenced 2020-12-15 09:36:36 +01:00
wizards Fix typo 2020-12-21 09:19:35 +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 disable some more tests for non-default-dpi 2020-12-21 07:30:10 +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 add -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED to gtk cflags 2020-12-21 09:44:35 +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.