Test repository to check push and ssh key
Find a file
Balazs Santha e463d23955 tdf#140731: sw transliteration: avoid too many redlines
As a workaround for the performance regression
from commit 2d3c77e9b1
(tdf#109266 sw change tracking: track transliteration),
switch off redlining to avoid ~freezing, if a single
transliteration could result too many (>~500) redlines.

A single transliteration creates n redlines
for n paragraphs of the selected text, except in
the case of transliterating to title case, where it
creates n redlines for n words. It's very easy
to freeze Writer, because Writer's slowing down with
n redlines is described by an O(n²) (quadratic) time
complexity. Eg. in an experiment, title casing
~660 words was 6 sec, but ~3000 words was 85 sec,
regarding to creating 660 vs 3000 redlines.

Note: this is a partial revert of commit
2d3c77e9b1, if the
selection contains more than 500 paragraphs (or in the
case transliterating to title case, ~500 words).

Change-Id: Iad98943cc9e1ed64aa9779e49ee3e941abad02ac
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111637
Tested-by: Jenkins
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
2021-03-24 15:08:18 +01:00
.git-hooks
.github
.vscode
accessibility Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
android Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
animations Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
apple_remote Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
avmedia Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
basctl Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
basegfx Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
basic Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
bean Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
bin Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
binaryurp Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
bridges Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
canvas Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
chart2 Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
cli_ure Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
codemaker Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
comphelper Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
compilerplugins Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
config_host Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
configmgr Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
connectivity Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
cppcanvas Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
cppu Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
cppuhelper Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
cpputools Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
cui Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
dbaccess Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
desktop Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
dictionaries@a968e48f9b
distro-configs Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
drawinglayer Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
editeng Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
embeddedobj Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
embedserv Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
emfio Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
eventattacher Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
extensions Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
external Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
extras Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
filter Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
forms Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
formula Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
fpicker Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
framework Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
helpcompiler
helpcontent2@1b6dd9ef51 Update git submodules 2021-03-24 14:30:15 +01:00
hwpfilter Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
i18nlangtag Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
i18npool Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
i18nutil Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
icon-themes Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
idl Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
idlc Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
include use mutable rather than const_cast..this 2021-03-24 14:33:04 +01:00
instsetoo_native Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
io Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
ios
javaunohelper Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
jurt Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
jvmaccess Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
jvmfwk Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
l10ntools Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
librelogo Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
libreofficekit Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
lingucomponent Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
linguistic Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
lotuswordpro Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
m4 Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
nlpsolver Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
o3tl Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
odk Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
offapi Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
officecfg Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
onlineupdate Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
oovbaapi Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
oox Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
opencl Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
osx Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
package Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
pch Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
postprocess Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
pyuno Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
qadevOOo Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
readlicense_oo Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
registry Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
remotebridges Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
reportbuilder Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
reportdesign Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
ridljar Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
sal Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
salhelper Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
sax Revert "Fix typo" 2021-03-24 12:47:08 +01:00
sc Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
scaddins Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
sccomp Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
schema Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
scp2 Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
scripting Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
sd Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
sdext Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
setup_native
sfx2 Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
shell Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
slideshow Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
smoketest Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
solenv Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
soltools
sot Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
starmath Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
stoc Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
store Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
svgio Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
svl Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
svtools Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
svx use mutable rather than const_cast..this 2021-03-24 14:33:04 +01:00
sw tdf#140731: sw transliteration: avoid too many redlines 2021-03-24 15:08:18 +01:00
swext Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
sysui Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
test Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
testtools Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
toolkit Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
tools Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
translations@943a62baf9 Update git submodules 2021-03-23 12:48:20 +01:00
ucb Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
ucbhelper Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
udkapi Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
uitest Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
UnoControls Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
unodevtools Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
unoidl Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
unoil Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
unotest tdf#124176 Use pragma once in u* 2021-03-23 10:54:09 +01:00
unotools Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
unoxml Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
ure Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
uui Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
vbahelper Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
vcl Revert "Fix typo" 2021-03-24 12:47:08 +01:00
winaccessibility Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
wizards Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
writerfilter Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
writerperfect Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
xmerge Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
xmlhelp Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
xmloff tdf#124176 Use pragma once in x* 2021-03-23 13:14:42 +01:00
xmlreader Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
xmlscript Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +01:00
xmlsecurity Using .md extension/Markdown syntax for modules README 2021-03-24 11:46:14 +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
config_host_lang.mk.in
configure.ac Rename LO Windows arm64 ID to aarch64 2021-03-23 23:46:12 +01:00
COPYING
COPYING.LGPL
COPYING.MPL
download.lst Drop external owncloud-android-lib 2021-03-22 07:55:52 +01:00
g
hardened_runtime.xcent.in
install-sh
leak-suppress.txt
Library_merged.mk
lo.xcent
logerrit
Makefile.fetch Drop external owncloud-android-lib 2021-03-22 07:55:52 +01:00
Makefile.gbuild
Makefile.in
README.cross
README.md
README.Solaris
Repository.mk Rename LO Windows arm64 ID to aarch64 2021-03-23 23:46:12 +01:00
RepositoryExternal.mk Rename LO Windows arm64 ID to aarch64 2021-03-23 23:46:12 +01:00
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

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 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 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.freenode.net - 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.