Test repository to check push and ssh key
Find a file
Julien Nabet 7a2bca302f cid#1362174, 1362177: USE_AFTER_FREE+resource leak due to copypasta
Change-Id: Icd903335fdef3921781e2f16e98a0e10bda31e3f
Reviewed-on: https://gerrit.libreoffice.org/25641
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-05-30 00:32:03 +00:00
.git-hooks
accessibility Get rid of unnecessary directory levels $D/inc/$D 2016-05-27 17:10:45 +00:00
android
animations
apple_remote
avmedia
basctl
basegfx
basic Convert GRAPHIC to scoped enum 2016-05-27 12:59:23 +00:00
bean
bin find-german-comments: enable scanning subdirs 2016-05-27 06:19:46 +00:00
binaryurp
bridges Get rid of unnecessary directory levels $D/inc/$D 2016-05-27 17:10:45 +00:00
canvas canvas: error C2397: conversion from 'size_t' to 'BYTE' requires ... 2016-05-26 20:35:42 +02:00
chart2 Convert GRAPHIC to scoped enum 2016-05-27 12:59:23 +00:00
cli_ure
codemaker
comphelper comphelper: fix the comphelp.component 2016-05-26 22:55:24 +02:00
compilerplugins loplugin:unusedreturntypes 2016-05-26 07:26:47 +00:00
config_host
configmgr Convert XmlReader::Result to scoped enum 2016-05-25 11:59:08 +00:00
connectivity loplugin:unusedreturntypes 2016-05-26 07:26:47 +00:00
cppcanvas
cppu
cppuhelper Convert XmlReader::Result to scoped enum 2016-05-25 11:59:08 +00:00
cpputools
cui Resolves: tdf#97839 a single character may be more than 1 utf-16 code points 2016-05-29 20:27:00 +01:00
dbaccess tdf#96516 do not increment position counter when an entry is removed 2016-05-27 15:48:49 +02:00
desktop bccu#1781: Impress/Comments - selection not updated on delete 2016-05-29 01:56:38 +00:00
dictionaries@697bbfa625 Updated core 2016-05-24 00:00:01 +00:00
distro-configs
drawinglayer Convert GRAPHIC to scoped enum 2016-05-27 12:59:23 +00:00
dtrans C++11: disable ctors/operators with delete (dtrans) 2016-05-24 20:44:25 +00:00
editeng bccu#1851 - CTRL+A in Writer comments shows selection at top-left corner 2016-05-29 01:58:52 +00:00
embeddedobj Fix tdf#99506: Insert OLE object with icon failed 2016-05-24 07:03:45 +00:00
embedserv SAL_FALLTRHOUGH in Windows-only code 2016-05-25 08:42:15 +02:00
eventattacher
extensions tdf#34465 remove calls to SfxItemSet::Put(const SfxPoolItem&, sal_uInt16) 2016-05-27 07:21:45 +00:00
external boost: remove patches for headers that are no longer used 2016-05-26 18:25:55 +00:00
extras update emoji autocorrect files from po-files 2016-05-26 00:00:36 +02:00
filter Convert GRAPHIC to scoped enum 2016-05-27 12:59:23 +00:00
forms tdf#93403 check for changed DataSource on all Controls on form reload 2016-05-27 15:48:50 +02:00
formula cid#1362174, 1362177: USE_AFTER_FREE+resource leak due to copypasta 2016-05-30 00:32:03 +00:00
fpicker Resolves: tdf#98436 crash trying To create remote folder before connected 2016-05-26 09:40:28 +01:00
framework lokit: ensure progress value sequential 2016-05-26 09:02:24 +00:00
helpcompiler
helpcontent2@a9a0e86256 Updated core 2016-05-28 08:01:58 +00:00
hwpfilter
i18nlangtag
i18npool Estonian localization of aboveWord and belowWord 2016-05-28 20:34:28 +02:00
i18nutil
icon-themes
idl loplugin:unusedreturntypes 2016-05-26 07:26:47 +00:00
idlc Get rid of unnecessary directory levels $D/inc/$D 2016-05-27 17:10:45 +00:00
include tdf#100115: _nColId is sal_uInt16 2016-05-29 15:58:44 +00:00
instsetoo_native
io remove (un-)definitions of NDEBUG from source files 2016-05-25 13:45:40 +02:00
ios
javaunohelper
jurt
jvmaccess
jvmfwk
l10ntools loplugin:unusedmethods 2016-05-26 07:50:33 +00:00
librelogo
libreofficekit
lingucomponent
linguistic loplugin:unusedmethods 2016-05-26 07:50:33 +00:00
lotuswordpro remove (un-)definitions of NDEBUG from source files 2016-05-25 13:45:40 +02:00
m4
mysqlc
nlpsolver
o3tl CppunitTest_o3tl_tests: fix loplugin:cppunitassertequals warnings in ... 2016-05-27 07:41:30 +00:00
odk
offapi Fix license header of new file 2016-05-24 09:09:02 +02:00
officecfg tdf#83830: Writer page sidebar deck 2016-05-26 09:01:06 +00:00
onlineupdate
oovbaapi
oox Convert GRAPHIC to scoped enum 2016-05-27 12:59:23 +00:00
opencl cppcheck: noExplicitConstructor 2016-05-26 12:01:11 +01:00
osx
package Fix typos 2016-05-25 09:50:55 +00:00
postprocess
pyuno Get rid of unnecessary directory levels $D/inc/$D 2016-05-27 17:10:45 +00:00
qadevOOo improve exception throwing in java class util.utils 2016-05-27 07:20:55 +00:00
readlicense_oo update credits 2016-05-26 00:07:28 +02:00
registry
remotebridges
reportbuilder
reportdesign tdf#34465 remove calls to SfxItemSet::Put(const SfxPoolItem&, sal_uInt16) 2016-05-27 07:21:45 +00:00
ridljar
rsc Revert "Remove more RSC_DOCKWINDOW related stuff" 2016-05-27 14:11:12 +02:00
sal SAL_FALLTRHOUGH in Windows-only code 2016-05-25 08:42:15 +02:00
salhelper
sax loplugin:unreffun 2016-05-29 23:06:22 +02:00
sc add DAYS360 test case 2016-05-29 11:40:56 +00:00
scaddins
sccomp
scp2
scripting
sd Convert GRAPHIC to scoped enum 2016-05-27 12:59:23 +00:00
sdext
setup_native -Werror,-Wunused-macros 2016-05-25 15:06:16 +02:00
sfx2 coverity#1362173 Dereference after null check 2016-05-29 22:44:27 +01:00
shell
slideshow Convert GRAPHIC to scoped enum 2016-05-27 12:59:23 +00:00
smoketest
solenv shortcut the signal handler during batch test 2016-05-27 22:55:22 +00:00
soltools
sot
starmath starmath: Make some functions of SmDocShell public 2016-05-28 00:06:52 +00:00
stoc Revert "remove some manual ref-counting" 2016-05-24 11:02:42 +02:00
store
svgio Get rid of unnecessary directory levels $D/inc/$D 2016-05-27 17:10:45 +00:00
svl tdf#34465 remove calls to SfxItemSet::Put(const SfxPoolItem&, sal_uInt16) 2016-05-27 07:21:45 +00:00
svtools Convert GRAPHIC to scoped enum 2016-05-27 12:59:23 +00:00
svx tdf#100115: _nColId is sal_uInt16 2016-05-29 15:58:44 +00:00
sw coverity#1362175 Uninitialized scalar field 2016-05-29 22:44:27 +01:00
swext
sysui
test
testtools
toolkit
tools improve the logging of resource loading failures 2016-05-26 13:34:31 +02:00
translations@155bdb6451 Updated core 2016-05-25 21:57:37 +00:00
tubes
ucb avoid a global uno::Reference to the current XCommandEnvironment 2016-05-26 17:07:18 +01:00
ucbhelper Revert "remove some manual ref-counting" 2016-05-24 11:02:42 +02:00
udkapi
UnoControls
unodevtools Get rid of unnecessary directory levels $D/inc/$D 2016-05-27 17:10:45 +00:00
unoidl
unoil
unotest
unotools tdf#99973 - Crash when changing Locale Setting in options 2016-05-24 06:54:36 +00:00
unoxml
ure
uui Google 2FA: better info for user 2016-05-23 19:56:54 +02:00
vbahelper loplugin:unusedmethods 2016-05-26 07:50:33 +00:00
vcl coverity#1362019 Uninitialized scalar variable 2016-05-29 22:44:27 +01:00
winaccessibility SAL_FALLTRHOUGH in Windows-only code 2016-05-25 08:42:15 +02:00
windows
wizards Fix typos 2016-05-25 09:50:55 +00:00
writerfilter loplugin:unusedmethods 2016-05-26 07:50:33 +00:00
writerperfect loplugin:unusedmethods 2016-05-26 07:50:33 +00:00
xmerge
xmlhelp
xmloff cppcheck: variable scope 2016-05-26 17:07:18 +01:00
xmlreader Convert XmlReader::Result to scoped enum 2016-05-25 11:59:08 +00:00
xmlscript Revert "remove some manual ref-counting" 2016-05-24 11:02:42 +02:00
xmlsecurity Get rid of unnecessary directory levels $D/inc/$D 2016-05-27 17:10:45 +00:00
.buckconfig
.buckversion
.gitattributes
.gitignore
.gitmodules
.gitreview
autogen.sh
BUCK
config.guess
config.sub
config_host.mk.in add build system part for upload crashreport symbols 2016-05-24 04:28:16 +02:00
config_host_lang.mk.in
configure.ac fix configure typo 2016-05-26 01:18:00 +00:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst libxml2: upgrade to release 2.9.4 2016-05-24 18:31:23 +00:00
g
install-sh
leak-suppress.txt
Library_merged.mk
lo.xcent.in
logerrit
Makefile.fetch
Makefile.gbuild add build system part for upload crashreport symbols 2016-05-24 04:28:16 +02:00
Makefile.in make the symbol generation also work correctly on windows 2016-05-24 09:13:16 +02:00
README.cross
README.md
README.Solaris
Repository.mk
RepositoryExternal.mk
RepositoryFixes.mk
RepositoryModule_build.mk
RepositoryModule_host.mk
sanitize-ubsan-blacklist
TEMPLATE.SOURCECODE.HEADER
unusedcode.easy
unusedcode.exclude
unusedcode.README

LibreOffice

Coverity Scan Build 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 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:

http://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.

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.