Test repository to check push and ssh key
Find a file
Jean-Pierre Ledure 2a38a064df ScriptForge - Comments in code: pointers to help pages
Insert in each service module a pointer to the
help page on https://help.libreoffice.org
containing the user documentation of the given
service.

Example:
SF_Array.xba contains a pointer to next help page
https://help.libreoffice.org/latest/en-US/text/sbasic/shared/03/sf_array.html?DbPAR=BASIC

Only addition of comments lines.
No code change.

Change-Id: I83899d9fab247d23e2d5123378e2fb3fd0ade60e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117370
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
2021-06-17 14:40:49 +02:00
.git-hooks
.github
.vscode
accessibility use string_view in the Translate API 2021-06-17 14:32:11 +02:00
android tdf#142618 android: Don't crash when passed MIME type is null 2021-06-13 20:49:21 +02:00
animations
apple_remote -Werror,-Wunused-but-set-variable (Clang 13 trunk) 2021-06-10 15:52:51 +02:00
avmedia use string_view in the Translate API 2021-06-17 14:32:11 +02:00
basctl use string_view in the Translate API 2021-06-17 14:32:11 +02:00
basegfx basegfx: generalise tuples with template class Tuple2D and Tuple3D 2021-06-17 01:55:56 +02:00
basic use string_view in the Translate API 2021-06-17 14:32:11 +02:00
bean
bin remove SpinButton input-purpose properties 2021-06-16 21:42:48 +02:00
binaryurp
bridges
canvas fix big-endian code 2021-06-15 10:21:30 +02:00
chart2 use string_view in the Translate API 2021-06-17 14:32:11 +02:00
cli_ure
codemaker
comphelper Drop the "console" functionality of ProfileZone 2021-06-17 12:54:51 +02:00
compilerplugins Adapt o3tl::temporary to C++23 P2266R1 2021-06-17 14:16:59 +02:00
config_host HAVE_FIREBIRD_30 is not used anymore 2021-06-10 14:07:16 +02:00
configmgr
connectivity Simplify vector initializations 2021-06-11 18:12:48 +02:00
cppcanvas
cppu Elide trivial TypeDescriptor_Init_Impl::getMutex 2021-06-14 17:08:54 +02:00
cppuhelper
cpputools
cui use string_view in the Translate API 2021-06-17 14:32:11 +02:00
dbaccess vcl: outdevmap.hxx -> rendercontext/ImplMapRes.hxx 2021-06-15 09:25:10 +02:00
desktop use string_view in the Translate API 2021-06-17 14:32:11 +02:00
dictionaries@8cd38fb513 Update git submodules 2021-06-16 19:41:00 +02:00
distro-configs
drawinglayer "drawinglayer" -> "drawinglayer.emf" log area for some emf code 2021-06-11 10:18:55 +02:00
editeng use string_view in the Translate API 2021-06-17 14:32:11 +02:00
embeddedobj
embedserv
emfio drop EMF+ also when converting WMF, not just EMF 2021-06-11 23:59:32 +02:00
eventattacher
extensions use string_view in the Translate API 2021-06-17 14:32:11 +02:00
external use freshly compiled dump_syms.exe on windows for symbolinfo extraction 2021-06-11 17:05:08 +02:00
extras
filter use string_view in the Translate API 2021-06-17 14:32:11 +02:00
forms use string_view in the Translate API 2021-06-17 14:32:11 +02:00
formula use string_view in the Translate API 2021-06-17 14:32:11 +02:00
fpicker use string_view in the Translate API 2021-06-17 14:32:11 +02:00
framework use string_view in the Translate API 2021-06-17 14:32:11 +02:00
helpcompiler
helpcontent2@21d0197b37 Update git submodules 2021-06-17 14:18:26 +02:00
hwpfilter
i18nlangtag
i18npool We only support ICU version 4.6 or newer, so drop these checks 2021-06-14 15:26:23 +02:00
i18nutil We only support ICU version 4.6 or newer, so drop these checks 2021-06-14 15:26:23 +02:00
icon-themes
idl
idlc
include use string_view in the Translate API 2021-06-17 14:32:11 +02:00
instsetoo_native
io
ios
javaunohelper
jurt
jvmaccess
jvmfwk
l10ntools Adapt implicit OString return value construction to C++23 P2266R1 2021-06-16 23:05:34 +02:00
librelogo
libreofficekit
lingucomponent -Werror,-Wunused-but-set-variable (Clang 13 trunk) 2021-06-10 17:35:59 +02:00
linguistic
lotuswordpro
m4
nlpsolver Fewer array reference calls make the code more readable and more efficient. 2021-06-15 06:03:52 +02:00
o3tl allow altering the max size of o3tl::lru_cache 2021-06-09 21:20:09 +02:00
odk
offapi
officecfg Resolves tdf#142499 - Make fat cross cursor optional 2021-06-15 15:03:24 +02:00
onlineupdate
oovbaapi
oox use string_view in the Translate API 2021-06-17 14:32:11 +02:00
opencl
osx
package
pch
postprocess
pyuno
qadevOOo
readlicense_oo
registry
remotebridges
reportbuilder
reportdesign use string_view in the Translate API 2021-06-17 14:32:11 +02:00
ridljar
sal Adapt implicit OString return value construction to C++23 P2266R1 2021-06-16 23:05:34 +02:00
salhelper
sax
sc use string_view in the Translate API 2021-06-17 14:32:11 +02:00
scaddins use string_view in the Translate API 2021-06-17 14:32:11 +02:00
sccomp use string_view in the Translate API 2021-06-17 14:32:11 +02:00
schema schema: update to ODF 1.3 OS 2021-06-10 19:07:36 +02:00
scp2
scripting
sd use string_view in the Translate API 2021-06-17 14:32:11 +02:00
sdext Simplify vector initializations 2021-06-11 18:12:48 +02:00
setup_native
sfx2 use string_view in the Translate API 2021-06-17 14:32:11 +02:00
shell
slideshow vcl: outdevmap.hxx -> rendercontext/ImplMapRes.hxx 2021-06-15 09:25:10 +02:00
smoketest
solenv Adapt to flatpak-builder 1.0.14 split "dest" + "dest-filename" 2021-06-15 21:29:28 +02:00
soltools
sot Simplify Sequence/vector initializations 2021-06-11 18:55:00 +02:00
starmath use string_view in the Translate API 2021-06-17 14:32:11 +02:00
stoc Simplify Sequences initializations (sot/stock/svl/svtools/svx) 2021-06-10 08:30:12 +02:00
store
svgio
svl use string_view in the Translate API 2021-06-17 14:32:11 +02:00
svtools use string_view in the Translate API 2021-06-17 14:32:11 +02:00
svx use string_view in the Translate API 2021-06-17 14:32:11 +02:00
sw use string_view in the Translate API 2021-06-17 14:32:11 +02:00
swext
sysui math.desktop include "Spreadsheet" category 2021-06-11 11:10:29 +02:00
test schema: update to ODF 1.3 OS 2021-06-10 19:07:36 +02:00
testtools
toolkit
tools
translations@47d2e3a3e6 Update git submodules 2021-06-13 17:16:51 +02:00
ucb Simplify Sequences initializations (ucb) 2021-06-11 14:57:41 +02:00
ucbhelper
udkapi
uitest
UnoControls
unodevtools
unoidl
unoil
unotest
unotools use string_view in the Translate API 2021-06-17 14:32:11 +02:00
unoxml
ure
uui tdf#66553 - Add file/product name to title bar for password managers 2021-06-09 21:45:53 +02:00
vbahelper vcl: outdevmap.hxx -> rendercontext/ImplMapRes.hxx 2021-06-15 09:25:10 +02:00
vcl use string_view in the Translate API 2021-06-17 14:32:11 +02:00
wasm-qt
winaccessibility
wizards ScriptForge - Comments in code: pointers to help pages 2021-06-17 14:40:49 +02:00
writerfilter Remove some unused includes 2021-06-15 09:05:02 +02:00
writerperfect use string_view in the Translate API 2021-06-17 14:32:11 +02:00
xmerge
xmlhelp Simplify Sequences initializations (writerfilter/writerperfect/x*) 2021-06-11 16:03:10 +02:00
xmloff tdf#90401 xmloff: remove personal info of comments and changes 2021-06-17 10:43:08 +02:00
xmlreader
xmlscript Simplify Sequences initializations (writerfilter/writerperfect/x*) 2021-06-11 16:03:10 +02:00
xmlsecurity use string_view in the Translate API 2021-06-17 14:32:11 +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
config_host_lang.mk.in
configure.ac bump product version to 7.3.0.0.alpha0+ 2021-06-13 17:27:33 +02:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst
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 use freshly compiled dump_syms.exe on windows for symbolinfo extraction 2021-06-11 17:05:08 +02:00
README.cross
README.md
README.Solaris
README.wasm
Repository.mk
RepositoryExternal.mk
RepositoryFixes.mk
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.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.