Commit graph

479365 commits

Author SHA1 Message Date
Noel Grandin
1988782c81 use more SwPosition::SetContent
part of the process of hiding the internals of SwPosition

Change-Id: Idc0b3c68d8f2c560868eacf5679e8a1f133cf80b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140574
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-09-25 21:00:24 +02:00
Noel Grandin
63f1484e46 use more SwPosition::SetContent
part of the process of hiding the internals of SwPosition

Change-Id: I026a5480ede5e640550b39e8b030de303870cfc9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140573
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-09-25 21:00:00 +02:00
Bjoern Michaelsen
eb1294a607 unwrap SwDelChr to plain SfxHint
Change-Id: Ief37a8025181b6cc8a6e484e2726d8a8d92f57ea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140567
Tested-by: Jenkins
Reviewed-by: Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org>
2022-09-25 20:01:53 +02:00
Noel Grandin
b0cab94446 use more SwPosition::SetContent
part of the process of hiding the internals of SwPosition

Change-Id: I466640e5cf7aac57b0248e9a5069e75ccd7e779a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140572
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-09-25 19:36:39 +02:00
Noel Grandin
16429ec437 use more SwPosition::SetContent
part of the process of hiding the internals of SwPosition

Change-Id: I20052ec81800ce206877bc1781297e5c13fb400c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140571
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-09-25 19:36:22 +02:00
Noel Grandin
916d30ba7e tdf#150715 Animations in LO Impress do not work properly
Revert "updatePathFromSdrPathObj can just call getRange"
This reverts commit 7c52337f95.

Not sure why this change did not work.

Change-Id: I2c42b9b7ff4b85f3018bea289efd3d934dbe2be1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140570
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-09-25 19:09:37 +02:00
Eike Rathke
7dca847f07 Resolves: tdf#151165 Function Wizard: ISODD()/ISEVEN() truncate to integer
Change-Id: I73d06c6c40ac33f59cf38218b3e696de9aeb0b87
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140569
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
2022-09-25 17:39:53 +02:00
Liu Hao
f65ca3470e tdf#150409 CJK&CTL properties shouldn't be hidden in Style Inspector
Change-Id: I577e4c90eb000e3f55f5be9e14132a4c1d16fe9a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138755
Tested-by: خالد حسني <khaled@aliftype.com>
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2022-09-25 16:33:17 +02:00
Laurent Balland
567b4281b9 tdf#139962 make shellnew files 0-bytes
To use implementation of tdf#139991, shellnew/soffice.* are now 0-bytes
files

Change-Id: Ifa5c02c6903d1d505a882cbe0951e4d5c10720f7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140538
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2022-09-25 16:21:15 +02:00
Mike Kaganski
c8ced26b47 Some simplification
Change-Id: I7b455d1cb33bba2b3f2dfb3f469639519cd3076d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140552
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2022-09-25 16:19:37 +02:00
Khaled Hosny
092e37a284 tdf#150726: Pass full string to DrawTextArray() when drawing bullet
When drawing bullets for spaces, we were passing a substring to
DrawTextArray() and even taking care of adding an extra character to
both sides to help with Arabic layout. This, however, does not work when
part of the text is in different color because the portion will cover
only that substring and we wouldn’t be passing enough context.

Copying the substring is unnecessary, though, and we can pass the full
string like we do in the non-bullet case. The bullet array (where we
replace spaces with bullets), can continue to be a substring as we are
only drawing the bullets in this case.

This probably also means we can re-use the glyph cache when switching
between bullet and non-bullet mode.

Change-Id: I256ae7b6d592b8c6670d66619e428f943714be57
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140568
Tested-by: Jenkins
Reviewed-by: خالد حسني <khaled@aliftype.com>
2022-09-25 15:59:06 +02:00
Michael Weghorn
aa0a39f2be a11y: Use FontSlant for "CharPosture"
The platform a11y integration code expects a
`FontSlant` in the "CharPosture" `Any`
(s. e.g. `get_style_value`/`FontSlant2Style`
in `vcl/unx/gtk3/a11y/atktextattributes.cxx`
or `QtAccessibleWidget::attributes`)
and that's also what e.g. Writer sets for that attribute
for text in the document, so do the same in
`CharacterAttributesHelper::CharacterAttributesHelper`.

