Test repository to check push and ssh key
Find a file
Miklos Vajna 433fce6571 vcl: less text layout calls in ListBox
Number of GenericSalLayout::LayoutText() calls during Writer startup at
this call-site: 1068 -> 614.

Change-Id: I3bef56e550294a6b2c9fe73c0c6531249c9f1f30
Reviewed-on: https://gerrit.libreoffice.org/60164
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-09-10 09:05:38 +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 clang bugprone-unused-return-value 2018-09-08 08:45:41 +02:00
basegfx use more range based loops 2018-09-09 22:44:41 +02:00
basic cppcheck: variableScope in basic 2018-09-08 14:45:42 +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 clang bugprone-unused-return-value 2018-09-08 08:45:41 +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 weld SvxAreaTabDialog 2018-09-09 22:27:55 +02:00
cli_ure replace rtl_allocateMemory with std::malloc 2018-08-29 09:05:39 +02:00
codemaker clang bugprone-unused-return-value 2018-09-08 08:45:41 +02:00
comphelper loplugin:simplifyconstruct in canvas..cui 2018-09-06 14:38:52 +02:00
compilerplugins Replace find_if with proper quantifier algorithms 2018-09-08 14:46:08 +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 Fix typos 2018-09-08 08:53:12 +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 weld SvxAreaTabDialog 2018-09-09 22:27:55 +02:00
dbaccess Avoid getTokenCount() 2018-09-09 21:08:01 +02:00
desktop clang-tidy bugprone-unused-raii in RequestHandler 2018-09-08 13:18:41 +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 Handle trailing token separator without copying string 2018-09-09 21:07:58 +02:00
embeddedobj loplugin:simplifyconstruct in editeng..extensions 2018-09-08 14:45:11 +02:00
embedserv
emfio rename ENABLE_HEADLESS option to DISABLE_GUI 2018-08-27 08:47:49 +02:00
eventattacher loplugin:simplifyconstruct in editeng..extensions 2018-09-08 14:45:11 +02:00
extensions Avoid getTokenCount and use indexed getToken 2018-09-09 21:07:53 +02:00
external ofz#10100 use --disable-release to avoid icu adding extra link flags 2018-09-09 16:56:10 +02:00
extras weld SvxShadowTabPage 2018-09-09 22:27:44 +02:00
filter Fix typo 2018-09-09 19:47:34 +02:00
forms loplugin:simplifyconstruct in filter..framework 2018-09-08 19:28:19 +02:00
formula loplugin:simplifyconstruct in filter..framework 2018-09-08 19:28:19 +02:00
fpicker tdf#119730 WIN switch to IFileDialog FOS_PICKFOLDERS 2018-09-08 23:07:06 +02:00
framework loplugin:simplifyconstruct in filter..framework 2018-09-08 19:28:19 +02:00
helpcompiler loplugin:simplifyconstruct in helpcompiler..io 2018-09-09 08:18:01 +02:00
helpcontent2@f3124329e3 Update git submodules 2018-09-07 17:58:55 +02:00
hwpfilter loplugin:simplifyconstruct in helpcompiler..io 2018-09-09 08:18:01 +02:00
i18nlangtag new loplugin:oustringbuffer 2018-08-29 09:05:18 +02:00
i18npool loplugin:simplifyconstruct in helpcompiler..io 2018-09-09 08:18:01 +02:00
i18nutil
icon-themes elementary: Add more 32 px, update folder icons, many *dialog, etc 2018-09-09 10:33:52 +02:00
idl loplugin:simplifyconstruct in helpcompiler..io 2018-09-09 08:18:01 +02:00
idlc loplugin:simplifyconstruct in helpcompiler..io 2018-09-09 08:18:01 +02:00
include tdf#45904 Move _XMergeable Java Tests to C++ 2018-09-10 02:03:10 +02:00
instsetoo_native Fix typo: s/an other/another/g 2018-08-29 17:12:35 +02:00
io loplugin:simplifyconstruct in helpcompiler..io 2018-09-09 08:18:01 +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 loplugin:simplifyconstruct in l10ntools..package 2018-09-09 19:40:02 +02:00
librelogo
libreofficekit Replace find_if with proper quantifier algorithms 2018-09-08 14:46:08 +02:00
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 loplugin:simplifyconstruct in l10ntools..package 2018-09-09 19:40:02 +02:00
m4
nlpsolver
o3tl clang-tidy bugprone-use-after-move 2018-09-08 13:19:26 +02:00
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 KJ: +more missing Calc NB icons, Calc menu, Writer menu, etc 2018-09-08 23:08:54 +02:00
onlineupdate Fix some std::unique_ptr array allocs 2018-09-07 22:04:50 +02:00
oovbaapi
oox tdf#108064 OOXML export: keep preset dashes with any line width 2018-09-10 08:50:43 +02:00
opencl
osx
package loplugin:simplifyconstruct in l10ntools..package 2018-09-09 19:40:02 +02:00
postprocess Android: disable mariadb 2018-08-27 13:34:45 +02:00
pyuno DeInitVCL in PythonTest 2018-09-07 07:31:48 +02:00
qadevOOo tdf#45904 Move _XMergeable Java Tests to C++ 2018-09-10 02:03:10 +02:00
readlicense_oo update credits 2018-09-07 15:40:18 +02:00
registry clang bugprone-unused-return-value 2018-09-08 08:45:41 +02:00
remotebridges
reportbuilder
reportdesign weld SvxAreaTabDialog 2018-09-09 22:27:55 +02:00
ridljar
sal clang-tidy bugprone-sizeof-expression 2018-09-08 14:45:22 +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 loplugin:simplifyconstruct in sc 2018-09-10 08:48:08 +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 loplugin:useuniqueptr in StringResourcePersistenceImpl 2018-09-09 13:34:59 +02:00
sd weld SvxAreaTabDialog 2018-09-09 22:27:55 +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 weld SfxNewStyleDlg 2018-09-09 15:01:06 +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 weld SvxShadowTabPage 2018-09-09 22:27:44 +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 SvxShadowTabPage 2018-09-09 22:27:44 +02:00
sw tdf#108064 OOXML export: keep preset dashes with any line width 2018-09-10 08:50:43 +02:00
swext
sysui Removed executable permission on simple ASCII files 2018-08-29 16:51:46 +02:00
test tdf#45904 Move _XMergeable Java Tests to C++ 2018-09-10 02:03:10 +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 clang bugprone-unused-return-value 2018-09-08 08:45:41 +02:00
ucbhelper
udkapi
uitest uitest interpreter: some improvements 2018-08-27 09:33:03 +02:00
UnoControls Fix typos 2018-08-29 17:10:21 +02:00
unodevtools
unoidl clang-tidy bugprone-unused-return-value 2018-09-08 08:45:51 +02:00
unoil
unotest DeInitVCL in PythonTest 2018-09-07 07:31:48 +02:00
unotools Revert "clang-tidy performance-move-const-arg" 2018-09-09 13:33:51 +02:00
unoxml
ure
uui
vbahelper
vcl vcl: less text layout calls in ListBox 2018-09-10 09:05:38 +02:00
winaccessibility
wizards Fix typos 2018-09-08 08:53:12 +02:00
writerfilter ofz#10228 Integer-overflow 2018-09-06 12:44:46 +02:00
writerperfect
xmerge
xmlhelp loplugin:useuniqueptr in xmlhelp 2018-09-08 17:50:13 +02:00
xmloff tdf#114400 Import drawoo:fontwork-xyz attributes 2018-09-09 00:02:13 +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 avoid error message about removing non-existent file 2018-08-27 13:24:42 +02:00
BUCK
config.guess
config.sub
config_host.mk.in Add --enable-ios-libreofficelight-app option to build stuff for janI's app 2018-08-28 11:38:51 +03:00
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.