Test repository to check push and ssh key
Find a file
Michael Stahl 3cacdf5b0f sc: fix CppunitTest_sc_ddelinkobj to copy its test document
XRefreshable::testRefreshListener() fails on read-only filesystem
because the ScDDELinksObj.ods cannot be loaded read-write.

It is loaded read-write since commit
5b2794e27a.

Change-Id: I27b954b216acd3d138ade0d3f1b21fedd2f74fb1
Reviewed-on: https://gerrit.libreoffice.org/67071
Tested-by: Jenkins
Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
2019-01-29 17:02:17 +01:00
.git-hooks
accessibility tdf#42949 Fix remaining IWYU warnings in include/vcl/* 2019-01-18 09:09:22 +01:00
android Fix typo 2019-01-25 07:04:56 +01:00
animations
apple_remote
avmedia
basctl loplugin:constparams in basctl..chart2 2019-01-24 07:46:23 +01:00
basegfx b2dpolygontools: removing debug code, doesn't seem to be useful 2019-01-29 11:01:45 +01:00
basic Fix typo 2019-01-27 09:46:25 +01:00
bean Fix typo 2019-01-28 09:16:24 +01:00
bin Fix typo 2019-01-29 07:09:44 +01:00
binaryurp
bridges
canvas loplugin:constparams in basctl..chart2 2019-01-24 07:46:23 +01:00
chart2 tdf#123013: Allow to change trendline name in gtk3 2019-01-29 09:54:23 +01:00
cli_ure
codemaker
comphelper rhbz#1667364 Open doc as R/O for which open(...,O_RDWR) returns EOPNOTSUPP 2019-01-23 21:06:31 +01:00
compilerplugins loplugin:unusedmethods 2019-01-25 08:07:40 +01:00
config_host
configmgr
connectivity tdf#106463 set new firebird connections as autocommit by default 2019-01-29 08:42:19 +01:00
cppcanvas
cppu cppu: fix Android build 2019-01-29 15:59:56 +01:00
cppuhelper
cpputools
cui Resolves: tdf#122992 allow pre-selected fonts not in the font list 2019-01-28 22:09:06 +01:00
dbaccess dbaccess: don't try to migrate read-only file 2019-01-29 12:19:43 +01:00
desktop lok: don't crash in simple LOK use-case with no callback. 2019-01-25 22:21:23 +01:00
dictionaries@6811c96b9d Update git submodules 2019-01-20 20:38:14 +01:00
distro-configs aarch64 and arm need libatomic_ops 2019-01-28 12:38:41 +01:00
drawinglayer o3tl::make_unique -> std::make_unique in dbaccess...framework 2019-01-21 07:36:04 +01:00
dtrans
editeng tdf#42949 Fix IWYU warnings in include/xmloff/* 2019-01-22 09:27:34 +01:00
embeddedobj Clean up dead uses of DISABLE_ATL 2019-01-24 21:23:56 +01:00
embedserv Clean up dead uses of DISABLE_ATL 2019-01-24 21:23:56 +01:00
emfio o3tl::make_unique -> std::make_unique in dbaccess...framework 2019-01-21 07:36:04 +01:00
eventattacher
extensions SAL_INFO also for parameter names that are not found 2019-01-21 17:34:31 +02:00
external libgpg-error: use custom soname and symbol version 2019-01-28 23:54:56 +01:00
extras
filter ofz#11104 for timeouts, limit decompression ratios when fuzzing 2019-01-29 09:53:54 +01:00
forms fix load/save of forms with HAVING 2019-01-24 18:25:10 +01:00
formula o3tl::make_unique -> std::make_unique in dbaccess...framework 2019-01-21 07:36:04 +01:00
fpicker tdf#122927 prevent SolarMutex deadlock on join() 2019-01-25 16:04:25 +01:00
framework framework: avoid crashing in ~HandlerCFGAccess() in atexit() 2019-01-29 12:19:57 +01:00
helpcompiler
helpcontent2@622324ec76 Update git submodules 2019-01-28 23:27:50 +01:00
hwpfilter loplugin:constparams in dbaccess..oox 2019-01-24 07:46:46 +01:00
i18nlangtag
i18npool Use std::string instead of fixed-size array to hold string 2019-01-22 19:51:47 +01:00
i18nutil
icon-themes Sifr icon: add cmd/32px svg icons and update the png output 2019-01-29 08:20:18 +01:00
idl o3tl::make_unique -> std::make_unique in i18npool...reportdesign 2019-01-22 08:38:28 +01:00
idlc o3tl::make_unique -> std::make_unique in i18npool...reportdesign 2019-01-22 08:38:28 +01:00
include sc: fix CppunitTest_sc_ddelinkobj to copy its test document 2019-01-29 17:02:17 +01:00
instsetoo_native
io
ios Drop unnecessary gb_DEBUG_CFLAGS 2019-01-24 11:25:03 +01:00
javaunohelper
jurt
jvmaccess
jvmfwk Silence bogus -Werror=clobbered (GCC 7 --enable-optimized) 2019-01-22 09:05:43 +01:00
l10ntools
librelogo
libreofficekit lok: calm down CnP issues & simplify. 2019-01-25 22:21:35 +01:00
lingucomponent o3tl::make_unique -> std::make_unique in i18npool...reportdesign 2019-01-22 08:38:28 +01:00
linguistic tdf#42949 Fix IWYU warnings in include/xmloff/* 2019-01-22 09:27:34 +01:00
lotuswordpro o3tl::make_unique -> std::make_unique in i18npool...reportdesign 2019-01-22 08:38:28 +01:00
m4
nlpsolver
o3tl
odk odk: CustomTarget_build-examples hard-codes on "gcc" and "g++" 2019-01-29 16:42:38 +01:00
offapi sw paste listener: expose pasted images as well 2019-01-24 20:57:29 +01:00
officecfg Make the text on Redaction toolbar buttons visible 2019-01-26 23:52:42 +01:00
onlineupdate
oovbaapi Add WordBasic.FileClose() 2019-01-24 00:33:14 +02:00
oox Replace macros with their payload 2019-01-29 11:27:37 +01:00
opencl
osx
package o3tl::make_unique -> std::make_unique in i18npool...reportdesign 2019-01-22 08:38:28 +01:00
postprocess Clean up dead uses of DISABLE_ATL 2019-01-24 21:23:56 +01:00
pyuno
qadevOOo tdf#45904 Move XPropertySet Java tests to C++ 2019-01-29 07:08:44 +01:00
readlicense_oo It's called libatomic_ops not libatomic-ops 2019-01-28 15:19:52 +01:00
registry
remotebridges
reportbuilder
reportdesign tdf#42949 Fix IWYU warnings in include/xmloff/* 2019-01-22 09:27:34 +01:00
ridljar
sal rhbz#1667364 Open doc as R/O for which open(...,O_RDWR) returns EOPNOTSUPP 2019-01-23 21:06:31 +01:00
salhelper
sax o3tl::make_unique -> std::make_unique in sax...svtools (except sc) 2019-01-28 09:52:28 +01:00
sc sc: fix CppunitTest_sc_ddelinkobj to copy its test document 2019-01-29 17:02:17 +01:00
scaddins
sccomp Fix order of CPPUNIT_ASSERT_EQUAL expected vs. actual arguments 2019-01-24 21:23:24 +01:00
schema
scp2
scripting o3tl::make_unique -> std::make_unique in sax...svtools (except sc) 2019-01-28 09:52:28 +01:00
sd o3tl::make_unique -> std::make_unique in sax...svtools (except sc) 2019-01-28 09:52:28 +01:00
sdext o3tl::make_unique -> std::make_unique in sax...svtools (except sc) 2019-01-28 09:52:28 +01:00
setup_native
sfx2 o3tl::make_unique -> std::make_unique in sax...svtools (except sc) 2019-01-28 09:52:28 +01:00
shell o3tl::make_unique -> std::make_unique in sax...svtools (except sc) 2019-01-28 09:52:28 +01:00
slideshow
smoketest
solenv Remove some kde4 leftovers 2019-01-29 09:53:49 +01:00
soltools
sot
starmath o3tl::make_unique -> std::make_unique in sax...svtools (except sc) 2019-01-28 09:52:28 +01:00
stoc loplugin:flatten in stoc..store 2019-01-29 07:11:04 +01:00
store loplugin:flatten in stoc..store 2019-01-29 07:11:04 +01:00
svgio loplugin:flatten in svgio 2019-01-29 07:11:12 +01:00
svl Resolves: tdf#122991 do not truncate time duration [] format values 2019-01-28 20:02:23 +01:00
svtools o3tl::make_unique -> std::make_unique in sax...svtools (except sc) 2019-01-28 09:52:28 +01:00
svx Improve ODF enhanced-path command moveTo to follow spec 2019-01-29 01:16:51 +01:00
sw Resolves: tdf#110429 width of page number wider than traditional width 2019-01-29 15:21:52 +01:00
swext
sysui
test sc: fix CppunitTest_sc_ddelinkobj to copy its test document 2019-01-29 17:02:17 +01:00
testtools
toolkit Replace macro with template 2019-01-23 13:25:53 +01:00
tools Disable test for Linux x86 CXXFLAGS=-O1 corner case 2019-01-25 14:16:52 +01:00
translations@46a65ed743
ucb loplugin:constparams in ucb..xmlhelp 2019-01-24 13:02:31 +01:00
ucbhelper
udkapi
uitest
UnoControls
unodevtools Take advantage of known index to avoid an OUString copy 2019-01-27 16:03:44 +01:00
unoidl
unoil
unotest
unotools Bail out early 2019-01-27 23:10:13 +01:00
unoxml
ure
uui loplugin:constparams in ucb..xmlhelp 2019-01-24 13:02:31 +01:00
vbahelper
vcl tdf#123031 allow natural cell width if the combobox contents are >= request 2019-01-29 17:01:27 +01:00
winaccessibility Clean up dead uses of DISABLE_ATL 2019-01-24 21:23:56 +01:00
wizards
writerfilter tdf#122430 RTF import: fix lost font size on footnote start 2019-01-29 09:18:05 +01:00
writerperfect CppunitTest_writerperfect_epubexport: use CPPUNIT_TEST_FIXTURE() 2019-01-24 09:06:19 +01:00
xmerge
xmlhelp loplugin:constparams in ucb..xmlhelp 2019-01-24 13:02:31 +01:00
xmloff Improve ODF enhanced-path command moveTo to follow spec 2019-01-29 01:16:51 +01:00
xmlreader
xmlscript
xmlsecurity CppunitTest_xmlsecurity_pdfsigning: use CPPUNIT_TEST_FIXTURE() 2019-01-18 09:06:19 +01:00
.buckconfig
.buckversion
.clang-format
.editorconfig
.gitattributes
.gitignore
.gitmodules
.gitreview
autogen.sh
BUCK
config.guess
config.sub
config_host.mk.in Drop unnecessary gb_DEBUG_CFLAGS 2019-01-24 11:25:03 +01:00
config_host_lang.mk.in
configure.ac configure: require autoconf 2.68 2019-01-29 10:53:08 +01:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst Upgrade libatomic_ops to latest libatomic_ops-7.6.8.tar.gz 2019-01-28 13:42:45 +01:00
g
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
RepositoryExternal.mk
RepositoryFixes.mk
RepositoryModule_build.mk
RepositoryModule_host.mk
sanitize-ubsan-blacklist
setup.cfg
TEMPLATE.SOURCECODE.HEADER

LibreOffice

Coverity Scan Build Status CII Best Practices

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 2017
  • macOS:
    • Runtime: 10.10
    • Build: 10.13.2 + Xcode 9.3
  • Linux:
    • Runtime: RHEL 6 or CentOS 6
    • 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

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.