After handling for "CharPosture" was added for
the Qt-based VCL plugins in

    commit 99841da686
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Tue Jul 20 13:23:21 2021 +0200

        qt a11y: Report font style text attribute (e.g. italic)

, clicking through the a11y hierarchy of e.g. Writer's
"Page Style" dialog in Accerciser's treeview of the LO a11y
hierarchy would otherwise crash LO when used with the qt6 VCL
plugin.

With this in place, the style is reported correctly
there. (Tested by temporarily setting "oblique"
style using glade for the "Next style" label in the "Organizer"
tab in that dialog's UI file.)

Change-Id: Ibea42db067e0cdb3b85c80dbcca5939b3dfe5570
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140527
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2022-09-25 14:44:03 +02:00
Andreas Heinisch
6f3532f6aa tdf#151012 - Initialize optional parameters with their default values
Change-Id: I3ed3eb904b50892e5946abe684e801819ba296e6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140128
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
2022-09-25 11:39:33 +02:00
Bjoern Michaelsen
2aed71fa9e tdf#144939: fix chapter numbering updates
Change-Id: Icd29a380663a1c5f70e3a8ee86db64ec4eae8d86
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140558
Tested-by: Jenkins
Reviewed-by: Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org>
2022-09-25 10:43:00 +02:00
Bjoern Michaelsen
eea9f1ee27 unwrap SwInsText to a plain SfxHint
- also add some constnesss and move some things to private

Change-Id: I67a45e1326361b5a8f7e320b3525e74e93b1ef12
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140556
Tested-by: Jenkins
Reviewed-by: Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org>
2022-09-25 10:42:33 +02:00
Khaled Hosny
7915289182 tdf#83581: Improve caret travelling in in Edit Engine
This uses the same caret positioning array introduced in:

commit 8cb4db941f
Author: Khaled Hosny <khaled@aliftype.com>
Date:   Fri Aug 26 22:20:55 2022 +0200

    tdf#30731: Improve caret travelling in Writer

But unlike the Writer change, this is used unconditionally not only when
calculating caret (cursor) position. This might break something, so lets
find out.

Change-Id: Ia285197b7ee41f01ccd37101436be86b476c0272
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140557
Tested-by: Jenkins
Reviewed-by: خالد حسني <khaled@aliftype.com>
2022-09-25 09:11:32 +02:00
Khaled Hosny
943177e0f8 tdf#151114: Fix swapped width and height
Regression from:
commit 0483fbd1d0
Author: Khaled Hosny <khaled@aliftype.com>
Date:   Sun Aug 21 01:49:57 2022 +0200

    tdf#87535: Preview styles using CTL/CJK fonts in the sidebar

Change-Id: I9108e2efa75eafe56c3ccc8ec2fff81b8cf7dc4c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140551
Tested-by: Jenkins
Reviewed-by: خالد حسني <khaled@aliftype.com>
2022-09-24 23:40:23 +02:00
Rafael Lima
a8662358b5 Update git submodules
* Update helpcontent2 from branch 'master'
  to b31c5d3344f617a0f38703da0af935c2a8803bcb
  - tdf#149221 Create target for Dialog Wizard help page
    
    Change-Id: I868d1aea648d133440c54c8cfb46014467fdfcb1
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/140328
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2022-09-24 23:26:13 +02:00
Noel Grandin
8ed50c16a4 improve usage of TempFile in SVGExport
TempFile already handles the stream. And not touching the URL
means we stay on the fast path for temp files.

Change-Id: I1c239c90901af4450ba10e0d1505bb982cdce41c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140116
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-09-24 19:03:16 +02:00
Bjoern Michaelsen
aace38f9bf unwrap SwDelText to a plain SfxHint
Change-Id: I559f8f1e837830426e820dace6226618c5e0fc62
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140210
Tested-by: Jenkins
Reviewed-by: Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org>
2022-09-24 18:28:07 +02:00
Andrea Gelmini
bd19c634c6 Fix typo
Change-Id: I7a275e86ba0c9c07144b71a1d5d7c01eb378f416
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140539
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2022-09-24 18:03:56 +02:00
Khaled Hosny
9e654aaaaa vcl: Removed unused PrintFontInfo and support code
Change-Id: I4e4d67b5ff57585a02eaba9372599e767d31229d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140549
Tested-by: Jenkins
Reviewed-by: خالد حسني <khaled@aliftype.com>
2022-09-24 17:14:18 +02:00
Khaled Hosny
c9615dd5fb vcl: Remove unused PrintFontManager::getFontBoundingBox()
Change-Id: I0aed5ec3bbab91a1fe57996a2f647b758369308c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140548
Tested-by: Jenkins
Reviewed-by: خالد حسني <khaled@aliftype.com>
2022-09-24 17:12:32 +02:00
Noel Grandin
a0e6748518 use faster TempFile for font subset writing
by not asking for the name or URL, we stay on the happy path,
which is faster on Windows

Change-Id: Ia333ab251fc0fc4129ad0610412c5c509914a58e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140453
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-09-24 16:19:17 +02:00
Khaled Hosny
0d6a103aa5 vcl: accept bitmap fonts in OpenTTFontFile()
We never subset such fonts after:

commit 77cce80bb5
Author: Khaled Hosny <khaled@aliftype.com>
Date:   Thu Sep 22 23:35:12 2022 +0200

    vcl: tdf#121327 PDF export for bitmap color fonts

But PrintFontManager::analyzeSfntFile() calls this function for
non-subsetting uses, it probably shouldn’t since all info it should
possibly need can come from FontConfig, but re-instate this for now.

This check is very blunt and it would lead to empty fonts in PDF if we
ever try to subset such a font, but lets clean this up later.

Change-Id: I804d0244ee24a4b4e92b36efd26b376cbe40784d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140542
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
Reviewed-by: خالد حسني <khaled@aliftype.com>
2022-09-24 16:18:31 +02:00
Bjoern Michaelsen
f48cb25a91 Replace RES_NAME_CHANGED with an SfxHint for stronger typing
Change-Id: I0bbe9dc4e10491aafcc623c2add62a246ea67d80
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139961
Tested-by: Jenkins
Reviewed-by: Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org>
2022-09-24 15:09:41 +02:00
Noel Grandin
6367348d5c simplify CmapSubTable
use vector rather than handrolling it

Change-Id: Ie160d5d60470e01434c61d80a2c7965e9126d508
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140540
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-09-24 13:53:56 +02:00
Michael Stahl
03714397c8 solenv: gdb: unbreak MarkBasePrinter
(regression from commit b1cefa026d)

Also unbreak SwXTextRangePrinter, not sure why that broke.

Change-Id: I4d6f640e0b8422fcf9ae84fffabc77161311eac1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140522
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-09-24 13:40:53 +02:00
Noel Grandin
222e56157c tdf#151148 Finding KATAKANA which has voice consonant mark wrong
regression from
    commit c7551e8a46
    Author: Noel Grandin <noel.grandin@collabora.co.uk>
    Date:   Thu Sep 16 10:36:48 2021 +0200
    speedup CharacterClassificationImpl::toUpper

Change-Id: I0309dec3d08220b9616be185360013869598fa1c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140541
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-09-24 13:39:05 +02:00
Noel Grandin
ab1d9893ba flattenTrueTypeTableGeneric
Change-Id: I197b2f45943513af7a514c92b5896bda659adf9d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140536
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-09-24 12:29:40 +02:00
Noel Grandin
af6f379ec6 flatten TrueTypeTablePost
Change-Id: Ifafd87770732dd3f461dbb6823b92796331fa683
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140529
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-09-24 12:29:16 +02:00
Rafael Lima
64e916e498 Update git submodules
* Update helpcontent2 from branch 'master'
  to df6900524c02966c0d115312c458c5bc3e8f6f29
  - Silence strings for translation in SF Region service
    
    The example for calling "help" with the Number2Text method cannot be translated because the number and order of options is different for each supported language.
    
    For example, in "en-US" we have the following options:
    one, two, three
    ordinal: first, second, third
    ordinal-number: 1st, 2nd, 3rd
    year: nineteen ninety-nine, two thousand, two thousand one
    currency (for example, USD): two U.S. dollars and fifty cents
    money USD: two and 50/100 U.S. dollars
    
    Whereas in "pt-BR" the options are very different (and more importantly, a different number, which totally prevents translation).
    um, dois, três
    feminine: uma, duas, três
    masculine: um, dois, três
    ordinal-feminine: primeira, segunda, terceira
    ordinal-masculine: primeiro, segundo, terceiro
    ordinal-number-feminine: 1.ª, 2.ª, 3.ª
    ordinal-number-masculine: 1.º, 2.º, 3.º
    
    Change-Id: I688de573b82ca83d714562f1acc705c23333081f
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/137528
    Tested-by: Jenkins
    Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2022-09-24 12:17:20 +02:00
Julien Nabet
45bee76783 tdf#117764: fix context menu item "Conditional formatting"
Respond to https://bugs.documentfoundation.org/show_bug.cgi?id=117764#c1
a) the function should be *available* on "clean" cells (removed after comment in gerrit)
b) answering "No", one would not edit the existing format, *but will edit a new format instead*
c) answering "Yes", one would edit the existing format

