Test repository to check push and ssh key
Find a file
Caolán McNamara 39fbcc330b gtk4: use a GtkPicture for arbitrary size/ratio toolbar images
so the wide .uno:BackgroundColor Toolbar MenuButton in
sidebarparagraph.ui is shown correctly

Change-Id: I231145092b5444fa2c70a7b3f0d85ddd6762eac1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124342
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-10-28 20:40:45 +02:00
.git-hooks
.github
.vscode
accessibility Prepare for removal of non-const operator[] from Sequence in accessibility 2021-10-28 20:09:41 +02:00
android LOK: maintain blocked command list per view 2021-10-22 17:49:20 +02:00
animations
apple_remote Add support for macOS SDK 12.0 2021-10-27 16:32:04 +02:00
avmedia Prepare for removal of non-const operator[] from Sequence in avmedia 2021-10-28 20:09:59 +02:00
basctl Prepare for removal of non-const operator[] from Sequence in basctl 2021-10-28 20:09:27 +02:00
basegfx
basic tdf#57308 - Basic IDE: Watching of a variable does not work 2021-10-27 09:29:34 +02:00
bean
bin upgrade fontconfig to 2.13.94 2021-10-20 18:24:51 +02:00
binaryurp
bridges Revert broken optimization attempt 2021-10-28 14:35:26 +02:00
canvas
chart2 tdf#141908: CppUnittests: replace usage of sal_Int32 with colors 2021-10-27 00:01:54 +02:00
cli_ure
codemaker
comphelper tdf#144374 DOCX: export the password for editing 2021-10-26 11:59:19 +02:00
compilerplugins tdf#142010 XLS import: fix bad calculation after editing 2021-10-26 09:51:17 +02:00
config_host
configmgr
connectivity loplugin:indentation (macOS) 2021-10-25 15:58:24 +02:00
cppcanvas
cppu d46f659c75 follow-up: simplify checks 2021-10-26 23:09:34 +02:00
cppuhelper
cpputools
cui loplugin:flatten 2021-10-21 14:58:51 +02:00
dbaccess Revert "Simplify vector initialization in dbaccess" 2021-10-22 18:05:12 +02:00
desktop use boost flat_map for faster map 2021-10-26 20:33:45 +02:00
dictionaries@6c9f1f6c25
distro-configs
drawinglayer Move variable declaration to its use in if() condition 2021-10-27 11:33:30 +02:00
editeng
embeddedobj tdf#42982: improve UNO API error reporting 2021-10-24 16:46:07 +02:00
embedserv
emfio Update emfio documentation 2021-10-26 15:14:55 +02:00
eventattacher
extensions return weld::Builder by unique_ptr 2021-10-22 12:05:19 +02:00
external endian check in internal neon looks dubious 2021-10-28 14:41:17 +02:00
extras
filter Converting pointer to reference in svgwriter 2021-10-25 11:22:47 +02:00
forms
formula
fpicker Add support for macOS SDK 12.0 2021-10-27 16:32:04 +02:00
framework return weld::Builder by unique_ptr 2021-10-22 12:05:19 +02:00
helpcompiler Revert "Simplify vector initialization in helpcompiler" 2021-10-22 19:30:32 +02:00
helpcontent2@7f8b84bbf7 Update git submodules 2021-10-27 01:04:41 +02:00
hwpfilter loplugin:indentation check for indent inside block 2021-10-20 15:39:38 +02:00
i18nlangtag Introduce LanguageTag::convertToLanguageTypeWithFallback(Locale) 2021-10-25 13:07:50 +02:00
i18npool Missing static 2021-10-25 11:32:02 +02:00
i18nutil
icon-themes Breeze: tdf#144036 UNO Object Inspector icons 2021-10-20 11:52:18 +02:00
idl
idlc
include Prepare for removal of non-const operator[] from Sequence in include 2021-10-28 20:09:19 +02:00
instsetoo_native
io
ios
javaunohelper
jurt
jvmaccess
jvmfwk Restrict macOS ARM64 to Java >= 17 2021-10-21 15:13:42 +02:00
l10ntools
librelogo
libreofficekit LOK: maintain blocked command list per view 2021-10-22 17:49:20 +02:00
lingucomponent
linguistic Ditch that CharClass constructing ToLower() nonsense 2021-10-19 11:35:40 +02:00
lotuswordpro
m4
nlpsolver
o3tl
odk Cleanup DocumentLoader C++ SDK example 2021-10-25 09:05:23 +02:00
offapi XAccessibleSelection: Don't reference non-existing methods in doc 2021-10-28 20:36:30 +02:00
officecfg tdf#145132 SwNavigator: Add tracking option for all categories 2021-10-25 06:05:21 +02:00
onlineupdate
oovbaapi
oox Drop ContainerHelper::vectorToSequence and use comphelper::containerToSequence 2021-10-26 21:35:13 +02:00
opencl loplugin:indentation check for indent inside block 2021-10-20 15:39:38 +02:00
osx Add source files from fpicker/source/aqua 2021-10-21 10:04:17 +02:00
package
pch
postprocess
pyuno loplugin:indentation check for indent inside block 2021-10-20 15:39:38 +02:00
qadevOOo
readlicense_oo update credits 2021-10-27 12:41:52 +02:00
registry
remotebridges
reportbuilder
reportdesign Replace macros from reportdesign/source/ui/inspection/metadata.cxx 2021-10-26 23:44:26 +02:00
ridljar
sal move access inside mutex guard 2021-10-23 20:47:38 +02:00
salhelper loplugin:flatten 2021-10-21 14:58:51 +02:00
sax
sc sc: split UITest_chart in two 2021-10-28 11:02:54 +02:00
scaddins loplugin:indentation check for indent inside block 2021-10-20 15:39:38 +02:00
sccomp
schema
scp2
scripting
sd sd: split CppunitTest_sd_import_tests in two 2021-10-27 16:13:41 +02:00
sdext Revert part of "Simplify vector initialization in sdext" 2021-10-22 19:17:50 +02:00
setup_native
sfx2 Fix names of function parameters referenced in comment 2021-10-27 08:37:42 +02:00
shell
slideshow
smoketest
solenv -flto: only use firstword of PARALLELISM 2021-10-28 12:07:06 +02:00
soltools loplugin:indentation check for indent inside block 2021-10-20 15:39:38 +02:00
sot
starmath Typo: aFontHeigt->aFontHeight (starmath/smediteng.cxx) 2021-10-22 20:25:16 +02:00
stoc
store
svgio Add documentation for the 'svgio' module 2021-10-26 15:08:07 +02:00
svl tdf#131025 swtable: don't apply number format to non-number text 2021-10-26 16:04:13 +02:00
svtools make fat valueset selection rectangles solid 2021-10-27 16:45:33 +02:00
svx center the content of the underline control 2021-10-28 20:40:27 +02:00
sw tdf#131755 SwNavigator: Fix drag mode configuration restore 2021-10-27 22:50:32 +02:00
swext
sysui
test use pull model also for LOK text selection 2021-10-25 19:30:34 +02:00
testtools
toolkit loplugin:indentation check for indent inside block 2021-10-20 15:39:38 +02:00
tools -Werror,-Wunused-macros 2021-10-28 15:48:06 +02:00
translations@569442292a Update git submodules 2021-10-26 11:03:40 +02:00
ucb Related: tdf#145169 missing path separator in gio create folder 2021-10-19 15:28:08 +02:00
ucbhelper
udkapi
uitest uitest: execute setActiveFrame in load_file first 2021-10-25 17:54:39 +02:00
UnoControls
unodevtools
unoidl loplugin:flatten 2021-10-21 14:58:51 +02:00
unoil
unotest
unotools loplugin:flatten 2021-10-21 14:58:51 +02:00
unoxml
ure
uui
vbahelper
vcl gtk4: use a GtkPicture for arbitrary size/ratio toolbar images 2021-10-28 20:40:45 +02:00
wasm-qt
winaccessibility
wizards ScriptForge - (SF_Chart) fix Resize() method must return a Boolean 2021-10-28 15:15:01 +02:00
writerfilter tdf#145215: docx: do not initialize prefix/suffix and include levels 2021-10-23 21:28:25 +02:00
writerperfect
xmerge
xmlhelp
xmloff tdf#141301: extrusion-skew angle value -135 is not written to file... 2021-10-28 14:15:35 +02:00
xmlreader
xmlscript loplugin:indentation check for indent inside block 2021-10-20 15:39:38 +02:00
xmlsecurity loplugin:simplifybool (clang-cl) 2021-10-28 14:34:54 +02:00
.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 fix AVX512 detection 2021-10-27 15:02:11 +02:00
config_host_lang.mk.in
configure.ac Don't auto-enable --enable-online-update for Win/Mac 2021-10-28 15:43:48 +02:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst upgrade fontconfig to 2.13.94 2021-10-20 18:24:51 +02:00
g
hardened_runtime.xcent.in
install-sh
install_deps.sh
leak-suppress.txt
Library_merged.mk
lo.xcent
logerrit
Makefile.fetch
Makefile.gbuild
Makefile.in
README.cross
README.help.md
README.md
README.Solaris
Repository.mk
RepositoryExternal.mk xmlsecurity: fix --without-system-nss usage of NSS_SetAlgorithmPolicy 2021-10-19 19:28:54 +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.