Test repository to check push and ssh key
Find a file
Stephan Bergmann 3460c16d7f Make getVersionInformation always return a VersionInfo
...even for JREs not listed in javavendors.xml, making it default to a
VersionInfo with sMinVersion = "1.8.0".

3d27b2fa9c "tdf#124503: Support JRE installations
with unknown java.vendor property", which had changed getVersionInformation to
return an optional<VersionInfo>,  said in the commit message:  "For simplicity,
assume that any versions of such JREs are supported.  Our baseline is Java 6,
and there are unlikely any older versions of JREs from unknown vendors out
there."  Our baseline is Java 8 by now, and there are still unlikely any older
JREs out there, but for macOS ARM64 we may want to restrict to at least Java 17
implementing <http://openjdk.java.net/jeps/391> "JEP 391: macOS/AArch64 Port",
and this commit is a prerequisite for such a change (where we would then e.g.
change the hardcoded "1.8.0" to "17" for just that one platform).

(OtherInfo::compareVersions in jvmfwk/plugins/sunmajor/pluginlib/otherjre.cxx
unconditionally returns 0, meaning "versions compare equal", so introducing a
default version of "1.8.0" should have no negative effect on any JREs that use
OtherInfo.)

Change-Id: I34dc5f2b755c2254a91d42c262786ceec70c746e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123958
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2021-10-21 12:42:03 +02:00
.git-hooks
.github
.vscode
accessibility Simplify Sequence in accessibility 2021-10-17 22:05:27 +02:00
android tdf#131548 Android: jump to cell 2021-09-03 11:45:21 +02:00
animations loplugin:moveparam in various 2021-10-12 09:50:31 +02:00
apple_remote
avmedia clang-tidy:readability-redundant-member-init 2021-08-27 21:24:20 +02:00
basctl loplugin:indentation check for indent inside block 2021-10-20 15:39:38 +02:00
basegfx loplugin:moveparam in basegfx 2021-10-10 19:46:01 +02:00
basic tdf#125637 - Correctly hand names ending with an underscore 2021-10-20 20:27:59 +02:00
bean
bin upgrade fontconfig to 2.13.94 2021-10-20 18:24:51 +02:00
binaryurp loplugin:moveparam in binaryurp 2021-10-08 17:10:07 +02:00
bridges Extend return values < 32-bit on macOS ARM64 2021-10-13 13:43:09 +02:00
canvas Simplify vector initialization in canvas 2021-10-15 18:39:21 +02:00
chart2 Simplify vector initialization in chart2 2021-10-15 18:12:36 +02:00
cli_ure drop 'using namespace std' in cli_ure 2021-10-07 13:38:06 +02:00
codemaker Use more appropriate type for OString-length related variable 2021-10-14 10:42:31 +02:00
comphelper Remove a std::remove_reference_t 2021-10-19 15:12:35 +02:00
compilerplugins loplugin:indentation check for indent inside block 2021-10-20 15:39:38 +02:00
config_host qt6: Add a qt6 VCL plugin 2021-09-29 13:50:58 +02:00
configmgr loplugin:stringview (clang-cl) 2021-10-15 14:08:53 +02:00
connectivity loplugin:indentation check for indent inside block 2021-10-20 15:39:38 +02:00
cppcanvas In O[U]StringBuffer, make string_view params replacements for OUString ones 2021-10-11 14:22:22 +02:00
cppu In O[U]StringBuffer, make string_view params replacements for OUString ones 2021-10-11 14:22:22 +02:00
cppuhelper Simplify vector initialization in cppuhelper 2021-10-15 20:27:38 +02:00
cpputools drop 'using namespace std' in cpputools 2021-10-03 19:27:37 +02:00
cui Use MsLangId::getConfiguredSystemLanguage() 2021-10-19 00:20:36 +02:00
dbaccess loplugin:indentation check for indent inside block 2021-10-20 15:39:38 +02:00
desktop Improve an error message 2021-10-19 22:49:53 +02:00
dictionaries@6c9f1f6c25 Update git submodules 2021-10-04 15:25:10 +02:00
distro-configs --enable-lto for distro-configs/* that already use --enable-mergelibs 2021-10-14 15:58:07 +02:00
drawinglayer Use range based for loops 2021-10-19 22:33:11 +02:00
editeng Use MsLangId::getConfiguredSystemLanguage() 2021-10-19 00:20:36 +02:00
embeddedobj Fix a forgotten return of the value 2021-10-16 20:51:17 +02:00
embedserv Extended loplugin:referencecasting/redundantcast (clang-cl): embedserv 2021-09-30 15:27:52 +02:00
emfio Add documentation for the 'emfio' module 2021-10-21 08:15:19 +02:00
eventattacher Consolidate on C++17 std::scoped_lock instead of std::lock_guard 2021-08-03 12:20:53 +02:00
extensions Simplify vector initialization in extensions 2021-10-16 18:11:26 +02:00
external upgrade glm to 0.0.9.9.8 2021-10-20 18:24:40 +02:00
extras [pt-PT] Added ~94 words to autocorrect 2021-10-02 08:38:09 +02:00
filter loplugin:indentation check for indent inside block 2021-10-20 15:39:38 +02:00
forms Remove non-const Sequence::begin()/end() in internal code 2021-10-15 10:36:36 +02:00
formula loplugin:moveparam in formula 2021-10-11 12:19:03 +02:00
fpicker Bin dead code 2021-10-21 11:16:53 +02:00
framework framework: allow tests to run with read-only $SRCDIR 2021-10-20 10:19:20 +02:00
helpcompiler Simplify vector initialization in helpcompiler 2021-10-16 18:11:39 +02:00
helpcontent2@e9bbd8047b Update git submodules 2021-10-20 12:49:40 +02:00
hwpfilter loplugin:indentation check for indent inside block 2021-10-20 15:39:38 +02:00
i18nlangtag Related: tdf#145173 Add English (Israel) {en-IL} 0xB409 to language list 2021-10-19 20:16:13 +02:00
i18npool Resolves: tdf#145173 Add English (Israel) {en-IL} locale data 2021-10-19 23:09:53 +02:00
i18nutil speedup CharacterClassificationImpl::toUpper 2021-09-16 12:05:00 +02:00
icon-themes Breeze: tdf#144036 UNO Object Inspector icons 2021-10-20 11:52:18 +02:00
idl tdf#114441:Convert use of sal_uLong to better integer types 2021-08-13 10:43:58 +02:00
idlc Extend loplugin:stringviewparam to starts/endsWith: idlc 2021-09-23 07:27:14 +02:00
include svx: Don't end text edit mode for all views 2021-10-20 16:25:16 +02:00
instsetoo_native tdf#143686 increase a radiobutton's area size 2021-10-13 08:41:29 +02:00
io drop 'using namespace std' in h* i* j* 2021-10-05 22:22:55 +02:00
ios
javaunohelper
jurt
jvmaccess drop 'using namespace std' in h* i* j* 2021-10-05 22:22:55 +02:00
jvmfwk Make getVersionInformation always return a VersionInfo 2021-10-21 12:42:03 +02:00
l10ntools In O[U]StringBuffer, make string_view params replacements for OUString ones 2021-10-11 14:22:22 +02:00
librelogo Related: tdf#80713 add KeyIds to LibreLogo strings 2021-10-02 17:13:20 +02:00
libreofficekit loplugin:moveparam in various 2021-10-12 09:50:31 +02:00
lingucomponent drop 'using namespace std' in l* 2021-10-04 22:30:42 +02:00
linguistic Ditch that CharClass constructing ToLower() nonsense 2021-10-19 11:35:40 +02:00
lotuswordpro just do one lookup for loop detection 2021-10-17 22:02:47 +02:00
m4
nlpsolver cid#1489772 UR: Uninitialized read of field in constructor 2021-08-06 15:22:37 +02:00
o3tl Some more o3tl::starts/ends_with overloads 2021-09-21 23:32:02 +02:00
odk Typo: *adress* -> *address* (except from not translated German parts) 2021-10-09 22:38:36 +02:00
offapi tdf#129209 Doc't XInfobarProvider.idl 2021-10-20 08:21:54 +02:00
officecfg tdf#113512 Writer: 1.15 line spacing UNO command 2021-10-19 08:22:43 +02:00
onlineupdate drop 'using namespace std' in o* r* x* 2021-10-05 23:09:56 +02:00
oovbaapi
oox tdf#144917 PPTX import: fix hyperlinks on grouped shapes 2021-10-20 12:30:21 +02:00
opencl loplugin:indentation check for indent inside block 2021-10-20 15:39:38 +02:00
osx Add source files from fpicker/source/aqua 2021-10-21 10:04:17 +02:00
package Remove non-const Sequence::begin()/end() in internal code 2021-10-15 10:36:36 +02:00
pch Clean up remaining uses of boost::logic::tribool 2021-08-10 21:39:50 +02:00
postprocess use a dummy clipboard when running unit tests 2021-09-01 20:42:40 +02:00
pyuno loplugin:indentation check for indent inside block 2021-10-20 15:39:38 +02:00
qadevOOo cid#1492820 WMI: Inefficient Map Iterator 2021-10-11 11:37:40 +02:00
readlicense_oo update credits 2021-10-06 02:00:03 +02:00
registry Repurpose regcompare test as unoidl-check test 2021-10-15 07:59:25 +02:00
remotebridges
reportbuilder
reportdesign Simplify vector initialization in reportdesign 2021-10-16 18:12:49 +02:00
ridljar ridljar: check that UnoClassLoader is used for NativeLibraryLoader 2021-08-19 12:20:57 +02:00
sal Noop unify style for branches 2021-10-18 09:10:46 +02:00
salhelper salhelper : simplify salhelper::TimerManager initalization and use std::mutex 2021-10-18 08:41:48 +02:00
sax drop 'using namespace std' in sax/sc/scaddins/sfx2/shell 2021-10-04 22:25:07 +02:00
sc tdf#145235: sc_text_functions_test: Add unittest for empty delimiter 2021-10-20 22:15:53 +02:00
scaddins loplugin:indentation check for indent inside block 2021-10-20 15:39:38 +02:00
sccomp Remove non-const Sequence::begin()/end() in internal code 2021-10-15 10:36:36 +02:00
schema sw: paragraph styles: add ODT filter for a linked character style 2021-09-28 10:27:20 +02:00
scp2 ScriptForge - new SFWidgets library, new PopupMenu service 2021-10-15 16:39:48 +02:00
scripting Revert incompatible ScriptEditor change 2021-10-18 16:17:02 +02:00
sd svx: Don't end text edit mode for all views 2021-10-20 16:25:16 +02:00
sdext Simplify vector initialization in sdext 2021-10-16 18:11:13 +02:00
setup_native Make some scripts more portable 2021-08-20 12:32:22 +02:00
sfx2 Simplify vector initialization in sfx2 2021-10-16 19:02:18 +02:00
shell drop 'using namespace std' in sax/sc/scaddins/sfx2/shell 2021-10-04 22:25:07 +02:00
slideshow Avoid usage of incomplete types in member functions defined in-class 2021-10-15 13:20:21 +02:00
smoketest
solenv Drop support for dead GNU Java 2021-10-20 21:33:53 +02:00
soltools loplugin:indentation check for indent inside block 2021-10-20 15:39:38 +02:00
sot clang-tidy:clang-analyzer-optin.performance.Padding 2021-09-06 11:58:09 +02:00
starmath combine these contiguous ranges 2021-10-20 12:44:02 +02:00
stoc Remove non-const Sequence::begin()/end() in internal code 2021-10-15 10:36:36 +02:00
store clang-tidy:readability-redundant-member-init 2021-09-02 13:05:05 +02:00
svgio Use range based for loops 2021-10-17 17:04:00 +02:00
svl Simplify vector initialization in svl 2021-10-16 20:58:09 +02:00
svtools Related: tdf#145173 Add English (Israel) {en-IL} 0xB409 to language list 2021-10-19 20:16:13 +02:00
svx svx: Don't end text edit mode for all views 2021-10-20 16:25:16 +02:00
sw sw: avoid 'else' after 'break' in textboxhelper 2021-10-21 08:07:42 +02:00
swext
sysui uses of icon_filename are gone 2021-10-12 12:27:19 +02:00
test xmlsecurity: fix new tests on WNT 2021-10-18 08:28:25 +02:00
testtools Fix UNOIDL identifiers that started with lowercase and contained underlines 2021-08-31 11:02:37 +02:00
toolkit loplugin:indentation check for indent inside block 2021-10-20 15:39:38 +02:00
tools use std::vector::insert instead of push_back 2021-10-14 21:28:40 +02:00
translations@ef9ad5558c Update git submodules 2021-10-21 08:50:34 +02:00
ucb Related: tdf#145169 missing path separator in gio create folder 2021-10-19 15:28:08 +02:00
ucbhelper Remove non-const Sequence::begin()/end() in internal code 2021-10-15 10:36:36 +02:00
udkapi [API CHANGE] Remove unused css.resource.XLocale 2021-10-14 16:27:32 +02:00
uitest uitest: combine execute_modeless_dialog_through_command methods 2021-09-13 10:38:27 +02:00
UnoControls Remove non-const Sequence::begin()/end() in internal code 2021-10-15 10:36:36 +02:00
unodevtools Extend loplugin:stringviewparam to starts/endsWith: unodevtools 2021-09-22 19:59:35 +02:00
unoidl Repurpose regcompare test as unoidl-check test 2021-10-15 07:59:25 +02:00
unoil
unotest xmlsecurity: fix new tests on WNT 2021-10-18 08:28:25 +02:00
unotools Use MsLangId::getConfiguredSystemUILanguage() 2021-10-19 00:20:49 +02:00
unoxml Use <comphelper/servicehelper.hxx> implementing XUnoTunnel part 4 2021-09-15 06:08:14 +02:00
ure Adapt to cppu-/javamaker's idiosyncratic relative URL notation 2021-08-31 07:44:09 +02:00
uui Directly initialize vectors in uui 2021-10-14 10:28:44 +02:00
vbahelper Remove non-const Sequence::begin()/end() in internal code 2021-10-15 10:36:36 +02:00
vcl ofz: MemorySanitizer: use-of-uninitialized-value 2021-10-21 12:27:01 +02:00
wasm-qt Move README.wasm -> wasm-qt/README.md 2021-10-12 15:04:08 +02:00
winaccessibility drop 'using namespace std' in winaccessibility 2021-10-05 21:23:57 +02:00
wizards Fix typo 2021-10-16 10:21:56 +02:00
writerfilter loplugin:indentation check for indent inside block 2021-10-20 15:39:38 +02:00
writerperfect Avoid COW overhead using css::uno::Sequence 2021-10-14 06:00:49 +02:00
xmerge
xmlhelp Simplify Sequence in xmlhelp 2021-10-17 14:19:53 +02:00
xmloff loplugin:indentation check for indent inside block 2021-10-20 15:39:38 +02:00
xmlreader
xmlscript loplugin:indentation check for indent inside block 2021-10-20 15:39:38 +02:00
xmlsecurity Fix comment 2021-10-21 09:25:28 +03:00
.buckconfig
.buckversion
.clang-format
.editorconfig
.git-blame-ignore-revs
.gitattributes
.gitignore
.gitmodules
.gitpod.dockerfile
.gitpod.yml
.gitreview
antivirusDetection.vbs
autogen.sh
BUCK
config.guess
config.sub
config_host.mk.in remove unused variables 2021-10-11 11:30:45 +02:00
config_host_lang.mk.in
configure.ac more VS2022 integration 2021-10-14 13:35:48 +02:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst upgrade fontconfig to 2.13.94 2021-10-20 18:24:51 +02:00
g
hardened_runtime.xcent.in Fix typos 2021-08-16 23:34:24 +02:00
install-sh
install_deps.sh Make some scripts more portable 2021-08-20 12:32:22 +02:00
leak-suppress.txt
Library_merged.mk
lo.xcent Fix typos 2021-08-16 23:34:24 +02:00
logerrit Use ed25519 as default for ssh key pair generation 2021-09-29 09:34:21 +02:00
Makefile.fetch tdf#130795 use concurrent hashmap in SharedStringPool 2021-09-09 09:06:45 +02:00
Makefile.gbuild
Makefile.in Simplify VS IDE integration generation 2021-10-08 14:53:48 +02:00
README.cross
README.help.md
README.md
README.Solaris
Repository.mk ScriptForge - new SFWidgets library, new PopupMenu service 2021-10-15 16:39:48 +02:00
RepositoryExternal.mk xmlsecurity: fix --without-system-nss usage of NSS_SetAlgorithmPolicy 2021-10-19 19:28:54 +02:00
RepositoryFixes.mk
RepositoryModule_build.mk
RepositoryModule_host.mk
sanitize-ubsan-excludelist
setup.cfg
TEMPLATE.SOURCECODE.HEADER
tsan-suppress.txt more TSAN suppressions 2021-08-05 12:28:40 +02:00

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 2019 version 16.5
  • macOS:
    • Runtime: 10.10
    • Build: 10.14.4 + Xcode 11.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
  • Emscripten / WASM:
    • Runtime: a browser with SharedMemory support (threads + atomics)
    • Build: Qt 5.15 with Qt supported Emscripten 1.39.8
    • See README.wasm

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.md 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.md 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.libera.chat - 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.