Test repository to check push and ssh key
Find a file
Stephan Bergmann 3ead1e6245 Extend loplugin:stringviewparam to starts/endsWith: scaddins
Change-Id: I4e6d9d8f429e9a9133a494790522217638ad18e5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122484
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2021-09-22 21:24:21 +02:00
.git-hooks
.github
.vscode
accessibility clean up ambiguous confusing rectangle APIs like IsInside() 2021-09-20 12:10:44 +02:00
android
animations Use <comphelper/servicehelper.hxx> implementing XUnoTunnel part 5 2021-09-15 06:08:27 +02:00
apple_remote
avmedia
basctl clean up ambiguous confusing rectangle APIs like IsInside() 2021-09-20 12:10:44 +02:00
basegfx loplugin:constvars 2021-09-15 12:43:21 +02:00
basic Fix typos 2021-09-22 06:24:49 +02:00
bean
bin ofz: can now undo temp -L/usr/msan/lib hack 2021-09-20 20:58:17 +02:00
binaryurp
bridges
canvas
chart2 clean up ambiguous confusing rectangle APIs like IsInside() 2021-09-20 12:10:44 +02:00
cli_ure
codemaker
comphelper Drop unused osl_FileStatus_Mask_FileURL 2021-09-20 13:22:31 +02:00
compilerplugins Adapt to Clang 14 trunk change in diagnostics 2021-09-22 20:24:14 +02:00
config_host
configmgr Some more uses of rtl_math_(u)StringToDouble 2021-09-17 11:14:40 +02:00
connectivity drop comments about disabling optimization 2021-09-22 13:24:56 +02:00
cppcanvas
cppu use clang-cl's -Zc:dllexportInlines- for clang-cl builds 2021-09-20 22:50:59 +02:00
cppuhelper use MSVC's /Zc:inline option to reduce binary size 2021-09-20 22:51:12 +02:00
cpputools
cui reduce cost of some getProperty calls (tdf#125892) 2021-09-21 14:51:37 +02:00
dbaccess don't link to vbahelper for --disable-scripting case 2021-09-22 14:38:27 +02:00
desktop lok-desktop: unit tests for LOK_CALLBACK_TABLE_SELECTED 2021-09-22 09:12:53 +02:00
dictionaries@e9915d1db3
distro-configs
drawinglayer reduce copying in BufferedDecompositionPrimitive2D 2021-09-22 12:30:15 +02:00
editeng vcl: remove OutputDevice's GetDevFontSizeCount() and GetDevFontSize() 2021-09-21 07:54:59 +02:00
embeddedobj Use <comphelper/servicehelper.hxx> implementing XUnoTunnel part 4 2021-09-15 06:08:14 +02:00
embedserv
emfio ofz: MemorySanitizer: use-of-uninitialized-value 2021-09-16 22:07:44 +02:00
eventattacher
extensions lock older -> lock order 2021-09-22 13:27:08 +02:00
external do not special-case Clang for Skia on Windows Arm64 2021-09-21 10:30:00 +02:00
extras Sorted the list except emojis. 2021-09-17 13:34:52 +02:00
filter ofz: MemorySanitizer: use-of-uninitialized-value 2021-09-22 13:28:34 +02:00
forms Use <comphelper/servicehelper.hxx> implementing XUnoTunnel part 5 2021-09-15 06:08:27 +02:00
formula remove GetCharClassPtr from SvtSysLocale 2021-09-17 08:40:59 +02:00
fpicker
framework Remove some "Attention" comments of little value 2021-09-21 08:24:19 +02:00
helpcompiler
helpcontent2@1d9db89cb1 Update git submodules 2021-09-22 14:41:19 +02:00
hwpfilter
i18nlangtag
i18npool remove some allocations 2021-09-18 18:25:59 +02:00
i18nutil speedup CharacterClassificationImpl::toUpper 2021-09-16 12:05:00 +02:00
icon-themes
idl
idlc
include Extend loplugin:stringviewparam to starts/endsWith: sfx2 2021-09-22 21:14:15 +02:00
instsetoo_native
io
ios
javaunohelper
jurt
jvmaccess
jvmfwk
l10ntools Fix typos 2021-09-22 06:24:49 +02:00
librelogo
libreofficekit
lingucomponent
linguistic reduce cost of some getProperty calls (tdf#125892) 2021-09-21 14:51:37 +02:00
lotuswordpro ofz: avoid Timeout 2021-09-19 21:45:32 +02:00
m4
nlpsolver
o3tl Some more o3tl::starts/ends_with overloads 2021-09-21 23:32:02 +02:00
odk Adapt SetWindowLong call to 64-bit build 2021-09-20 12:13:29 +02:00
offapi tdf#143550 - use the term "gluepoints" consistently 2021-09-17 12:53:38 +02:00
officecfg tdf#143550 - use the term "gluepoints" consistently 2021-09-17 12:53:38 +02:00
onlineupdate
oovbaapi
oox tdf#142602 DOCX: export adjustment points of custom shape arrows 2021-09-21 13:26:54 +02:00
opencl
osx
package loplugin:finalclasses 2021-09-15 18:58:17 +02:00
pch
postprocess
pyuno Use <comphelper/servicehelper.hxx> implementing XUnoTunnel part 4 2021-09-15 06:08:14 +02:00
qadevOOo tdf#143550 - use the term "gluepoints" consistently 2021-09-17 12:53:38 +02:00
readlicense_oo
registry
remotebridges
reportbuilder
reportdesign clean up ambiguous confusing rectangle APIs like IsInside() 2021-09-20 12:10:44 +02:00
ridljar
sal use clang-cl's -Zc:dllexportInlines- for clang-cl builds 2021-09-20 22:50:59 +02:00
salhelper use clang-cl's -Zc:dllexportInlines- for clang-cl builds 2021-09-20 22:50:59 +02:00
sax
sc tdf#144618: fix Standard Filter Dialog with gtk3 2021-09-22 10:08:33 +02:00
scaddins Extend loplugin:stringviewparam to starts/endsWith: scaddins 2021-09-22 21:24:21 +02:00
sccomp
schema
scp2
scripting
sd tdf#127900 sd: fix regression at applying master properties 2021-09-21 12:12:51 +02:00
sdext loplugin:constvars 2021-09-15 12:43:21 +02:00
setup_native
sfx2 Extend loplugin:stringviewparam to starts/endsWith: sfx2 2021-09-22 21:14:15 +02:00
shell
slideshow loplugin:constvars 2021-09-15 12:43:21 +02:00
smoketest
solenv avoid some more D9025 warnings 2021-09-22 15:33:07 +02:00
soltools
sot
starmath clean up ambiguous confusing rectangle APIs like IsInside() 2021-09-20 12:10:44 +02:00
stoc Use <comphelper/servicehelper.hxx> implementing XUnoTunnel part 4 2021-09-15 06:08:14 +02:00
store
svgio Extend loplugin:stringviewparam to starts/endsWith: svgio 2021-09-22 21:13:42 +02:00
svl Add ISO 8601 date+time with milliseconds format 2021-09-21 21:00:45 +02:00
svtools xtend loplugin:stringviewparam to starts/endsWith: svtools 2021-09-22 20:44:36 +02:00
svx svx: improve SdrObjEditView::DisposeUndoManager() 2021-09-22 16:47:47 +02:00
sw Extend loplugin:stringviewparam to starts/endsWith: sw 2021-09-22 19:59:56 +02:00
swext
sysui
test
testtools
toolkit clean up ambiguous confusing rectangle APIs like IsInside() 2021-09-20 12:10:44 +02:00
tools clean up ambiguous confusing rectangle APIs like IsInside() 2021-09-20 12:10:44 +02:00
translations@4460c7babd
ucb Extend loplugin:stringviewparam to starts/endsWith: ucb 2021-09-22 20:00:17 +02:00
ucbhelper
udkapi
uitest
UnoControls loplugin:constvars 2021-09-15 12:43:21 +02:00
unodevtools Extend loplugin:stringviewparam to starts/endsWith: unodevtools 2021-09-22 19:59:35 +02:00
unoidl Implement the SourceTreeProvider Cursor 2021-09-21 07:49:27 +02:00
unoil
unotest
unotools Extend loplugin:stringviewparam to starts/endsWith: unotools 2021-09-22 18:54:52 +02:00
unoxml Use <comphelper/servicehelper.hxx> implementing XUnoTunnel part 4 2021-09-15 06:08:14 +02:00
ure
uui
vbahelper Use <comphelper/servicehelper.hxx> implementing XUnoTunnel part 5 2021-09-15 06:08:27 +02:00
vcl Resolves: tdf#142704 %PRODUCTNAME shown in gtk3 extended tips 2021-09-22 20:20:09 +02:00
wasm-qt
winaccessibility wina11y: Drop bool param from CMAccessible::NotifyDestroy 2021-09-20 18:05:00 +02:00
wizards
writerfilter tdf#143591 DOCX import: handle anchored objects as at-char 2021-09-21 08:18:40 +02:00
writerperfect
xmerge
xmlhelp
xmloff no need to store a CharClass in SvXMLNumFmtExport 2021-09-17 20:14:25 +02:00
xmlreader
xmlscript loplugin:constvars 2021-09-15 12:43:21 +02:00
xmlsecurity Extend loplugin:stringviewparam to starts/endsWith: xmlsecurity 2021-09-22 19:58:55 +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 use clang-cl's -Zc:dllexportInlines- for clang-cl builds 2021-09-20 22:50:59 +02:00
config_host_lang.mk.in
configure.ac Bump minimum iOS version to 13.7 2021-09-22 10:01:29 +02:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst Resolves tdf#144523 - Update Liberation fonts to 2.1.4 release 2021-09-16 12:06:15 +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
README.wasm
Repository.mk
RepositoryExternal.mk
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.