Test repository to check push and ssh key
Find a file
Samuel Mehrbrodt ecdf8f2803 pre-commit-hook: Also check xsl files for whitespace and tabs
Change-Id: Ibc1520735ab20787496564e8561a6bb5920a5538
Reviewed-on: https://gerrit.libreoffice.org/42280
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2017-09-20 16:12:11 +02:00
.git-hooks pre-commit-hook: Also check xsl files for whitespace and tabs 2017-09-20 16:12:11 +02:00
accessibility headString in SvTreeListBox is unused 2017-09-18 13:47:29 +02:00
android android: textrelocations are no longer an issue (can target 23 and later) 2017-09-15 18:14:08 +02:00
animations
apple_remote
avmedia Some more WIN32_LEAN_AND_MEAN 2017-09-18 19:24:31 +02:00
basctl tdf#112381 Macro Organizer: Move Run, Close, Help buttons to the bottom 2017-09-20 12:25:07 +02:00
basegfx borderline: Preparing further to use CellCoordinateSystem 2017-09-15 12:58:03 +02:00
basic Bin some noise comments and ASCII graphics 2017-09-20 09:47:38 +03:00
bean Use even more WIN32_LEAN_AND_MEAN 2017-09-18 01:13:30 +02:00
bin prep for other flat xml formats 2017-09-19 16:15:25 +02:00
binaryurp clang-tidy modernize-use-emplace in b* 2017-09-08 20:17:31 +02:00
bridges iOS, remove support for 32bit (arm). 2017-09-19 14:02:51 +02:00
canvas Add tools::Time::GetMonotonicTicks (us) 2017-09-15 14:22:51 +02:00
chart2 various unused fields in MediaDescriptorHelper 2017-09-19 09:31:43 +02:00
cli_ure Some more WIN32_LEAN_AND_MEAN 2017-09-18 19:24:31 +02:00
codemaker clang-tidy modernize-use-emplace in c* 2017-09-11 08:40:57 +02:00
comphelper Unify SolarMutex implementations 2017-09-19 09:25:14 +02:00
compilerplugins new loplugin flatten 2017-09-20 12:42:33 +02:00
config_host
configmgr use more default copy ctors 2017-09-17 07:43:01 +02:00
connectivity unused m_nFetchSize in OResultSet 2017-09-20 08:42:30 +02:00
cppcanvas clang-tidy modernize-use-emplace in c* 2017-09-11 08:40:57 +02:00
cppu Enable -Wunreachable-code 2017-09-13 10:24:38 +02:00
cppuhelper
cpputools
cui unused sNumCharFmtName fields 2017-09-20 08:42:30 +02:00
dbaccess group java-requiring tests together 2017-09-20 09:54:03 +02:00
desktop lok: Expose the automatic spell checking state in the UI. 2017-09-20 14:18:31 +02:00
dictionaries@7250202493 Updated core 2017-09-19 20:25:30 +02:00
distro-configs No libqxp in org.gnome.Sdk//3.24 2017-09-07 13:47:02 +02:00
drawinglayer maPrimitiveColor in Shadow3DExtractingProcessor unused 2017-09-18 13:47:29 +02:00
dtrans Some more WIN32_LEAN_AND_MEAN 2017-09-18 19:24:31 +02:00
editeng unused xForbiddenCharsTable in ImpEditEngine 2017-09-19 09:31:43 +02:00
embeddedobj Some more WIN32_LEAN_AND_MEAN 2017-09-18 19:24:31 +02:00
embedserv Some more WIN32_LEAN_AND_MEAN 2017-09-18 19:24:31 +02:00
emfio consistent naming of externals: jpeg-turbo->libjpeg-turbo 2017-09-15 10:55:59 +02:00
eventattacher
extensions Some more WIN32_LEAN_AND_MEAN 2017-09-18 19:24:31 +02:00
external beanshell: don't remove the getPeer call, access it by reflection 2017-09-20 10:49:32 +02:00
extras
filter Clean up xsl files 2017-09-20 16:11:23 +02:00
forms unused fields in XFormsEventConcrete 2017-09-20 08:42:30 +02:00
formula clang-tidy modernize-use-emplace in editeng..framework 2017-09-11 09:42:55 +02:00
fpicker Some more WIN32_LEAN_AND_MEAN 2017-09-18 19:24:31 +02:00
framework unused m_aModuleIdentifier in StatusBarManager 2017-09-20 08:42:30 +02:00
helpcompiler
helpcontent2@e52676102b Updated core 2017-09-19 17:07:13 +02:00
hwpfilter hwpfilter: [loplugin:redundantcast] 2017-09-18 14:04:04 +02:00
i18nlangtag Unit tests for 'es_ES_u_co_trad' and 'es_ES_tradnl', tdf#83190 2017-09-12 16:57:55 +02:00
i18npool
i18nutil
icon-themes Fix typo 2017-09-18 00:14:52 +02:00
idl
idlc Use even more WIN32_LEAN_AND_MEAN 2017-09-18 01:13:30 +02:00
include tdf#112333 PPTX export animClr 2017-09-20 08:50:17 +02:00
instsetoo_native Removed quotation marks that destroyed some strings for Pootle export 2017-09-13 16:10:19 +01:00
io
ios
javaunohelper Fix a locking bug in our Java ComponentBase class, where after the transition 2017-09-13 10:16:18 +02:00
jurt Use more WIN32_LEAN_AND_MEAN 2017-09-16 20:16:15 +02:00
jvmaccess
jvmfwk Some more WIN32_LEAN_AND_MEAN 2017-09-18 19:24:31 +02:00
l10ntools Use even more WIN32_LEAN_AND_MEAN 2017-09-18 01:13:30 +02:00
librelogo
libreofficekit clang-tidy modernize-use-emplace in hwpfilter..lotuswordpro 2017-09-11 13:50:50 +02:00
lingucomponent Use even more WIN32_LEAN_AND_MEAN 2017-09-18 01:13:30 +02:00
linguistic unused nResMaxNumberOfSuggestions in PropertyHelper_Spell 2017-09-18 13:47:29 +02:00
lotuswordpro clang-tidy modernize-use-emplace in hwpfilter..lotuswordpro 2017-09-11 13:50:50 +02:00
m4
mysqlc consistent naming of externals: mysqlcppconn -> mysql-connector-cpp 2017-09-15 11:06:18 +02:00
nlpsolver
o3tl
odk odk: document what doxygen means by "Protected Member" in IDL 2017-09-19 17:49:18 +02:00
offapi Missing @since tags 2017-09-11 11:10:41 +02:00
officecfg Clean up xsl files 2017-09-20 16:11:23 +02:00
onlineupdate onlineupdate: work around GCC7 -Werror=implicit-fallthrough 2017-09-13 20:55:56 +02:00
oovbaapi oovbaapi: create XOval and XLine shape types 2017-09-08 09:29:36 +02:00
oox tdf#112333 PPTX export fill.type & fill.on 2017-09-19 16:22:23 +02:00
opencl Add tools::Time::GetMonotonicTicks (us) 2017-09-15 14:22:51 +02:00
osx
package clang-tidy modernize-use-emplace in package..sax 2017-09-12 08:03:09 +02:00
postprocess consistent naming of externals: cmis -> libcmis 2017-09-15 10:56:22 +02:00
pyuno
qadevOOo Fix typos 2017-09-07 19:08:44 +02:00
readlicense_oo Clean up xsl files 2017-09-20 16:11:23 +02:00
registry
remotebridges
reportbuilder This really does not need to be utf-8 character 2017-09-12 13:37:58 +02:00
reportdesign Fraction: make conversion operators and constructor explicit 2017-09-13 15:46:47 +02:00
ridljar
sal Some more WIN32_LEAN_AND_MEAN 2017-09-18 19:24:31 +02:00
salhelper
sax allow events to accumulate past limit if an exception is pending 2017-09-18 22:19:31 +02:00
sc filter,sc: try to prevent potential SeekToEndOfRecord infinite loops 2017-09-20 13:08:43 +02:00
scaddins
sccomp
schema
scp2
scripting
sd Clean up xsl files 2017-09-20 16:11:23 +02:00
sdext Resolves: tdf#112408 crash with nan with bad ascent 2017-09-15 17:21:14 +02:00
setup_native Use even more WIN32_LEAN_AND_MEAN 2017-09-18 01:13:30 +02:00
sfx2 lok: Expose the automatic spell checking state in the UI. 2017-09-20 14:18:31 +02:00
shell Some more WIN32_LEAN_AND_MEAN 2017-09-18 19:24:31 +02:00
slideshow clang-tidy modernize-use-emplace in slideshow 2017-09-13 14:16:51 +02:00
smoketest
solenv gbuild: remove obsolete comment 2017-09-20 13:08:44 +02:00
soltools Use even more WIN32_LEAN_AND_MEAN 2017-09-18 01:13:30 +02:00
sot tdf#112399 ignore size of unknown/unused ole2 entries 2017-09-19 00:24:43 +02:00
starmath valgrind: Conditional jump or move depends on uninitialised value 2017-09-17 18:23:04 +02:00
stoc Convert com.sun.star.comp.stoc.CoreReflection to direct construction 2017-09-15 17:44:21 +02:00
store
svgio clang-tidy modernize-use-emplace in svgio..svtools 2017-09-12 13:15:40 +02:00
svl unused Registration class 2017-09-19 09:31:43 +02:00
svtools unused aDDLastRectPos in SvxIconChoiceCtrl_Impl 2017-09-20 08:42:30 +02:00
svx svx: Simplify FmSearchEngine's code with std::unique_ptr 2017-09-19 13:06:19 +02:00
sw xmloff,sw: some stylistic cleanup to conditional styles 2017-09-20 15:17:53 +02:00
swext Clean up xsl files 2017-09-20 16:11:23 +02:00
sysui
test clang-tidy modernize-use-emplace in test..vbahelper 2017-09-14 08:29:11 +02:00
testtools Some more WIN32_LEAN_AND_MEAN 2017-09-18 19:24:31 +02:00
toolkit clang-tidy modernize-use-emplace in test..vbahelper 2017-09-14 08:29:11 +02:00
tools -Werror,-Wmissing-field-initializers (clang-cl) 2017-09-19 08:29:38 +02:00
translations@db1be6fc22 Updated core 2017-09-17 20:25:48 +02:00
ucb consistent naming of externals: cmis -> libcmis 2017-09-15 10:56:22 +02:00
ucbhelper loplugin:unusedfields in ResultSetColumnData 2017-09-18 13:47:29 +02:00
udkapi
uitest
UnoControls
unodevtools
unoidl
unoil
unotest unotest.py: refactor confusing mess of openDoc functions 2017-09-07 21:44:57 +02:00
unotools clang-tidy modernize-use-emplace in test..vbahelper 2017-09-14 08:29:11 +02:00
unoxml unused m_relatedTarget in CMouseEvent 2017-09-19 09:31:43 +02:00
ure
uui
vbahelper clang-tidy modernize-use-emplace in test..vbahelper 2017-09-14 08:29:11 +02:00
vcl Related: tdf#101881 keys not handled by native menubar sent to vcl one 2017-09-20 15:23:24 +02:00
winaccessibility Use even more WIN32_LEAN_AND_MEAN 2017-09-18 01:13:30 +02:00
wizards Translate German comments and debug strings (leftovers in dirs w... and x...) 2017-09-18 12:08:40 +02:00
writerfilter unused bPageToggle in GraphicImport_Impl 2017-09-20 08:42:30 +02:00
writerperfect EPUB export: write styles inline to please poor readers 2017-09-19 09:13:44 +02:00
xmerge
xmlhelp Clean up xsl files 2017-09-20 16:11:23 +02:00
xmloff xmloff,sw: some stylistic cleanup to conditional styles 2017-09-20 15:17:53 +02:00
xmlreader clang-tidy modernize-use-emplace in various 2017-09-14 11:51:44 +02:00
xmlscript ofz: fix leak on exception 2017-09-17 18:21:07 +02:00
xmlsecurity xmlsecurity: be consistent inside #ifdef _WIN32 2017-09-19 16:46:28 +02:00
.buckconfig
.buckversion
.editorconfig
.gitattributes
.gitignore
.gitmodules
.gitreview
autogen.sh
BUCK
config.guess
config.sub
config_host.mk.in consistent naming of externals: mysqlcppconn -> mysql-connector-cpp 2017-09-15 11:06:18 +02:00
config_host_lang.mk.in
configure.ac Accept macOS 10.13 2017-09-19 22:06:48 +03:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst Upgrade to Boost 1.65.1 2017-09-18 21:33:34 +02:00
g
install-sh
leak-suppress.txt
Library_merged.mk
lo.xcent.in
logerrit
Makefile.fetch consistent naming of externals: mysqlcppconn -> mysql-connector-cpp 2017-09-15 11:06:18 +02:00
Makefile.gbuild
Makefile.in expose fodt to oss-fuzz 2017-09-19 13:41:15 +02:00
README.cross
README.md Document baselines 2017-09-08 18:11:29 +02:00
README.Solaris
Repository.mk expose fodt to oss-fuzz 2017-09-19 13:41:15 +02:00
RepositoryExternal.mk consistent naming of externals: mysqlcppconn -> mysql-connector-cpp 2017-09-15 11:06:18 +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 2015 Update 3
  • macOS:
  • Runtime: 10.9
  • Build: 10.11 + Xcode 8
  • Linux:
  • Runtime: RHEL 6 or CentOS 6
  • Build: GCC 4.8.1 or Clang

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

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.