Change-Id: I8c578a59084c557939a853d4746efffbaf4e56e3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140266
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2022-09-24 11:32:15 +02:00
Bjoern Michaelsen
5895fb9dac remove RES_GRAPHIC_SWAPIN, it is never created
Change-Id: I9e7546d3f8bf5a3c0cefbdd3a4925467d7439856
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140105
Tested-by: Jenkins
Reviewed-by: Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org>
2022-09-23 22:48:40 +02:00
Caolán McNamara
e5793c6406 ofz: bump sc-rtf and html max lengths
Change-Id: Ic7c596b59a420dc098ae61298d9fa048f826662c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140528
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-09-23 21:56:16 +02:00
Taichi Haradaguchi
93e0ce447c Rename #define
Rename SCSTR_FILTER_TEXT_COLOR_COND to SCSTR_FILTER_FONT_COLOR_COND according to UI string changes (https://gerrit.libreoffice.org/c/core/+/137087).

Change-Id: I34a707e4924299fccbbb3dcd9580de100221a012
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139943
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2022-09-23 21:54:57 +02:00
Noel Grandin
4978c106cf add a SwTextNode::ReplaceText variant that takes a SwPosition
part of the process of hiding the internals of SwPosition

Change-Id: I6eeac9861f3d170d89b78f71a45bf48dd8478c13
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140437
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-09-23 21:40:52 +02:00
Michael Stahl
88c41829ab rhbz#2122948 sw: fix ODF import of fieldmark in redline
The problem is that SwXText::compareRegionStarts() calls
SwXText::CreateCursor() which creates a cursor on the last node in the
body text, but it's actually a redline.

Override SwXRedlineText::CreateCursor() to create a cursor in the
redline text.

Complete mystery why SwXText has 2 virtual functions to create
cursors in the first place.

(regression from commit 463178fef5)

Change-Id: I0f3bcf4eda25f1ac7e1c1b0cf47a920f8302d2b7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140523
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-09-23 21:38:58 +02:00
Michael Stahl
a0a529a131 xmloff: ODF import: fix crash on fdo34997-1.odt
Clean up the redundant checks too, these are all called after first
checking hasCurrentFieldCtx().

(regression from 463178fef5)

Change-Id: Ieec848944ef576caf319d5da7dc11139a4d26c58
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140514
Tested-by: Jenkins
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-09-23 21:34:59 +02:00
Stephan Bergmann
8cadfec386 Fix utl::splitLastFromConfigurationPath
* Fix regressions introduced with 5edefc801f "use
  more string_view in unotools".  (Notably, misuses of two-argument std
  string_view rfind are something to watch out for, see the commit message of
  93e234c45c "Fix a misuse of two-argument std
  string_view rfind" for details.)

* Bring the implementation some more in accordance with the documentation, by
  being stricter about handling invalid paths, and making sure to really assign
  all of the input _sInPath to the output _rsLocalName in case of an invalid
  path.

* Only &...;-decode the names of set elements in ['...'] and ["..."], not
  anything else.

Change-Id: If01f4b34af42b0a594994b732d54f26695329286
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140493
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-09-23 19:59:36 +02:00
Stephan Bergmann
4689f7579a Add tests for utl::splitLastFromConfigurationPath
...documenting how the implementation is in discordance with the documentation
for some corner cases and how things got recently broken with
5edefc801f "use more string_view in unotools", in
preparation for an upcoming improvement of that function's implementation

Change-Id: Ia47243c64b724009c5ed5eecb9d890820287e9ea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140492
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-09-23 19:59:05 +02:00
Mike Kaganski
b60dc48bb4 tdf#151117: Process non-existent long paths correctly
Regression after commit 92e835dbf0
  Author Kunal Pawar <hellokunalpawar@gmail.com>
  Date   Fri Feb 18 19:15:04 2022 +0530
    tdf#98705 Replace GetCaseCorrectPathName with GetLongPathNameW

The fix tries to keep the performance improvement, and when the path
exists, it will only call GetLongPathNameW once. Anyway, for unclear
reason, this normalization only happens on long paths.

Change-Id: I1cf9a47dfc35046ec1b5eebbbcaca09edb1c471a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140516
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2022-09-23 19:16:14 +02:00
Andrea Gelmini
d991134f55 Removed duplicated include
Change-Id: Idc57a6d048d730acf9f59c565bc7a57928eb3aa5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140515
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2022-09-23 18:27:44 +02:00
Xisco Fauli
1d5e3285e9 CppunitTest_sc_uicalc: use utf-16
Change-Id: I8fcb56d42c50748b31f7737f37e1f950b83fb539
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138725
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-09-23 17:59:47 +02:00
Xisco Fauli
60705295ae CppunitTest_sd_uiimpress: use utf-16
Change-Id: Idd22956c1b5412d7bb02fd99fd2e3ee54284c4bd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140491
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-09-23 17:49:26 +02:00
Stephan Bergmann
c79212479f Fix a misuse of two-argument std string_view rfind
...similar to 93e234c45c "Fix a misuse of two-
argument std string_view rfind".  This one got introduce in
15d8762dd0 "use more string_view in cui".  (And if
it wasn't for other bugs elsewhere, this code could be reached e.g. in Writer
with "Tools - Macros - Organize Macros - Basic...", in "Macro From" select "My
Macros - Standard - Module1" and in "Existing Macros in: Module 1" select
"Main", then "Assign...", and this code would have miscomputed aModule as "Main"
rather than as "Module1".)

Change-Id: Id3fd66e0bd252d79af629abbbf1e38b37679de70
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140490
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-09-23 17:49:10 +02:00
Justin Luth
3bfed17b04 tdf#123990 sc condformat: case insensitive begins/ends/contains
This is how Excel handles these.

At first I was afraid that this would upset LibreOffice users,
but then I realized that equals already is case insensitive,
so this change ought to be more consistent, and thus there should
be fewer outcrys.

Change-Id: Ia3de78d5888672ba8b774866d41ecd65293397c1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140484
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2022-09-23 17:38:15 +02:00
Xisco Fauli
23cbe9b969 Fix GraphicTest::testLoadSVGZ() on non-default DPI
Change-Id: I6f6435a285e34cf27798265d9d98f15337991b54
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140406
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-09-23 16:47:58 +02:00
Caolán McNamara
abe8d06682 Related: tdf#35030 hide the "reset" button more reliably
otherwise it won't end up hidden if the "keyboard" tab page is the initial
page, this handler only happens when the user switches tabs.

use the newly added virtual methods to manage this instead

Change-Id: I3eef6b4d7d453a5ec16ec62b2ebb558bd4757caa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140489
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-09-23 16:16:43 +02:00
Justin Luth
bb47ffbc9d tdf#46733 sw: don't double-select column during deleteCol
The problem here was that under IsNewModel tables were
selecting the entire column (including merged cells)
and then using THAT selection to ExpandColumnSelection.

Well, that ends in disaster. Since NewModel already
expands to catch the cells that are contained inside
the selected cells, there is no need to expand
the selection of GetTableCell.

Change-Id: I43089d912cdd17b2599619a43e40fecc2f5dd3b5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140455
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2022-09-23 16:05:08 +02:00