486005 Commits

Author SHA1 Message Date
Miklos Vajna
1e75a434e3 writerfilter: fix crash in DomainMapper_Impl::handleIndex()
Crashreport signature:

program/libwriterfilterlo.so
      writerfilter::dmapper::DomainMapper_Impl::handleIndex(tools::SvRef<writerfilter::dmapper::FieldContext> const&, rtl::OUString const&)
              writerfilter/source/dmapper/DomainMapper_Impl.cxx:6116
program/libwriterfilterlo.so
      writerfilter::dmapper::DomainMapper_Impl::CloseFieldCommand()
              include/rtl/ustring.hxx:527
program/libwriterfilterlo.so
      writerfilter::dmapper::DomainMapper::lcl_text(unsigned char const*, unsigned long)
              writerfilter/source/dmapper/DomainMapper.cxx:3735
program/libwriterfilterlo.so
      writerfilter::rtftok::RTFDocumentImpl::singleChar(unsigned char, bool)
              writerfilter/source/rtftok/rtfdocumentimpl.hxx:718

Change-Id: I4e0f93ce50c8c9a1f9a1a0f9204bd4fee70cdde4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151502
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2023-05-08 13:37:53 +02:00
László Németh
4d3d1527c4 tdf#147180 sw: fix lost change tracking of empty rows
during partitionating the redline of a tracked text
containing tables.

Empty tracked table rows use a dummy redline to store
tracking data. Insert this, when tracked tables in a
single redline are partitionated after modifying its
text content, deleting its rows, or using tabulator to
move cursor in the next cell.

Follow-up to commit a9cf949efcfdb9eb459cabe1b9e15f993e789c73
"tdf#147180 sw: fix lost change tracking of modified tables".

Tests:

1) Load a tracked empty table, and insert a character
   in the first cell;

2) Insert a tracked empty table with multiple rows, and insert
   two paragraphs in the first cell;

3) Insert a tracked empty table with multiple rows, and delete
   the first row.

4. Insert a tracked empty table with multiple rows, insert a
   character and press tabulator (which triggers partitionating
   as a new regression).

Change-Id: I8bf0f6b201a892a4f54d0bcdde33de440e5be67b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151425
Tested-by: Jenkins
Tested-by: László Németh <nemeth@numbertext.org>
Reviewed-by: László Németh <nemeth@numbertext.org>
2023-05-08 13:33:51 +02:00
Heiko Tietze
b7632b68c5 Resolves tdf#155167 - Start center app pane issue under gtk3
Issue introduced with 77ed6380dda73a9716f48f73c3ff730380557a09

Change-Id: I093808b87bca5f93e28239f22886f543a053e62b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151493
Tested-by: Jenkins
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2023-05-08 13:33:16 +02:00
Andreas Heinisch
f31bda6971 tdf#154282 - Prevent crash for LeftParaMargin and RightParaMargin
Prevent crash for LeftParaMargin and RightParaMargin by returning both
values for the hardcoded 0 in SfxDispatchController_Impl::StateChanged.

Change-Id: I7705bd5e22d6cd7fbbe702d7ddbf17e2899b851e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151472
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2023-05-08 13:33:11 +02:00
Caolán McNamara
63b8e8bda2 tdf#152974 revert change to ORichTextModel::getPropertyDefaultByHandle
properties that match the default are not exported, so we're basically
stuck with what is in there for compatibility with older versions, so
revert

commit ca46afebb7dc0ec4375e995fa90edccbed6c2530
Date:   Tue Oct 4 16:22:51 2022 +0100

    default to 'flat' instead of '3D Look' for form controls

and set m_nBorder to the desired new default in the ctor but
leave getPropertyDefaultByHandle as it always was

Change-Id: Ia862fc6851248fc9b16b3b4c505fdaf6fdb4b2ac
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151497
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2023-05-08 13:21:20 +02:00
Noel Grandin
772ce2e0a9 unique_ptr->optional for Bitmap
since Bitmap is really just a tiny wrapper around SalBmp

Change-Id: Ie2c9be40f6abba72c600c6778ec42d0689c66558
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151498
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-05-08 13:06:21 +02:00
mostafa-elsharnoby
c5c83c8e6c tdf#114441 Convert use of sal_uLong to sal_uInt32
Replaced sal_uLong with sal_uInt32 because implementation of the
GetValue() returns sal_uInt32.

