Test repository to check push and ssh key
Find a file
Tor Lillqvist 6655939884 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>
(cherry picked from commit d7cbe885da)
2019-10-07 15:34:49 +03:00
.git-hooks git-hooks: show length of first line if it's too long 2019-06-05 21:34:15 +02:00
.github Add donation info for GitHub 2019-08-07 10:42:30 +02:00
accessibility loplugin:virtualdead in vcl 2019-09-26 20:13:30 +02:00
android Fixing '....' 2019-09-06 14:12:27 +02:00
animations tdf#39593 extract UnoTunnelId comparison to template function 2019-08-23 09:10:49 +02:00
apple_remote
avmedia Replace SystemEnvData pToolkit/pPlatformName strings with enums 2019-10-06 12:05:28 +02:00
basctl Related: tdf#127935 set default activate handler to toggle row expansion 2019-10-06 22:14:17 +02:00
basegfx cid#1454631 Logically dead code 2019-10-07 12:48:39 +02:00
basic loplugin:data (clang-cl) 2019-10-01 13:20:30 +02:00
bean Fixing '....' 2019-09-06 14:12:27 +02:00
bin Add libexttextcat, needed by the guesslang component 2019-10-07 14:47:14 +03:00
binaryurp Improved loplugin:stringconstant (now that GCC 7 supports it): binaryurp 2019-07-31 13:00:45 +02:00
bridges always use gb_LinkTarget__get_cxxflags for cxxobjects 2019-10-04 08:57:29 +02:00
canvas The SystemEnvData passed into the canvas factories appears to be unused 2019-10-05 18:31:20 +02:00
chart2 tdf#127777 OOXML chart export: fix "CrossBetween" for not imported charts 2019-10-07 12:36:28 +02:00
cli_ure Fix typos 2019-09-10 14:18:59 +02:00
codemaker loplugin:stringadd in basctl..cui 2019-10-01 09:22:23 +02:00
comphelper Implement parallel version of super-scalar-sample-sort... 2019-10-01 18:11:36 +02:00
compilerplugins the PCH in compilerplugins should also depend on the Makefile 2019-10-06 16:57:34 +02:00
config_host drop gtk2 support 2019-09-30 16:53:32 +02:00
configmgr convert equals() to operator== in xmlreader::Span 2019-10-06 17:06:53 +02:00
connectivity enable -Wrange-loop-analysis on clang 2019-10-07 09:42:23 +02:00
cppcanvas do not require $(SRCDIR) in every gb_Library_set_precompiled_header 2019-09-23 10:47:25 +02:00
cppu loplugin:stringadd in basctl..cui 2019-10-01 09:22:23 +02:00
cppuhelper add property name when throwing css::uno::UnknownPropertyException 2019-09-26 18:32:25 +02:00
cpputools Add version resource to executables where it was missing 2019-08-31 00:22:28 +02:00
cui Related: tdf#127935 set default activate handler to toggle row expansion 2019-10-06 22:14:17 +02:00
dbaccess enable -Wrange-loop-analysis on clang 2019-10-07 09:42:23 +02:00
desktop Related: tdf#127529 make it harder to misunderstand this VirtualDevice ctor 2019-10-04 20:38:00 +02:00
dictionaries@e2f020e6e2 Update git submodules 2019-09-16 06:45:26 +02:00
distro-configs Use --with-sytem-cairo for the ASan+UBSan tinderbox again 2019-10-01 23:02:37 +02:00
drawinglayer do not require $(SRCDIR) in every gb_Library_set_precompiled_header 2019-09-23 10:47:25 +02:00
dtrans loplugin:stringconstant (clang-cl) 2019-10-01 13:19:04 +02:00
editeng InsertQuote can be const 2019-10-07 14:21:26 +02:00
embeddedobj loplugin:logexceptionnicely (clang-cl) 2019-10-01 23:03:19 +02:00
embedserv -Werror,-Wmicrosoft-exception-spec (clang-cl) 2019-10-02 08:18:57 +02:00
emfio ofz#17817 avoid OOM 2019-09-30 14:33:52 +02:00
eventattacher Improved loplugin:stringconstant (now that GCC 7 supports it): eventattacher 2019-07-31 12:59:01 +02:00
extensions Related: tdf#127935 set default activate handler to toggle row expansion 2019-10-06 22:14:17 +02:00
external Resolves: tdf#127887 Fix libwps wrong Lotus version detection 2019-10-02 11:23:03 +02:00
extras SvtFileView not referenced in any .uis anymore 2019-10-04 21:15:20 +02:00
filter Related: tdf#127935 set default activate handler to toggle row expansion 2019-10-06 22:14:17 +02:00
forms loplugin:constmethod in forms..fpicker 2019-09-26 03:04:34 +02:00
formula Related: tdf#127935 set default activate handler to toggle row expansion 2019-10-06 22:14:17 +02:00
fpicker move file picker only code to fpicker 2019-10-05 16:06:59 +02:00
framework loplugin:unusedmethods 2019-10-03 16:34:31 +02:00
helpcompiler loplugin:stringadd in helpcompiler..oox 2019-10-01 08:26:49 +02:00
helpcontent2@360d9cfe12 Update git submodules 2019-10-05 21:53:51 +02:00
hwpfilter ofz#17823 avoid timeout 2019-10-04 22:18:09 +02:00
i18nlangtag loplugin:stringadd in helpcompiler..oox 2019-10-01 08:26:49 +02:00
i18npool tdf#55436 - Add SYMBOL_CHICAGO numbering scheme (for footnotes) 2019-09-02 12:56:05 +02:00
i18nutil Drop bogus memset 2019-10-05 13:21:30 +02:00
icon-themes Icons: Fix for frame icon in sidebar navigator and search toolbar 2019-09-20 17:14:15 +02:00
idl Fixing '....' 2019-09-06 14:12:27 +02:00
idlc loplugin:data (clang-cl) 2019-10-01 13:20:30 +02:00
include InsertQuote can be const 2019-10-07 14:21:26 +02:00
instsetoo_native tdf#127711 - A runtime-switch for the MiniCrashDump 2019-10-02 09:43:12 +02:00
io loplugin:stringadd in helpcompiler..oox 2019-10-01 08:26:49 +02:00
ios Use correct directory for some data files on iOS: share/filter, not filter 2019-10-07 15:02:01 +03:00
javaunohelper Fix typos 2019-08-12 16:07:12 +02:00
jurt Fix typos 2019-08-20 09:10:12 +02:00
jvmaccess tdf#42949 Fix IWYU warnings in jvmfwk/ & jvmaccess/ 2019-04-26 14:54:54 +02:00
jvmfwk loplugin:stringadd in helpcompiler..oox 2019-10-01 08:26:49 +02:00
l10ntools pocheck: also preserve header in check for function names 2019-10-02 23:36:51 +02:00
librelogo sanitize LibreLogo calls 2019-06-07 06:29:13 +02:00
libreofficekit enable -Wrange-loop-analysis on clang 2019-10-07 09:42:23 +02:00
lingucomponent loplugin:stringadd in helpcompiler..oox 2019-10-01 08:26:49 +02:00
linguistic loplugin:stringadd in helpcompiler..oox 2019-10-01 08:26:49 +02:00
lotuswordpro ofz#17675 loop in lwp filter 2019-10-04 22:19:50 +02:00
m4 add -latomic configure check... 2019-09-02 19:11:38 +02:00
nlpsolver Fixing '....' 2019-09-06 14:12:27 +02:00
o3tl Fix '..' 2019-09-01 11:15:11 +02:00
odk Fix typos 2019-09-10 11:56:52 +02:00
offapi doxygen warns on missing annotations for the parameters 2019-09-24 21:45:26 +02:00
officecfg Resolves tdf#127400 - Allow to show tip of the day again 2019-09-23 07:51:01 +02:00
onlineupdate drop gtk2 support 2019-09-30 16:53:32 +02:00
oovbaapi Add ooo.vba.word.XDocument.SavePreviewPngAs() and implement 2019-05-23 08:12:27 +02:00
oox tdf#127777 OOXML chart export: fix "CrossBetween" for not imported charts 2019-10-07 12:36:28 +02:00
opencl -Werror=volatile in OpenCLZone 2019-09-18 20:28:29 +02:00
osx
package loplugin:stringadd in package..sax 2019-10-01 10:51:39 +02:00
pch add gbuild function for a common PCH and use it in sc/ and sax/ 2019-10-04 08:59:34 +02:00
postprocess split msi signing from creation to reduce number of singtool calls 2019-09-06 11:36:44 +02:00
pyuno tdf#39593 use getUnoTunnelImplementation in pyuno 2019-09-18 14:40:48 +02:00
qadevOOo tdf#45904 Remove/disable obsolete XText Java tests 2019-09-15 19:43:00 +02:00
readlicense_oo update credits 2019-09-18 14:09:12 +02:00
registry tdf#127766: Avoid ODR violation for class/struct FieldEntry 2019-10-03 17:35:37 +02:00
remotebridges Improved loplugin:stringconstant (now that GCC 7 supports it): remotebridges 2019-07-31 12:56:18 +02:00
reportbuilder Fix '..' 2019-09-01 11:15:11 +02:00
reportdesign Convert various RPTUI_ID_* to SfxUInt16Item 2019-10-05 09:10:41 +02:00
ridljar Fix typos 2019-08-12 11:36:05 +02:00
sal loplugin:data (clang-cl) 2019-10-01 13:20:30 +02:00
salhelper
sax Deduplicate some serializer writing code, and simplify writing OString 2019-10-04 12:40:06 +02:00
sc DialogClosed doesn't exist 2019-10-07 13:45:36 +02:00
scaddins add gbuild function for a common PCH and use it in sc/ and sax/ 2019-10-04 08:59:34 +02:00
sccomp loplugin:constmethod in sc 2019-09-26 10:15:00 +02:00
schema sw anchored object allow overlap: replace TODO with OASIS proposal 2019-10-03 09:01:46 +02:00
scp2 tdf#127711 - A runtime-switch for the MiniCrashDump 2019-10-02 09:43:12 +02:00
scripting loplugin:stringadd in sc 2019-10-01 08:26:52 +02:00
sd Bin pointless nested #if HAVE_FEATURE_AVMEDIA 2019-10-07 15:14:02 +03:00
sdext drop some unnecessary includes 2019-10-03 11:10:58 +02:00
setup_native Fixing "...." 2019-09-06 09:13:38 +02:00
sfx2 tdf#127958 crash adding 2 or more files into writer master document 2019-10-07 10:28:03 +02:00
shell -Werror,-Wmicrosoft-exception-spec (clang-cl) 2019-10-02 08:18:57 +02:00
slideshow loplugin:constmethod in sdext..starmath 2019-09-28 13:47:28 +02:00
smoketest Fix typos 2019-08-12 09:46:21 +02:00
solenv Revert "We need UNO components from libmswordlo.a" 2019-10-07 15:10:06 +03:00
soltools gcc9.2.1 also warns about truncation here 2019-09-12 11:05:19 +02:00
sot loplugin:stringadd n sfx2..svl 2019-10-01 10:46:15 +02:00
starmath drop some unnecessary includes 2019-10-03 09:53:11 +02:00
stoc Fixing "...." 2019-09-06 09:13:38 +02:00
store
svgio loplugin:unusedfields 2019-10-03 12:16:38 +02:00
svl improve SfxPoolItem operator== implementations 2019-10-06 11:58:50 +02:00
svtools FileControl can be private inside svtools 2019-10-05 19:51:20 +02:00
svx Related: tdf#127935 set default activate handler to toggle row expansion 2019-10-06 22:14:17 +02:00
sw Remove unnecessary(?) memset 2019-10-07 12:52:10 +02:00
swext Fix typos 2019-08-12 15:03:11 +02:00
sysui Add icons to New Document desktop file actions 2019-09-01 14:29:44 +02:00
test toggle default away from legacy 2019-09-23 15:37:01 +02:00
testtools Fix typos 2019-08-20 09:45:45 +02:00
toolkit find-unneeded-includes: ignore extra recommendations 2019-10-04 09:08:49 +02:00
tools ofz#17212 Floating point exception 2019-10-05 21:29:38 +02:00
translations@c1894cfe4c Update git submodules 2019-10-02 23:40:07 +02:00
ucb enable -Wrange-loop-analysis on clang 2019-10-07 09:42:23 +02:00
ucbhelper add property name when throwing css::uno::UnknownPropertyException 2019-09-26 18:32:25 +02:00
udkapi Fix typos 2019-09-10 14:18:14 +02:00
uitest Revert "uitest: make child soffice process die when parent dies" 2019-10-04 12:44:27 +02:00
UnoControls loplugin:duplicate-defines in UnoControls 2019-09-30 13:12:43 +02:00
unodevtools Fix typos 2019-08-12 11:31:51 +02:00
unoidl Deduplicate O(U)StringNumber definitions; add toAsciiUpperCase 2019-09-27 15:03:41 +02:00
unoil
unotest WTF "WTF 255 return value?" 2019-10-02 15:24:39 +02:00
unotools loplugin:stringadd in tools..unotools 2019-10-02 08:01:38 +02:00
unoxml loplugin:constmethod in ucb..uui 2019-09-28 11:30:49 +02:00
ure
uui loplugin:constmethod in ucb..uui 2019-09-28 11:30:49 +02:00
vbahelper new loplugin:stringadd 2019-10-02 11:22:27 +02:00
vcl Avoid dialog headings showing up as some serif font in the iOS app 2019-10-07 15:28:48 +03:00
winaccessibility -Werror,-Wmicrosoft-exception-spec (clang-cl) 2019-10-02 08:18:57 +02:00
wizards tdf#50846 - Wrong type of function GetLastUsedRow 2019-09-27 20:26:35 +02:00
writerfilter related tdf#99602 writerfilter TODO: subscript - use ParaStyle fontsize 2019-10-07 09:28:25 +02:00
writerperfect On Windows, Library_wpftwriter indirectly references Bcrypt.lib 2019-10-02 11:25:35 +02:00
xmerge Fix typos 2019-08-20 08:56:23 +02:00
xmlhelp constmethod for accessor-type methods 2019-09-29 12:43:37 +02:00
xmloff xmloff: create XMLDrawMetaExportOOO instances with an uno constructor 2019-10-04 09:07:13 +02:00
xmlreader we can use Span for the cache key here 2019-10-06 18:51:37 +02:00
xmlscript loplugin:stringadd in writerfilter..xmloff 2019-10-02 08:47:24 +02:00
xmlsecurity Related: tdf#127935 set default activate handler to toggle row expansion 2019-10-06 22:14:17 +02:00
.buckconfig
.buckversion
.clang-format
.editorconfig
.git-blame-ignore-revs Add .git-blame-ignore-revs 2019-08-27 10:02:56 +02:00
.gitattributes
.gitignore Add QtCreator-specific file to .gitignore 2019-06-08 15:36:20 +02:00
.gitmodules
.gitreview git-review: Use the hostname instead of alias. 2019-05-15 15:13:47 +02:00
autogen.sh
BUCK
config.guess Fixing '....' 2019-09-06 14:12:27 +02:00
config.sub Update config.{guess,sub} 2019-05-13 10:07:05 +02:00
config_host.mk.in tdf#127711 - A runtime-switch for the MiniCrashDump 2019-10-02 09:43:12 +02:00
config_host_lang.mk.in
configure.ac tdf#124456: Make Ant configure.ac check more robust 2019-10-06 12:08:10 +02:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst openssl 1.0.2t 2019-10-07 12:48:23 +02:00
g
hardened_runtime.xcent macOS: enable hardened runtime when signing 2019-05-31 21:13:31 +02:00
install-sh Fix typos 2019-08-12 22:12:57 +02:00
leak-suppress.txt
Library_merged.mk
lo.xcent
logerrit Fixing '....' 2019-09-06 14:12:27 +02:00
Makefile.fetch bundle external: qrcodegen 2019-07-02 12:09:30 +02:00
Makefile.gbuild
Makefile.in Makefile comments need to start in the first column 2019-10-07 15:34:49 +03:00
README.cross
README.md Android: document one NDK version that works 2019-08-26 14:13:29 +02:00
README.Solaris
Repository.mk drop gtk2 support 2019-09-30 16:53:32 +02:00
RepositoryExternal.mk gbuild: treat $(DCONF_CFLAGS) as includes, not defines 2019-10-01 07:44:10 +02:00
RepositoryFixes.mk
RepositoryModule_build.mk
RepositoryModule_host.mk add "system" PCH that contains often used system headers such as STL 2019-10-04 08:58:52 +02:00
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 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

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.