Test repository to check push and ssh key
Find a file
Mike Kaganski 6689f49b27 Drop ComSmart and use sal::systools::COMReference
Change-Id: Ib4f5d160b66c01caa507f536fb487bc5ee527815
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127045
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2021-12-18 21:23:42 +01:00
.git-hooks
.github
.vscode VSCode IDE integration: add safe path for pretty printers 2021-12-16 22:34:31 +01:00
accessibility Fix --disable-scripting for DESKTOP build 2021-12-03 06:46:24 +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
avmedia use more cppu::BaseMutex 2021-12-18 19:49:53 +01:00
basctl Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
basegfx improve loplugin:cow_wrapper 2021-12-07 17:46:23 +01:00
basic osl::Mutex->std::mutex in ModuleInvocationProxy 2021-12-18 19:49:38 +01:00
bean
bin drop ui-previewer 2021-12-16 17:51:14 +01:00
binaryurp Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
bridges gbuild: introduce plugin + loader concepts 2021-12-01 18:37:23 +01:00
canvas Refactor some buildsytem stuff (mostly whitespace) 2021-12-13 16:48:47 +01:00
chart2 use OInterfaceContainerHelper3 in CommandDispatch 2021-12-17 07:26:43 +01:00
cli_ure
codemaker
comphelper add unit tests for OInterfaceContainerHelper3 2021-12-18 20:50:34 +01:00
compilerplugins Fix loplugin:unusedvariablecheck 2021-12-18 07:42:35 +01:00
config_host improve the script for reducing symbol exports 2021-12-01 12:13:59 +01:00
configmgr tdf#81146: try to make saving registrymodifications.xcu more robust 2021-12-14 11:37:24 +01:00
connectivity loplugin:unusedvariablecheck improve 2021-12-17 15:02:00 +01:00
cppcanvas Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
cppu Fix clang-cl -Zc:dllexportInlines- build 2021-12-02 07:39:52 +01:00
cppuhelper Remove empty docpp doxygen comments around namespaces 2021-12-17 08:28:45 +01:00
cpputools
cui Fix typos 2021-12-17 20:43:28 +01:00
dbaccess remove some unused defines 2021-12-18 20:51:18 +01:00
desktop ensure invalidate tiles LOK message range checking 2021-12-16 15:21:18 +01:00
dictionaries@a578543152 Update git submodules 2021-12-02 12:46:42 +01:00
distro-configs Simplify CURL and LIBCMIS tests 2021-12-15 19:53:44 +01:00
drawinglayer Remove transitional header drawinglayer/primitive2d/polygonprimitive2d.hxx 2021-12-16 08:58:04 +01:00
editeng sd theme: add a "theme" palette to the color picker 2021-12-17 11:40:09 +01:00
embeddedobj cid#1495784 Missing move assignment operator 2021-12-18 17:42:04 +01:00
embedserv Drop ComSmart and use sal::systools::COMReference 2021-12-18 21:23:42 +01:00
emfio Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
eventattacher Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
extensions Simplify BSTR RAII 2021-12-18 13:20:47 +01:00
external Update liborcus to 0.17.2. 2021-12-16 04:45:04 +01:00
extras tdf#143956 Remove page size of Writer templates 4 2021-12-05 18:20:07 +01:00
filter Fix typos 2021-12-17 20:43:28 +01:00
forms cid#1495784 Missing move assignment operator 2021-12-18 16:01:16 +01:00
formula Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
fpicker Fix typos 2021-12-11 16:05:03 +01:00
framework Fix typos 2021-12-17 20:43:28 +01:00
helpcompiler
helpcontent2@2cfcfbcaae Update git submodules 2021-12-18 21:23:39 +01:00
hwpfilter tdf#145630 Changed atan to atan2 where appropriate 2021-12-15 01:32:43 +01:00
i18nlangtag Change Interslavic Latin tag to {art-Latn-x-interslv}, tdf#145853 follow-up 2021-12-18 15:41:02 +01:00
i18npool Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
i18nutil
icon-themes use more OUStringLiteral in various 2021-12-08 16:57:59 +01:00
idl
idlc
include use more cppu::BaseMutex 2021-12-18 20:50:58 +01:00
instsetoo_native
io Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
ios
javaunohelper
jurt
jvmaccess
jvmfwk loplugin:unnecessaryvirtual 2021-12-07 07:05:29 +01:00
l10ntools
librelogo
libreofficekit svp: normalize DoYield 2021-11-30 20:39:33 +01:00
lingucomponent Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
linguistic use more OInterfaceContainer3::notifyEach 2021-12-17 07:26:25 +01:00
lotuswordpro Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
m4 Simplify CURL and LIBCMIS tests 2021-12-15 19:53:44 +01:00
nlpsolver
o3tl improve the script for reducing symbol exports 2021-12-01 12:13:59 +01:00
odk
offapi
officecfg tdf#131063 Add Navigate on select expert option 2021-12-18 04:44:44 +01:00
onlineupdate
oovbaapi
oox VML import: handle <v:imagedata gain="..." blacklevel="..."> 2021-12-16 12:43:11 +01:00
opencl
osx Retire build-nocheck 2021-12-06 20:54:26 +01:00
package Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
pch
postprocess Build services_constructors.list from target component files 2021-12-14 07:37:41 +01:00
pyuno Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
qadevOOo
readlicense_oo ucb: remove --with-webdav=neon 2021-12-15 15:24:52 +01:00
registry
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 some unused defines 2021-12-18 20:51:18 +01:00
ridljar
sal Fix typos 2021-12-16 21:52:43 +01:00
salhelper Rather use ScopeGuard to prevent catch and rethrow 2021-12-03 11:00:03 +01:00
sax Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
sc tdf#103331: Add a test case for inherited font weight attributes. 2021-12-18 18:08:33 +01:00
scaddins Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
sccomp Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
schema ODP import/export: refer to theme from shape text color with effects 2021-12-13 10:10:10 +01:00
scp2
scripting use more cppu::BaseMutex 2021-12-18 19:50:07 +01:00
sd tdf#146019 Remove confirmation dialog about applying images EXIF rotation 2021-12-17 17:33:49 +01:00
sdext Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
setup_native
sfx2 loplugin:unusedvariablecheck improve 2021-12-17 15:02:00 +01:00
shell Refactor some buildsytem stuff (mostly whitespace) 2021-12-13 16:48:47 +01:00
slideshow Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
smoketest Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
solenv Drop ComSmart and use sal::systools::COMReference 2021-12-18 21:23:42 +01:00
soltools
sot Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
starmath Fix typos 2021-12-17 20:43:28 +01:00
stoc use more cppu::BaseMutex 2021-12-18 19:08:05 +01:00
store
svgio Remove transitional header drawinglayer/primitive2d/polygonprimitive2d.hxx 2021-12-16 08:58:04 +01:00
svl Fix typos 2021-12-16 21:52:43 +01:00
svtools Resolves: tdf#145853 Add Interslavic Latin|Cyrillic to language list 2021-12-18 01:40:48 +01:00
svx use more cppu::BaseMutex 2021-12-18 20:50:58 +01:00
sw cid#1495785 silence Unchecked return value 2021-12-18 16:04:19 +01:00
swext
sysui
test
testtools Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
toolkit use more cppu::BaseMutex 2021-12-18 19:08:05 +01:00
tools Make BOM detection slightly more straightforward 2021-12-10 14:18:30 +01:00
translations@9658a28df4
ucb loplugin:unusedvariablecheck improve 2021-12-17 15:02:00 +01:00
ucbhelper osl::Mutex->std::mutex in ucbhelper::PropertyValueSet 2021-12-18 18:18:56 +01:00
udkapi Update reference links for ISO 639 and 3166 2021-12-11 21:40:00 +01:00
uitest uitest: simplify code 2021-12-15 13:26:36 +01:00
UnoControls Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
unodevtools
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 Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
unoxml Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
ure Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +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 tdf#146225 Revert "Use g_get_real_time instead of g_get_current_time" 2021-12-17 12:38:21 +01:00
wasm-qt drop ui-previewer 2021-12-16 17:51:14 +01:00
winaccessibility Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
wizards Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
writerfilter tdf#104823: basic support for reading field data from databinding 2021-12-18 15:54:11 +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 2021-12-17 20:43:28 +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 Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
.buckconfig
.buckversion
.clang-format
.editorconfig
.git-blame-ignore-revs
.gitattributes
.gitignore gbuild: serialize dynamic link for static builds 2021-12-01 13:06:55 +01:00
.gitmodules
.gitpod.dockerfile
.gitpod.yml
.gitreview
antivirusDetection.vbs
autogen.sh
BUCK
config.guess
config.sub
config_host.mk.in ucb: remove --with-webdav=neon 2021-12-15 15:24:52 +01:00
config_host_lang.mk.in
configure.ac Accept iOS SDK 15.2 2021-12-16 21:30:32 +01:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst Update liborcus to 0.17.2. 2021-12-16 04:45:04 +01:00
g
hardened_runtime.xcent.in
install-sh
install_deps.sh
leak-suppress.txt
Library_merged.mk
lo.xcent
logerrit
Makefile.fetch ucb: remove --with-webdav=neon 2021-12-15 15:24:52 +01:00
Makefile.gbuild Generally determine Rdb content from gb_*_set_componentfile calls 2021-12-10 08:14:24 +01:00
Makefile.in Implement building ComponentTarget directly 2021-12-18 12:56:51 +01:00
README.cross
README.help.md
README.md
README.Solaris
Repository.mk drop ui-previewer 2021-12-16 17:51:14 +01:00
RepositoryExternal.mk Refactor Library_sal_textenc build condition 2021-12-16 11:17:08 +01:00
RepositoryFixes.mk
RepositoryModule_build.mk
RepositoryModule_host.mk Fix --disable-avmedia for DESKTOP build 2021-12-01 16:50:23 +01:00
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.12
    • 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.