Test repository to check push and ssh key
Find a file
Mark Hung 22f49d10c0 sd / pptx export: use extracted ooxml node type.
Prefer extracted node type over XAnimationNode->getType(),
as the later has been converted to former and unknown
condition filtered.

As the switch-case statements use ooxml node type now,
all kown node types are handled. Hence returning early
for unkown case isn't necessary and is removed.
That also fix unrestored mpConetxt in 9a9b81c721 because
of returning early.

Change-Id: I614dcaa5b0ce32b19c396d0eab4499c1d67fa059
Reviewed-on: https://gerrit.libreoffice.org/60139
Tested-by: Jenkins
Reviewed-by: Mark Hung <marklh9@gmail.com>
2018-09-08 06:04:51 +02:00
.git-hooks
accessibility loplugin:simplifyconstruct in accessibility..bridges 2018-09-05 09:28:12 +02:00
android
animations loplugin:simplifyconstruct in accessibility..bridges 2018-09-05 09:28:12 +02:00
apple_remote
avmedia clang-tidy performance-inefficient-vector-operation 2018-09-05 09:28:27 +02:00
basctl loplugin:simplifyconstruct in accessibility..bridges 2018-09-05 09:28:12 +02:00
basegfx loplugin:simplifyconstruct in accessibility..bridges 2018-09-05 09:28:12 +02:00
basic Fix typo 2018-09-07 02:32:35 +02:00
bean
bin Upgrade to vs2017-ide-integration, since we don't support VS2015 in master 2018-08-30 17:16:05 +02:00
binaryurp replace rtl_allocateMemory with std::malloc 2018-08-29 09:05:39 +02:00
bridges loplugin:simplifyconstruct in accessibility..bridges 2018-09-05 09:28:12 +02:00
canvas clang-tidy bugprone-use-after-move in BitmapFilter::Filter 2018-09-06 17:16:34 +02:00
chart2 loplugin:simplifyconstruct in canvas..cui 2018-09-06 14:38:52 +02:00
cli_ure replace rtl_allocateMemory with std::malloc 2018-08-29 09:05:39 +02:00
codemaker
comphelper loplugin:simplifyconstruct in canvas..cui 2018-09-06 14:38:52 +02:00
compilerplugins weld writer page style dialog and SvxBorderBackgroundDlg 2018-09-07 14:42:31 +02:00
config_host GCC only supports inline variables since GCC 7 2018-08-31 20:14:40 +02:00
configmgr clang-tidy performance-inefficient-vector-operation 2018-09-05 09:28:27 +02:00
connectivity mysqlc: ensure cursor is not out of range 2018-09-07 15:06:51 +02:00
cppcanvas loplugin:simplifyconstruct in canvas..cui 2018-09-06 14:38:52 +02:00
cppu loplugin:simplifyconstruct in canvas..cui 2018-09-06 14:38:52 +02:00
cppuhelper replace rtl_allocateMemory with std::malloc 2018-08-29 09:05:39 +02:00
cpputools
cui just edit Entry to readonly, instead of a shadow ro widget 2018-09-07 18:17:44 +02:00
dbaccess Cppcheck: resource leak warning 2018-09-07 11:44:09 +02:00
desktop loplugin:simplifyconstruct in dbaccess..drawinglayer 2018-09-06 14:37:11 +02:00
dictionaries@5b81821a17 Update git submodules 2018-09-05 10:30:45 +02:00
distro-configs Adapt solenv/flatpak-manifest.in to recent changes 2018-09-03 21:59:59 +02:00
drawinglayer loplugin:simplifyconstruct in dbaccess..drawinglayer 2018-09-06 14:37:11 +02:00
dtrans Fix some std::unique_ptr array allocs 2018-09-07 22:04:50 +02:00
editeng loplugin:useuniqueptr in ImpEditEngine::Convert 2018-09-07 08:49:06 +02:00
embeddedobj
embedserv
emfio
eventattacher
extensions clang-tidy performance-inefficient-vector-operation 2018-09-05 09:28:27 +02:00
external ofz#10100 skip namespace check in icu 2018-09-07 16:43:20 +02:00
extras [tr][autocorr] Consistent capitalizations for Turkish 2018-09-07 22:48:22 +02:00
filter tdf#108691, tdf#119639 Don't print hidden objects in XLS(X) 2018-09-07 14:50:40 +02:00
forms no need to allocate a new string in parseDuration 2018-08-30 09:40:36 +02:00
formula Replace find_if with proper quantifier algorithms 2018-08-29 11:40:29 +02:00
fpicker
framework Cppcheck: make 1-argument ctors explicit 2018-09-07 14:20:08 +02:00
helpcompiler
helpcontent2@f3124329e3 Update git submodules 2018-09-07 17:58:55 +02:00
hwpfilter loplugin:useuniqueptr in HWPFile 2018-09-07 08:48:12 +02:00
i18nlangtag new loplugin:oustringbuffer 2018-08-29 09:05:18 +02:00
i18npool Related: tdf#119613 inherit af_ZA separators from identical en_ZA 2018-09-03 13:38:23 +02:00
i18nutil
icon-themes KJ: Add more missing Calc, Draw & Writer NB icons, etc 2018-09-05 03:52:58 +02:00
idl
idlc loplugin:useuniqueptr in idlc::compileFile 2018-08-30 08:30:32 +02:00
include BitmapFilter::execute can be const 2018-09-07 20:42:59 +02:00
instsetoo_native Fix typo: s/an other/another/g 2018-08-29 17:12:35 +02:00
io replace rtl_allocateMemory with std::malloc 2018-08-29 09:05:39 +02:00
ios Don't copy files into the source directory, use workdir 2018-09-05 21:57:59 +03:00
javaunohelper replace rtl_allocateMemory with std::malloc 2018-08-29 09:05:39 +02:00
jurt Fix typo: s/an other/another/g 2018-08-29 17:12:35 +02:00
jvmaccess
jvmfwk Replace find_if with proper quantifier algorithms 2018-08-29 11:40:29 +02:00
l10ntools clang-tidy performance-move-const-arg 2018-09-06 08:33:28 +02:00
librelogo
libreofficekit
lingucomponent clang-tidy performance-unnecessary-value-param 2018-09-06 09:54:25 +02:00
linguistic clang-tidy performance-inefficient-vector-operation 2018-09-05 09:28:27 +02:00
lotuswordpro
m4
nlpsolver
o3tl
odk Fix typos 2018-08-29 17:10:21 +02:00
offapi Fix typo: s/an other/another/g 2018-08-29 17:12:35 +02:00
officecfg tdf#119036 - Inserting columns into RTL sheets will add them to the wrong side 2018-09-06 15:32:00 +02:00
onlineupdate Fix some std::unique_ptr array allocs 2018-09-07 22:04:50 +02:00
oovbaapi
oox tdf#108691, tdf#119639 Don't print hidden objects in XLS(X) 2018-09-07 14:50:40 +02:00
opencl
osx
package Fix typos 2018-08-29 17:10:21 +02:00
postprocess
pyuno DeInitVCL in PythonTest 2018-09-07 07:31:48 +02:00
qadevOOo tdf#45904 Move _XColumnRowRange Java tests to C++ 2018-09-06 07:43:04 +02:00
readlicense_oo update credits 2018-09-07 15:40:18 +02:00
registry loplugin:useuniqueptr in TypeWriter::createBlop 2018-09-05 09:28:42 +02:00
remotebridges
reportbuilder
reportdesign clang-tidy performance-unnecessary-value-param 2018-09-06 09:54:25 +02:00
ridljar
sal Cppcheck: release the handle that CreateThread returns 2018-09-07 11:46:14 +02:00
salhelper Drop workaround for old MSVC that no longer appears necessary with MSVC 2017 2018-09-07 20:07:45 +02:00
sax tdf#42949 Fix IWYU warnings: boost/optional in include/ 2018-08-31 09:55:21 +02:00
sc tdf#108691, tdf#119639 Don't print hidden objects in XLS(X) 2018-09-07 14:50:40 +02:00
scaddins
sccomp loplugin:useuniqueptr in CoinMPSolver 2018-09-07 11:07:05 +02:00
schema
scp2 package Indonesian (id) dictionaries into installset 2018-09-01 08:49:58 +02:00
scripting
sd sd / pptx export: use extracted ooxml node type. 2018-09-08 06:04:51 +02:00
sdext loplugin:useuniqueptr in PngHelper::createPng 2018-09-05 09:29:09 +02:00
setup_native package Indonesian (id) dictionaries into installset 2018-09-01 08:49:58 +02:00
sfx2 just edit Entry to readonly, instead of a shadow ro widget 2018-09-07 18:17:44 +02:00
shell Replace find_if with proper quantifier algorithms 2018-08-29 11:40:29 +02:00
slideshow tdf#119146: fix populating maCurrentSubsets 2018-09-03 22:25:35 +02:00
smoketest
solenv improve help message for uitest failure 2018-09-07 13:51:47 +02:00
soltools
sot
starmath weld writer page style dialog and SvxBorderBackgroundDlg 2018-09-07 14:42:31 +02:00
stoc clang-tidy performance-inefficient-vector-operation 2018-09-05 09:28:27 +02:00
store replace rtl_allocateMemory with std::malloc 2018-08-29 09:05:39 +02:00
svgio tdf#119557 style hierarchy isn't stable so looping check fails falsely 2018-08-31 09:27:10 +02:00
svl Use tools::Time::GetClock() in number formatter for wall clock time 2018-08-31 12:50:52 +02:00
svtools weld writer page style dialog and SvxBorderBackgroundDlg 2018-09-07 14:42:31 +02:00
svx weld SvxCharEffectsPage 2018-09-07 16:43:01 +02:00
sw tdf#119019 DOCX track changes: fix invisible delete and insert 2018-09-07 20:55:03 +02:00
swext
sysui Removed executable permission on simple ASCII files 2018-08-29 16:51:46 +02:00
test DeInitVCL in PythonTest 2018-09-07 07:31:48 +02:00
testtools
toolkit Replace find_if with proper quantifier algorithms 2018-08-29 11:40:29 +02:00
tools clang-tidy performance-unnecessary-value-param 2018-09-06 09:54:25 +02:00
translations@54cc0de67b
ucb loplugin:useuniqueptr in NeonSession 2018-09-07 08:48:17 +02:00
ucbhelper
udkapi
uitest
UnoControls Fix typos 2018-08-29 17:10:21 +02:00
unodevtools
unoidl Replace find_if with proper quantifier algorithms 2018-08-29 11:40:29 +02:00
unoil
unotest DeInitVCL in PythonTest 2018-09-07 07:31:48 +02:00
unotools clang-tidy performance-move-const-arg 2018-09-06 08:33:28 +02:00
unoxml
ure
uui
vbahelper
vcl Fix some std::unique_ptr array allocs 2018-09-07 22:04:50 +02:00
winaccessibility
wizards Access2Base - Add Location property to Database object (2) 2018-09-01 16:23:53 +02:00
writerfilter ofz#10228 Integer-overflow 2018-09-06 12:44:46 +02:00
writerperfect
xmerge
xmlhelp
xmloff clang-tidy performance-unnecessary-value-param 2018-09-06 09:54:25 +02:00
xmlreader
xmlscript loplugin:useuniqueptr in DocumentHandlerImpl 2018-09-05 09:31:40 +02:00
xmlsecurity xmlsecurity: just two bools are fine, no need for bitfield complexity 2018-09-06 11:26:53 +02:00
.buckconfig
.buckversion
.clang-format
.editorconfig
.gitattributes
.gitignore
.gitmodules
.gitreview
autogen.sh
BUCK
config.guess
config.sub
config_host.mk.in
config_host_lang.mk.in
configure.ac Make AC_LINK_IFELSE (to check HAVE_CPP_INLINE_VARIABLES) work on Windows 2018-09-06 11:41:10 +02:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst upgrade curl to 7.61.1 2018-09-05 21:30:55 +02:00
g
install-sh
leak-suppress.txt
Library_merged.mk
lo.xcent.in
logerrit
Makefile.fetch tdf#79022 - Please bundle Source Serif Pro 2018-09-03 09:04:46 +02:00
Makefile.gbuild
Makefile.in improve error message when building as root 2018-09-05 18:21:45 +02:00
README.cross
README.md
README.Solaris
Repository.mk weld SvxAreaTabPage 2018-09-03 18:25:52 +02:00
RepositoryExternal.mk Update orcus to 0.14.0. 2018-09-01 01:34:10 +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.