Test repository to check push and ssh key
Find a file
Tor Lillqvist d7cbe885da Makefile comments need to start in the first column
This "comment" was actually interpreted as a shell command. Sure, the
"command" was a comment in shell, too, but still, quite pointless to
run it.

Change-Id: If5abeabb1c10d62fa90dcdaf81b3b54af958ba62
Reviewed-on: https://gerrit.libreoffice.org/79292
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
2019-09-20 15:50:41 +02:00
.git-hooks
accessibility
android update references about selective debuginfo in android/README 2019-09-19 13:16:58 +02:00
animations
apple_remote
avmedia tdf#125821 don't crash on missing gstreamer plugins 2019-06-13 18:41:43 +02:00
basctl Remove Help - Restart in Safe Mode menu item 2019-06-15 20:38:02 +02:00
basegfx
basic pretty up logging of exceptions 2019-08-05 21:06:51 -04:00
bean
bin Add the librevenge library 2019-09-20 14:23:18 +02:00
binaryurp
bridges Bin some unused declarations 2019-07-25 16:59:42 +02:00
canvas pretty up logging of exceptions 2019-08-05 21:06:51 -04:00
chart2 tdf#122031 Unit test checks pie chart data label format. 2019-09-16 21:22:20 +02:00
cli_ure
codemaker
comphelper The AsyncQuitHandler class needs to be implemented in the comphelper DLL 2019-09-20 15:40:42 +02:00
compilerplugins
config_host KDE5 move screensafer inhibiting code into Qt5 2019-06-19 10:55:25 +02:00
configmgr configmgr: support changing locale language 2019-08-02 16:09:14 -04:00
connectivity Build mysql_jdbc library even when building without java 2019-09-19 13:32:10 +02:00
cppcanvas
cppu
cppuhelper
cpputools
cui tdf#124361 hide Add / Import button in Online 2019-09-16 21:21:32 +02:00
dbaccess warn on load when a document binds an event to a macro 2019-09-05 12:32:33 +02:00
desktop enable crashreport on Windows 2019-09-17 12:53:14 +02:00
dictionaries@2d1a77e499
distro-configs Package colibre_svg theme, too 2019-09-19 10:14:25 +02:00
drawinglayer
dtrans
editeng assert on selecting text from end to start in shape with a11y enabled 2019-09-05 12:32:34 +02:00
embeddedobj LOK: Proper use of isMobile() on embedded charts 2019-09-03 21:43:36 +02:00
embedserv
emfio
eventattacher
extensions More hacks for quit requests from an OLE Automation client 2019-09-20 15:34:10 +02:00
external add OpenDyslexic font 2019-09-18 16:55:58 +02:00
extras
filter tdf#122582: Add touch gestures to iOS app slideshow, also for exiting it 2019-09-20 11:21:27 +02:00
forms Fix typos 2019-08-21 22:25:40 +02:00
formula tdf#124279: consider also functions with no arguments 2019-06-01 20:24:17 +02:00
fpicker Fix typos 2019-08-21 22:25:40 +02:00
framework Don't call Application::Quit() in Desktop::terminate() on iOS 2019-09-20 13:58:37 +02:00
helpcompiler
helpcontent2@1d676362d3 Update git submodules 2019-07-14 22:03:25 +02:00
hwpfilter
i18nlangtag
i18npool modified Line Breaking rule in Korean 2019-05-24 10:16:34 +02:00
i18nutil
icon-themes Redacted icons for Breeze, Sifr and Colibre 2019-09-16 16:34:00 +02:00
idl
idlc
include The AsyncQuitHandler class needs to be implemented in the comphelper DLL 2019-09-20 15:40:42 +02:00
instsetoo_native [cp] license file locations for install sets 2019-06-15 23:13:08 +02:00
io
ios Fix build breakage when no localisations are present in an iOS build 2019-09-20 14:11:22 +02:00
javaunohelper
jurt
jvmaccess
jvmfwk Silence bogus -Werror=clobbered (GCC 7 --enable-optimized) 2019-09-19 13:14:14 +02:00
l10ntools
librelogo sanitize LibreLogo calls 2019-06-07 20:48:32 +02:00
libreofficekit lokdocview: Add missing callback cases 2019-09-09 06:55:25 +02:00
lingucomponent The iOS sv_SE dictionary surely works for sv_FI, too 2019-08-12 22:46:00 +02:00
linguistic
lotuswordpro
m4
nlpsolver
o3tl
odk single source file for licensing info with conditional text 2019-06-15 22:57:28 +02:00
offapi svgio visitor, add draw commands and create the from svg 2019-08-29 20:10:49 +09:00
officecfg The menu is called 'Form', not 'Forms' 2019-09-18 16:36:47 +02:00
onlineupdate
oovbaapi Add ooo.vba.word.XDocument.SavePreviewPngAs() and implement 2019-09-20 14:09:23 +02:00
oox tdf#122031 Change element order for OOXML compatibility. 2019-09-16 21:22:08 +02:00
opencl
osx
package pretty up logging of exceptions 2019-08-05 21:06:51 -04:00
postprocess tdf#124752: Add system clipboard interface for iOS 2019-09-20 14:10:57 +02:00
pyuno
qadevOOo
readlicense_oo Fix typo 2019-09-19 13:13:18 +02:00
registry
remotebridges
reportbuilder
reportdesign tdf#118710 - Report Builder Character Settings dialog Highlighting tab page 2019-08-31 23:07:01 +02:00
ridljar
sal Use hand-crafted passwd entry for iOS Simulator as getpwuid_r() does not work 2019-09-20 13:59:07 +02:00
salhelper
sax shave 10% off load time of large docx file 2019-09-16 14:47:09 +02:00
sc Add Rows() method to ooo.vba.excel.XApplication 2019-09-20 13:11:05 +02:00
scaddins
sccomp
schema tdf#119228 Add storage and serialisation for the Resolved flag 2019-08-27 17:11:56 +02:00
scp2 Move spsupp components to a separate installer feature 2019-08-31 03:32:41 +02:00
scripting warn on load when a document binds an event to a macro 2019-09-05 12:32:33 +02:00
sd tdf#127163: Add AutoRedactDoc command to the Tools menu 2019-09-20 12:03:04 +02:00
sdext build: support disabling poppler 2019-06-15 11:01:56 +02:00
setup_native New Collabora Office app logo for macOS Installer 2019-06-15 11:02:00 +02:00
sfx2 Warn when getFileURLFromSystemPath() fails, not when it succeeds 2019-09-20 13:50:14 +02:00
shell tdf#126641: don't fail on file URLs with fragment 2019-08-21 20:31:16 +02:00
slideshow pretty up logging of exceptions 2019-08-05 21:06:51 -04:00
smoketest
solenv Add css_comp_Impress_oox_PowerPointExport 2019-09-20 14:37:34 +02:00
soltools
sot
starmath Remove Help - Restart in Safe Mode menu item 2019-06-15 20:38:02 +02:00
stoc
store
svgio Downgrade a SAL_WARN() that shows up a lot but can be ignored to SAL_INFO() 2019-09-20 13:53:26 +02:00
svl Resolves: tdf#122110 convert condition decimal separator to target locale 2019-08-29 11:33:32 +02:00
svtools The menu is called 'Form', not 'Forms' 2019-09-18 16:36:47 +02:00
svx Stopgap measure to fix compilation error on Windows 2019-09-20 12:56:10 +02:00
sw tdf#124752: Reduce number of formats offered on clipboard on mobile devices 2019-09-20 14:13:24 +02:00
swext
sysui New Collabora Office app logo for Linux (startcenter) 2019-06-15 21:19:06 +02:00
test lok: re-factor getTextSelection. 2019-08-05 21:06:40 -04:00
testtools
toolkit toolkit: initialize primitive types explicitly 2019-09-03 13:40:36 +02:00
tools Remove temporary config.ini after the test 2019-09-17 08:30:50 +02:00
translations@cd209b9e59 Update git submodules 2019-06-11 12:21:11 +02:00
ucb tdf#126279 related: remove locks from NeonLockStore after NE_AUTH error 2019-07-15 10:57:51 +02:00
ucbhelper
udkapi
uitest Add test_edit_target to AutoRedactDialog UITest 2019-07-12 11:09:07 +02:00
UnoControls
unodevtools
unoidl
unoil
unotest
unotools We need the de-CH 'ß' -> 'ss' code for iOS in another place too 2019-09-19 18:31:52 +02:00
unoxml
ure
uui Do not validate SSL cert in LOK case 2019-07-09 09:58:17 +02:00
vbahelper More hacks for quit requests from an OLE Automation client 2019-09-20 15:34:10 +02:00
vcl tdf#122221: Bin apparently unnecessary early return 2019-09-20 14:38:25 +02:00
winaccessibility
wizards tdf#125953: take CLOB into account in form wizard 2019-07-06 08:06:53 +02:00
writerfilter tdf#126723 writerfilter::finishParagraph - me, not previous 2019-08-29 09:18:22 +02:00
writerperfect
xmerge
xmlhelp
xmloff warn on load when a document binds an event to a macro 2019-09-05 12:32:33 +02:00
xmlreader
xmlscript pretty up logging of exceptions 2019-08-05 21:06:51 -04:00
xmlsecurity tdf#116085 add more Gpg4Win binary locations 2019-08-29 09:21:33 +02:00
.buckconfig
.buckversion
.clang-format
.editorconfig
.gitattributes
.gitignore
.gitmodules
.gitreview sw comments on frames: fix comment handling when changing at-char anchor 2019-07-10 11:58:24 +02:00
autogen.sh
BUCK
config.guess
config.sub
config_host.mk.in Drop LINK_X64_BINARY: any MSVC linker is suitable for any target platform 2019-06-20 09:54:01 +02:00
config_host_lang.mk.in
configure.ac configure: don't enable export validation if there are no schemas 2019-08-29 09:19:50 +02:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst add OpenDyslexic font 2019-09-18 16:55:58 +02:00
g
install-sh
leak-suppress.txt
Library_merged.mk
lo.xcent.in
logerrit
Makefile.fetch add OpenDyslexic font 2019-09-18 16:55:58 +02:00
Makefile.gbuild
Makefile.in Makefile comments need to start in the first column 2019-09-20 15:50:41 +02:00
README.cross
README.md
README.Solaris
Repository.mk Build mysql_jdbc library even when building without java 2019-09-19 13:32:10 +02:00
RepositoryExternal.mk build: support disabling poppler 2019-06-15 11:01:56 +02: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

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.

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.