Test repository to check push and ssh key
Find a file
shashikdm cf82475c78 tdf#114441 Changing sal_uLong to appropriate integer type in filters module
changed sal_uLong to one of {size_t, sal_uInt64, sal_uInt32, sal_uInt16, sal_uInt8} in flash/impswfdialog.cxx and graphicsfilter

   changed PS_* in file filter/source/eps/eps.cxx to enum and overloaded bitwise or (|)
   made types of nSize, nParseThis, nComp and nBytesRead to sal_uInt32 as Michael Stahl suggested

   changes suggested by Michael Stahl
   changed x, y, j to sal_uInt32 in filter/source/graphicfilter/etiff/etiff.cxx
   changed nMinPercent, nMaxPercent, nLastPercent, nMainEntitiesCount to sal_uInt16 in filter/source/graphicfilter/idxf/dxf2mtf.hxx
   removed nGcount variable from filter/source/graphicfilter/idxf/dxfgrprd.hxx and filter/source/graphicfilter/idxf/dxfgrprd.cxx
   removed static_cast in filter/source/graphicfilter/idxf/dxf2mtf.cxx
   changed nComp in filter/source/graphicfilter/ieps/ieps.cxx to size_t
   changed mnCol to sal_uInt16 in filter/source/graphicfilter/ipbm/ipbm.cxx

   revised a number of datatypes as suggested by michael stahl in his reviews

   removed redundant static casts which caused test to fail

