Test repository to check push and ssh key
Find a file
Samuel Mehrbrodt 7795a2adc0 Allow bootstrap variables in Java user classpath settings, 2nd try
Add a second mode: When a classpath starts with '$', bootstrap variables are recognized.
The classpath must then be provided as URL, not native path.

Change-Id: Idcc229a2b4e9a512b0e712ea932a6e4293907db3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152899
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2023-06-21 00:45:53 +02:00
.git-hooks Fix typo in .git-hooks/pre-commit 2023-06-20 02:10:44 +02:00
.github workflows: Update dessant/repo-lockdown to v3 2023-04-22 03:27:06 +02:00
.vscode vscode: add Cygwin terminal profile and config for VS debugger for Windows 2023-04-18 14:30:11 +02:00
accessibility tdf#105404 [API CHANGE] add index to accessiblity change event 2023-05-04 13:56:46 +02:00
android android: Update Android Gradle Plugin to 7.4.2 2023-03-13 08:25:39 +00:00
animations improve some usage of OInterfaceIteratorHelper4 2023-05-07 08:00:46 +02:00
apple_remote
avmedia Use getXWeak in avmedia 2023-04-29 21:35:24 +02:00
basctl Remove triplicated include 2023-05-24 15:02:38 +02:00
basegfx tdf#155852 same method for StepCount in OOXML as in rendering 2023-06-16 10:35:23 +02:00
basic Use getXWeak in basic 2023-06-18 09:34:24 +02:00
bean
bin merge expwrap into sax library 2023-05-30 08:45:46 +02:00
binaryurp Use getXWeak in binaryurp 2023-05-28 09:06:11 +02:00
bridges Fix compilation with latest Xcode with iOS SDK 16.4 2023-04-20 21:35:01 +02:00
canvas tdf#43671: Pass through emphasis mark setting with cairo canvas 2023-06-19 22:51:03 +02:00
chart2 tdf#155526 Add Period to trend line equation 2023-06-18 13:31:09 +02:00
cli_ure Avoid MSVC error C2039 2023-04-17 15:07:57 +02:00
codemaker loplugin:stringadd in c* 2023-03-24 15:29:18 +00:00
comphelper replace find_if by none_of 2023-05-26 12:49:14 +02:00
compilerplugins add unit test for loplugin:staticmethods 2023-06-06 11:35:08 +02:00
config_host improve comment about SKIA_DEBUG 2023-01-26 11:09:12 +00:00
configmgr Use getXWeak in configmgr 2023-06-18 08:41:27 +02:00
connectivity wrap OSQLParser::s_xLocaleData in vcl::DeleteOnDeinit 2023-06-15 18:39:31 +02:00
cppcanvas CppunitTest_cppcanvas_test: clang-format 2023-06-19 20:46:36 +02:00
cppu loplugin:stringadd in c* 2023-03-24 15:29:18 +00:00
cppuhelper tdf#153109 Use any_of instead of loop to check a range 2023-06-12 13:11:07 +02:00
cpputools Remove support for AIX 2023-01-27 07:28:16 +00:00
cui Allow bootstrap variables in Java user classpath settings, 2nd try 2023-06-21 00:45:53 +02:00
dbaccess tdf#43369 Refactor PosgresSQL connection setup 2023-06-20 16:21:27 +02:00
desktop Make encodeForXml accessible for other modules 2023-06-14 13:27:04 +02:00
dictionaries@2404521a6c Update git submodules 2023-05-24 12:37:23 +02:00
distro-configs Re-enable Skia in Flatpak builds 2023-03-01 16:26:32 +00:00
docmodel fix wrong transform type, error handling when JSON parsing 2023-06-09 14:12:18 +02:00
drawinglayer speed up startup time 2023-06-15 18:15:18 +02:00
editeng editeng: fix assertion uninitialized enum 2023-06-20 21:39:32 +02:00
embeddedobj add a route to get writer Floating Frame links under 'manage links' 2023-04-14 11:53:54 +02:00
embedserv Use getXWeak in embedserv 2023-05-28 10:03:59 +02:00
emfio tdf#143877 Fix failing tests caused by floating point precision 2023-06-13 12:59:33 +02:00
eventattacher Use getXWeak in eventattacher 2023-05-28 10:03:41 +02:00
extensions tdf#155376 partially convert SvCTLOptions to officecfg 2023-06-07 15:55:33 +02:00
external poppler: upgrade to release 23.06.0 2023-06-21 00:18:53 +02:00
extras Improved Luxembourgish (lb-LU) autocorrect file 2023-06-10 19:06:48 +02:00
filter oox, writerfilter, xmloff: use frozen data structures for static data 2023-06-17 12:31:24 +02:00
forms use more TypedWhichId in editeng 2023-05-25 07:52:21 +02:00
formula tdf#104487 - Function wizard: remember last used function category 2023-05-09 17:39:05 +02:00
fpicker Use getXWeak in fpicker 2023-05-27 17:09:53 +02:00
framework tdf#155699 - MRU: show pinned documents at the beginning of the list 2023-06-15 09:54:55 +02:00
helpcompiler loplugin:unnecessarygetstr extend to more std::string checking 2023-04-24 18:04:50 +02:00
helpcontent2@d8edb78135 Update git submodules 2023-06-18 15:09:05 +02:00
hwpfilter ofz#58400 Timeout 2023-04-30 10:58:48 +02:00
i18nlangtag Related: tdf#154832 Official name is Morisyen 2023-04-16 14:11:56 +02:00
i18npool Regression from speed up startup time(e51b4fc8c2) 2023-06-18 19:00:45 +02:00
i18nutil Remove recently unused CTLScriptType code 2023-05-29 16:23:07 +02:00
icon-themes Removed executable bits from png and svg files 2023-06-06 22:48:40 +02:00
idl Drop SvStream::WriteCharPtr 2023-04-10 23:13:32 +02:00
idlc/test/parser
include Allow bootstrap variables in Java user classpath settings, 2nd try 2023-06-21 00:45:53 +02:00
instsetoo_native Add configure switch to enable building the installer with WiX. 2023-05-23 11:47:19 +02:00
io Use getXWeak in io 2023-05-27 18:08:00 +02:00
ios
javaunohelper
jurt Fix Library_jpipe__staticsalhack 2023-02-26 22:07:57 +00:00
jvmaccess
jvmfwk Allow bootstrap variables in Java user classpath settings, 2nd try 2023-06-21 00:45:53 +02:00
l10ntools loplugin:stringview whitelist getLength and isEmpty 2023-04-12 12:57:22 +02:00
librelogo tdf#147906: Use python's math.hypot() for Pythagorean addition 2023-03-19 18:17:46 +00:00
libreofficekit notify async password change 2023-06-09 09:50:10 +02:00
lingucomponent tdf#64830: Don’t require hunspell dictionary for every Arabic locale 2023-06-07 17:56:49 +02:00
linguistic Simplify a bit 2023-06-02 19:29:27 +02:00
lotuswordpro ofz#58529 Null-dereference READ 2023-05-02 12:54:04 +02:00
m4 Fix typo 2023-04-06 14:15:12 +02:00
msicreator msicreator: fix hardcoded wix toolset path 2023-04-28 11:22:44 +02:00
nlpsolver
o3tl update loplugin:stringview* for o3tl::iterateCodePoints 2023-05-06 12:09:48 +02:00
odk Add script to find unused using declarations 2023-04-25 08:09:28 +02:00
offapi tdf#155810: Pass Kashida insertion positions through canvas 2023-06-18 22:01:53 +02:00
officecfg Mark obsolete options as such 2023-06-19 09:34:03 +02:00
onlineupdate NSS initialization guard 2023-01-25 12:24:34 +00:00
oovbaapi tdf#150281: Fix CentimetersToPoints in Calc 2023-03-13 15:16:24 +00:00
oox tdf#145651 Chart OOXML export: fix write error in exportSolidFill 2023-06-20 13:10:15 +02:00
opencl Drop SvStream::WriteCharPtr 2023-04-10 23:13:32 +02:00
osx
package Use getXWeak in package 2023-06-18 09:25:38 +02:00
pch merge expwrap into sax library 2023-05-30 08:45:46 +02:00
postprocess [API CHANGE] Drop obsolete TemplateRepositoryURL config key 2023-05-06 00:40:01 +02:00
pyuno WaE: Py_SetPythonHome is deprecated since python 3.11 2023-06-01 18:23:28 +02:00
qadevOOo Remove remnant commented code concerning recently dropped "XAccessibleStateSet" 2023-05-16 23:11:26 +02:00
readlicense_oo update credits 2023-06-07 14:36:39 +02:00
registry loplugin:stringadd in registry..sal 2023-03-25 19:03:28 +00:00
remotebridges
reportbuilder Fix some getImplementationName 2023-04-21 08:05:46 +02:00
reportdesign Use getXWeak in reportdesign 2023-06-04 22:35:28 +02:00
ridljar InputStreamToXInputStreamAdapter.readBytes() should read... 2023-02-28 11:12:06 +00:00
sal tdf#143148: Use pragma once instead of include guards 2023-06-16 17:38:03 +02:00
salhelper
sax Revert "Convert XFastParser into a normal C++ interface" 2023-06-01 15:07:18 +02:00
sc lok: sc: reset RTL if it is changed 2023-06-20 22:45:50 +02:00
scaddins Drop some defines in scaddins 2023-04-22 14:17:59 +02:00
sccomp Extend loplugin:cppunitassertequals to more argument types 2023-02-23 07:04:09 +00:00
schema xmloff: add color-type attribute to complex color 2023-05-27 06:00:31 +02:00
scp2 tdf#71096: xlr filetype not associated with Calc in Windows 2023-06-04 14:31:23 +02:00
scripting Use getXWeak in scripting 2023-04-30 20:35:05 +02:00
sd tdf#155863 sd: fix resizing of cropped images to original size 2023-06-20 18:31:41 +02:00
sdext Use getXWeak in sdext 2023-04-30 17:45:22 +02:00
setup_native improve dictionary package descriptions 2023-06-09 12:13:17 +02:00
sfx2 Resolves: tdf#155750 allow private:factory urls in floating frames 2023-06-20 12:28:02 +02:00
shell Use getXWeak in shell 2023-04-30 17:05:28 +02:00
slideshow use AlphaMask for variables when calling GetAlphaMask 2023-05-07 20:17:16 +02:00
smoketest
solenv CppunitTest_cppcanvas_test: clang-format 2023-06-19 20:46:36 +02:00
soltools Remove support for AIX 2023-01-27 07:28:16 +00:00
sot do not throw DisposedException when inside a dispose() method 2023-05-31 18:37:34 +02:00
starmath tdf#146547 sfx2: allow read-only documents to be modified 2023-06-16 16:52:43 +02:00
static tdf#142978 Remove a11y check dialog 2023-03-23 21:51:46 +00:00
stoc Use getXWeak in stoc 2023-06-18 11:10:20 +02:00
store Add cstdlib include necessary to build with gcc14 libstdc++ (tdf#155715) 2023-06-08 08:25:47 +02:00
svgio tdf#155814: only check parent style when it has a local css style 2023-06-20 20:52:13 +02:00
svl Use getXWeak in svl 2023-06-18 10:14:05 +02:00
svtools Simplify a bit 2023-06-19 09:34:08 +02:00
svx tdf#155863 sd: fix resizing of cropped images to original size 2023-06-20 18:31:41 +02:00
sw Remove German capitalization from some translatable strings 2023-06-20 17:03:02 +02:00
swext
sysui tdf#152598 Update .ico files 2023-03-11 18:09:28 +00:00
test SwModelTestBase: get rid of mustValidate 2023-05-31 18:56:31 +02:00
testtools Use getXWeak in testtools 2023-05-27 20:14:56 +02:00
toolkit do not throw DisposedException when inside a dispose() method 2023-05-31 18:37:34 +02:00
tools Use tools::Duration in friend double operator-() if DateTime has Time set 2023-06-20 16:52:23 +02:00
translations@25766b4c4f Update git submodules 2023-06-19 13:34:16 +02:00
ucb ooo#41037 Reject URLs containing unencoded NUL characters 2023-06-15 09:01:18 +02:00
ucbhelper Use getXWeak in ucbhelper 2023-05-27 20:14:40 +02:00
udkapi Introduce css.reflection.Dump singleton 2023-03-22 08:46:35 +00:00
uitest tdf#154131 Add Detect scientific number option 2023-05-26 23:57:16 +02:00
UnoControls Use getXWeak in UnoControls 2023-05-27 15:20:51 +02:00
unodevtools Revert "Use getXWeak in unodevtools" 2023-05-30 13:56:49 +02:00
unoidl
unoil allow native compile for windows aarch64 2023-04-11 12:06:25 +02:00
unotest loplugin:unnecessarygetstr 2023-05-05 10:11:54 +02:00
unotools tdf#38742 - Start Center: move last opened documents to the top 2023-06-19 07:47:59 +02:00
unoxml Use getXWeak in unoxml 2023-05-27 12:46:01 +02:00
ure Revert "Use getXWeak in ure" 2023-05-30 13:57:12 +02:00
uui Avoid conversions between OUString and OString in VCL 2023-04-02 18:46:47 +02:00
vbahelper use more XVclWindowPeer 2023-04-01 14:42:17 +02:00
vcl lok: vcl: fix "ImplConvertToAbsPos" function 2023-06-20 23:58:55 +02:00
winaccessibility tdf#155794 winaccessibility: no SolarMutex in getAccObjectPtr() 2023-06-13 16:06:59 +02:00
wizards Fix typo 2023-05-27 13:50:12 +02:00
writerfilter embeddedfontshelper: use u16string_view instead of char pointer 2023-06-19 21:52:25 +02:00
writerperfect Add script to find unused using declarations 2023-04-25 08:09:28 +02:00
xmerge
xmlhelp Use getXWeak in xmlhelp 2023-05-06 12:27:42 +02:00
xmloff XMLTextParagraphExport::DocumentListNodes must be a complete type 2023-06-20 12:57:37 +02:00
xmlreader
xmlscript Use getXWeak in xmlscript 2023-05-06 12:28:01 +02:00
xmlsecurity tdf#155665 Adding option to remember signatures for each save 2023-06-18 22:03:43 +02:00
.buckconfig
.buckversion
.clang-format
.editorconfig
.git-blame-ignore-revs
.gitattributes
.gitignore Add .cache (Qt Creator) and gdbtrace.log (gdb) 2023-04-28 21:54:20 +02:00
.gitmodules
.gitpod.dockerfile
.gitpod.yml
.gitreview
antivirusDetection.vbs
autogen.sh Remove support for AIX 2023-01-27 07:28:16 +00:00
BUCK
config.guess
config.sub
config_host.mk.in add --with-system-frozen 2023-06-18 13:31:37 +02:00
config_host_lang.mk.in
configure.ac add --with-system-frozen 2023-06-18 13:31:37 +02:00
COPYING
COPYING.LGPL
COPYING.MPL
cpp.hint
download.lst poppler: upgrade to release 23.06.0 2023-06-21 00:18:53 +02:00
g git-hooks: remove hint in './g -z' 2023-04-01 13:28:14 +02:00
hardened_runtime.xcent.in
install-sh
install_deps.sh
leak-suppress.txt
Library_merged.mk
lo.xcent.in Set entitlements in non-release in $(INSTROOTBASE) and .dmg package 2023-06-07 22:08:50 +02:00
logerrit
Makefile.fetch Add frozen library support - for compile-time dict, set support 2023-06-17 12:31:07 +02:00
Makefile.gbuild
Makefile.in add fetch to dependencies of gbuildtojson / Rdb target 2023-04-11 12:39:46 +02:00
README.cross
README.help.md
README.md Update Android baseline in README.md 2023-02-16 20:33:15 +00:00
README.Solaris
Repository.mk merge expwrap into sax library 2023-05-30 08:45:46 +02:00
RepositoryExternal.mk add --with-system-frozen 2023-06-18 13:31:37 +02:00
RepositoryFixes.mk
RepositoryModule_build.mk introduce docmodel comp., model::ThemeColor, use it in SvxColorItem 2023-01-12 23:15:58 +00:00
RepositoryModule_host.mk introduce docmodel comp., model::ThemeColor, use it in SvxColorItem 2023-01-12 23:15:58 +00:00
sanitize-ubsan-excludelist
setup.cfg
TEMPLATE.SOURCECODE.HEADER
tsan-suppress.txt update TSAN suppressions 2023-01-30 13:53:45 +00: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 and Developers Guide. 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.10
  • macOS:
    • Runtime: 10.15
    • Build: 12 (13 for aarch64) + Xcode 14
  • Linux:
    • Runtime: RHEL 7 or CentOS 7
    • Build: either GCC 7.0.0; or Clang 8.0.1 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 r23 and SDK 30.0.3
  • Emscripten / WASM:
    • Runtime: a browser with SharedMemory support (threads + atomics)
    • Build: Qt 5.15 with Qt supported Emscripten 1.39.8
    • See README.wasm

Java is required for building many parts of LibreOffice. In TDF Wiki article Development/Java, the exact modules that depend on Java are listed.

The baseline for Java is Java Development Kit (JDK) Version 11 or later. It is possible to build LibreOffice with JDK version 9, but it is no longer supported by the JDK vendors, thus it should be avoided.

If you want to use Clang with the LibreOffice compiler plugins, the minimal version of Clang is 12.0.1. 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.