Test repository to check push and ssh key
Find a file
Arkadiy Illarionov d153882ca6 Remove redundant loop, tdf#96099 follow-up
Change-Id: I6318a526c8ea73ef32c18038c9bb5feeffc07b52
Reviewed-on: https://gerrit.libreoffice.org/59583
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-08-24 21:25:30 +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 mv rather than cp fuzzer 2018-08-14 13:36:45 +02:00
binaryurp
bridges -Werror,-Wmultichar (clang-cl) 2018-08-16 13:47:47 +02:00
canvas Use more basegfx deg<->rad functions, instead of direct formulas 2018-08-04 20:51:27 +02:00
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 loplugin:unusedfields 2018-08-08 09:30:23 +02:00
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 tdf#112343 Change dependency from dbus-glib to dbus 2018-08-08 12:45:12 +02:00
configmgr Simplify containers iterations, tdf#96099 follow-up 2018-08-20 17:12:11 +02:00
connectivity Fix typos 2018-08-24 19:50:05 +02:00
cppcanvas Use more basegfx deg<->rad functions, instead of direct formulas 2018-08-04 20:51:27 +02:00
cppu
cppuhelper Fix typos 2018-08-13 21:47:25 +02:00
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 use gold linker for oss-fuzz 2018-08-13 12:19:58 +02:00
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 Assume that EMR_SETWINDOWEXTEX wants to read signed values 2018-08-14 08:26:26 +02:00
eventattacher
extensions pass DelFormats around using std::vector 2018-08-24 08:55:14 +02:00
external Moving mysqlc into connectivity as a library 2018-08-24 17:19:51 +02:00
extras pt_PT autocorrect - added 21 new words. 2018-08-22 16:28:50 +02:00
filter Fix typos 2018-08-24 19:50:05 +02:00
forms create appendCopy method in OUStringBuffer 2018-08-14 08:35:00 +02:00
formula remove mempool 2018-08-16 15:02:27 +02:00
fpicker loplugin:returnconstant in forms..fpicker 2018-08-13 08:34:21 +02:00
framework loplugin:useuniqueptr in MenuBarManager 2018-08-15 10:10:39 +02:00
helpcompiler
helpcontent2@e2bf234e63 Update git submodules 2018-08-24 21:01:05 +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 set copy_paste_error to false rather than intentional 2018-08-11 21:09:55 +02:00
include document that nEndPos of -1 is all text 2018-08-24 16:04:37 +02:00
instsetoo_native Use proper Windows terminology here 2018-08-04 21:22:18 -05:00
io
ios
javaunohelper
jurt
jvmaccess
jvmfwk Add missing sal/log.hxx headers 2018-08-06 16:04:35 +02:00
l10ntools
librelogo
libreofficekit
lingucomponent
linguistic loplugin:useuniqueptr in LngSvcMgr 2018-08-15 10:03:52 +02:00
lotuswordpro ofz: infinite loop 2018-08-17 11:29:24 +02:00
m4
mysqlc/source Moving mysqlc into connectivity as a library 2018-08-24 17:19:51 +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 create appendCopy method in OUStringBuffer 2018-08-14 08:35:00 +02:00
osx
package Related rhbz#1618703: Properly handle failure encoding zip file 2018-08-23 20:38:26 +02:00
postprocess Moving mysqlc into connectivity as a library 2018-08-24 17:19:51 +02:00
pyuno
qadevOOo
readlicense_oo update credits 2018-08-02 21:50:32 +02:00
registry new loplugin:conststringfield 2018-08-22 13:31:57 +02:00
remotebridges
reportbuilder Fix typo: s/an other/another/g 2018-08-15 19:04:41 +02:00
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 tdf#42949 Fix IWYU warnings in include/salhelper/* 2018-08-10 14:13:16 +02:00
sax create appendCopy method in OUStringBuffer 2018-08-14 08:35:00 +02:00
sc loplugin:useuniqueptr pass ScDocument by unique_ptr in the undo code 2018-08-24 15:57:30 +02:00
scaddins
sccomp
schema Fix typos 2018-08-04 09:11:19 +02:00
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 Moving mysqlc into connectivity as a library 2018-08-24 17:19:51 +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 Remove redundant loop, tdf#96099 follow-up 2018-08-24 21:25:30 +02:00
swext
sysui apparmor: fix access to /etc/xml/catalog 2018-08-15 08:51:44 +02:00
test loplugin:returnconstant in hwpfilter,test 2018-08-13 08:34:55 +02:00
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 Update git submodules 2018-08-03 15:50:21 +02:00
ucb new loplugin:conststringfield 2018-08-22 13:31:57 +02:00
ucbhelper
udkapi Fix typo 2018-08-13 21:48:49 +02:00
uitest
UnoControls
unodevtools Add missing sal/log.hxx headers 2018-08-02 17:58:40 +02:00
unoidl Add missing sal/log.hxx headers 2018-08-02 17:58:40 +02:00
unoil
unotest
unotools create appendCopy method in OUStringBuffer 2018-08-14 08:35:00 +02:00
unoxml loplugin:returnconstant in unoxml,uui 2018-08-13 08:34:49 +02:00
ure
uui loplugin:returnconstant in unoxml,uui 2018-08-13 08:34:49 +02:00
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 tdf#116542 a11y: introduce STATIC role 2018-08-14 12:06:41 +02:00
wizards Access2Base - Fix OutputTo of null string 2018-08-24 16:30:10 +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 Moving mysqlc into connectivity as a library 2018-08-24 17:19:51 +02:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst upload libwps 0.4.10 2018-08-08 13:11:29 +02:00
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 Moving mysqlc into connectivity as a library 2018-08-24 17:19:51 +02:00
RepositoryExternal.mk Moving mysqlc into connectivity as a library 2018-08-24 17:19:51 +02:00
RepositoryFixes.mk
RepositoryModule_build.mk
RepositoryModule_host.mk Moving mysqlc into connectivity as a library 2018-08-24 17:19:51 +02:00
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.