Test repository to check push and ssh key
Find a file
Noel Grandin 588333c943 loplugin:useuniqueptr for ScOutlineTable in the undo code
fixing what looks like a couple of leaks on some paths

Change-Id: Idc851b8ffca8e5ed1bd54c9195442709ed310d40
Reviewed-on: https://gerrit.libreoffice.org/59558
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-08-24 15:57:08 +02:00
.git-hooks
accessibility tdf#116542 a11y: Make R/O accessibleedit use STATIC role 2018-08-17 13:19:09 +02:00
android Added Clear Formatting button on Android Viewer 2018-08-21 00:10:10 +02:00
animations
apple_remote
avmedia
basctl Simplify containers iterations, tdf#96099 follow-up 2018-08-20 17:12:11 +02:00
basegfx Consolidate: basegfx::clamp -> o3tl::clamp 2018-08-17 20:13:21 +02:00
basic loplugin:useuniqueptr in SbiExprNode 2018-08-22 08:26:41 +02:00
bean
bin
binaryurp
bridges -Werror,-Wmultichar (clang-cl) 2018-08-16 13:47:47 +02:00
canvas
chart2 tdf#94502 Fix overlap export of Stacked Bar Chart to *.xlsx 2018-08-23 13:45:58 +02:00
cli_ure Simplify containers iterations, tdf#96099 follow-up 2018-08-20 17:12:11 +02:00
codemaker
comphelper new loplugin:conststringfield 2018-08-22 13:31:57 +02:00
compilerplugins filter out AST in more plugins 2018-08-23 16:34:48 +02:00
config_host
configmgr Simplify containers iterations, tdf#96099 follow-up 2018-08-20 17:12:11 +02:00
connectivity Simplify containers iterations, tdf#96099 follow-up 2018-08-20 17:12:11 +02:00
cppcanvas
cppu
cppuhelper
cpputools
cui pass DelFormats around using std::vector 2018-08-24 08:55:14 +02:00
dbaccess Blind fix for -Werror,-Wunused-function 2018-08-24 15:23:43 +02:00
desktop Fix typo: s/an other/another/g 2018-08-16 23:50:54 +02:00
dictionaries@f72d665c06 Update git submodules 2018-08-24 15:00:59 +02:00
distro-configs
drawinglayer tdf#105998: Enhanced fix for MetafileToBitmap at better place 2018-08-17 21:27:40 +02:00
dtrans
editeng Resolves: tdf#112563 we don't want a human representation of SvxRsidItem 2018-08-24 09:19:52 +02:00
embeddedobj
embedserv
emfio
eventattacher
extensions pass DelFormats around using std::vector 2018-08-24 08:55:14 +02:00
external external/mysql-connector-cpp uses std::auto_ptr, must not be compiled as C++17 2018-08-21 07:36:00 +02:00
extras pt_PT autocorrect - added 21 new words. 2018-08-22 16:28:50 +02:00
filter iRelated rhbz#1618703: Properly handle failure en-/decoding PDF file 2018-08-24 13:14:44 +02:00
forms
formula remove mempool 2018-08-16 15:02:27 +02:00
fpicker
framework
helpcompiler
helpcontent2@6ebdc6aaf3 Update git submodules 2018-08-24 12:53:03 +02:00
hwpfilter loplugin:useuniqueptr in HStreamIODev 2018-08-21 12:11:18 +02:00
i18nlangtag tdf#119117: get phonebook sort work by tweaking ICU call mechanism 2018-08-17 20:01:10 +02:00
i18npool Resolves: tdf#119399 add es-VE currency Bolivar Soberano VES Bs.S. 2018-08-22 22:10:39 +02:00
i18nutil
icon-themes tdf#119430 new icon MeasureAttributes 2018-08-23 05:35:40 +02:00
idl
idlc
include tdf#119416 Open Special Characters dialog on Enter key press 2018-08-24 15:02:21 +02:00
instsetoo_native
io
ios
javaunohelper
jurt
jvmaccess
jvmfwk
l10ntools
librelogo
libreofficekit
lingucomponent
linguistic
lotuswordpro ofz: infinite loop 2018-08-17 11:29:24 +02:00
m4
mysqlc On macOS Library_mysqlc needs _iconv{,_close,_open} 2018-08-20 21:15:40 +02:00
nlpsolver
o3tl
odk
offapi offapi: correct description of IterateInterval. 2018-08-22 09:34:15 +02:00
officecfg tdf#119425 - Use Ctrl+Tab to switch between sheets on macOS 2018-08-24 09:05:56 +02:00
onlineupdate
oovbaapi
oox tdf#73547 fix ooxml export / import custom dashes. 2018-08-24 15:07:14 +02:00
opencl
osx
package Related rhbz#1618703: Properly handle failure encoding zip file 2018-08-23 20:38:26 +02:00
postprocess
pyuno
qadevOOo
readlicense_oo
registry new loplugin:conststringfield 2018-08-22 13:31:57 +02:00
remotebridges
reportbuilder
reportdesign new loplugin:conststringfield 2018-08-22 13:31:57 +02:00
ridljar
sal rhbz#1618703: Allow to use OpenSSL as backend for rtl/cipher.h 2018-08-23 20:39:39 +02:00
salhelper
sax
sc loplugin:useuniqueptr for ScOutlineTable in the undo code 2018-08-24 15:57:08 +02:00
scaddins
sccomp
schema
scp2
scripting loplugin:useuniqueptr in StringResourceImpl 2018-08-22 13:25:44 +02:00
sd loplugin:useuniqueptr in sd dialogs 2018-08-24 13:18:31 +02:00
sdext iRelated rhbz#1618703: Properly handle failure en-/decoding PDF file 2018-08-24 13:14:44 +02:00
setup_native
sfx2 tdf#119416 Open Special Characters dialog on Enter key press 2018-08-24 15:02:21 +02:00
shell Simplify containers iterations, tdf#96099 follow-up 2018-08-20 17:12:11 +02:00
slideshow Related: tdf#122166 require opengl >= 3.0 for slide transitions 2018-08-19 12:15:26 +02:00
smoketest
solenv Fix MSVC 2017 warning C4702: unreachable code 2018-08-24 08:39:59 +02:00
soltools
sot Avoid further downstream overflow 2018-08-17 22:47:32 +02:00
starmath return weld widgets by std::unique_ptr from builder 2018-08-20 08:19:48 +02:00
stoc Simplify containers iterations, tdf#96099 follow-up 2018-08-20 17:12:11 +02:00
store
svgio Consolidate: basegfx::clamp -> o3tl::clamp 2018-08-17 20:13:21 +02:00
svl Related rhbz#1618703: Properly handle failure decoding master password 2018-08-23 20:38:10 +02:00
svtools tdf#119427: fix selectionChanged event 2018-08-23 23:27:49 +02:00
svx pass DelFormats around using std::vector 2018-08-24 08:55:14 +02:00
sw tdf#73547 fix ooxml export / import custom dashes. 2018-08-24 15:07:14 +02:00
swext
sysui
test
testtools
toolkit toolkit: a micro-optimization taking min and max simulnateously 2018-08-19 14:48:27 +02:00
tools tdf#119326 crash when adding "Windows Share" File resource 2018-08-21 21:04:42 +02:00
translations@54cc0de67b
ucb new loplugin:conststringfield 2018-08-22 13:31:57 +02:00
ucbhelper
udkapi
uitest
UnoControls
unodevtools
unoidl
unoil
unotest
unotools
unoxml
ure
uui
vbahelper new loplugin:conststringfield 2018-08-22 13:31:57 +02:00
vcl tdf#118786 WIN just assert in Yield 2018-08-24 15:14:53 +02:00
winaccessibility
wizards Deleted whitespace, fixed typos and spelling errors 2018-08-22 12:37:23 +02:00
writerfilter tdf#57589 writerfilter: support hash-encoded colors 2018-08-21 06:36:05 +02:00
writerperfect
xmerge
xmlhelp loplugin:useuniqueptr in chelp::DynamicResultSet 2018-08-22 13:24:24 +02:00
xmloff new loplugin:conststringfield 2018-08-22 13:31:57 +02:00
xmlreader
xmlscript new loplugin:conststringfield 2018-08-22 13:31:57 +02:00
xmlsecurity Simplify containers iterations, tdf#96099 follow-up 2018-08-20 17:12:11 +02:00
.buckconfig
.buckversion
.clang-format
.editorconfig
.gitattributes
.gitignore
.gitmodules
.gitreview
autogen.sh
BUCK
config.guess
config.sub
config_host.mk.in rhbz#1618703: Allow to use OpenSSL as backend for rtl/cipher.h 2018-08-23 20:39:39 +02:00
config_host_lang.mk.in
configure.ac rhbz#1618703: Allow to use OpenSSL as backend for rtl/cipher.h 2018-08-23 20:39:39 +02:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst
g
install-sh
leak-suppress.txt
Library_merged.mk
lo.xcent.in
logerrit
Makefile.fetch
Makefile.gbuild
Makefile.in reenable the rest of the fuzzers 2018-08-16 10:37:07 +01:00
README.cross
README.md
README.Solaris
Repository.mk
RepositoryExternal.mk tdf#118261 package libnumbertext data files into installation sets 2018-08-22 08:44:21 +02:00
RepositoryFixes.mk
RepositoryModule_build.mk
RepositoryModule_host.mk
sanitize-ubsan-blacklist
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.9
    • Build: 10.12 + Xcode 8
  • Linux:
    • Runtime: RHEL 6 or CentOS 6
    • Build: GCC 4.8.1 or Clang
  • iOS (only for LibreOfficeKit):
    • Runtime: 11.4 (only support for newer i devices == 64 bit)
    • Build: Xcode 9.3 and iPhone SDK 11.4

At least Clang 3.4.2 is known to be too old to pass the configure.ac check "whether $CXX supports C++17, C++14, or C++11" in its current form (due to the #pragma GCC diagnostic ignored "-Wpragmas" that it does not understand).

If you want to use Clang with the LibreOffice compiler plugins, the minimal version of Clang is 3.8. 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.

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.