Test repository to check push and ssh key
Find a file
Justin Luth 062b4bee5e tdf#111969 sw: acknowledge that last half-character for popup/pointer
This fixes WHEN the helpful pop-up notifies about the cursor
being over top of a smart-tag, and suggesting that the user
can CTRL-clicking to activate the smart tag.

Prior to this patch, it would start half-a-character too soon,
and end half-a-character too early.

It similarly fixes WHEN the helpful cursor pointer changes into a finger
when holding ctrl and moving into the start or end of the smarttag.

Smart tags REQUIRE a plugin, so a unit test is out of the question.

The impact could be MUCH LARGER than just smart tags,
but they were the impetus for the change,
because smart tags are not portions while the other
things (redlines, fields, refs/footnotes, formulas) are.

The net effect on other IsAttrAtPos SHOULD be nothing,
so that still doesn't leave me with anything unit testable.

If I ONLY removed the --index from itrcrsr,
then unit tests in  uiwriter9 fail.
Adding aTmpState.m_bPosMatchesBounds = true
(which is the fix for smart tags) makes it not fail.

Adding bPosMatchesBounds OUGHT to obsolete an initial-import --index hack?
While I don't NEED to remove the (what looks to me) hack
(and it actually is super dangerous to remove it)
I really think it is obsolete and thus deserves removal.
Easy to restore if it proves a regression...

So bFieldInfo and bPosMatchesBounds end up doing much of the same thing.
This is one of only two places which sets m_bFieldInfo = true,
the other being a EnhancedPDFExportHelper.cxx which tests pEnd inclusively.
    cms.m_bFieldInfo = true;
    auto const [pStart, pEnd] = rShell.GetCursor_()->StartEnd();
    if (rShell.GetLayout()->GetModelPositionForViewPoint(&pos, center, &cms)
        && *pStart <= pos && pos <= *pEnd)
make CppunitTest_vcl_pdfexport CPPUNIT_TEST_NAME=testTdf157816
is not a good test for this - it passes without --index and !FieldInfo

