Test repository to check push and ssh key
Find a file
Tor Lillqvist a7a13045bc We have Objective-C++ and Swift source files, too
Change-Id: I28dadb64b09e5781d4c28c2c5395f448d4b71e44
2017-12-01 12:58:08 +02:00
.git-hooks git-hooks: fix pre-commit in submodules 2017-11-21 11:16:11 +01:00
accessibility loplugin:unnecessaryparen: Warn about parentheses around literals 2017-11-27 14:04:40 +01:00
android tdf#106370 Android: add ability to insert pictures 2017-11-16 06:31:48 +01:00
animations Replace lists by vectors in animation parts (sd/animations) 2017-11-04 17:54:28 +01:00
apple_remote Following tdf#111561: no need to autorelease "elements" (apple_remote) 2017-10-12 07:41:44 +02:00
avmedia Make loplugin:unnecessaryparen warn about (x) ? ... : ... after all 2017-11-22 19:16:52 +01:00
basctl loplugin:unnecessaryparen check for (f1()).f2 2017-11-27 10:44:25 +01:00
basegfx loplugin:unnecessaryparen 2017-11-27 15:41:19 +01:00
basic Find VBA-only functions when compiling first on module level 2017-11-29 11:08:58 +01:00
bean loplugin:includeform: bean (Windows) 2017-10-27 19:28:53 +02:00
bin Create script to list the uitests 2017-11-30 14:35:37 +01:00
binaryurp Replace list by vector in incomingrequest (binaryurp) 2017-11-23 09:32:45 +01:00
bridges fix includes in aarch64 bridge 2017-11-26 16:06:10 +01:00
canvas loplugin:unnecessaryparen (clang-cl) 2017-11-29 12:00:42 +01:00
chart2 loplugin:unnecessaryparen: signed numeric literals 2017-11-30 19:29:21 +01:00
cli_ure tdf#113787: always require version file with config for CLI assemblies 2017-11-24 01:27:37 +01:00
codemaker loplugin:unnecessaryparen: Warn about parentheses around literals 2017-11-27 14:04:40 +01:00
comphelper tdf#113696 Add mimetype to image element 2017-11-30 17:42:42 +01:00
compilerplugins loplugin:unusedfields 2017-12-01 08:13:06 +01:00
config_host gpg4libre: conditional-compile gpgme code 2017-11-23 12:13:43 +01:00
configmgr Replace lists by vectors in configmgr/unotools 2017-11-05 15:25:45 +01:00
connectivity loplugin:unnecessaryparen: signed numeric literals 2017-11-30 19:29:21 +01:00
cppcanvas Make loplugin:unnecessaryparen look through implicit 2017-11-23 10:00:44 +01:00
cppu Replace lists by vector or deque (cppu) 2017-11-18 07:50:18 +01:00
cppuhelper not used with disable-dynloading 2017-11-28 21:28:41 +01:00
cpputools loplugin:includeform: cpputools 2017-10-23 22:46:11 +02:00
cui Fix typos 2017-11-29 21:45:53 +01:00
dbaccess dbaccess: -Werror,-Wimplicit-fallthrough 2017-11-30 23:42:46 +01:00
desktop lok: calc: set outline state 2017-12-01 01:09:08 +01:00
dictionaries@56684558fb Revert erroneous change of dictionaries 2017-11-13 09:05:22 +01:00
distro-configs android: don't use c++17 (gnu++1z), as boost wants auto_ptr 2017-11-29 17:49:05 +01:00
drawinglayer coverity#1421100 Uncaught exception 2017-11-26 21:12:50 +00:00
dtrans loplugin:simplifybool (clang-cl) 2017-11-27 21:07:00 +01:00
editeng loplugin:unusedfields 2017-12-01 08:13:06 +01:00
embeddedobj Help old GCC 2017-11-22 16:40:57 +01:00
embedserv loplugin:unnecessaryparen (clang-cl) 2017-11-27 21:06:21 +01:00
emfio replace check of eof and GetError with good 2017-11-22 13:33:46 +01:00
eventattacher loplugin:flatten in editeng..extensions 2017-09-21 15:29:20 +02:00
extensions loplugin:unnecessaryparen (clang-cl) 2017-11-27 21:06:21 +01:00
external EPUB export: support image popup for images and text 2017-12-01 09:17:01 +01:00
extras tdf#101349 Rework of table styles for use in Calc 2017-12-01 11:21:13 +01:00
filter tdf#113696 XHTML Export: Prefer fallback graphic 2017-12-01 08:24:26 +01:00
forms loplugin:unnecessaryparen: Warn about parentheses around literals 2017-11-27 14:04:40 +01:00
formula loplugin:unusedfields 2017-12-01 08:13:06 +01:00
fpicker tdf#89713 localize Windows file picker extensions 2017-12-01 05:53:15 +01:00
framework loplugin:unnecessaryparen: signed numeric literals 2017-11-30 19:29:21 +01:00
helpcompiler Replace lists by vector and deque (helpcompiler) 2017-11-26 18:02:05 +01:00
helpcontent2@ec6a05cc52 Updated core 2017-11-29 21:37:26 +01:00
hwpfilter Fix typo 2017-11-28 18:41:41 +01:00
i18nlangtag Resolves: tdf#113835 add Fon [fon-BJ] to language list 2017-11-14 19:41:43 +01:00
i18npool loplugin:unusedmethods 2017-11-30 07:21:54 +01:00
i18nutil Upgrade to ICU 60.1 2017-11-20 19:28:10 +01:00
icon-themes tdf#75256 Sifr rework of insertcolumns and rows 2017-12-01 07:53:05 +01:00
idl drop duplicate method 2017-11-22 13:33:25 +01:00
idlc loplugin:unnecessaryparen: Warn about parentheses around literals 2017-11-27 14:04:40 +01:00
include Prepare for translated new AutoFormat Table Styles, tdf#101349 2017-12-01 11:21:31 +01:00
instsetoo_native tdf#90794 Position of progress bar on high res screens 2017-11-23 16:08:51 +01:00
io loplugin:simplifybool for negation of comparison operator 2017-11-23 06:59:31 +01:00
ios iOS, change workdir for prelink object 2017-11-27 13:42:42 +01:00
javaunohelper loplugin:includeform: javaunohelper 2017-10-23 22:46:04 +02:00
jurt loplugin:includeform: jurt (Windows) 2017-10-27 19:28:51 +02:00
jvmaccess loplugin:includeform: jvmaccess 2017-10-23 22:46:03 +02:00
jvmfwk loplugin:simplifybool for negation of comparison operator 2017-11-23 06:59:31 +01:00
l10ntools look for =() in loplugin:unnecessaryparen 2017-11-20 12:31:32 +01:00
librelogo tdf#113592 LibreLogo: add fallback localization to fix platform issues 2017-11-05 22:17:28 +01:00
libreofficekit lokdialog: Remove getDialogInfo + update gtktiledviewer accordingly. 2017-11-29 10:17:00 +01:00
lingucomponent Replace lists by vectors in lingucomponent 2017-11-01 20:37:54 +01:00
linguistic xmloff: turn SvXMLImportContext into a no-op base class 2017-11-30 22:32:46 +01:00
lotuswordpro loplugin:unusedmethods 2017-11-30 07:21:54 +01:00
m4 Fix typos 2017-08-18 07:44:59 +02:00
mysqlc loplugin:finalclasses in mysqlc 2017-11-01 07:15:50 +01:00
nlpsolver
o3tl Add test for o3tl::saturating_add 2017-10-26 21:30:08 +02:00
odk Fix typos 2017-11-21 08:48:40 +01:00
offapi tdf#83877 OOXML Roundtrip of SignatureLine properties 2017-11-28 07:58:23 +01:00
officecfg tdf#89210 Rename 'mode' 2017-11-29 21:51:07 +01:00
onlineupdate Fix typos 2017-11-19 21:57:17 +01:00
oovbaapi Fix typos 2017-11-13 08:43:17 +01:00
oox ofz: check col/row bounds 2017-12-01 10:03:32 +01:00
opencl Extract XmlWriter and XmlWalker from opencl into tools 2017-11-01 23:42:02 +01:00
osx
package ofz: Direct-leak 2017-11-29 20:49:35 +00:00
postprocess postprocess: call check-elf-dynamic-objects on LINUX 2017-11-29 21:21:47 +01:00
pyuno loplugin:simplifybool for negation of comparison operator 2017-11-23 06:59:31 +01:00
qadevOOo tdf#45904 Move _XHeaderFooterContent Java tests to C++ 2017-11-27 03:40:56 +01:00
readlicense_oo update credits 2017-11-03 00:34:46 +01:00
registry loplugin:simplifybool for negation of comparison operator 2017-11-23 06:59:31 +01:00
remotebridges loplugin:includeform: remotebridges 2017-10-23 22:45:58 +02:00
reportbuilder This really does not need to be utf-8 character 2017-09-12 13:37:58 +02:00
reportdesign -Werror,-Wimplicit-fallthrough 2017-12-01 09:02:12 +01:00
ridljar i#32546# - Java UnoRuntime.getUniqueKey/generateOid do not work reliably 2017-08-25 19:24:50 +02:00
sal loplugin:unnecessaryparen: signed numeric literals 2017-11-30 19:29:21 +01:00
salhelper loplugin:includeform: salhelper 2017-10-23 22:45:57 +02:00
sax loplugin:unnecessaryparen: signed numeric literals 2017-11-30 19:29:21 +01:00
sc Remove nonsensical loop 2017-12-01 11:37:05 +01:00
scaddins loplugin:unnecessaryparen: signed numeric literals 2017-11-30 19:29:21 +01:00
sccomp Weaken SwarmSolverTest::testUnconstrained even further for now 2017-11-30 07:20:41 +01:00
schema
scp2 QT5 rename from KF5 2017-11-06 12:05:32 +01:00
scripting mailmerge.py: Use strip in server name 2017-11-30 13:29:24 +01:00
sd Use for-range loops in ViewShellManager (sd) 2017-12-01 07:10:45 +01:00
sdext loplugin:unnecessaryparen 2017-11-30 15:35:15 +01:00
setup_native loplugin:includeform: setup_native (Windows) 2017-10-27 19:28:51 +02:00
sfx2 loplugin:unusedfields 2017-12-01 08:13:06 +01:00
shell loplugin:unnecessaryparen (clang-cl) 2017-11-29 12:00:42 +01:00
slideshow look for =() in loplugin:unnecessaryparen 2017-11-20 12:31:32 +01:00
smoketest loplugin:includeform: smoketest 2017-10-23 22:45:52 +02:00
solenv Move loplugin:fpcomparison to store/ 2017-11-30 15:09:35 +01:00
soltools loplugin:includeform: soltools (macOS) 2017-10-24 11:53:57 +02:00
sot ofz#4476 Integer-overflow 2017-11-29 11:17:35 +01:00
starmath xmloff: turn SvXMLImportContext into a no-op base class 2017-11-30 22:32:46 +01:00
stoc loplugin:unnecessaryparen check for (f1()).f2 2017-11-27 10:44:25 +01:00
store loplugin:simplifybool for negation of comparison operator 2017-11-23 06:59:31 +01:00
svgio loplugin:includeform: svgio 2017-10-23 22:45:51 +02:00
svl loplugin:unnecessaryparen (clang-cl) 2017-11-29 12:00:42 +01:00
svtools tdf#114124 Translate 'PNG Bitmap' string in Calc Paste dropdown 2017-11-30 22:09:45 +01:00
svx Related tdf#72966 Provide replacement graphic also for metafiles 2017-12-01 02:20:51 +01:00
sw Prepare for translated new AutoFormat Table Styles, tdf#101349 2017-12-01 11:21:31 +01:00
swext tdf#39468: Translate some random German comments and terms 2017-09-26 11:57:30 +02:00
sysui QT5 rename from KF5 2017-11-06 12:05:32 +01:00
test tdf#45904 Move _XHeaderFooterContent Java tests to C++ 2017-11-27 03:40:56 +01:00
testtools loplugin:includeform: testtools 2017-10-23 22:45:49 +02:00
toolkit loplugin:unnecessaryparen: signed numeric literals 2017-11-30 19:29:21 +01:00
tools lokdialog: Changed dialog painting to allow for modal dialogs 2017-11-29 10:16:53 +01:00
translations@24c9679f71 Updated core 2017-11-24 17:13:40 +01:00
ucb loplugin:unnecessaryparen: signed numeric literals 2017-11-30 19:29:21 +01:00
ucbhelper one slash is enough 2017-11-05 20:41:27 +01:00
udkapi Fix typos 2017-10-19 09:49:01 +02:00
uitest fix uitest/writer_tests/data/3pages.odt 2017-11-25 14:29:10 +00:00
UnoControls Fix typos 2017-11-21 08:48:40 +01:00
unodevtools loplugin:unnecessaryparen: Warn about parentheses around literals 2017-11-27 14:04:40 +01:00
unoidl loplugin:includeform: unoidl (macOS) 2017-10-24 11:53:06 +02:00
unoil tdf#113787: always require version file with config for CLI assemblies 2017-11-24 01:27:37 +01:00
unotest cosmetics: Drop duplicate semicolon 2017-11-20 14:01:44 +01:00
unotools drop duplicate method 2017-11-22 13:33:25 +01:00
unoxml loplugin:unnecessaryparen check for (f1()).f2 2017-11-27 10:44:25 +01:00
ure
uui Fix typos 2017-11-13 08:43:17 +01:00
vbahelper loplugin:unusedmethods 2017-11-29 07:28:57 +01:00
vcl loplugin:unusedfields 2017-12-01 08:13:06 +01:00
winaccessibility loplugin:unnecessaryparen (clang-cl) 2017-11-29 12:00:42 +01:00
wizards Access2Base - FIX OutputStringToHtml 2017-11-23 16:42:40 +01:00
writerfilter loplugin:unnecessaryparen check for (f1()).f2 2017-11-27 10:44:25 +01:00
writerperfect -Werror,-Wunused-private-field 2017-12-01 10:07:05 +01:00
xmerge
xmlhelp loplugin:useuniqueptr in TVDom 2017-11-17 12:58:56 +01:00
xmloff tdf#113696 Add mimetype also to fallback graphic 2017-12-01 08:23:50 +01:00
xmlreader clang-tidy modernize-use-emplace in various 2017-09-14 11:51:44 +02:00
xmlscript Fix typos 2017-11-13 08:43:17 +01:00
xmlsecurity loplugin:unnecessaryparen (clang-cl) 2017-11-29 12:00:42 +01:00
.buckconfig
.buckversion
.clang-format Retrofit "KeepEmptyLinesAtTheStartOfBlocks: false" into .clang-format 2017-11-08 15:35:18 +01:00
.editorconfig We have Objective-C++ and Swift source files, too 2017-12-01 12:58:08 +02:00
.gitattributes
.gitignore Added VisualStudioCode/unified MSDEV VC.db 2017-08-29 09:41:43 +02:00
.gitmodules
.gitreview
autogen.sh Revert "Goodbye autogen.lastrun" 2017-09-22 16:51:22 +03:00
BUCK
config.guess
config.sub
config_host.mk.in fix build with system gpgmepp 2017-11-24 14:37:16 +01:00
config_host_lang.mk.in
configure.ac Do not check in qt5 checks for Qt4 bugs that were fixed 2017-11-30 13:46:42 +01:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst curl: upgrade to release 7.57.0 2017-11-29 15:41:26 +01:00
g
install-sh
leak-suppress.txt
Library_merged.mk
lo.xcent.in
logerrit Improve error message on ssh login failure. 2017-09-06 16:07:50 +02:00
Makefile.fetch gpg4libre: add glib2 dependency for Windows 2017-11-20 22:32:22 +01:00
Makefile.gbuild
Makefile.in have "make clean" also remove android's/gradle's output dirs 2017-11-30 13:57:01 +01:00
README.cross Fix typos 2017-08-17 21:53:28 +02:00
README.md iOS, update to version 11.1 2017-11-13 08:00:05 +01:00
README.Solaris
Repository.mk add xlsx fuzzer 2017-11-30 10:00:30 +01:00
RepositoryExternal.mk move conditional stuff to RepositoryExternal.mk 2017-11-26 09:42:38 +01: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.12 + Xcode 8
  • Linux:
    • Runtime: RHEL 6 or CentOS 6
    • Build: GCC 4.8.1 or Clang
  • iOS (only for LibreOfficeKit):
    • Runtime: 11.0 (only support for newer i devices == 64 bit)
    • Build: Xcode 9.0 and iPhone SDK 11.1

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.

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.