Change-Id: I6e4d9b3f4854da0c60d7ba32b688106639362adc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146821
Tested-by: Hossein <hossein@libreoffice.org>
Reviewed-by: Hossein <hossein@libreoffice.org>
2023-05-08 12:57:18 +02:00
Samuel Mehrbrodt
240c241097 tdf#144549 Consider number format colors when filtering/sorting by color
Change-Id: Ie2e7aa42c15967c1ce04157163b37798522f7349
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151091
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
2023-05-08 12:12:15 +02:00
Olivier Hallot
8cd29dac40 Update git submodules
* Update helpcontent2 from branch 'master'
  to 36a8ea5fd6658cc2870ad518e8e84a752427bcb7
  - Update Draw/Impress Drawing Bars
    
    + refactor of images and links
    
    Change-Id: I6f97cb7d238e076b60342e0999f3aadeda1632e2
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/151490
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2023-05-08 11:08:59 +02:00
Armin Le Grand (allotropia)
db4b960643 MCGR: Correct import for Gradient presets/templates
Change-Id: I1424ad5deb65f6c72f414a51a40fbd1138c284d8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151432
Tested-by: Jenkins
Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
2023-05-08 11:06:02 +02:00
Svante Schubert
603934447c XHTML export: Removing former 'ugly' - now redundant- fix added by
tdf146264 as now made redundant by prior changes

Change-Id: I6747e33d1ffd4812d8881e10cda2300e7d79e1b3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151468
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2023-05-08 09:43:11 +02:00
Svante Schubert
1f92ade0ae XHTML export: Removing bullet prefix, which is not viewed in LO - similar
to tdf146264

Change-Id: Iba9a3ca8591591300b4a432caf280935ef8d193a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151467
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2023-05-08 09:42:56 +02:00
Svante Schubert
5178ade8a1 XHTML export: Removing bullet suffix, which is not viewed in LO - see tdf146264
Change-Id: I017c0b6deb84f01f98beddf2b24c0b3500e23e89
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151466
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2023-05-08 09:42:46 +02:00
Svante Schubert
e857b12dad tdf#154989 filter: XHTML export: avoid duplicated frames
Various updates on XSLT ODF2HTML triggered by TDF issue 154989 - esp. image/frame positioning by CSS position

(regression from commit f680b6d74209fd78c547201b2f14c6547e55c81b)

Change-Id: I4d08a67ebca7ae3808db07c828488bb9284623a3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151094
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2023-05-08 09:42:22 +02:00
Michael Stahl
ab85fd73a5 tdf#153839 XHTML export: do not add newlines to attribute values
(regression from commit d2e8705c9cc503afdaed366b1f71ed012b0c568f)

Change-Id: I5e841b1db195b0646c5a2244061f93b97344c3dd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151465
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2023-05-08 09:41:59 +02:00
Michael Stahl
63ac36893a tdf#153839 XHTML export: fix syntax error in table.xsl
Static error at xsl:param on line 67 column 40 of table.xsl:
  XTSE0010: xsl:param must not be preceded by other instructions

(regression from commit ce4272c25426f0084e53735e80870b9339239078)

Change-Id: I5bed9a8ad81edc5ec016618cb9fd5d75209a2809
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151464
Tested-by: Michael Stahl <michael.stahl@allotropia.de>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2023-05-08 09:40:31 +02:00
Hossein
fdd7304485 Drop boost dependency for writerfilter
The last usage of boost in writerfilter was <boost/lexical_cast.hpp>.
This is now implemented using rtl::math::stringToDouble(). To avoid
behavior change in case it does not find any suitable characters to
convert, it is checked that the index of the last parsed character to
be zero, as lexical_cast throwing bad_lexical_cast exception in this
case but stringToDouble reports rtl_math_ConversionStatus_Ok.

OUString::toDouble() is not enough here, as it does not provide suitable
error handling mechanism beyond IEEE 754 special values and 0 as output.

stringToDouble() should be able to handle 16-bit char strings, as it
takes std::u16string_view type string as input, and also uses sal_Unicode
as the data type for the separators.

The boost library is no longer in use in writerfilter. But, right now it
is not possible to remove the remainings from the makefiles and includes,
because of the dependencies that still use boost.

