Test repository to check push and ssh key
Find a file
Jan-Marek Glogowski 3fc89330a9 Drop GtkSalPrinter bits from option dialog
After commit ed07ec7606 ("drop
never completed GtkSalPrinter"), there is still the experimental
option left, depending on ENABLE_GTK3.

We can't drop the whole PrinterCapType::ExternalDialog, because
the osx code actually uses it.

Change-Id: Ibc4654d8c1ce1de7ee1c9dc7700bb8775af2f678
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116408
Tested-by: Jenkins
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-30 17:49:49 +02:00
.git-hooks
.github
.vscode
accessibility
android tdf#106893 android: Show whole doc when closing soft keyboard 2021-05-21 22:00:24 +02:00
animations
apple_remote
avmedia
basctl no need to check IsDisposed here 2021-05-29 19:24:09 +02:00
basegfx
basic fix leak in dbaccess 2021-05-24 14:20:28 +02:00
bean
bin
binaryurp
bridges gbuild: implement gb_Library_get_target_for_build 2021-05-29 17:30:26 +02:00
canvas gbuild: Handle glxtest + vclmain usage via macros 2021-05-26 22:51:05 +02:00
chart2 no need to allocate these on the heap 2021-05-28 09:44:57 +02:00
cli_ure
codemaker
comphelper no need to allocate these on the heap 2021-05-28 09:44:57 +02:00
compilerplugins gtk4: continue to provide Paintable via cairo surface 2021-05-27 21:09:46 +02:00
config_host vcl: Implement static vclplug usage 2021-05-29 16:32:24 +02:00
configmgr
connectivity no need to allocate these on the heap 2021-05-28 09:44:57 +02:00
cppcanvas
cppu
cppuhelper
cpputools
cui Drop GtkSalPrinter bits from option dialog 2021-05-30 17:49:49 +02:00
dbaccess no need to allocate these SfxItemSet on the heap 2021-05-28 12:18:03 +02:00
desktop gbuild: Handle glxtest + vclmain usage via macros 2021-05-26 22:51:05 +02:00
dictionaries@4fa94195b8
distro-configs fix coverity build failure due to --with-privacy-policy-url=... 2021-05-29 16:58:11 +02:00
drawinglayer
editeng Seperate SvxBackgroundColorItem from SvxColorItem 2021-05-26 09:04:37 +02:00
embeddedobj
embedserv
emfio tdf#53004 tdf#142495 WMF EMF Fix displaying Text with OPAQUE and CLIPPED 2021-05-28 21:47:40 +02:00
eventattacher
extensions
external crashtesting: backport assert downgrade 2021-05-28 11:28:30 +02:00
extras Removed 1/2, 1/4, 3/4, and 0.5 from autocorr/lang/ja/DocumentList.xml 2021-05-25 05:10:11 +02:00
filter
forms
formula
fpicker
framework
helpcompiler
helpcontent2@d443ebed5d Update git submodules 2021-05-30 00:02:35 +02:00
hwpfilter
i18nlangtag
i18npool Don't ignore GCC warnings for static builds 2021-05-25 20:05:19 +02:00
i18nutil
icon-themes
idl
idlc
include no need to allocate this separately 2021-05-30 12:28:43 +02:00
instsetoo_native Fix typos 2021-05-27 14:57:53 +02:00
io Add forgotten io/Executable_io-testconnection.mk 2021-05-25 18:45:50 +02:00
ios
javaunohelper
jurt
jvmaccess
jvmfwk
l10ntools no need to allocate these on the heap 2021-05-28 09:44:57 +02:00
librelogo
libreofficekit
lingucomponent
linguistic
lotuswordpro
m4
nlpsolver
o3tl
odk
offapi tdf#60382 sw xmloff: import/export tracked table/row deletion 2021-05-27 15:25:06 +02:00
officecfg add privacy URL to crashreport dialog & updatecheck tab in options 2021-05-26 00:29:00 +02:00
onlineupdate
oovbaapi
oox tdf137314 Add margin to CppunitTest assertions 2021-05-26 17:13:39 +02:00
opencl
osx
package
pch
postprocess add privacy URL to crashreport dialog & updatecheck tab in options 2021-05-26 00:29:00 +02:00
pyuno
qadevOOo
readlicense_oo
registry no need to allocate these on the heap 2021-05-28 09:44:57 +02:00
remotebridges
reportbuilder
reportdesign no need to allocate these SfxItemSet on the heap 2021-05-28 12:18:03 +02:00
ridljar
sal Replace a use of select with poll 2021-05-26 08:08:12 +02:00
salhelper
sax
sc tdf#127484 - Use HTML caption tag to name externally linked tables 2021-05-29 23:34:36 +02:00
scaddins
sccomp
schema tdf#60382 sw xmloff: import/export tracked table/row deletion 2021-05-27 15:25:06 +02:00
scp2
scripting std::unique_ptr -> std::optional 2021-05-29 17:51:17 +02:00
sd no need to allocate SfxStyleFamilies on the heap 2021-05-28 13:19:18 +02:00
sdext
setup_native
sfx2 no need to allocate this separately 2021-05-30 16:56:41 +02:00
shell tdf#108591 Don't hardcode xdg-open path 2021-05-28 11:25:25 +02:00
slideshow crash on launching opengl slide transitions under gtk3 2021-05-24 16:23:08 +02:00
smoketest
solenv gbuild: implement gb_Library_get_target_for_build 2021-05-29 17:30:26 +02:00
soltools
sot
starmath tdf#130654 editable smeditwindow zoom UI 2021-05-28 10:57:26 +02:00
stoc std::unique->std::optional 2021-05-29 19:22:23 +02:00
store
svgio
svl no need to allocate these on the heap 2021-05-29 17:50:52 +02:00
svtools flatten TabBar item list 2021-05-29 17:51:35 +02:00
svx don't check isDisposed inside dispose() 2021-05-30 09:09:12 +02:00
sw std::unique_ptr->std::optional 2021-05-30 09:08:57 +02:00
swext
sysui
test
testtools
toolkit IsDisposed->isDisposed in toolkit 2021-05-28 20:37:18 +02:00
tools no need to allocate these on the heap 2021-05-28 13:28:31 +02:00
translations@48ffdf216a
ucb no need to allocate these on the heap 2021-05-28 13:28:31 +02:00
ucbhelper
udkapi
uitest
UnoControls
unodevtools
unoidl
unoil
unotest
unotools
unoxml tdf#142448 sw offapi: add custom color metadata field shading 2021-05-23 18:51:58 +02:00
ure
uui tdf#47065 Add new file open UI options and implement a new thread 2021-05-27 12:31:38 +02:00
vbahelper
vcl gtk4: inch towards providing clipboard content 2021-05-30 16:05:40 +02:00
wasm-qt
winaccessibility
wizards ScriptForge - (scriptforge.py.SF_Basic): methods in alphabatical order 2021-05-24 15:53:25 +02:00
writerfilter tdf#94628: sw: allow setting for bullet style for outline paragraphs 2021-05-27 15:10:31 +02:00
writerperfect
xmerge
xmlhelp
xmloff no need to allocate this separately 2021-05-30 12:28:43 +02:00
xmlreader
xmlscript no need to allocate Style objects separately 2021-05-27 14:58:28 +02:00
xmlsecurity
.buckconfig
.buckversion
.clang-format
.editorconfig
.git-blame-ignore-revs
.gitattributes
.gitignore
.gitmodules
.gitpod.dockerfile Upgrade .gitpod.dockerfile to Ubuntu focal 2021-05-22 19:35:47 +02:00
.gitpod.yml
.gitreview
antivirusDetection.vbs
autogen.sh
BUCK
config.guess
config.sub
config_host.mk.in gbuild: implement gb_Library_get_target_for_build 2021-05-29 17:30:26 +02:00
config_host_lang.mk.in
configure.ac gbuild: implement gb_Library_get_target_for_build 2021-05-29 17:30:26 +02:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst upgrade to Expat 2.4.1 2021-05-25 14:26:18 +02:00
g
hardened_runtime.xcent.in
install-sh
install_deps.sh
leak-suppress.txt supress leak checking in JavaVM 2021-05-26 09:53:11 +02:00
Library_merged.mk
lo.xcent
logerrit
Makefile.fetch
Makefile.gbuild
Makefile.in Install GDB pretty printers into cross-toolset 2021-05-25 20:04:54 +02:00
README.cross
README.md
README.Solaris
README.wasm
Repository.mk Resurrect io testconnection executable 2021-05-25 16:13:08 +02:00
RepositoryExternal.mk gbuild: implement gb_Library_get_target_for_build 2021-05-29 17:30:26 +02:00
RepositoryFixes.mk gbuild: implement gb_Library_get_target_for_build 2021-05-29 17:30:26 +02:00
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.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.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.