Test repository to check push and ssh key
Find a file
Andrea Gelmini 6bbc2eba29 Fix typo in code
Change-Id: I1c5350ab5e039b80ebc36922a66da7f0083162a5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129450
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2022-02-06 21:29:30 +01:00
.git-hooks
.github
.vscode
accessibility We know the length here 2022-02-06 13:13:49 +01:00
android
animations
apple_remote
avmedia
basctl use some more add toId/fromId 2022-02-04 16:43:44 +01:00
basegfx
basic We know the length here 2022-02-06 13:13:49 +01:00
bean
bin flat-odf-cleanup: survive already missing settings/scripts 2022-02-02 14:51:18 +01:00
binaryurp
bridges
canvas adjust gradient drawing in vclcanvas (tdf#144073) 2022-02-01 23:44:28 +01:00
chart2 chart: prefix members of AxisLabelProperties 2022-02-06 12:59:59 +01:00
cli_ure
codemaker
comphelper 22 characters needed to Base64-encode 16 bytes 2022-02-03 16:32:59 +01:00
compilerplugins Fix typo 2022-02-02 08:56:07 +01:00
config_host
configmgr
connectivity We know the length here 2022-02-06 13:13:49 +01:00
cppcanvas
cppu
cppuhelper
cpputools
cui Simplify sequence of PropertyValue in cui/editeng/extensions 2022-02-06 19:35:34 +01:00
dbaccess Following simplify a bit ODatabaseDocument::impl_getUntitledHelper_throw 2022-02-05 08:48:27 +01:00
desktop lok: render image preview with lower resolution 2022-02-05 12:15:28 +01:00
dictionaries@8fecc83133 Update git submodules 2022-02-03 12:24:55 +01:00
distro-configs
drawinglayer We know the buffer length here 2022-02-03 18:32:45 +01:00
editeng Simplify sequence of PropertyValue in cui/editeng/extensions 2022-02-06 19:35:34 +01:00
embeddedobj
embedserv
emfio the real font used for 'Roman' is arbitrary 2022-02-04 10:03:14 +01:00
eventattacher
extensions Simplify sequence of PropertyValue in cui/editeng/extensions 2022-02-06 19:35:34 +01:00
external support for the WebP image format (tdf#114532) 2022-01-31 10:44:29 +01:00
extras
filter Fix typo 2022-02-06 20:24:01 +01:00
forms
formula add toId/fromId to tidy up some ugly casting 2022-02-04 15:02:03 +01:00
fpicker use some more add toId/fromId 2022-02-04 16:43:44 +01:00
framework
helpcompiler
helpcontent2@1cd6e1e036 Update git submodules 2022-02-06 20:45:32 +01:00
hwpfilter
i18nlangtag
i18npool
i18nutil
icon-themes Colibre: New large Text Direction icons 2022-02-06 01:24:32 +01:00
idl
idlc
include vba: small fixes for GetOpenFilename and documenting structs 2022-02-06 06:49:15 +01:00
instsetoo_native
io
ios
javaunohelper
jurt
jvmaccess
jvmfwk
l10ntools
librelogo
libreofficekit
lingucomponent
linguistic
lotuswordpro Fix typo 2022-02-02 08:57:44 +01:00
m4
nlpsolver
o3tl
odk
offapi Typo in a comment of EmbedVerbs.idl 2022-02-06 12:33:01 +01:00
officecfg
onlineupdate
oovbaapi
oox vba: small fixes for GetOpenFilename and documenting structs 2022-02-06 06:49:15 +01:00
opencl
osx Add some source files for debugging convenience 2022-02-02 15:53:04 +01:00
package
pch
postprocess
pyuno
qadevOOo
readlicense_oo support for the WebP image format (tdf#114532) 2022-01-31 10:44:29 +01:00
registry
remotebridges
reportbuilder
reportdesign add toId/fromId to tidy up some ugly casting 2022-02-04 15:02:03 +01:00
ridljar
sal Call SymInitialize only once 2022-02-03 10:52:47 +01:00
salhelper
sax Add a clarifying comment regarding the use of UTF-8 2022-02-04 09:25:31 +01:00
sc Avoid excessive reallocations 2022-02-06 21:06:55 +01:00
scaddins
sccomp
schema
scp2 support for the WebP image format (tdf#114532) 2022-01-31 10:44:29 +01:00
scripting tdf#146742 - Move the initialization code of a method to SbMethod::Call 2022-02-03 09:43:37 +01:00
sd WaE: storing the address of local variable [-Wdangling-pointer] 2022-02-05 22:34:08 +01:00
sdext sdext.pdfimport tdf#137128: Recognize more font name and weight... 2022-02-04 07:44:18 +01:00
setup_native
sfx2 Simplify sequence in sfx2 2022-02-06 12:30:49 +01:00
shell rhbz#2047319 drop the SolarMutex before QApplication::init() 2022-02-03 17:16:12 +01:00
slideshow Fix function name 2022-02-02 15:26:01 +01:00
smoketest
solenv use more concrete types in chart2, Axis 2022-02-05 20:39:03 +01:00
soltools
sot
starmath add toId/fromId to tidy up some ugly casting 2022-02-04 15:02:03 +01:00
static
stoc
store
svgio
svl No need to call makeStringAndClear to pass a string view 2022-02-06 19:32:52 +01:00
svtools Related: tdf#146836 daisy chain together some more event handlers 2022-02-05 11:57:57 +01:00
svx svx-lok: incomplete invalidation when resizing/deleting... 2022-02-06 11:11:41 +01:00
sw Fix typo in code 2022-02-06 21:29:30 +01:00
swext
sysui
test
testtools
toolkit
tools cid#1497939 Division or modulo by zero 2022-02-03 15:54:51 +01:00
translations@cc24a4e892 Update git submodules 2022-01-31 19:31:37 +01:00
ucb Revert typo fix, 'stringly typed' is the intended form 2022-02-04 12:13:14 +01:00
ucbhelper No need to call makeStringAndClear to pass a string view 2022-02-06 17:40:51 +01:00
udkapi
uitest ignore ~ backup files when searching for .py uitest files 2022-02-03 12:53:41 +01:00
UnoControls
unodevtools
unoidl
unoil
unotest
unotools Avoid signed-integer-overflow 2022-02-06 15:09:23 +01:00
unoxml
ure
uui
vbahelper
vcl We know the length here 2022-02-06 16:25:13 +01:00
winaccessibility tdf#147083 wina11y: Return a11y object instead of child ID 2022-01-31 17:31:11 +01:00
wizards ScriptForge - (SF_UI) Import RunCommand() from SF_Session 2022-02-04 14:20:10 +01:00
writerfilter tdf#146802 OOXML import: fix embedded VML in grouped textbox 2022-02-03 09:12:20 +01:00
writerperfect
xmerge
xmlhelp
xmloff Fix variable name 2022-02-02 18:35:48 +01:00
xmlreader
xmlscript
xmlsecurity add toId/fromId to tidy up some ugly casting 2022-02-04 15:02:03 +01: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 support for the WebP image format (tdf#114532) 2022-01-31 10:44:29 +01:00
config_host_lang.mk.in
configure.ac support for the WebP image format (tdf#114532) 2022-01-31 10:44:29 +01:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst support for the WebP image format (tdf#114532) 2022-01-31 10:44:29 +01:00
g
hardened_runtime.xcent.in
install-sh
install_deps.sh
leak-suppress.txt
Library_merged.mk
lo.xcent
logerrit
Makefile.fetch support for the WebP image format (tdf#114532) 2022-01-31 10:44:29 +01:00
Makefile.gbuild
Makefile.in
README.cross
README.help.md
README.md
README.Solaris
Repository.mk ofz: fix build, webpfuzzer missing from Repository.mk 2022-01-31 22:28:31 +01:00
RepositoryExternal.mk support for the WebP image format (tdf#114532) 2022-01-31 10:44:29 +01: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.13
    • 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.