Test repository to check push and ssh key
Find a file
Stephan Bergmann 68c3d3e46b Make SalInstance::CreateClipboard return a single instance in the non-LOK case
I came across this when seeing UITest_calc_tests2's
tdf118189.tdf118189.test_tdf118189 fail on Linux with SAL_USE_VCLPLUGIN=gen and
also on Windows, see the mailing list thread starting at
<https://lists.freedesktop.org/archives/libreoffice/2020-April/084822.html>
"Linux SAL_USE_VCLPLUGIN=svp and the clipboard".  That email thread clarified
that the codified behavior of that non-LOK test was wrong.  (While the LOK test
ScTiledRenderingTest::testMultiViewCopyPaste in
sc/qa/unit/tiledrendering/tiledrendering.cxx keeps working as intended.)

I did not find documentation for what arguments CreateClipboard shall support,
but things seem to work if anything but empty arguments is rejected with an
IllegalArgumentException.

Change-Id: I1918254cc15878ad43b8aa22aff7eb1c4bea73fe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91869
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-04-08 11:33:46 +02:00
.git-hooks
.github
accessibility loplugin:virtualdead 2020-04-02 21:23:23 +02:00
android tdf#116243 android: Include headerfootermenu.ui 2020-04-08 09:17:22 +02:00
animations
apple_remote
avmedia
basctl OSL_ASSERT->assert in basctl 2020-03-29 19:38:19 +02:00
basegfx OSL_ASSERT->assert in basegfx 2020-03-30 09:13:37 +02:00
basic tdf#79426, tdf#125180 - Don't convert missing parameters to requested type 2020-04-02 12:57:57 +02:00
bean
bin
binaryurp
bridges
canvas
chart2 loplugin:unusedvariableplus in chart2 2020-04-07 08:31:20 +02:00
cli_ure
codemaker
comphelper
compilerplugins loplugin:flatten in i18npool 2020-04-08 11:01:14 +02:00
config_host do not build OpenGL support in Skia 2020-04-06 18:55:06 +02:00
configmgr
connectivity tdf#131712: fix crash on table with non null float field (mysql native) 2020-03-30 20:22:24 +02:00
cppcanvas
cppu
cppuhelper
cpputools
cui don't need vcl/lstbox.hxx in cui 2020-04-05 14:54:03 +02:00
dbaccess new loplugin:unusedvariableplus 2020-04-07 11:42:37 +02:00
desktop reap the glxtest child even if OpenGL is not used 2020-04-07 14:46:03 +02:00
dictionaries@74d8e82635
distro-configs
drawinglayer split up polypolygonprimitive2d.cxx into separate files 2020-04-07 01:47:30 +02:00
dtrans
editeng new loplugin:unusedvariableplus 2020-04-07 11:42:37 +02:00
embeddedobj
embedserv
emfio
eventattacher
extensions new loplugin:unusedvariableplus 2020-04-07 11:42:37 +02:00
external optimize bit depth conversions to/from Skia where possible 2020-04-07 11:52:43 +02:00
extras tdf#131949 Remove /extras/source/gallery/htmlexpo 2020-04-08 11:04:55 +02:00
filter new loplugin:unusedvariableplus 2020-04-07 11:42:37 +02:00
forms new loplugin:unusedvariableplus 2020-04-07 11:42:37 +02:00
formula
fpicker
framework loplugin:flatten in framework 2020-04-08 11:01:31 +02:00
helpcompiler loplugin:flatten in helpcompiler 2020-04-08 08:48:54 +02:00
helpcontent2@2748a458c3 Update git submodules 2020-04-08 00:47:50 +02:00
hwpfilter loplugin:flatten in hwpfilter 2020-04-08 10:17:00 +02:00
i18nlangtag loplugin:flatten in i18nlangtag 2020-04-08 08:48:59 +02:00
i18npool loplugin:flatten in i18npool 2020-04-08 11:01:14 +02:00
i18nutil
icon-themes Sukapura: Fix for tdf#131974 Undo & Redo for RTL UI 2020-04-08 07:06:37 +02:00
idl loplugin:flatten in idl 2020-04-07 19:56:18 +02:00
idlc loplugin:flatten in idlc 2020-04-07 18:55:33 +02:00
include add get_entry_font to match set_entry_font 2020-04-08 09:46:41 +02:00
instsetoo_native
io loplugin:flatten in io 2020-04-07 15:37:24 +02:00
ios
javaunohelper
jurt
jvmaccess
jvmfwk loplugin:flatten in jvmfwk 2020-04-07 15:12:35 +02:00
l10ntools loplugin:flatten in l10ntools 2020-04-07 13:11:10 +02:00
librelogo
libreofficekit
lingucomponent loplugin:flatten in lingucomponent 2020-04-07 13:10:29 +02:00
linguistic loplugin:flatten in linguistic 2020-04-07 13:11:35 +02:00
lotuswordpro loplugin:flatten in lotuswordpro 2020-04-07 11:19:13 +02:00
m4
nlpsolver
o3tl
odk
offapi
officecfg tdf#125268 officecfg: export LO character background as MSO shading by default 2020-04-03 10:44:46 +02:00
onlineupdate
oovbaapi
oox loplugin:unusedvariableplus in oox 2020-04-07 08:30:45 +02:00
opencl loplugin:flatten in opencl 2020-04-03 12:39:43 +02:00
osx
package loplugin:flatten in package 2020-04-03 12:39:54 +02:00
pch
postprocess
pyuno loplugin:flatten in pyuno 2020-04-03 11:37:36 +02:00
qadevOOo
readlicense_oo update credits 2020-04-07 14:50:53 +02:00
registry
remotebridges
reportbuilder
reportdesign loplugin:unusedvariableplus in reportdesign 2020-04-07 10:03:19 +02:00
ridljar
sal Nah, let's revert that shite 2020-04-06 10:52:00 +03:00
salhelper
sax loplugin:flatten in sax 2020-04-02 20:05:51 +02:00
sc Make SalInstance::CreateClipboard return a single instance in the non-LOK case 2020-04-08 11:33:46 +02:00
scaddins loplugin:flatten in scaddins 2020-04-02 20:04:45 +02:00
sccomp
schema tdf#131370 chart: implement OOXML import/export of legend overlay feature 2020-03-30 12:45:57 +02:00
scp2 tdf#131786 Remove Arrow Gallery 2020-04-04 17:46:17 +02:00
scripting scripting: mailmerge.py: remove Python 3.0/3.1 support 2020-04-06 11:02:41 +02:00
sd cid#1461386 Unchecked return value 2020-04-08 10:47:45 +02:00
sdext new loplugin:unusedvariableplus 2020-04-07 11:42:37 +02:00
setup_native
sfx2 Fix edit button still appearing in Calc 2020-04-08 07:30:17 +02:00
shell
slideshow tdf#131254 Follow-up Prevent extra eventqueue empty call. 2020-03-30 18:12:28 +02:00
smoketest
solenv remove polygonprimitive2d.hxx from clang-format blacklist 2020-04-07 01:47:14 +02:00
soltools
sot
starmath loplugin:unusedvariableplus in starmath 2020-04-07 09:42:20 +02:00
stoc
store
svgio split up polypolygonprimitive2d.hxx into separate files 2020-04-03 17:31:55 +02:00
svl
svtools remove newly unused stuff 2020-04-06 21:24:55 +02:00
svx use "To Background" and "To Foreground" only in writer sidebar 2020-04-07 12:17:25 +02:00
sw tdf#131684 sw_redlinehide: fix SwUndoDelete for entire doc in section 2020-04-08 10:57:52 +02:00
swext
sysui Only process with brand.pl the *.keys and *.desktop files 2020-04-02 14:47:19 +02:00
test
testtools new loplugin:unusedvariableplus 2020-04-07 11:42:37 +02:00
toolkit Fix is_typed_flags for MessBoxStyle (toolkit/msgbox) 2020-03-29 14:20:24 +02:00
tools
translations@0a73e51795 Update git submodules 2020-04-03 12:31:39 +02:00
ucb loplugin:unusedvariableplus in ucb,xmlscript 2020-04-07 10:16:11 +02:00
ucbhelper
udkapi
uitest Revert "UITest: Actually time-out the wait" 2020-04-07 15:35:15 +02:00
UnoControls loplugin:finalclasses in xmlsecurity..UnoControls 2020-04-03 11:37:53 +02:00
unodevtools
unoidl
unoil
unotest
unotools Translate German variable names 2020-03-31 15:36:50 +02:00
unoxml
ure
uui
vbahelper
vcl Make SalInstance::CreateClipboard return a single instance in the non-LOK case 2020-04-08 11:33:46 +02:00
winaccessibility
wizards Related: tdf#131576 overlapping windows, move bottom one down a little 2020-03-30 15:03:22 +02:00
writerfilter tdf#131819 DOCX import: fix fixed size nested table 2020-04-07 14:24:45 +02:00
writerperfect
xmerge
xmlhelp loplugin:finalclasses in xmlsecurity..UnoControls 2020-04-03 11:37:53 +02:00
xmloff loplugin:unusedvariableplus in xmloff 2020-04-06 21:42:04 +02:00
xmlreader
xmlscript loplugin:unusedvariableplus in ucb,xmlscript 2020-04-07 10:16:11 +02:00
xmlsecurity new loplugin:unusedvariableplus 2020-04-07 11:42:37 +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
config_host_lang.mk.in
configure.ac
COPYING
COPYING.LGPL
COPYING.MPL
download.lst update Skia to chrome/m83 2020-04-06 18:54:54 +02:00
g
hardened_runtime.xcent
install-sh
leak-suppress.txt
Library_merged.mk
lo.xcent
logerrit
Makefile.fetch
Makefile.gbuild
Makefile.in
README.cross
README.md
README.Solaris
Repository.mk Revert "tdf#131224 update bullets and numbering images" 2020-04-03 12:14:50 +02:00
RepositoryExternal.mk lxml: try to remove some quirky PYPATH stuff 2020-04-06 18:01:48 +02:00
RepositoryFixes.mk
RepositoryModule_build.mk
RepositoryModule_host.mk
sanitize-ubsan-blacklist
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.