Test repository to check push and ssh key
Find a file
Stephan Bergmann 7a21cba913 Silence -Werror=deprecated-declarations for now
...as seen with gtk4-devel-4.10.0-3.fc38.x86_64,

> avmedia/source/gtk/gtkplayer.cxx: In member function ‘virtual com::sun::uno::Reference<com::sun::media::XPlayerWindow> avmedia::gtk::GtkPlayer::createPlayerWindow(const com::sun::uno::Sequence<com::sun::uno::Any>&)’:
> avmedia/source/gtk/gtkplayer.cxx:358:20: error: ‘void gtk_widget_show(GtkWidget*)’ is deprecated: Use 'gtk_widget_set_visible or gtk_window_present' instead [-Werror=deprecated-declarations]
>   358 |     gtk_widget_show(m_pVideo);
>       |     ~~~~~~~~~~~~~~~^~~~~~~~~~
> In file included from /usr/include/gtk-4.0/gtk/gtkapplication.h:27,
>                  from /usr/include/gtk-4.0/gtk/gtkwindow.h:33,
>                  from /usr/include/gtk-4.0/gtk/gtkaboutdialog.h:30,
>                  from /usr/include/gtk-4.0/gtk/gtk.h:34,
>                  from avmedia/source/gtk/gtkplayer.cxx:28:
> /usr/include/gtk-4.0/gtk/gtkwidget.h:273:12: note: declared here
>   273 | void       gtk_widget_show                (GtkWidget           *widget);
>       |            ^~~~~~~~~~~~~~~
> avmedia/source/gtk/gtkplayer.cxx:359:20: error: ‘void gtk_widget_show(GtkWidget*)’ is deprecated: Use 'gtk_widget_set_visible or gtk_window_present' instead [-Werror=deprecated-declarations]
>   359 |     gtk_widget_show(pParent);
>       |     ~~~~~~~~~~~~~~~^~~~~~~~~
> /usr/include/gtk-4.0/gtk/gtkwidget.h:273:12: note: declared here
>   273 | void       gtk_widget_show                (GtkWidget           *widget);
>       |            ^~~~~~~~~~~~~~~

