Test repository to check push and ssh key
Find a file
Jan-Marek Glogowski 33e47b4491 Fix many Java subsequentcheck test by using JUH
Splits gb_JunitTest_set_unoapi_test_class_and_jars into two
separate defines as:
- gb_JunitTest_use_unoapi_jars
- gb_JunitTest_use_unoapi_test_class

Then replaces many of the gb_JunitTest_use_jars lists with the
new gb_JunitTest_use_unoapi_jars to fix the JUH dependencies.
This probably adds some unneeded JUH dependencies to some Java
tests, but that shouldn't be a problem.

Change-Id: I0c4fce6b50f7c6eb8d62bfb2c50f056b97584794
Reviewed-on: https://gerrit.libreoffice.org/63119
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
2018-11-09 07:37:50 +01:00
.git-hooks Add Python files to pre-commit hook checks 2018-10-03 10:39:39 +02:00
accessibility move SvTreeListBox to vcl 2018-11-07 22:01:02 +01:00
android [Pardus] ability to change slide name 2018-11-04 23:50:52 +01:00
animations New loplugin:external 2018-09-17 09:05:38 +02:00
apple_remote
avmedia move SvTreeListBox to vcl 2018-11-07 22:01:02 +01:00
basctl move SvTreeListBox to vcl 2018-11-07 22:01:02 +01:00
basegfx loplugin:collapseif in accessibility..cui 2018-11-06 10:28:47 +01:00
basic move SvTreeListBox to vcl 2018-11-07 22:01:02 +01:00
bean Fix typos 2018-07-22 20:26:06 +02:00
bin gbuild: rename value OS=IOS to OS=iOS 2018-11-01 16:39:54 +01:00
binaryurp clang-tidy readability-redundant-smartptr-get 2018-10-17 08:25:47 +02:00
bridges replace double-checked locking patterns with thread safe local statics 2018-11-04 14:46:01 +01:00
canvas tdf#120703 PVS: V547 Expression is always true/false 2018-11-03 20:47:58 +01:00
chart2 Simplify and fix Java UNO API test makefiles 2018-11-09 07:37:00 +01:00
cli_ure fix signatures of deleted copy/assign operators 2018-11-02 07:03:08 +01:00
codemaker fix signatures of deleted copy/assign operators 2018-11-02 07:03:08 +01:00
comphelper Fix many Java subsequentcheck test by using JUH 2018-11-09 07:37:50 +01:00
compilerplugins loplugin:useuniqueptr extend to checking more local var deletes 2018-11-09 06:43:34 +01:00
config_host Use [[fallthrough]] also with MSVC 2018-09-11 22:39:16 +02:00
configmgr Simplify and fix Java UNO API test makefiles 2018-11-09 07:37:00 +01:00
connectivity Fix many Java subsequentcheck test by using JUH 2018-11-09 07:37:50 +01:00
cppcanvas Fix typos 2018-11-07 12:09:46 +01:00
cppu coverity#1441100 silence Out-of-bounds access 2018-11-07 18:18:51 +01:00
cppuhelper replace double-checked locking patterns with thread safe local statics 2018-11-04 14:46:01 +01:00
cpputools clang-tidy readability-misleading-indentation 2018-10-19 07:58:15 +02:00
cui Resolves: tdf#121225 needs to be resizable 2018-11-08 19:57:52 +01:00
dbaccess Fix many Java subsequentcheck test by using JUH 2018-11-09 07:37:50 +01:00
desktop lok: sc: make hi-dpi/zoom compatible with retrieving cell cursor 2018-11-09 07:01:41 +01:00
dictionaries@86921a78c4 Revert "lok: calc: fix needed when position caching is disabled" 2018-11-08 14:45:19 +01:00
distro-configs Don't default to only tango for iOS 2018-11-06 10:37:47 +02:00
drawinglayer tdf#113624 EMF+ Fix shift of DrawString without StringFormat 2018-11-08 20:59:41 +01:00
dtrans Win: implement Clipboard Format Listener instead of obsolete Viewer 2018-11-05 19:30:16 +01:00
editeng Fix typos 2018-11-08 22:25:25 +01:00
embeddedobj embeddedobj win32: avoid owning a lock while calling out to event listeners 2018-11-07 17:32:33 +01:00
embedserv remove more rtl::OUString and OString prefixes 2018-10-24 14:43:34 +02:00
emfio tdf#113624 EMF+ Fix shift of DrawString without StringFormat 2018-11-08 20:59:41 +01:00
eventattacher New loplugin:external 2018-09-17 09:05:38 +02:00
extensions Simplify and fix Java UNO API test makefiles 2018-11-09 07:37:00 +01:00
external xmlsec: replace patch with specifying NSPR/NSS_CFLAGS/LIBS 2018-11-08 09:14:52 +01:00
extras move SvTreeListBox to vcl 2018-11-07 22:01:02 +01:00
filter Fix many Java subsequentcheck test by using JUH 2018-11-09 07:37:50 +01:00
forms Fix many Java subsequentcheck test by using JUH 2018-11-09 07:37:50 +01:00
formula move SvTreeListBox to vcl 2018-11-07 22:01:02 +01:00
fpicker move SvTreeListBox to vcl 2018-11-07 22:01:02 +01:00
framework Fix many Java subsequentcheck test by using JUH 2018-11-09 07:37:50 +01:00
helpcompiler clang-tidy performance-unnecessary-copy-init in editeng..i18npool 2018-10-23 11:48:22 +02:00
helpcontent2@9b58d02696 Update git submodules 2018-11-08 18:52:53 +01:00
hwpfilter hdo is always a HWPDrawingObject 2018-10-24 22:12:05 +02:00
i18nlangtag Turn LanguageTag::ScriptType into scoped enum 2018-10-20 10:39:28 +02:00
i18npool loplugin:collapseif in sdext..svx 2018-11-07 12:39:11 +01:00
i18nutil tdf#42949 Fix IWYU warnings in include/i18nutil/* 2018-11-07 10:04:47 +01:00
icon-themes Colibre icons: add icons for context menues 2018-11-09 07:06:25 +01:00
idl loplugin:collapseif in dbaccess..lotuswordpro 2018-11-06 11:53:58 +01:00
idlc loplugin:collapseif in dbaccess..lotuswordpro 2018-11-06 11:53:58 +01:00
include lokdialog: Implement hi-dpi support for the routed dialogs. 2018-11-08 14:38:49 +01:00
instsetoo_native tdf#120176 - Text appears as white on first launch 2018-10-22 13:06:46 +02:00
io remove more rtl::OUString and OString prefixes 2018-10-24 14:43:34 +02:00
ios The image zipfiles should be in share/config, it seems 2018-11-06 10:37:47 +02:00
javaunohelper HTML tt -> code in JavaDoc comments 2018-10-10 17:26:26 +02:00
jurt Fix many Java subsequentcheck test by using JUH 2018-11-09 07:37:50 +01:00
jvmaccess
jvmfwk fix signatures of deleted copy/assign operators 2018-11-02 07:03:08 +01:00
l10ntools loplugin:collapseif in dbaccess..lotuswordpro 2018-11-06 11:53:58 +01:00
librelogo Adapt LibreLogo.py to Python 3.7 re.sub change 2018-11-08 11:03:41 +01:00
libreofficekit loplugin:collapseif in dbaccess..lotuswordpro 2018-11-06 11:53:58 +01:00
lingucomponent Don't read past end of string in Guess ctor 2018-10-26 14:44:56 +02:00
linguistic Simplify and fix Java UNO API test makefiles 2018-11-09 07:37:00 +01:00
lotuswordpro loplugin:collapseif in dbaccess..lotuswordpro 2018-11-06 11:53:58 +01:00
m4
nlpsolver
o3tl -Werror=catch-value= 2018-10-07 14:43:03 +02:00
odk Fix typos 2018-11-05 22:04:17 +01:00
offapi tdf#118582 Disable signature line signing once it is signed 2018-11-06 15:00:58 +01:00
officecfg Colibre icons: add icons for context menues 2018-11-09 07:06:25 +01:00
onlineupdate Rename online updater functions and strcmp relpath 2018-09-10 11:23:06 +02:00
oovbaapi oovbaapi: hack Excel / OptionButton compatibility into Button for now. 2018-09-17 10:49:38 +02:00
oox Convert FieldUnit to scoped enum 2018-11-08 12:15:51 +01:00
opencl clang-tidy: (WIP) bugprone-too-small-loop-variable findings 2018-11-01 13:02:26 +01:00
osx
package loplugin:collapseif in framework..sal 2018-11-07 07:56:39 +01:00
postprocess Package separate SVG icon sets 2018-11-05 14:40:53 +01:00
pyuno replace double-checked locking patterns with thread safe local statics 2018-11-04 14:46:01 +01:00
qadevOOo Fix typos 2018-11-05 22:04:17 +01:00
readlicense_oo update credits 2018-10-29 20:40:24 +01:00
registry loplugin:collapseif in framework..sal 2018-11-07 07:56:39 +01:00
remotebridges New loplugin:external 2018-09-17 09:05:38 +02:00
reportbuilder
reportdesign Fix many Java subsequentcheck test by using JUH 2018-11-09 07:37:50 +01:00
ridljar
sal loplugin:collapseif in framework..sal 2018-11-07 07:56:39 +01:00
salhelper gbuild: rename value OS=IOS to OS=iOS 2018-11-01 16:39:54 +01:00
sax tdf#42949 Fix IWYU warnings in include/sax/* 2018-10-30 17:44:46 +01:00
sc Fix many Java subsequentcheck test by using JUH 2018-11-09 07:37:50 +01:00
scaddins clang-tidy: (WIP) bugprone-too-small-loop-variable findings 2018-11-01 13:02:26 +01:00
sccomp loplugin:oncevar 2018-10-29 15:12:26 +01:00
schema Fix dictionnary -> dictionary 2018-09-28 09:51:33 +02:00
scp2 add Lower Serbian (dsb) language pack 2018-10-22 00:58:41 +02:00
scripting tdf#121143: don't send OnCloseApp twice; properly cleanup AppBasicManager 2018-11-05 20:06:58 +01:00
sd Simplify and fix Java UNO API test makefiles 2018-11-09 07:37:00 +01:00
sdext Resolves: rhbz#1647507 try inputted password as both user and owner password 2018-11-08 15:09:59 +01:00
setup_native tdf#120703 PVS: V530 The return value of function is required to be utilized 2018-10-27 15:30:59 +02:00
sfx2 Fix many Java subsequentcheck test by using JUH 2018-11-09 07:37:50 +01:00
shell tdf#120703 PVS: V547 Expression is always true/false 2018-11-05 07:21:22 +01:00
slideshow loplugin:collapseif in sdext..svx 2018-11-07 12:39:11 +01:00
smoketest loplugin:constfields in smoketest..sot 2018-10-09 08:10:24 +02:00
solenv Fix many Java subsequentcheck test by using JUH 2018-11-09 07:37:50 +01:00
soltools Silence GCC 8.2.1 -Werror=format-truncation= 2018-11-08 12:19:30 +01:00
sot Fix many Java subsequentcheck test by using JUH 2018-11-09 07:37:50 +01:00
starmath Simplify and fix Java UNO API test makefiles 2018-11-09 07:37:00 +01:00
stoc tdf#120703 PVS: V547 Expression is always true/false 2018-11-04 16:57:59 +01:00
store clang-tidy readability-redundant-smartptr-get 2018-10-17 08:25:47 +02:00
svgio tdf#113624 EMF+ Fix shift of DrawString without StringFormat 2018-11-08 20:59:41 +01:00
svl Fix many Java subsequentcheck test by using JUH 2018-11-09 07:37:50 +01:00
svtools Simplify and fix Java UNO API test makefiles 2018-11-09 07:37:00 +01:00
svx Simplify and fix Java UNO API test makefiles 2018-11-09 07:37:00 +01:00
sw Fix many Java subsequentcheck test by using JUH 2018-11-09 07:37:50 +01:00
swext
sysui don't try to verify .desktop files when building the menus.rpm 2018-10-24 11:58:23 +02:00
test tdf#113624 EMF+ Fix shift of DrawString without StringFormat 2018-11-08 20:59:41 +01:00
testtools fix signatures of deleted copy/assign operators 2018-11-02 07:03:08 +01:00
toolkit Fix many Java subsequentcheck test by using JUH 2018-11-09 07:37:50 +01:00
tools loplugin:collapseif in tools..xmloff 2018-11-08 07:37:40 +01:00
translations@f14221545c Update git submodules 2018-10-27 15:17:46 +02:00
ucb Fix many Java subsequentcheck test by using JUH 2018-11-09 07:37:50 +01:00
ucbhelper loplugin:useuniqueptr in ContentImplHelper 2018-11-01 06:45:31 +01:00
udkapi Fix typos 2018-11-05 22:04:17 +01:00
uitest map GtkTreeView to SvTreeViewBox now it is in vcl 2018-11-07 22:01:20 +01:00
UnoControls Fix typos 2018-11-09 07:05:30 +01:00
unodevtools remove more rtl::OUString and OString prefixes 2018-10-24 14:43:34 +02:00
unoidl loplugin:collapseif in tools..xmloff 2018-11-08 07:37:40 +01:00
unoil
unotest tdf#42949 Fix IWYU warnings in include/comphelper/[m-z]* 2018-10-08 12:16:44 +02:00
unotools Fix many Java subsequentcheck test by using JUH 2018-11-09 07:37:50 +01:00
unoxml Fix many Java subsequentcheck test by using JUH 2018-11-09 07:37:50 +01:00
ure remove more rtl::OUString and OString prefixes 2018-10-24 14:43:34 +02:00
uui replace Application::GetMainThreadIdentifier to Application::IsMainThread 2018-11-06 14:31:44 +01:00
vbahelper tdf#120703 (PVS): V519 The variable is assigned values twice successively 2018-10-27 09:23:52 +02:00
vcl Fix typos 2018-11-08 22:25:25 +01:00
winaccessibility tdf#120703 PVS: V547 Expression is always true/false 2018-11-03 14:13:57 +01:00
wizards tdf#121188 form controls should have InputRequired false by default 2018-11-06 19:14:23 +01:00
writerfilter loplugin:unusedfields 2018-11-08 07:38:35 +01:00
writerperfect convert some macros to local functions 2018-11-06 07:46:11 +01:00
xmerge
xmlhelp loplugin:useuniqueptr in ResultSetForQuery 2018-11-09 06:41:26 +01:00
xmloff Simplify and fix Java UNO API test makefiles 2018-11-09 07:37:00 +01:00
xmlreader Simplify containers iterations in xmlhelp, xmlreader, xmlscript, xmlsecurity 2018-09-15 09:06:38 +02:00
xmlscript Fix typo 2018-10-25 13:51:38 +02:00
xmlsecurity move SvTreeListBox to vcl 2018-11-07 22:01:02 +01:00
.buckconfig
.buckversion
.clang-format
.editorconfig We have some Objective-C source files, too 2017-12-01 12:59:43 +02:00
.gitattributes
.gitignore
.gitmodules
.gitreview
autogen.sh
BUCK
config.guess
config.sub
config_host.mk.in Re-introduce the functionality to look for multiple iOS SDK versions 2018-10-31 23:25:43 +02:00
config_host_lang.mk.in gbuild: allow to react on change in configured langs 2015-03-25 17:52:20 +01:00
configure.ac tdf#121131: Default COMPILER_PLUGINS_CXX to g++ -std=c++11 2018-11-08 13:36:53 +01:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst Update mdds to 1.4.3. 2018-10-31 13:47:42 +01:00
g
install-sh
leak-suppress.txt
Library_merged.mk gbuild: Remove MSVC 2013 legacy code 2017-04-21 18:18:44 +02:00
lo.xcent.in
logerrit
Makefile.fetch tdf#79022 - Please bundle Source Serif Pro 2018-09-03 09:04:46 +02:00
Makefile.gbuild
Makefile.in gbuild: rename value OS=IOS to OS=iOS 2018-11-01 16:39:54 +01:00
README.cross
README.md Add loplugin:includeform documentation 2018-10-01 16:15:11 +02:00
README.Solaris
Repository.mk mysql_jdbc should be enabled in Repository.mk.. 2018-11-05 11:15:37 +01:00
RepositoryExternal.mk external/harfbuzz's libharfbuzz.a links against icuuc library 2018-09-22 20:55:16 +02:00
RepositoryFixes.mk
RepositoryModule_build.mk
RepositoryModule_host.mk Moving mysqlc into connectivity as a library 2018-08-24 17:19:51 +02:00
sanitize-ubsan-blacklist
setup.cfg pep8 -> pycodestyle 2018-10-16 14:29:06 +02:00
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.