Test repository to check push and ssh key
Find a file
Mike Kaganski a5eba5fef0 Make optional use of SetThreadDescription in osl_setThreadName
... so that thread name could appear in crash dumps, and be
potentially available for logging on Windows 10 version 1607
and later.

Change-Id: I176ca1fce57e0532a226f85836b3889a8ffb2984
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116462
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2021-06-02 15:27:09 +02:00
.git-hooks
.github
.vscode vscode: tell gitlens how to linkifiy our buglinks in commits 2021-05-31 13:31:27 +02:00
accessibility
android
animations
apple_remote
avmedia
basctl GtkLabel:track-visited-links was removed 2021-05-31 20:50:54 +02:00
basegfx
basic loplugin:stringview (clang-cl) 2021-06-01 23:00:26 +02:00
bean
bin check-missing-unittests: add changes in svl/source/numbers/ 2021-06-01 09:28:56 +02:00
binaryurp
bridges gbuild: implement gb_Library_get_target_for_build 2021-05-29 17:30:26 +02:00
canvas canvas : use std::mutex in CanvasFactory 2021-05-31 15:20:25 +02:00
chart2 tdf#142467: Update comments with GCC bug ID 2021-05-31 09:57:37 +02:00
cli_ure
codemaker
comphelper
compilerplugins drop unused Widget::set_secondary 2021-06-01 12:19:34 +02:00
config_host configure: Refactor platform defaults 2021-06-01 15:30:59 +02:00
configmgr
connectivity configure: Refactor disabling DB drivers 2021-06-01 20:04:56 +02:00
cppcanvas
cppu
cppuhelper
cpputools
cui GtkLabel:track-visited-links was removed 2021-05-31 20:50:54 +02:00
dbaccess
desktop configure: Refactor platform defaults 2021-06-01 15:30:59 +02:00
dictionaries@19a842695c Update git submodules 2021-05-31 22:29:47 +02:00
distro-configs configure: Refactor platform defaults 2021-06-01 15:30:59 +02:00
drawinglayer no need to allocate this separately 2021-05-30 20:18:52 +02:00
editeng loplugin:noexceptmove 2021-06-01 16:26:08 +02:00
embeddedobj loplugin:stringview (clang-cl) 2021-06-01 23:00:26 +02:00
embedserv
emfio ofz#34847 Integer-overflow 2021-06-02 12:08:31 +02:00
eventattacher
extensions loplugin:stringview (clang-cl) 2021-06-01 23:00:26 +02:00
external cairo: just register and use external fontconfig 2021-06-01 22:12:02 +02:00
extras add & mod words in Korean Autocorrlist 2021-05-31 06:46:21 +02:00
filter no need to allocate SvxNumRule separately in SvxNumBulletItem 2021-05-31 15:50:04 +02:00
forms
formula
fpicker
framework fix leak in CppunitTest_framework_services 2021-06-01 12:57:37 +02:00
helpcompiler
helpcontent2@fae02ffb2a Update git submodules 2021-06-02 13:04:52 +02:00
hwpfilter
i18nlangtag Add Sesotho {st-LS} 0x8030 to language list 2021-06-01 21:24:17 +02:00
i18npool
i18nutil
icon-themes Sifr: Update extra large paste icons 2021-06-02 06:06:05 +02:00
idl
idlc loplugin:stringview 2021-05-30 18:17:00 +02:00
include Revert "sb138: #i115619# fix for MinGW" 2021-06-02 15:26:28 +02:00
instsetoo_native
io
ios
javaunohelper
jurt
jvmaccess
jvmfwk
l10ntools
librelogo
libreofficekit
lingucomponent
linguistic
lotuswordpro
m4
nlpsolver
o3tl
odk
offapi
officecfg tdf#142257 (related) Replace Ctrl+[] shortcuts in Calc for Hungarian 2021-05-31 09:47:32 +02:00
onlineupdate
oovbaapi
oox
opencl
osx
package improve exception message 2021-06-02 13:32:08 +02:00
pch
postprocess configure: Refactor disabling DB drivers 2021-06-01 20:04:56 +02:00
pyuno
qadevOOo
readlicense_oo
registry
remotebridges
reportbuilder
reportdesign
ridljar
sal Make optional use of SetThreadDescription in osl_setThreadName 2021-06-02 15:27:09 +02:00
salhelper
sax
sc tdf#113646 Add missing test for exporting conditional format font size. 2021-06-02 15:06:34 +02:00
scaddins
sccomp
schema
scp2
scripting std::unique_ptr -> std::optional 2021-05-29 17:51:17 +02:00
sd cid#1485150 Uncaught exception 2021-06-01 15:27:20 +02:00
sdext sdext : use std::mutex when possible 2021-05-31 15:21:39 +02:00
setup_native
sfx2 GetSlotServer can modify pImpl->pCaches 2021-06-01 10:47:10 +02:00
shell
slideshow tdf#92917: fix crash in Impress in viewmediashape (slideshow) 2021-06-02 08:38:43 +02:00
smoketest
solenv Fix tinderbox, remove Sesotho {st-LS} from solenv/inc/langlist.mk 2021-06-02 02:23:30 +02:00
soltools
sot no need to allocate these on the heap 2021-06-01 09:42:24 +02:00
starmath no need to allocate these on the heap 2021-06-01 10:52:47 +02:00
stoc std::unique->std::optional 2021-05-29 19:22:23 +02:00
store
svgio
svl loplugin:stringview (clang-cl) 2021-06-01 23:00:26 +02:00
svtools Add Sesotho {st-LS} 0x8030 to language list 2021-06-01 21:24:17 +02:00
svx this is not worth warning about 2021-06-02 13:12:59 +02:00
sw sw XHTML / reqif export: export non-PNG graphic shapes directly 2021-06-02 14:19:50 +02:00
swext
sysui
test
testtools
toolkit IsDisposed->isDisposed in toolkit 2021-05-28 20:37:18 +02:00
tools no need to allocate these on the heap 2021-05-28 13:28:31 +02:00
translations@387ea1005f Update git submodules 2021-05-31 16:40:33 +02:00
ucb no need to allocate these on the heap 2021-05-28 13:28:31 +02:00
ucbhelper
udkapi
uitest
UnoControls
unodevtools
unoidl
unoil
unotest
unotools
unoxml
ure
uui
vbahelper
vcl accept help-browser-symbolic as well as help-browser 2021-06-02 14:26:26 +02:00
wasm-qt
winaccessibility
wizards
writerfilter tdf#142404 DOCX c15: TabOverMargin no longer true in 2013+ 2021-06-01 14:57:02 +02:00
writerperfect
xmerge
xmlhelp
xmloff no need to allocate this separately 2021-05-30 12:28:43 +02:00
xmlreader
xmlscript crashtesting fix 2021-05-31 16:19:53 +02:00
xmlsecurity xmlsec: rename xmlsignaturehelper2 files 2021-06-01 22:07:33 +02:00
.buckconfig
.buckversion
.clang-format
.editorconfig
.git-blame-ignore-revs
.gitattributes
.gitignore configure: Keep warnings file and cat build ones 2021-05-31 13:21:24 +02:00
.gitmodules
.gitpod.dockerfile
.gitpod.yml
.gitreview
antivirusDetection.vbs
autogen.sh
BUCK
config.guess
config.sub
config_host.mk.in configure: Refactor platform defaults 2021-06-01 15:30:59 +02:00
config_host_lang.mk.in
configure.ac make --enable-gtk4 work again 2021-06-02 09:45:04 +02:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst
g
hardened_runtime.xcent.in
install-sh
install_deps.sh
leak-suppress.txt ignore crypto leaks for now 2021-06-01 13:45:07 +02:00
Library_merged.mk
lo.xcent
logerrit logerrit: drop some subcommands in favour of Gerrit defaults 2021-06-01 16:39:03 +02:00
Makefile.fetch
Makefile.gbuild
Makefile.in Remove config.warn during make distclean 2021-06-01 10:09:34 +02:00
README.cross
README.md
README.Solaris
README.wasm
Repository.mk
RepositoryExternal.mk cairo: just register and use external fontconfig 2021-06-01 22:12:02 +02:00
RepositoryFixes.mk gbuild: implement gb_Library_get_target_for_build 2021-05-29 17:30:26 +02:00
RepositoryModule_build.mk
RepositoryModule_host.mk
sanitize-ubsan-excludelist
setup.cfg
TEMPLATE.SOURCECODE.HEADER

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.freenode.net - 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.