Change-Id: I1cb2988cec6cda3dd3e43a3773647a3ddaf211e2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148899
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-03-15 08:23:24 +00:00
.git-hooks
.github
.vscode
accessibility improve loplugin:unnecessarylocking 2023-03-10 11:34:00 +00:00
android android: Update Android Gradle Plugin to 7.4.2 2023-03-13 08:25:39 +00:00
animations
apple_remote
avmedia Silence -Werror=deprecated-declarations for now 2023-03-15 08:23:24 +00:00
basctl tdf#145538 Refactor to use range-based for-loops 2023-03-11 11:25:19 +00:00
basegfx
basic elide some temporary OStrings 2023-03-14 17:50:11 +00:00
bean
bin Improve scripts that codesign and create a .dmg from a Universal bundle 2023-03-14 20:04:59 +00:00
binaryurp
bridges
canvas
chart2 elide some temporary OStrings 2023-03-14 17:50:11 +00:00
cli_ure
codemaker
comphelper lok: introduce resetCompatFlag 2023-03-13 12:21:33 +00:00
compilerplugins improve loplugin:unnecessarylocking 2023-03-10 11:34:00 +00:00
config_host
configmgr
connectivity elide some temporary OStrings 2023-03-14 17:50:11 +00:00
cppcanvas
cppu
cppuhelper
cpputools
cui Use officecfg instead of SvxDeeplOptions 2023-03-15 07:30:30 +00:00
dbaccess make more use of OUStringBuffer::append(OUStringConcat) 2023-03-13 16:47:32 +00:00
desktop Use officecfg instead of SvxDeeplOptions 2023-03-15 07:30:30 +00:00
dictionaries@bcf7f04931
distro-configs
docmodel
drawinglayer
editeng
embeddedobj
embedserv
emfio
eventattacher
extensions improve loplugin:unnecessarylocking 2023-03-10 11:34:00 +00:00
external Update pdfium to 5636 2023-03-13 07:13:41 +00:00
extras tdf#154143 Update image assets for Tips of The Day 2023-03-12 08:36:59 +00:00
filter filter: PDF export dialog: always enable Outlines for PDF/UA 2023-03-14 09:40:39 +00:00
forms make more use of OUStringBuffer::append(OUStringConcat) 2023-03-13 16:47:32 +00:00
formula
fpicker improve loplugin:unnecessarylocking 2023-03-10 11:34:00 +00:00
framework elide some temporary OStrings 2023-03-14 17:50:11 +00:00
helpcompiler elide some temporary OStrings 2023-03-14 17:50:11 +00:00
helpcontent2@87ab9fc48e Update git submodules 2023-03-15 00:23:53 +00:00
hwpfilter Silence a false warning also for GCC 13 2023-03-15 07:59:31 +00:00
i18nlangtag
i18npool make more use of OUStringBuffer::append(OUStringConcat) 2023-03-13 16:47:32 +00:00
i18nutil
icon-themes Colibre & Sukapura: tdf#153772 Revise Navigator's Headings > Outline Lvl icons 2023-03-14 03:11:39 +00:00
idl
idlc/test/parser
include Use officecfg instead of SvxDeeplOptions 2023-03-15 07:30:30 +00:00
instsetoo_native
io tdf#150135: Fix OTextInputStream to throw runtime exception when uninitialized 2023-03-14 06:47:26 +00:00
ios
javaunohelper
jurt
jvmaccess
jvmfwk elide some temporary OStrings 2023-03-14 17:50:11 +00:00
l10ntools
librelogo
libreofficekit tilebench: allow save after rendering, and better load fail diagnostic. 2023-03-11 14:40:03 +00:00
lingucomponent Use officecfg instead of SvxLanguageToolOptions 2023-03-09 19:36:57 +00:00
linguistic Use officecfg instead of SvxLanguageToolOptions 2023-03-09 19:36:57 +00:00
lotuswordpro
m4
nlpsolver
o3tl
odk
offapi Related tdf#129547 and tdf#154136: add COLON key 2023-03-14 17:36:22 +00:00
officecfg Related tdf#129547 and tdf#154136: add COLON key 2023-03-14 17:36:22 +00:00
onlineupdate
oovbaapi tdf#150281: Fix CentimetersToPoints in Calc 2023-03-13 15:16:24 +00:00
oox tdf#139618 Add WordArt fill types in pptx import 2023-03-14 07:40:00 +00:00
opencl
osx
package cid#1521901 Pointer to local outside scope 2023-03-09 20:17:15 +00:00
pch
postprocess
pyuno
qadevOOo
readlicense_oo
registry
remotebridges
reportbuilder
reportdesign
ridljar
sal tdf#143148 Use pragma once instead of include guards 2023-03-09 10:12:10 +00:00
salhelper
sax
sc CppunitTest_sc_ucalc_formula: split in two 2023-03-15 08:09:05 +00:00
scaddins
sccomp
schema Moved target-url and use-target-url into loext namespace 2023-03-10 08:54:49 +00:00
scp2
scripting
sd Silence a false -Werror=maybe-uninitialized 2023-03-15 07:59:50 +00:00
sdext
setup_native
sfx2 elide some temporary OStrings 2023-03-14 17:50:11 +00:00
shell
slideshow improve loplugin:unnecessarylocking 2023-03-10 11:34:00 +00:00
smoketest
solenv Improve scripts that codesign and create a .dmg from a Universal bundle 2023-03-14 20:04:59 +00:00
soltools
sot CppunitTest_sot_test_sot: remove duplicated assert 2023-03-14 15:28:45 +00:00
starmath make more use of OUStringBuffer::append(OUStringConcat) 2023-03-13 16:47:32 +00:00
static
stoc
store
svgio
svl tdf#117037 - Support Unicode minus (0x2212) in the number scanner 2023-03-14 20:39:33 +00:00
svtools Use officecfg instead of SvxDeeplOptions 2023-03-15 07:30:30 +00:00
svx make more use of OUStringBuffer::append(OUStringConcat) 2023-03-13 16:47:32 +00:00
sw Use officecfg instead of SvxDeeplOptions 2023-03-15 07:30:30 +00:00
swext
sysui tdf#152598 Update .ico files 2023-03-11 18:09:28 +00:00
test Use a more reasonable type for XDataPilotDescriptor::checkName nIndex parameter 2023-03-13 19:01:37 +00:00
testtools
toolkit convert UnoControlModel and friends to use std::mutex 2023-03-13 06:49:21 +00:00
tools
translations@133ec76d64 Update git submodules 2023-03-13 11:07:26 +00:00
ucb improve loplugin:unnecessarylocking 2023-03-10 11:34:00 +00:00
ucbhelper
udkapi
uitest
UnoControls
unodevtools
unoidl
unoil
unotest
unotools remove leftover #undef 2023-03-13 08:39:10 +00:00
unoxml elide some temporary OStrings 2023-03-14 17:50:11 +00:00
ure
uui
vbahelper tdf#150281: Fix CentimetersToPoints in Calc 2023-03-13 15:16:24 +00:00
vcl Handle pasting disallowed clipboard contents on iOS 2023-03-14 21:42:24 +00:00
winaccessibility
wizards Fix typo 2023-03-14 15:20:01 +00:00
writerfilter tdf#154129 writerfilter framePr: check whole style inheritance: wrap 2023-03-15 01:51:31 +00:00
writerperfect
xmerge
xmlhelp
xmloff make more use of OUStringBuffer::append(OUStringConcat) 2023-03-13 16:47:32 +00:00
xmlreader
xmlscript
xmlsecurity
.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-compiling on windows needs openssl to build internal python 2023-03-12 01:06:08 +00:00
COPYING
COPYING.LGPL
COPYING.MPL
cpp.hint
download.lst Update pdfium to 5636 2023-03-13 07:13:41 +00:00
g
hardened_runtime.xcent.in
install-sh
install_deps.sh
leak-suppress.txt
Library_merged.mk
lo.xcent.in
logerrit
Makefile.fetch
Makefile.gbuild
Makefile.in
README.cross
README.help.md
README.md
README.Solaris
Repository.mk
RepositoryExternal.mk
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 7 or CentOS 7
    • Build: either GCC 7.0.0; or Clang 8.0.1 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 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 11 or later. It is possible to build LibreOffice with JDK version 9, but it is no longer supported by the JDK vendors, thus it should be avoided.

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.