Change-Id: I77df5e054879eb3bbc82907962b77386811bceac
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161034
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Justin Luth <jluth@mail.com>
2024-01-05 14:44:51 +01:00
.git-hooks Revert "Drop allownonascii check from pre-commit checks" 2023-12-02 21:55:33 +01:00
.github
.vscode
accessibility use string OUString literals in a11y for XServiceInfo impl. 2023-12-29 00:36:51 +01:00
android android-viewer translated using Weblate 2024-01-05 13:39:34 +01:00
animations
apple_remote
avmedia Remove DeleteItemOnIdlex 2023-12-21 21:13:55 +01:00
basctl cid#1545421 COPY_INSTEAD_OF_MOVE 2023-12-30 22:07:47 +01:00
basegfx
basic ofz#65329 Fuzzing build failure 2023-12-29 14:54:54 +01:00
bean
bin Fix make create-update-info (for Windows, at least) 2024-01-05 13:49:13 +01:00
binaryurp
bridges
canvas tdf#145538 Use range based for loops 2024-01-02 22:35:26 +01:00
chart2 UnoApiTest::loadFromURL -> UnoApiTest::loadFromFile 2024-01-03 07:51:28 +01:00
cli_ure
codemaker cid#1546503 Using invalid iterator 2023-12-07 18:22:46 +01:00
comphelper move IsFuzzing to comphelper 2023-12-30 12:45:45 +01:00
compilerplugins Drop now unused SvtSlideSorterBarOptions class 2024-01-03 15:38:17 +01:00
config_host
configmgr tdf#158593 Make configmgr READONLY Property more useful 2023-12-19 07:57:32 +01:00
connectivity cid#1545462 perturb Resource leak report 2024-01-02 18:11:53 +01:00
cppcanvas UnoApiTest::loadFromURL -> UnoApiTest::loadFromFile 2024-01-03 07:51:28 +01:00
cppu cid#1546503 Using invalid iterator 2023-12-03 22:12:17 +01:00
cppuhelper cid#1545177 COPY_INSTEAD_OF_MOVE 2023-12-10 17:41:18 +01:00
cpputools
cui Resolves: tdf#158965 Find Record: Similarities dialog doesn't appear 2024-01-05 09:51:39 +01:00
dbaccess UnoApiTest::loadFromURL -> UnoApiTest::loadFromFile 2024-01-03 07:51:28 +01:00
desktop Send tooltip text to LOK 2024-01-04 14:12:23 +01:00
dictionaries@ef5ed1ca0e Update git submodules 2024-01-04 14:19:23 +01:00
distro-configs Hard-code --with-online-update-mar-channel=LOOnlineUpdater 2024-01-02 21:23:39 +01:00
docmodel
drawinglayer tdf#158913 secure Primitive 'visit' using mutex 2024-01-02 20:38:23 +01:00
editeng editeng: preserve ContentNode in a unique_ptr when moving paras 2024-01-02 09:56:55 +01:00
embeddedobj move IsFuzzing to comphelper 2023-12-30 12:45:45 +01:00
embedserv
emfio UnoApiTest::loadFromURL -> UnoApiTest::loadFromFile 2024-01-03 07:51:28 +01:00
eventattacher
extensions tdf#148251 Use std::swap instead of using temporary values 2024-01-01 14:27:36 +01:00
external Fix make create-update-info (for Windows, at least) 2024-01-05 13:49:13 +01:00
extras tdf#158863 Move README to meta.xml 2024-01-02 13:01:08 +01:00
filter upgrade libxml2, libxslt & liblangtag 2024-01-05 11:05:36 +01:00
forms cid#707862 Uninitialized pointer field 2023-12-31 21:02:10 +01:00
formula Use emplace_back instead of push_back (Formula) 2023-12-27 12:19:27 +01:00
fpicker cid#1546281 COPY_INSTEAD_OF_MOVE 2023-12-10 11:57:12 +01:00
framework UnoApiTest::loadFromURL -> UnoApiTest::loadFromFile 2024-01-03 07:51:28 +01:00
helpcompiler upgrade libxml2, libxslt & liblangtag 2024-01-05 11:05:36 +01:00
helpcontent2@27088ec11f Update git submodules 2024-01-05 13:00:32 +01:00
hwpfilter move IsFuzzing to comphelper 2023-12-30 12:45:45 +01:00
i18nlangtag cid#1545617 COPY_INSTEAD_OF_MOVE 2023-12-08 09:34:29 +01:00
i18npool Japanese word for 'reiwa' added to ja.dic 2024-01-02 10:38:03 +01:00
i18nutil move IsFuzzing to comphelper 2023-12-30 12:45:45 +01:00
icon-themes tdf#158114 SwNavigator: Make images with broken links easier to find 2023-12-21 21:45:23 +01:00
idl cid#1545810 Using invalid iterator 2023-12-04 20:28:26 +01:00
idlc/test/parser
include Resolves tdf#158780 - Disable resolution controls initially 2024-01-05 07:36:33 +01:00
instsetoo_native Hard-code --with-online-update-mar-channel=LOOnlineUpdater 2024-01-02 21:23:39 +01:00
io unique_ptr->optional in OMarkableInputStream 2023-12-18 14:25:56 +01:00
ios
javaunohelper
jurt
jvmaccess
jvmfwk
l10ntools cid#1546281 COPY_INSTEAD_OF_MOVE 2023-12-10 11:57:12 +01:00
librelogo
libreofficekit Send tooltip text to LOK 2024-01-04 14:12:23 +01:00
lingucomponent tdf#158885 sw: don't hyphenate right after a stem boundary 2024-01-01 00:42:35 +01:00
linguistic tdf#158885 sw: don't hyphenate right after a stem boundary 2024-01-01 00:42:35 +01:00
lotuswordpro UnoApiTest::loadFromURL -> UnoApiTest::loadFromFile 2024-01-03 07:51:28 +01:00
m4
msicreator
nlpsolver
o3tl
odk tdf#158803 Remove unused imports from odk 2023-12-29 17:33:48 +01:00
offapi we are at 24.8 in trunk now, not 24.2 2023-12-21 15:36:08 +01:00
officecfg tdf#156719: use unique accelerator for Insert > Signature Line 2023-12-22 18:13:42 +01:00
oovbaapi
oox UnoApiTest::loadFromURL -> UnoApiTest::loadFromFile 2024-01-03 07:51:28 +01:00
opencl
osx
package ofz#65480: Integer-overflow 2024-01-02 20:15:00 +01:00
pch
postprocess No good reason to not --enable-windows-build-signing with --enable-dbgutil 2023-12-21 15:47:05 +01:00
pyuno tdf#158803 Fix issues detected by pyflakes 2023-12-27 13:48:47 +01:00
qadevOOo cid#1545822 SSD: Do not use an instance lock to protect shared static data 2024-01-03 22:12:19 +01:00
readlicense_oo update credits 2023-12-21 17:25:32 +01:00
registry
remotebridges
reportbuilder reportbuilder: remove unused config files 2023-12-18 07:57:24 +01:00
reportdesign simplify and modernise ScopedBitmapAccess 2023-12-07 09:32:14 +01:00
ridljar
sal Silence new GCC 14 trunk -Werror=alloc-size 2023-12-24 14:58:09 +01:00
salhelper Keep elements of salhelper::TimerManager::m_pHead list refcounted 2023-12-28 14:38:55 +01:00
sax cid#1545177 COPY_INSTEAD_OF_MOVE 2023-12-10 17:41:18 +01:00
sc nColCount is sal_Int32 so iter i can be as well 2024-01-05 09:52:23 +01:00
scaddins Use emplace_back instead of push_back (scaddins) 2023-12-26 21:31:01 +01:00
sccomp UnoApiTest::loadFromURL -> UnoApiTest::loadFromFile 2024-01-03 07:51:28 +01:00
schema sw floattable, per-frame wrap-on-all-pages mode: add ODT filter 2023-11-28 09:53:13 +01:00
scp2 Fix Windows MSI custom action for --enable-online-update-mar 2023-12-22 18:47:14 +01:00
scripting cid#1545222 COPY_INSTEAD_OF_MOVE 2023-12-19 09:42:03 +01:00
sd tdf#114441 sal_uLong to better integer type 2024-01-04 12:38:38 +01:00
sdext cid#1546464 COPY_INSTEAD_OF_MOVE 2023-12-31 23:08:51 +01:00
setup_native
sfx2 tdf#139636 thumbnail: don't regenerate on file close 2024-01-05 11:13:58 +01:00
shell
slideshow UnoApiTest::loadFromURL -> UnoApiTest::loadFromFile 2024-01-03 07:51:28 +01:00
smoketest
solenv Don't mess with UserInstallation setting of --with-package-format=archive 2024-01-04 23:07:13 +01:00
soltools cid#1546021 Using invalid iterator 2023-12-04 19:21:31 +01:00
sot use more unique_ptr in StgTmpStrm 2023-12-30 08:13:21 +01:00
starmath UnoApiTest::loadFromURL -> UnoApiTest::loadFromFile 2024-01-03 07:51:28 +01:00
static wasm: include missing custom shape presets 2023-12-12 17:59:40 +01:00
stoc cid#1545470 COPY_INSTEAD_OF_MOVE 2023-12-24 13:23:45 +01:00
store
svgio cid#1545470 COPY_INSTEAD_OF_MOVE 2023-12-24 13:23:45 +01:00
svl tdf#114441 sal_uLong to better integer type 2024-01-04 12:38:38 +01:00
svtools Drop now unused SvtSlideSorterBarOptions class 2024-01-03 15:38:17 +01:00
svx Resolves tdf#158780 - Disable resolution controls initially 2024-01-05 07:36:33 +01:00
sw tdf#111969 sw: acknowledge that last half-character for popup/pointer 2024-01-05 14:44:51 +01:00
swext
sysui
test UnoApiTest::loadFromURL -> UnoApiTest::loadFromFile 2024-01-03 07:51:28 +01:00
testtools cid#1545177 COPY_INSTEAD_OF_MOVE 2023-12-10 17:41:18 +01:00
toolkit cid#1545965 COPY_INSTEAD_OF_MOVE 2023-12-30 19:58:54 +01:00
tools no need to use SvLockBytes in forms 2023-12-30 13:45:53 +01:00
translations@2a46004be9 Update git submodules 2023-12-30 16:09:09 +01:00
ucb cid#1545411 Resource leak 2024-01-01 10:25:38 +01:00
ucbhelper tdf#158321 No error message when file doesn't exist 2023-11-23 12:07:09 +01:00
udkapi
uitest tdf#158803 Fix issues detected by pyflakes 2023-12-27 13:48:47 +01:00
UnoControls
unodevtools Don't use boost in code generated by uno-skeletonmaker 2023-12-22 11:17:45 +01:00
unoidl
unoil
unotest tdf#158803 Fix issues detected by pyflakes 2023-12-27 13:48:47 +01:00
unotools lok: import Work path from LOK_WORKDIR 2024-01-02 13:00:33 +01:00
unoxml std::size/SAL_N_ELEMENTS also counts the null terminator 2024-01-05 09:51:27 +01:00
ure
uui Fix typo in code 2023-12-15 09:20:48 +01:00
vbahelper tdf#146619 Recheck include/[v-x]* with IWYU 2023-12-12 18:51:27 +01:00
vcl jsdialog: enabled objectdialog (Writer -> Chart -> properties jsdialog) 2024-01-04 09:18:56 +01:00
winaccessibility Remove unused headers found by bin/find-unusedheaders.sh 2023-12-24 11:50:41 +01:00
wizards tdf#158803 Remove unused imports from wizards 2023-12-29 23:56:27 +01:00
writerfilter UnoApiTest::loadFromURL -> UnoApiTest::loadFromFile 2024-01-03 07:51:28 +01:00
writerperfect UnoApiTest::loadFromURL -> UnoApiTest::loadFromFile 2024-01-03 07:51:28 +01:00
xmerge
xmlhelp cid#1545789 COPY_INSTEAD_OF_MOVE 2023-12-10 20:27:43 +01:00
xmloff UnoApiTest::loadFromURL -> UnoApiTest::loadFromFile 2024-01-03 07:51:28 +01:00
xmlreader
xmlscript
xmlsecurity upgrade libxml2, libxslt & liblangtag 2024-01-05 11:05:36 +01:00
.buckconfig
.buckversion
.clang-format
.editorconfig
.git-blame-ignore-revs tdf#157638 Added to git blame ignore list 2023-12-29 17:01:32 +01:00
.gitattributes
.gitignore
.gitmodules
.gitpod.dockerfile
.gitpod.yml
.gitreview
antivirusDetection.vbs
autogen.sh
BUCK
config.guess
config.sub
config_host.mk.in Hard-code --with-online-update-mar-channel=LOOnlineUpdater 2024-01-02 21:23:39 +01:00
config_host_lang.mk.in
configure.ac Actually drop --with-online-update-mar-channel 2024-01-03 16:14:42 +01:00
COPYING
COPYING.LGPL
COPYING.MPL
cpp.hint
download.lst Fix make create-update-info (for Windows, at least) 2024-01-05 13:49:13 +01:00
g
install-sh
install_deps.sh
leak-suppress.txt
Library_merged.mk
logerrit
Makefile.fetch argon2: add new external library 2023-12-19 17:25:05 +01:00
Makefile.gbuild Fix make create-update-info (for Windows, at least) 2024-01-05 13:49:13 +01:00
Makefile.in android: Remove generated resources in "clean" make targets 2023-12-13 01:16:59 +01:00
README.cross
README.help.md
README.md
README.Solaris
Repository.mk Re-enable MOZ_VERIFY_MAR_SIGNATURE feature 2024-01-02 21:23:48 +01:00
RepositoryExternal.mk argon2: add new external library 2023-12-19 17:25:05 +01:00
RepositoryFixes.mk
RepositoryModule_build.mk
RepositoryModule_host.mk Turn onlineupdate into external/onlineupdate 2023-12-15 11:27:49 +01:00
sanitize-ubsan-excludelist
setup.cfg
TEMPLATE.SOURCECODE.HEADER
tsan-suppress.txt update tsan suppressions 2023-12-06 20:27:49 +01:00

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 and Developers Guide. 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.10
  • macOS:
    • Runtime: 10.15
    • Build: 12 (13 for aarch64) + Xcode 14
  • Linux:
    • Runtime: RHEL 8 or CentOS 8 and comparable
    • Build: either GCC 12; or Clang 12 with libstdc++ 8.5
  • 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 r23 and SDK 30.0.3
  • Emscripten / WASM:
    • Runtime: a browser with SharedMemory support (threads + atomics)
    • Build: Qt 5.15 with Qt supported Emscripten 1.39.8
    • See README.wasm

Java is required for building many parts of LibreOffice. In TDF Wiki article Development/Java, the exact modules that depend on Java are listed.

The baseline for Java is Java Development Kit (JDK) Version 17 or later.

If you want to use Clang with the LibreOffice compiler plugins, the minimal version of Clang is 12.0.1. 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.