Change-Id: Iae4b83106fcbdded71e7d9e5f70376ab408e9b5f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139279
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-05-08 09:36:59 +02:00
Miklos Vajna
d9a276bc6a sw: prefix members of ProgressBarHelper, SvI18NMapEntry_Key, ...
... XMLBase64ImportContext and XMLErrors

See tdf#94879 for motivation.

Change-Id: Ic8d1b3515727981c50d8f3a64fe6bf030f0521fa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151491
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2023-05-08 08:53:18 +02:00
Samuel Mehrbrodt
bb5e03681c tdf#95520 Autofilter: Sort by color
Change-Id: I2c1455cc2c741d16f09eccee0bf489f8990684f7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151064
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
2023-05-08 08:14:42 +02:00
Tomaž Vajngerl
900c3a2a85 svx: use ComplexColor in SvxColorItem instead of the ThemeColor
ComplexColor includes everything a ThemeColor has and in addition
also can have various other representations that are supported by
OOXML. This is important for compatibility reasons to preserve the
color information.

Change-Id: I677775a96511dc1742c75b1949e002eaa8c622e2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151226
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-05-08 07:23:17 +02:00
Tomaž Vajngerl
7a10187042 XComplexColor and UnoComplexColor - a wrapper for model:ComplexColor
Change-Id: I40107fc38a4d080d969fee862595660d2f585e51
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151225
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2023-05-08 07:23:09 +02:00
Julien Nabet
002ae41bb6 Simplify some initializations in writerfilter
Change-Id: Ib9f653c6add8713a9acf9f6b4605323bcb2c6db6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151470
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2023-05-07 23:15:54 +02:00
Julien Nabet
28502c1ddb Simplify initialization in cui/source/options/optlingu.cxx
Change-Id: Ie2d68ff2dc9cbc99a10fd3403a72737be4b991dd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151478
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2023-05-07 22:29:48 +02:00
Julien Nabet
5152841ad0 framework/taskcreator: declare ARGUMENT_HIDDENFORCONVERSION and use it
Change-Id: Ie4e8c24bf776d0ba0e1b7f986fd506521816d2e0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151477
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-05-07 22:15:41 +02:00
Mike Kaganski
059892da74 Simplify a bit
Change-Id: Ibcf59feaa1631c06a393017d1b6342d4a646b9a0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151387
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-05-07 21:03:41 +02:00
Noel Grandin
1c7cbd6856 use AlphaMask for variables when calling GetAlphaMask
Right now this doesn't make any difference, since Bitmap is the
superclass of AlphaMask.
But when I switch to using alpha instead of transparency, passing
AlphaMask around is going to mean something different to passing plain
Bitmap around.

Change-Id: Ic1541e5f0a3b97331793cd23e23115faa7f382b0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151463
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-05-07 20:17:16 +02:00
Noel Grandin
918012d94c simplify code
The BitmapEx constructor already does this check, no need to do it here

Change-Id: Iacd0e1b1d4aa3dfae120e0d4a60a6924ecd9f778
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151460
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-05-07 20:17:06 +02:00
Mike Kaganski
4f93995f22 tdf#137972: when correcting PaMs, move them to the end
The cursor position is pushed in SwView::ExecSpellPopup, and popped
in the end, to restore the changed position e.g. when the action is
cancelled.

In the replacement, the PaM of the pushed cursor is updated in
DocumentContentOperationsManager::ReplaceRangeImpl, likely to avoid
several updates during the further processing. The stated goal is
to move all PaMs out of the deleted range, but the direction is not
stated explicitly.

If this correction is removed, the cursor PaM gets corrected anyway,
and arrives at the end of the replaced text. So, to fix the bug, and
to be compliant with the default case, let's correct to the end of
the range, instead of the random direction (GetPoint() may return a
position at either end, depending how PaM was created).