Change-Id: Id892ee7e9c1ef3cf75c9d768b790ced9c2ce3f3b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/84726
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
2020-01-15 19:12:37 +01:00
.git-hooks
.github
accessibility tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor 2020-01-15 14:52:04 +01:00
android android: don't try to copy the apk if it does not exist 2020-01-03 16:53:07 +01:00
animations
apple_remote
avmedia clang-tidy modernize-concat-nested-namespace in avmedia 2020-01-14 15:19:16 +01:00
basctl tdf#129360: don't try to use uninitialized objects 2020-01-14 19:26:31 +01:00
basegfx clang-tidy modernize-concat-nested-namespace in basegfx 2020-01-14 15:12:05 +01:00
basic clang-tidy modernize-concat-nested-namespace in basic..canvas 2020-01-14 15:49:03 +01:00
bean
bin python3: bundle libffi for GNU/Linux builds 2020-01-09 17:56:19 +01:00
binaryurp
bridges clang-tidy modernize-concat-nested-namespace in basic..canvas 2020-01-14 15:49:03 +01:00
canvas clang-tidy modernize-concat-nested-namespace in basic..canvas 2020-01-14 15:49:03 +01:00
chart2 clang-tidy modernize-concat-nested-namespace in chart2 2020-01-14 18:09:25 +01:00
cli_ure
codemaker clang-tidy modernize-concat-nested-namespace in codemaker..configmgr 2020-01-15 06:58:20 +01:00
comphelper clang-tidy modernize-concat-nested-namespace in codemaker..configmgr 2020-01-15 06:58:20 +01:00
compilerplugins Avoid loplugin:redundantcast from within qWarning macro 2020-01-14 21:41:23 +01:00
config_host add setting to config_skia.h whether to use 32bpp bitmaps 2020-01-09 15:26:31 +01:00
configmgr clang-tidy modernize-concat-nested-namespace in codemaker..configmgr 2020-01-15 06:58:20 +01:00
connectivity tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor 2020-01-15 14:52:04 +01:00
cppcanvas clang-tidy modernize-concat-nested-namespace in cppcanvas..cppuhelper 2020-01-15 06:58:12 +01:00
cppu clang-tidy modernize-concat-nested-namespace in cppcanvas..cppuhelper 2020-01-15 06:58:12 +01:00
cppuhelper improve "convert OSL_ASSERT to assert" 2020-01-15 10:34:49 +01:00
cpputools
cui move [G|S]etGetSpecialCharsFunction into its own header 2020-01-14 17:34:47 +01:00
dbaccess convert dbaccess to FastParser APIs 2020-01-13 13:34:15 +01:00
desktop loplugin:finalclasses in basic..emfio 2020-01-14 13:25:07 +01:00
dictionaries@3097066a2e Update git submodules 2020-01-12 20:39:28 +01:00
distro-configs
drawinglayer tweak GetBitmap methods in BitmapEx 2020-01-15 14:33:52 +01:00
dtrans
editeng loplugin:finalclasses in basic..emfio 2020-01-14 13:25:07 +01:00
embeddedobj
embedserv
emfio tweak GetBitmap methods in BitmapEx 2020-01-15 14:33:52 +01:00
eventattacher
extensions loplugin:unusedmethods 2020-01-13 09:16:59 +01:00
external external: update pdfium to 4021 2020-01-15 12:21:31 +01:00
extras tdf#128226: make OpenSymbol font an internal resource 2020-01-14 13:29:59 +01:00
filter tdf#114441 Changing sal_uLong to appropriate integer type in filters module 2020-01-15 19:12:37 +01:00
forms Improve loplugin:redundantcast for sal_Int... vs. ::sal_Int... 2020-01-09 20:21:59 +01:00
formula
fpicker tdf#96505:Get rid of cargo cult long integer literals 2020-01-08 17:47:54 +01:00
framework tdf#125089 Fix shoowing a separator in View-User interfaces submenus 2020-01-15 07:28:00 +01:00
helpcompiler
helpcontent2@69896de636 Update git submodules 2020-01-15 01:08:34 +01:00
hwpfilter tdf#96505:Get rid of cargo cult long integer literals 2020-01-08 17:47:54 +01:00
i18nlangtag
i18npool tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor 2020-01-15 14:52:04 +01:00
i18nutil Fix Osage lowercase-to-uppercase mappings 2020-01-10 15:18:25 +01:00
icon-themes Sifr: Add more 32px icons (tdf#129846) 2020-01-14 20:23:07 +01:00
idl loplugin:finalclasses in i18npool..linguistic 2020-01-14 07:12:31 +01:00
idlc loplugin:finalclasses in i18npool..linguistic 2020-01-14 07:12:31 +01:00
include Toolbox needs to be a complete type here (Windows --disable-pch) 2020-01-15 19:08:43 +01:00
instsetoo_native
io
ios
javaunohelper
jurt
jvmaccess
jvmfwk loplugin:finalclasses in i18npool..linguistic 2020-01-14 07:12:31 +01:00
l10ntools loplugin:finalclasses in i18npool..linguistic 2020-01-14 07:12:31 +01:00
librelogo
libreofficekit
lingucomponent Use only the 'MacOSXSpell' component on iOS, not the 'spell' one 2020-01-03 17:53:00 +01:00
linguistic loplugin:finalclasses in i18npool..linguistic 2020-01-14 07:12:31 +01:00
lotuswordpro ofz#19961 Invalid-enum-value 2020-01-09 11:10:33 +01:00
m4
nlpsolver
o3tl
odk Avoid $(shell $(gb_MKTEMP)) 2020-01-06 17:30:26 +01:00
offapi offapi: misleadingly named ParaHyphenationMaxLeadingChars/Trailing 2020-01-13 11:00:45 +01:00
officecfg rework SvxColumnsToolBoxControl to be a PopupWindowController 2020-01-15 13:55:00 +01:00
onlineupdate
oovbaapi
oox clang-tidy modernize-concat-nested-namespace in oox 2020-01-15 06:58:34 +01:00
opencl
osx
package loplugin:finalclasses in package..sfx2 2020-01-13 14:58:03 +01:00
pch
postprocess Use only the 'MacOSXSpell' component on iOS, not the 'spell' one 2020-01-03 17:53:00 +01:00
pyuno pyuno: remove racy debug check 2020-01-09 13:55:45 +01:00
qadevOOo
readlicense_oo python3: bundle libffi for GNU/Linux builds 2020-01-09 17:56:19 +01:00
registry
remotebridges
reportbuilder
reportdesign use FastParser in reportdesign 2020-01-14 07:10:37 +01:00
ridljar
sal Clean up safeRead/Write 2020-01-15 08:15:35 +01:00
salhelper
sax tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor 2020-01-15 14:54:39 +01:00
sc tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor 2020-01-15 14:54:39 +01:00
scaddins Make OPT_ functions string more meaningful. 2020-01-08 12:21:07 +01:00
sccomp tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor 2020-01-15 14:54:39 +01:00
schema
scp2 Merge both x64 and x86 CRT merge modules into x64 MSI 2020-01-13 13:00:04 +01:00
scripting Fix typo 2020-01-07 11:53:39 +01:00
sd tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor 2020-01-15 14:52:04 +01:00
sdext use more std::make_shared 2020-01-10 13:07:41 +01:00
setup_native Improve logging of feature states 2020-01-10 15:14:10 +01:00
sfx2 Missing includes (Windows --disable-pch) 2020-01-15 18:54:41 +01:00
shell loplugin:finalclasses in starmath 2020-01-11 11:59:28 +01:00
slideshow tweak GetBitmap methods in BitmapEx 2020-01-15 14:33:52 +01:00
smoketest
solenv rework SvxColumnsToolBoxControl to be a PopupWindowController 2020-01-15 13:55:00 +01:00
soltools
sot
starmath convert mathml to FastParser 2020-01-12 19:08:59 +01:00
stoc tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor 2020-01-15 14:52:04 +01:00
store
svgio loplugin:finalclasses in svgio 2020-01-11 11:59:15 +01:00
svl tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor 2020-01-15 14:52:04 +01:00
svtools tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor 2020-01-15 14:54:39 +01:00
svx tdf#42949 Fix IWYU warnings in svx/source/*/*hxx 2020-01-15 15:42:02 +01:00
sw tdf#129574 sw: fix RTF export of table of contents 2020-01-15 18:35:15 +01:00
swext
sysui
test
testtools tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor 2020-01-13 10:48:02 +01:00
toolkit tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor 2020-01-14 09:55:15 +01:00
tools tdf#96505 Get rid of cargo cult long integer literals 2020-01-08 14:00:31 +01:00
translations@6d4072204c
ucb tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor 2020-01-13 10:48:02 +01:00
ucbhelper
udkapi
uitest
UnoControls
unodevtools
unoidl
unoil
unotest
unotools convert OSL_ASSERT to assert 2020-01-15 08:27:52 +01:00
unoxml use more std::make_shared 2020-01-10 13:07:41 +01:00
ure
uui
vbahelper
vcl tweak GetBitmap methods in BitmapEx 2020-01-15 14:33:52 +01:00
winaccessibility
wizards
writerfilter tdf#129525 writerfilter: ignore GOTOBUTTON field 2020-01-15 10:39:46 +01:00
writerperfect use more std::make_shared 2020-01-10 13:07:41 +01:00
xmerge
xmlhelp
xmloff use FastParser for SchXMLImport 2020-01-15 09:18:34 +01:00
xmlreader
xmlscript use more std::make_shared 2020-01-10 13:07:41 +01:00
xmlsecurity tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor 2020-01-13 10:41:01 +01:00
.buckconfig
.buckversion
.clang-format
.editorconfig
.git-blame-ignore-revs
.gitattributes
.gitignore
.gitmodules
.gitreview
autogen.sh
BUCK
config.guess
config.sub
config_host.mk.in
config_host_lang.mk.in
configure.ac Merge both x64 and x86 CRT merge modules into x64 MSI 2020-01-13 13:00:04 +01:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst external: update pdfium to 4021 2020-01-15 12:21:31 +01:00
g
hardened_runtime.xcent
install-sh
leak-suppress.txt
Library_merged.mk
lo.xcent
logerrit logerrit: support submitting private and wip changes 2020-01-06 20:43:52 +01:00
Makefile.fetch python3: bundle libffi for GNU/Linux builds 2020-01-09 17:56:19 +01:00
Makefile.gbuild
Makefile.in allow root under podman 2020-01-04 18:35:26 +01:00
README.cross
README.md
README.Solaris
Repository.mk tdf#128226: make OpenSymbol font an internal resource 2020-01-14 13:29:59 +01:00
RepositoryExternal.mk python3: bundle libffi for GNU/Linux builds 2020-01-09 17:56:19 +01:00
RepositoryFixes.mk
RepositoryModule_build.mk
RepositoryModule_host.mk
sanitize-ubsan-blacklist
setup.cfg
TEMPLATE.SOURCECODE.HEADER

LibreOffice

Coverity Scan Build Status CII Best Practices Translation 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 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 version 15.7
  • macOS:
    • Runtime: 10.10
    • Build: 10.13.2 + Xcode 9.3
  • Linux:
    • Runtime: RHEL 7 or CentOS 7
    • Build: either GCC 7.0.0; or Clang 5.0.2 with libstdc++ 7.3.0
  • iOS (only for LibreOfficeKit):
    • Runtime: 11.4 (only support for newer i devices == 64 bit)
    • Build: Xcode 9.3 and iPhone SDK 11.4
  • Android:
    • Build: NDK r19c and SDK 22.6.2

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

loplugin:includeform (compilerplugins/clang/includeform.cxx) enforces these rules.

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.