Test repository to check push and ssh key
Find a file
Michael Weghorn 6bf771f0a5 wina11y: Use XAccessible* instead of void*
Change-Id: If52de3a71af63697815e4ec6a19f9139d5a6973d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122085
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2021-09-14 15:33:23 +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 loplugin:cow_wrapper 2021-09-13 15:05:56 +02:00
basic tdf#42982: improve UNO API error reporting 2021-09-14 11:16:07 +02:00
bean
bin ofz: better workaround for broken msan build 2021-09-12 22:27:02 +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 clang:optin.performance.Padding 2021-09-12 12:17:24 +02:00
cli_ure
codemaker
comphelper Simplify OAccessibleImplementationAccess' XUnoTunnel implementation 2021-09-12 10:43:36 +02:00
compilerplugins loplugin:mergeclasses 2021-09-13 17:19:39 +02:00
config_host
configmgr
connectivity Adapt to Bison 3.8 internal yyn -> yyrule rename 2021-09-14 14:53:38 +02:00
cppcanvas
cppu clang:optin.performance.Padding in cppu 2021-09-10 21:19:48 +02:00
cppuhelper
cpputools
cui Explicitly set cursor position for x11 'gen' backend, tdf#144457 follow-up 2021-09-13 17:18:30 +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 tdf#143854: Revert "tdf#57585 Add new bullet behaviour to impress" 2021-09-14 13:25:56 +02:00
embeddedobj
embedserv
emfio ofz: MemorySanitizer: use-of-uninitialized-value 2021-09-12 15:35:37 +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 ofz: MemorySanitizer: use-of-uninitialized-value 2021-09-14 12:19:28 +02:00
forms Simplify ORichTextModel's XUnoTunnel implementation 2021-09-12 10:43:46 +02:00
formula
fpicker
framework clang:optin.performance.Padding 2021-09-11 14:59:36 +02:00
helpcompiler
helpcontent2@b7491d7d5c Update git submodules 2021-09-14 15:09:31 +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 ofz: MemorySanitizer: use-of-uninitialized-value 2021-09-14 12:19:28 +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#100777 - Bind Ctrl+Up to uno:GoToStartOfPara (instead of prev paragraph) 2021-09-14 07:29:42 +02:00
onlineupdate
oovbaapi
oox tdf#141704 PPTX import: fix hyperlinks on images 2021-09-14 15:23:27 +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 loplugin:simplifypointertobool 2021-09-13 15:56:16 +02:00
salhelper
sax
sc tdf#144457: sc: Add UItest 2021-09-13 23:01:27 +02:00
scaddins
sccomp
schema
scp2
scripting
sd tdf#141704 PPTX import: fix hyperlinks on images 2021-09-14 15:23:27 +02:00
sdext allow build with poppler <= 0.71 2021-09-12 12:50:18 +02:00
setup_native
sfx2 Typo: SAVE_SUCCESSFULL->SAVE_SUCCESSFUL 2021-09-12 07:51:14 +02:00
shell
slideshow
smoketest
solenv loplugin:cow_wrapper 2021-09-13 15:05:56 +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 Check string bounds 2021-09-13 16:25:22 +02:00
svtools tdf#142415 mouse events not propogated to table control event handlers 2021-09-13 22:19:36 +02:00
svx svx: GetMarkedObjectByIndex() may return nullptr 2021-09-14 09:28:50 +02:00
sw ofz: Null-dereference READ 2021-09-14 14:50:29 +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: combine execute_modeless_dialog_through_command methods 2021-09-13 10:38:27 +02:00
UnoControls
unodevtools
unoidl
unoil
unotest
unotools ofz: better workaround for broken msan build 2021-09-12 22:27:02 +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-14 13:27:47 +02:00
wasm-qt
winaccessibility wina11y: Use XAccessible* instead of void* 2021-09-14 15:33:23 +02:00
wizards Typo: bIsSuccessfull->bIsSuccessful 2021-09-12 07:51:29 +02:00
writerfilter tdf#123642: keep last bookmark at the document end 2021-09-13 00:36:44 +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 configure: test_curl is always "yes" 2021-09-14 11:16:55 +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.