Change-Id: I83bcf01bcc0bf7277a9a34263b524b1212785814
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151462
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-05-07 19:53:27 +02:00
Olivier Hallot
f06b19e0f6 Update git submodules
* Update helpcontent2 from branch 'master'
  to bcabd26061bf9740878cdbbbf09c2efb686d2b24
  - Put back string for related topics
    
    Change-Id: I63fecc145ddab0948931ffbd8898fd3d1096cff3
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/151485
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2023-05-07 19:52:15 +02:00
Olivier Hallot
ece20eb780 Update git submodules
* Update helpcontent2 from branch 'master'
  to 35f61fce142836d5bc2542d474e779532f7e68d7
  - Update Help page for Line and Filling toolbar
    
    + several updates and refactoring
    
    Change-Id: I218204d3c37def5acfc89a5eb5b36a19ed3b38be
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/151484
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2023-05-07 19:50:41 +02:00
Olivier Hallot
5cbfb519aa Update git submodules
* Update helpcontent2 from branch 'master'
  to b8c81e75d9094cddd2b62f7835d67e6fe2070254
  - Update icon
    
    Change-Id: I2bf5920120d2c96a06cd17edef7666ca5c7c2901
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/151483
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2023-05-07 19:50:09 +02:00
Olivier Hallot
3f30e2e606 Update git submodules
* Update helpcontent2 from branch 'master'
  to 9eff87dfdf14777f4a867c5f6614868a9f8bb631
  - Refactor - no change in contents
    
    Change-Id: Ib8d52fee2054790a97ce5fa57ba573884a96fecf
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/151482
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2023-05-07 19:49:52 +02:00
Olivier Hallot
6776268604 Update git submodules
* Update helpcontent2 from branch 'master'
  to 4bb76d76debdcb5d63ac58da66723759b2af92eb
  - Refactor help file, no content change
    
    Change-Id: I7f8034e20776809112d86f9253d2980dd343de8c
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/151481
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2023-05-07 19:49:18 +02:00
Olivier Hallot
912b25d6bd Update git submodules
* Update helpcontent2 from branch 'master'
  to 8b3d7e6a7832b4c0dd6b489b9ca0f3229dfeb79b
  - Refactor - Visit help file for icon updates
    
    Change-Id: I69004353c7b6df30e3679900fa9bbe877983d1fc
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/151480
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2023-05-07 19:48:39 +02:00
Olivier Hallot
96c866ffc7 Update git submodules
* Update helpcontent2 from branch 'master'
  to fb88bf7fa8e5909ef7da5dde76545eb3b944279b
  - Refactor help page - no contents change
    
    Change-Id: Iecc4632f24421c5fd77636bb9489e298cb72428b
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/151479
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2023-05-07 19:44:25 +02:00
Julien Nabet
4327ee4563 Simplify some initializations in framework/source/classes/taskcreator.cxx
Change-Id: I56480780903a39534c3bab8e79e3864fcba10470
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151473
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2023-05-07 19:22:00 +02:00
Julien Nabet
9f878c69f3 framework/inc/taskcreatordefs.hxx: these are bool and not sal_Bool (2)
Thank you Mike for having spotted it! :-)

Change-Id: I210edf2e05eb6ba02ac9cdd999c4f2233819cfa4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151476
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2023-05-07 19:17:43 +02:00
Julien Nabet
7acdb3c81f Simplify some initializations in sfx2/source/doc/printhelper.cxx
Change-Id: Ia85598b6558f8f34187f40d6f5e5285bbc28abf8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151471
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2023-05-07 19:12:46 +02:00
Julien Nabet
45aa6f7ca9 framework/inc/taskcreatordefs.hxx: these are bool and not sal_Bool since 2014
See a6287e21f1dab6ae382c24ceeb4c0212b7cad2d7 "framework: sal_Bool->bool"

+ /opt/lo/bin/clang-format -i framework/inc/taskcreatordefs.hxx
as requested when submitting patch with logerrit

