Test repository to check push and ssh key
Find a file
Jan-Marek Glogowski 972aa39fb9 WASM open links in new browser tabs
I quickly gave up trying to understand what exactly clashes
between the Emscripten macros and OUString templates /
initializers. Not sure it can actually be "fixed".

Also disables the makeshared clang compilerplugin; currently
there is no way to get rid of all the false positive hits
when assigning the std::shared_ptr from a function instead of
a constructor call.

Change-Id: I8b13f179629ea63ff221584030556d2bedadc01b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128604
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
2022-01-20 10:26:04 +01:00
.git-hooks
.github
.vscode vscode-ide-integration: use gdb from $PATH by default 2022-01-17 15:06:32 +01:00
accessibility Recheck modules [a-c]* with IWYU 2022-01-13 08:26:15 +01:00
android Convert example document from cz to en-us 2021-12-09 15:42:36 +01:00
animations Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
apple_remote Add support for macOS SDK 12.0 2021-10-27 16:32:04 +02:00
avmedia tdf#145538 - Use range based for loops 2022-01-17 20:49:57 +01:00
basctl tdf#145614 Convert #define to enum or constexpr 2022-01-19 06:55:12 +01:00
basegfx tdf#145614 Convert #define to enum or constexpr 2022-01-19 06:55:12 +01:00
basic make comphelper::OInterfaceContainerHelper4 more threadsafe 2022-01-14 21:04:10 +01:00
bean
bin Dispatch commands: reviewed wiki layout and content 2022-01-14 11:05:38 +01:00
binaryurp Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
bridges WASM UNO: add a minimal dummy bridge 2022-01-19 14:26:09 +01:00
canvas Recheck modules [a-c]* with IWYU 2022-01-13 08:26:15 +01:00
chart2 use more concrete types in chart2, SvNumberFormatsSupplierObj 2022-01-19 20:55:07 +01:00
cli_ure drop 'using namespace std' in cli_ure 2021-10-07 13:38:06 +02:00
codemaker loplugin:flatten in canvas..cui 2021-12-21 15:55:46 +01:00
comphelper WASM more initial bits and pieces 2022-01-19 10:49:40 +01:00
compilerplugins WASM open links in new browser tabs 2022-01-20 10:26:04 +01:00
config_host Let CppunitTest_odk_checkapi build against the SDK include directory 2022-01-19 23:00:55 +01:00
configmgr Recheck modules [a-c]* with IWYU 2022-01-13 08:26:15 +01:00
connectivity Mysql/MariaDB: deal a bit better schema/table with existing functions 2022-01-20 08:40:54 +01:00
cppcanvas Recheck modules [a-c]* with IWYU 2022-01-13 08:26:15 +01:00
cppu WASM UNO: add a minimal dummy bridge 2022-01-19 14:26:09 +01:00
cppuhelper WASM UNO: add a minimal dummy bridge 2022-01-19 14:26:09 +01:00
cpputools Recheck modules [a-c]* with IWYU 2022-01-13 08:26:15 +01:00
cui tdf#146612 Drop confirmation question when applying new doc hyperlink 2022-01-18 23:21:06 +01:00
dbaccess Recheck modules d* with IWYU 2022-01-14 12:32:21 +01:00
desktop lok: avoid duplicate notification of tab-stop and ruler changes. 2022-01-19 15:09:34 +01:00
dictionaries@d37591fce4 Update git submodules 2022-01-19 22:46:16 +01:00
distro-configs WASM add strip flags to configure.ac 2022-01-19 12:00:48 +01:00
drawinglayer Recheck modules d* with IWYU 2022-01-14 12:32:21 +01:00
editeng Resolves: tdf#139974 Do not munge character after forced line break 2022-01-19 22:54:29 +01:00
embeddedobj Recheck modules [e-f]* with IWYU 2022-01-17 01:33:35 +01:00
embedserv Use GetModuleHandleExW instead of GetModuleHandleW 2022-01-05 16:20:36 +01:00
emfio Recheck modules [e-f]* with IWYU 2022-01-17 01:33:35 +01:00
eventattacher Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
extensions Recheck modules [e-f]* with IWYU 2022-01-17 01:33:35 +01:00
external WASM add fontconfig data to FS image 2022-01-19 19:28:12 +01:00
extras tdf#143956 Remove page size of Writer templates 4 2021-12-05 18:20:07 +01:00
filter SVG export: fix missing custom bullets 2022-01-17 13:23:57 +01:00
forms Recheck modules [e-f]* with IWYU 2022-01-17 01:33:35 +01:00
formula Recheck modules [e-f]* with IWYU 2022-01-17 01:33:35 +01:00
fpicker Recheck modules [e-f]* with IWYU 2022-01-17 01:33:35 +01:00
framework Recheck modules [e-f]* with IWYU 2022-01-17 01:33:35 +01:00
helpcompiler Don't build clucene if not needed 2021-12-21 17:29:55 +01:00
helpcontent2@cd1d33167a Update git submodules 2022-01-19 19:07:45 +01:00
hwpfilter Make HWPStyle::style type-safe 2022-01-13 14:29:12 +01:00
i18nlangtag Fix typos 2022-01-12 08:08:59 +01:00
i18npool localedata: keep the intermediate %_new.cxx file 2022-01-03 17:37:30 +01:00
i18nutil Avoid OUStringBuffer::toString where possible 2021-12-26 20:36:26 +01:00
icon-themes Fix icon links.txt parse error 2021-12-31 07:55:25 +01:00
idl idl : no need to use rtl::Static 2022-01-02 18:24:56 +01:00
idlc Unify condition names and fix "else" paths 2022-01-08 12:26:30 +01:00
include WASM optionally run any app via system loop 2022-01-19 17:06:48 +01:00
instsetoo_native Split overly long line into multiple logically separate pieces for sanity 2021-10-29 14:09:14 +02:00
io osl::Mutex->std::mutex in SocketConnection 2021-12-20 08:33:02 +01:00
ios
javaunohelper use more cppu::BaseMutex 2021-12-19 11:19:12 +01:00
jurt gbuild: introduce gb_%_linktarget_target 2021-12-31 17:58:18 +01:00
jvmaccess drop 'using namespace std' in h* i* j* 2021-10-05 22:22:55 +02:00
jvmfwk loplugin:unnecessaryvirtual 2021-12-07 07:05:29 +01:00
l10ntools loplugin:flatten in l10ntools..lotuswordpro 2021-12-22 07:43:22 +01:00
librelogo Resolves: tdf#97046 ensure build system variables start with gb_ 2021-11-04 10:48:24 +01:00
libreofficekit Add HAVE_(UNIX_)DLAPI config header define 2022-01-18 13:44:53 +01:00
lingucomponent Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
linguistic Avoid OUStringBuffer::toString where possible 2021-12-26 20:36:26 +01:00
lotuswordpro ofz: Use-of-uninitialized-value 2022-01-20 09:44:16 +01:00
m4 Drop remnants of --with-webdav=neon 2022-01-05 17:50:41 +01:00
nlpsolver cid#1489772 UR: Uninitialized read of field in constructor 2021-08-06 15:22:37 +02:00
o3tl -Werror,-Wundef (clang-cl) 2021-12-22 13:41:34 +01:00
odk Let CppunitTest_odk_checkapi build against the SDK include directory 2022-01-19 23:00:55 +01:00
offapi remove XTransformation UNO API 2022-01-15 15:43:44 +01:00
officecfg tdf#144862 set default render mode to LayoutAndMatchRender 2022-01-17 17:23:18 +01:00
onlineupdate drop 'using namespace std' in o* r* x* 2021-10-05 23:09:56 +02:00
oovbaapi
oox Let loplugin:nullptr look into template instantiations 2022-01-15 15:58:07 +01:00
opencl Prepare for removal of non-const operator[] from Sequence in opencl 2021-10-30 21:55:44 +02:00
osx use concrete types in chart2, SvxShapeRect 2021-12-30 08:25:43 +01:00
package optimise and simplify ZipOutputEntryInThread 2022-01-11 07:19:25 +01:00
pch Clean up remaining uses of boost::logic::tribool 2021-08-10 21:39:50 +02:00
postprocess WASM open links in new browser tabs 2022-01-20 10:26:04 +01:00
pyuno tdf#146621: handle an exception that may hang process at ExitProcess time 2022-01-07 14:30:30 +01:00
qadevOOo cid#1492820 WMI: Inefficient Map Iterator 2021-10-11 11:37:40 +02:00
readlicense_oo Bump copyright year to 2021 2021-01-01 00:00:00 +00:00
registry Unify condition names and fix "else" paths 2022-01-08 12:26:30 +01:00
remotebridges Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
reportbuilder Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
reportdesign remove E3D_INVENTOR_FLAG and convert SdrObjKind to scoped enum 2022-01-07 14:22:07 +01:00
ridljar ridljar: check that UnoClassLoader is used for NativeLibraryLoader 2021-08-19 12:20:57 +02:00
sal WASM setup as non-multiuser, desktop build 2022-01-19 10:50:35 +01:00
salhelper Rather use ScopeGuard to prevent catch and rethrow 2021-12-03 11:00:03 +01:00
sax osl::Mutex->std::mutex in FastSaxParserImpl 2022-01-04 07:07:20 +01:00
sc Resolve gtk3 crash of If1ffb50743292f3cc0c3271646d0538337977762 2022-01-18 09:15:46 +01:00
scaddins Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
sccomp Disallow multiple component files per library 2021-12-21 00:20:36 +01:00
schema ODP import/export: refer to theme from shape text color with effects 2021-12-13 10:10:10 +01:00
scp2 ScriptForge - new SFWidgets library, new PopupMenu service 2021-10-15 16:39:48 +02:00
scripting make comphelper::OInterfaceContainerHelper4 more threadsafe 2022-01-14 21:04:10 +01:00
sd tdf#146731: sd_layout: Add unittest 2022-01-17 21:32:08 +01:00
sdext Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
setup_native Bump copyright year to 2021 2021-01-01 00:00:00 +00:00
sfx2 tdf#140019: Revert "Don't disable "Send doc via email" ..." 2022-01-20 09:13:11 +01:00
shell WASM open links in new browser tabs 2022-01-20 10:26:04 +01:00
slideshow Disable epoxy test with --disable-gui 2022-01-05 18:00:59 +01:00
smoketest oss-fuzz: convert to static cross-build 2021-12-25 17:05:08 +01:00
solenv Let CppunitTest_odk_checkapi build against the SDK include directory 2022-01-19 23:00:55 +01:00
soltools loplugin:indentation check for indent inside block 2021-10-20 15:39:38 +02:00
sot use less SvStream::Flush() 2022-01-10 17:59:45 +01:00
starmath Drop useless indirection 2022-01-18 11:14:10 +01:00
static WASM merge wasm-qt into static module 2022-01-19 20:18:29 +01:00
stoc Let loplugin:nullptr look into template instantiations 2022-01-15 15:58:07 +01:00
store Let loplugin:nullptr look into template instantiations 2022-01-15 15:58:07 +01:00
svgio Fix Test::testTdf97663 2021-12-24 04:57:06 +01:00
svl make comphelper::OInterfaceContainerHelper4 more threadsafe 2022-01-14 21:04:10 +01:00
svtools Resolve tdf#124572 - Draw a faint line between tabs 2022-01-14 13:43:00 +01:00
svx tdf#135843 tdf#146731 Fix the missing border handling 2022-01-17 13:14:42 +01:00
sw tdf#128375: sw_uiwriter3: Add unittest 2022-01-20 09:21:27 +01:00
swext
sysui uses of icon_filename are gone 2021-10-12 12:27:19 +02:00
test Separate core drawinglayer func. into drawinglayercore library 2021-12-22 12:10:10 +01:00
testtools Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
toolkit make comphelper::OInterfaceContainerHelper4 more threadsafe 2022-01-14 21:04:10 +01:00
tools tdf#146754: consider xyz:123 as host:port when parsing URLs smart 2022-01-15 10:52:56 +01:00
translations@87e0eb58bf Update git submodules 2022-01-12 18:50:55 +01:00
ucb ucb: webdav-curl: add even more logging 2022-01-18 10:52:07 +01:00
ucbhelper make comphelper::OInterfaceContainerHelper4 more threadsafe 2022-01-14 21:04:10 +01:00
udkapi Update reference links for ISO 639 and 3166 2021-12-11 21:40:00 +01:00
uitest tdf#95217: sc: simplify test 2021-12-30 16:44:53 +01:00
UnoControls tdf#145614 Convert #define to enum or constexpr 2022-01-19 06:55:12 +01:00
unodevtools Extend loplugin:stringviewparam to starts/endsWith: unodevtools 2021-09-22 19:59:35 +02:00
unoidl Fix clang-cl -Zc:dllexportInlines- build 2021-12-02 07:39:52 +01:00
unoil
unotest Fix --disable-scripting for DESKTOP build 2021-12-03 06:46:24 +01:00
unotools tdf#146375 Cannot rename user-defined categories in template manager 2022-01-11 07:19:02 +01:00
unoxml osl::Mutex->std::mutex in CEvent 2021-12-25 07:15:33 +01:00
ure Don't install the uno script when uno is not build 2022-01-08 15:33:30 +01:00
uui Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
vbahelper Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
vcl WASM open links in new browser tabs 2022-01-20 10:26:04 +01:00
winaccessibility -Werror,-Wunused-parameter 2022-01-12 09:26:10 +01:00
wizards Fix case for "ByVal", "Variant", "UCase" 2021-12-30 10:34:54 +01:00
writerfilter RTF import: handle the pictureContrast and pictureBrightness shape props 2022-01-18 08:10:22 +01:00
writerperfect upload libmwaw 0.3.21 2021-12-14 08:08:46 +01:00
xmerge Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
xmlhelp Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
xmloff Fix typos 2022-01-05 19:11:20 +01:00
xmlreader Fix clang-cl -Zc:dllexportInlines- build 2021-12-02 07:39:52 +01:00
xmlscript Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
xmlsecurity gbuild: build static LO / link static executables 2022-01-12 11:12:46 +01:00
.buckconfig
.buckversion
.clang-format
.editorconfig
.git-blame-ignore-revs
.gitattributes
.gitignore Adapt .gitignore 2021-12-23 14:46:25 +01:00
.gitmodules
.gitpod.dockerfile
.gitpod.yml
.gitreview
antivirusDetection.vbs
autogen.sh
BUCK
config.guess
config.sub
config_host.mk.in WASM support external DWARF info 2022-01-19 17:10:21 +01:00
config_host_lang.mk.in
configure.ac Let CppunitTest_odk_checkapi build against the SDK include directory 2022-01-19 23:00:55 +01:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst upgrade poppler to 22.01.0 2022-01-14 10:03:07 +01:00
g Allow g to run git gc command 2022-01-15 15:42:34 +01:00
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 ucb: remove --with-webdav=neon 2021-12-15 15:24:52 +01:00
Makefile.gbuild gbuild: build static LO / link static executables 2022-01-12 11:12:46 +01:00
Makefile.in Add <module>.*all aliases to .all* and update help 2022-01-17 11:10:34 +01:00
README.cross
README.help.md
README.md Bump minimum macOS to 10.13 2022-01-12 08:51:49 +01:00
README.Solaris
Repository.mk WASM merge wasm-qt into static module 2022-01-19 20:18:29 +01:00
RepositoryExternal.mk WASM add fontconfig data to FS image 2022-01-19 19:28:12 +01:00
RepositoryFixes.mk WASM more initial bits and pieces 2022-01-19 10:49:40 +01:00
RepositoryModule_build.mk add drawinglayercore to merged libs 2021-12-23 11:38:24 +09:00
RepositoryModule_host.mk gbuild: build static LO / link static executables 2022-01-12 11:12:46 +01:00
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.13
    • 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.