Test repository to check push and ssh key
Find a file
Mike Kaganski 6e4d8f3af4 Simplify OAccessibleImplementationAccess' XUnoTunnel implementation
Change-Id: Iad82fe1e0e524d2c33ab2165bd08353c4967c57f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121976
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2021-09-12 10:43:36 +02:00
.git-hooks
.github
.vscode
accessibility tdf#114441: Convert use of sal_uLong to better integer types 2021-09-06 07:48:16 +02:00
android
animations
apple_remote
avmedia
basctl
basegfx no need to allocate this separately 2021-09-08 10:29:25 +02:00
basic Fix typos 2021-09-10 19:27:24 +02:00
bean
bin don't include Vulkan headers for Skia PCH 2021-09-11 00:00:23 +02:00
binaryurp clang:optin.performance.Padding in binaryurp 2021-09-10 21:19:07 +02:00
bridges tdf#130924 : replace debugging printf calls with SAL_INFO/SAL_WARN 2021-09-06 15:37:48 +02:00
canvas
chart2 Fix typos 2021-09-10 19:27:24 +02:00
cli_ure
codemaker
comphelper Simplify OAccessibleImplementationAccess' XUnoTunnel implementation 2021-09-12 10:43:36 +02:00
compilerplugins loplugin:redundantfcast ignore necessary temporaries 2021-09-09 12:58:23 +02:00
config_host
configmgr
connectivity Simplify OFileDriver::getDataDefinitionByConnection 2021-09-12 08:53:00 +02:00
cppcanvas
cppu clang:optin.performance.Padding in cppu 2021-09-10 21:19:48 +02:00
cppuhelper
cpputools
cui Drop unused multiple selection from UI files 2021-09-11 00:35:29 +02:00
dbaccess tdf#140951: fix crash on Base when accessibility used 2021-09-06 22:51:37 +02:00
desktop indexing: fix correct size and pos. for shapes + more tests 2021-09-08 15:18:52 +02:00
dictionaries@e9915d1db3
distro-configs a system cuckoo isn't available 2021-09-09 22:33:26 +02:00
drawinglayer clang:optin.performance.Padding 2021-09-11 14:59:36 +02:00
editeng clang:optin.performance.Padding in svx,editeng 2021-09-11 17:24:16 +02:00
embeddedobj
embedserv
emfio ofz: MemorySanitizer: use-of-uninitialized-value 2021-09-08 22:28:31 +02:00
eventattacher
extensions
external cid#1491408 Uninitialized scalar field 2021-09-11 14:35:50 +02:00
extras remove unnecessary meta.xml from autotext 2021-09-08 07:13:00 +02:00
filter simplify static_cast after dynamic_cast 2021-09-08 14:38:15 +02:00
forms convert some OSL_ENSURE -> assert 2021-09-08 22:17:05 +02:00
formula
fpicker
framework clang:optin.performance.Padding 2021-09-11 14:59:36 +02:00
helpcompiler
helpcontent2@d6f20e65e3 Update git submodules 2021-09-10 17:29:10 +02:00
hwpfilter
i18nlangtag
i18npool clang-tidy:clang-analyzer-optin.performance.Padding 2021-09-06 11:58:09 +02:00
i18nutil
icon-themes Colibre: tdf#104169 revise FatCross cursor to make it sharper 2021-09-05 21:59:08 +02:00
idl
idlc
include Simplify OAccessibleImplementationAccess' XUnoTunnel implementation 2021-09-12 10:43:36 +02:00
instsetoo_native
io
ios
javaunohelper
jurt
jvmaccess
jvmfwk
l10ntools
librelogo
libreofficekit sc: lok: introduce LOK_CALLBACK_DOCUMENT_BACKGROUND_COLOR callback 2021-09-07 08:11:22 +02:00
lingucomponent
linguistic
lotuswordpro ofz#27296 limit row span when fuzzing 2021-09-08 17:09:30 +02:00
m4
nlpsolver
o3tl
odk This example doesn't have any idl files 2021-09-10 14:56:06 +02:00
offapi Clarify that css::sdbc::XClob::getSubString takes 1-based pos 2021-09-10 18:53:57 +02:00
officecfg tdf#143549: 3 dots missing after Import/Export strings in File menu 2021-09-06 15:39:14 +02:00
onlineupdate
oovbaapi
oox cid#1454626: Uninitialized scalar field (oox/chartexport) 2021-09-11 11:40:39 +02:00
opencl
osx
package
pch
postprocess
pyuno Make this instance of cppu::OImplementationId function-local 2021-09-12 00:41:12 +02:00
qadevOOo
readlicense_oo tdf#130795 use concurrent hashmap in SharedStringPool 2021-09-09 09:06:45 +02:00
registry
remotebridges
reportbuilder
reportdesign
ridljar
sal clang:optin.performance.Padding in sal 2021-09-10 18:13:57 +02:00
salhelper
sax
sc Typo *Successfull->*Successful 2021-09-12 08:42:14 +02:00
scaddins
sccomp
schema
scp2
scripting
sd Typo *Successfull->*Successful 2021-09-12 08:42:14 +02:00
sdext
setup_native
sfx2 Typo: SAVE_SUCCESSFULL->SAVE_SUCCESSFUL 2021-09-12 07:51:14 +02:00
shell
slideshow
smoketest
solenv add -DSYSTEM_NSS to flags ignored for system PCH 2021-09-11 09:11:52 +02:00
soltools
sot clang-tidy:clang-analyzer-optin.performance.Padding 2021-09-06 11:58:09 +02:00
starmath Fix typos 2021-09-10 19:27:24 +02:00
stoc
store
svgio tdf#144052 reduce Primitive2D copying 2021-09-09 15:22:52 +02:00
svl workaround -Wshadow in libcuckoo 2021-09-09 11:16:49 +02:00
svtools clang:optin.performance.Padding 2021-09-11 14:59:36 +02:00
svx Typo *Successfull->*Successful 2021-09-12 08:42:14 +02:00
sw Typo *Successfull->*Successful 2021-09-12 08:42:14 +02:00
swext
sysui
test clang-tidy:readability-redundant-member-init 2021-09-06 09:04:17 +02:00
testtools
toolkit vcl: move OutputDevice rasterop functions to outdev.cxx 2021-09-07 08:15:00 +02:00
tools clang:optin.performance.Padding in tools 2021-09-10 21:19:24 +02:00
translations@4460c7babd Update git submodules 2021-09-08 13:20:42 +02:00
ucb clang-tidy:readability-redundant-member-init 2021-09-06 09:04:17 +02:00
ucbhelper
udkapi
uitest uitest: sc: factor out common code 2021-09-08 17:51:47 +02:00
UnoControls
unodevtools
unoidl
unoil
unotest
unotools clang-tidy:readability-redundant-member-init 2021-09-06 09:04:17 +02:00
unoxml clang-tidy:readability-redundant-member-init 2021-09-06 09:04:17 +02:00
ure
uui clang-tidy:readability-redundant-member-init 2021-09-06 09:04:17 +02:00
vbahelper
vcl ofz: MemorySanitizer: use-of-uninitialized-value 2021-09-11 14:35:15 +02:00
wasm-qt
winaccessibility tdf#100086 tdf#124832 wina11y: Implement IAccessibleTableCell 2021-09-08 20:06:00 +02:00
wizards Typo: bIsSuccessfull->bIsSuccessful 2021-09-12 07:51:29 +02:00
writerfilter reserve space in vector to reduce reallocations 2021-09-09 18:56:43 +02:00
writerperfect clang-tidy:readability-redundant-member-init 2021-09-06 09:06:18 +02:00
xmerge
xmlhelp
xmloff clang:optin.performance.Padding in xmloff 2021-09-11 17:23:48 +02:00
xmlreader
xmlscript
xmlsecurity
.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 tdf#130795 use concurrent hashmap in SharedStringPool 2021-09-09 09:06:45 +02:00
config_host_lang.mk.in
configure.ac --without-system-cuckoo to override --with-system-headers didn't work 2021-09-10 12:20:34 +02:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst tdf#130795 use concurrent hashmap in SharedStringPool 2021-09-09 09:06:45 +02:00
g
hardened_runtime.xcent.in
install-sh
install_deps.sh
leak-suppress.txt
Library_merged.mk
lo.xcent
logerrit
Makefile.fetch tdf#130795 use concurrent hashmap in SharedStringPool 2021-09-09 09:06:45 +02:00
Makefile.gbuild
Makefile.in
README.cross
README.help.md
README.md
README.Solaris
README.wasm
Repository.mk
RepositoryExternal.mk tdf#130795 use concurrent hashmap in SharedStringPool 2021-09-09 09:06:45 +02:00
RepositoryFixes.mk
RepositoryModule_build.mk
RepositoryModule_host.mk
sanitize-ubsan-excludelist
setup.cfg
TEMPLATE.SOURCECODE.HEADER
tsan-suppress.txt

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.