Change-Id: Icb21563590a4104f3cb678db44fc4b5f1d884764
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151475
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2023-05-07 18:24:26 +02:00
Julien Nabet
12e0178d4a Typo: freature->feature
Change-Id: Ia30740ce0422b2fe5a85e288f18de68a1dca9b33
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151474
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2023-05-07 18:15:29 +02:00
Caolán McNamara
863d7317a1 crash seen with empty moLineColor on macOS with skia
Change-Id: I260f6bd060b9f1ec3a782ff765b676f78d126d40
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151461
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2023-05-07 17:23:46 +02:00
Noel Grandin
6a45cb6a03 avoid unnecessary SAL_WARN
Change-Id: I48db543231f0b7abb7e27173b9bbfd0b657dc716
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151457
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-05-07 15:48:16 +02:00
Caolán McNamara
2aabb00d57 ofz#57493 Timeout negative width/height is negated and mirrored by vcl
Change-Id: I70c0a72d6bbbec7e809edc856976633fce3efa9d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151458
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2023-05-07 14:17:12 +02:00
Andreas Heinisch
6f67eb36d0 tdf#96854 - Remember last used option in copy/move sheet dialog
Change-Id: Iebfd224091c108bb5068b716c39da0979a7ab3ac
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151437
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
2023-05-07 13:39:12 +02:00
Mike Kaganski
54d07afac6 tdf#155176: only use item's URL in case filesystem path failed
I was daydreaming, when thought that we can rely on the system-provided
file URL. Windows creates such URLs using current 8-bit codepage, and
URL-encodes the octets from that string, which fails when the URL is
treated as UTF-8 after URL-decode.

Change-Id: I2703586d371c1254e693a5760c5b6b74101e299d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151456
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-05-07 13:34:31 +02:00
Regina Henschel
dfb0d118f6 tdf#139083 Only resize if 'resize with cell' is set
The copy&paste of ranges with shapes had the following further bugs:
* For cell anchored shapes the position was taken from the source
rectangle instead of the anchor.
* Resizing was calculated from source and destination rectangle, but
should only depend on size of object range.
* tdf#125938 Shapes were moved without adapting the anchor.
* tdf#155091 Source with filtered rows produced doubled objects in
paste.
* The CopyToClip method has a useless NbcMove(size(0,0)). NbcMove
is a move 'by', not a move 'to'.
* tdf#155093 Pasted object has same name as source object and thus
is not accessible via Navigator.
* tdf#155094 Transposed pasted objects have wrong position
* tdf#155095 Objects over collapsed group are incorrectly resized
* tdf#141437, tdf#141436 transposed objects have wrong size

Only objects, which can really resize, are now resized. In case of
transposing no objects are resized. Transposing would need to
transpose the object geometry, but that is missing.
The offset inside the start anchor cell is adapted to the size of
the destination cell to keep the anchor in this cell.
Object resizing considers that filtered rows are removed whereas
collapsed or hidden rows are shown in pasted area.
Object resizing does no longer use global factors but calculate the
desired snap rectangle and fits the object into it.

Change-Id: I42924b28a2d652d8b70cb8e1a1d7ca4324b09cf6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150161
Tested-by: Jenkins
Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
2023-05-07 10:57:04 +02:00
Adolfo Jayme Barrientos
a2066028ff Update git submodules
* Update helpcontent2 from branch 'master'
  to 06878198a15d3f7777cde8d24d0c889bd0ff8ec1
  - Proofreading
    
    Change-Id: I314b97f7472ba5159ec7394e243991c2a3e08969
2023-05-07 08:53:42 +02:00
Mike Kaganski
4cec737a53 Revert a thinko from commit 876010cbc4584249e919c694b8b977fd4e83084e
Indeed, the cDecSeparator and cGroupSeparator require that the buffer
uses the proper character type, otherwise it won't be possible to use
Unicode separators in rtl_math_doubleToUString.

Change-Id: Id26bed72776475c1be5b092e3ffcff0e75ffe557
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151451
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-05-07 08:07:40 +02:00
Noel Grandin
31e2b4746a improve some usage of OInterfaceIteratorHelper4
we can drop the lock immediately after construction (since
the iterator holds a thread-safe COW link to the underlying listener
container)

Change-Id: I08f8fa9ed7393747938572097f3c25f5f3f847fa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151440
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-05-07 08:00:46 +02:00
Jim Raykowski
50deb478e9 tdf#154211 SwNavigator: select range of content by shift + double-
click or shift + enter key

Enhancement to make a selection from the current cursor position in
the document to the position in the document that is navigated to
when a content entry in the Navigator tree is double clicked or the
enter key is pressed.

No selection is made when the current cursor position is in a table,
header, footer, footnote, or frame.

To make shift + double-click behavior for x11 and qt5 the same as
gtk3, FunctionSet::SetCursorAtPoint is added to the Shift case for
SelectionMode::Single in SelectionEngine::SelMouseButtonDown.

Change-Id: Id845dad8011ff7777a24f9b2730f10c62271c368
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151157
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
2023-05-07 01:23:20 +02:00