Commit graph

473335 commits

Author SHA1 Message Date
Jim Raykowski
99ac14c8cc tdf#140222 make InterimTearableParent docking windows not dockable
and only allow dockable type docking windows to be undocked/docked

Change-Id: Ia1b0ccbdd911c24f83baf1c0514954e354c9070b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129650
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
2022-03-07 02:46:38 +01:00
Regina Henschel
b4e9eb5b97 Swap light preview bmp in extrusioncontrols to correct order
The order was wrong since commit dd1df645b4 which moved them from
independent entries in extrusioncontrols.src to an ordered array in
extrusioncontrols.cxx.

Change-Id: I346a40a0506d9103a33eb9f06c7017663d61949e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131086
Tested-by: Jenkins
Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
2022-03-06 23:22:33 +01:00
Caolán McNamara
4e93ba94f1 ofz#45255 handle short O_hhea table
Change-Id: I649dfdb3eff868441125fbf62ff3c7d0d18d8d19
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131084
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-06 20:33:27 +01:00
Caolán McNamara
e0cc2e1b77 ofz#45271 suppress Integer-overflow
Change-Id: I8611f340e6fde049f209627e46f8ca0e100b9b6d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131083
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-06 20:33:01 +01:00
Caolán McNamara
f9b8b666cb ofz#45230 avoid OOM
Change-Id: Ia209809ddb7713d906fd481384dd463eba6dee57
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131082
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-06 20:32:35 +01:00
Luboš Luňák
94960bb335 don't try to spellcheck after last data cell (tdf#122827)
Change-Id: I728e7f19a521f5f3583b4963d84c7d36527c8842
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131076
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-03-06 19:42:35 +01:00
Caolán McNamara
673369abe3 ofz#45237 suppress Integer-overflow
Change-Id: I44496ae9428a75a6a08633e5ec31a754522ef1d1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131081
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-06 18:30:58 +01:00
Caolán McNamara
2e6a7db11b ofz: Too many hatch points
Change-Id: I08cb9d09a9bb48ab31763f50bc2fa23cf723330f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131079
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-06 18:30:44 +01:00
Caolán McNamara
434d852762 ofz#45276 uncaught exception
Change-Id: I5863d6474aa47f24b24a15481c8329a5e587a8d8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131078
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-06 18:30:27 +01:00
Caolán McNamara
c207e2c7a3 ofz#45286 Integer-overflow
Change-Id: I1fb3aa68fb4e2ad274053f30d04f20ea479e1f27
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131077
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-06 17:00:27 +01:00
Caolán McNamara
be364e3c21 ofz: Use-of-uninitialized-value
Change-Id: I1f1771c384e88417f40ea9dd76378fb057e3d977
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131075
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-06 16:40:32 +01:00
Caolán McNamara
08bbd27e1c ofz: Use-of-uninitialized-value
Change-Id: I41554dec3819efcd8e28f82bb732141c85414e9f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131074
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-06 15:23:19 +01:00
Caolán McNamara
1c722a1fc0 cid#1502882 silence Unchecked dynamic_cast
Change-Id: I30c2edd4df8175b9c5bbda91f6046d631193245d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131073
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-06 15:23:02 +01:00
Noel Grandin
9dee54299c clear UserCall in SdPage destructor
because I want to ref-count SdrObject, which changes the lifecycles
of these objects, and then if an SdPage dies before an SdrObject
we have a dangling m_pUserCall pointer.

Change-Id: Ia08178c1b2f288f6d9d489fb9fd79e67bc3ea61c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131065
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-03-06 14:38:08 +01:00
Arnaud VERSINI
82f9e12b73 Fix tdf#147755 by copying the vector.
Revert partially 224953d896

Change-Id: Ic12d3b0a080ad3af69fa5c4e8c9b4d331305a663
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131066
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-03-06 14:37:20 +01:00
Caolán McNamara
ffa0dedf93 crashtesting: assert that !rtl::isAscii in xmlError message
probably detected since:

commit 089ce740f9
Date:   Thu Feb 24 17:45:18 2022 +0300

    Deduplicate rtl_*String_newConcat*L

or similar

Change-Id: I69ac57bd5718a4da85516e2a2afa79dc2b04665e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131068
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-06 13:36:42 +01:00
Luboš Luňák
06bd8d70ea make CellTextAttr half the size
It's set for every cell with value.

Change-Id: Ie46617a621e6eb16b5f67d92e85bf2155e650fb1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131072
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-03-06 10:54:23 +01:00
Luboš Luňák
35fad78087 make a bunch of SvtBroadcaster/SvtListeners functions inline
These classes are used extensively during some operations in Calc,
and not even LTO can inline these when they end up in different
binaries.

Change-Id: I5b17a004c6cc039508b76d557d58714c83f237a5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131071
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-03-06 10:54:07 +01:00
Caolán McNamara
143de4b1a9 os thrown -> is thrown
Change-Id: I114bb29c59ad9a4b20ca3f34b057b02d439fbd77
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131067
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2022-03-06 10:39:02 +01:00
Justin Luth
05502f78ed link bug report to "likely wrong" comment
Change-Id: I3184037d3df79b1bf4c972046e7636b372662cdd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129825
Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2022-03-06 08:59:49 +01:00
Luboš Luňák
52f24a3a1e don't destroy and recreate broadcasters on large changes (tdf#131894)
Change-Id: If5377687e7bcfab00af37887d3aaf302fa615690
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131070
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-03-06 08:20:19 +01:00
Luboš Luňák
648a4b30b3 do not destroy broadcasters and then recreate again (tdf#134268)
Sorting ends tells all listeners on all the sorted cells to end
listening to stop updates, then sorts the cells and starts
listening again. This will cause all broadcasters for the sorted
cells to temporarily stop having any listeners, so they'll be
deleted and removed from the mdds vector (which may additionally
cause moving large parts of the mdds vector repeatedly). And
since all listeners will want to listen again after the sort,
this will all need to be reconstructed. To avoid this,
temporarily block this removal and then later just checks
and remove any possibly left-over broadcasters that ended up
with no listeners.

Change-Id: Ie2d41d9acd7b657cf31a445870ce7f18d28d5ebb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131069
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-03-06 08:19:51 +01:00
Luboš Luňák
7ac19fbce8 remove a workaround that appears to be no longer necessary
Presumably whatever the locking problem was, it's got fixed
meanwhile.

Change-Id: I7bbd6299a501396f53ed2e8ccaf7d5893744512b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131047
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-03-05 23:53:53 +01:00
Caolán McNamara
94e8b4b6a5 ofz#45167 Integer-overflow
Change-Id: Ib112686b192558421419a8695db9c3f35c5312da
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131058
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-05 21:42:20 +01:00
Luboš Luňák
8030b9cf1c compress RowHidden()/GetRowHeight() use in excel export (tdf#126326)
Change-Id: Idc6a704cfc820bbbb2b51eff8db8159c251ea9ab
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131062
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-03-05 18:34:39 +01:00
Mike Kaganski
713c83c0fc Add checks to avoid finding empty substring / zero character
... which changed in commit 281989007f

  Author Noel Grandin <noel@peralex.com>
  Date   Tue Jul 01 13:17:01 2014 +0200

    Use standard library optimised routines for OUString/OString

for optimized cases: strchr/wcschr/strrchr/wcsrchr find trailing zero
character, and strstr/wcsstr find empty string; previous/unoptimized
code does not find these. This introduced inconsistency between char
and sal_Unicode functions on non-Windows, and for sal_Unicode between
Windows and non-Windows (because on Windows, optimized code is used
for sal_Unicode, while on other platforms, unoptimized code is used).

Change-Id: I68529c91b26f4113d9bd7777fc5ac4809349864b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131064
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2022-03-05 18:17:55 +01:00
Luboš Luňák
805e73b555 don't bother tracking changes if both cells are empty (tdf#141174)
AppendContent() does something only if the cells differ, which can't
be the case if they're both empty, so skip unallocated cells.

Change-Id: I367801bac30a8ee641b4ce608392124bac6ef47a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131060
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-03-05 18:06:31 +01:00
Luboš Luňák
be99b23809 don't bother scanning nonexistent data (tdf#141182)
There's no point scanning for non-empty cells after the last data
cell, and this avoids processing mdds structures (such as repeated
creating of flat_segment_tree).

Change-Id: Ibec324aa2de457e8439c38a561f55ced9f478899
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131059
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-03-05 17:25:00 +01:00
Julien Nabet
eed8376408 tdf#136632: Use 'Save transparency' when exporting selected objects for PNG
To avoid some regression, consider that transparency should be enabled by default.
So only remove transparency if it's required explicitely.

+ change QA test since "Translucent" property isn't a bool but a sal_Int32
In officecfg/registry/schema/org/openoffice/Office/Common.xcs:
<prop oor:name="Translucent" oor:type="xs:int" oor:nillable="false">

Change-Id: I9bfb6aae8e2e8a31dee82f73a9165989129f222a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131057
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2022-03-05 16:40:14 +01:00
Noel Grandin
492098417a GetComponentServiceName can be const
Change-Id: Iac61eec0b27660dd2ff45f70c92de5a8cdc2c301
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131044
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-03-05 15:19:15 +01:00
Caolán McNamara
eaeb8b56a4 ofz#45231 Timeout
Change-Id: Id761d0aeaffe869c7ce3ea048bdee09b55ae60a9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131055
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-05 14:51:50 +01:00
Caolán McNamara
80d99a387f ofz: Use-of-uninitialized-value
Change-Id: If75e11dc26aae51d658dddd464135dd8a4f965ce
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131054
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-05 14:51:31 +01:00
Caolán McNamara
2fbf7dadf6 add svm playback to local testing
Change-Id: Ie69f628ee3f37b5cdab206c0c1c201a94841bf03
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131053
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-05 14:51:17 +01:00
Caolán McNamara
c53570e524 ofz: Use-of-uninitialized-value
Change-Id: I695b5721ec848845adff0a5c37b931b4cee5370d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131050
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-05 14:51:02 +01:00
Caolán McNamara
19c631692b ofz#45233 need some more services to play back metafile
Change-Id: Iafda9d9ad919a4a1a80131962c50a4a24b4b9b83
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131049
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-05 14:50:30 +01:00
Caolán McNamara
9cec15391b ofz: record less than 10 bytes is invalid
Change-Id: Ie6b88efbc12b4c7fddb7459e50cba28fcbcf35fe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131048
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-05 14:50:09 +01:00
Andrea Gelmini
23257525df Fix typos
Change-Id: I87f35153bbf53f58d6c8ca7b14a7fd09fec4372f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131052
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2022-03-05 13:49:13 +01:00
Andreas Heinisch
9d25f86236 tdf#38669 - Create the key event using a Unicode character
Instead of using a plain char, create a key event using a Unicode
character, otherwise the key event creates texts including rectangles or
wrong characters.

Change-Id: I9ec0d64998927d54eb3ae90a192c3b28e235f56d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130721
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
2022-03-05 13:08:53 +01:00
Noel Grandin
34e347db72 AccessibleShape::GetStyle can be const
Change-Id: Ic71ae0645c85ec27cc6a172d379070fe88a9f452
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131045
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-03-05 11:59:21 +01:00
Noel Grandin
6f652725fc make some svx methods const
Change-Id: If04a160c46b8dbf641ca9d115d1560f17e87ce4d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131043
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-03-05 11:59:04 +01:00
Luboš Luňák
0d2b5efdea make sc_namedrangesobj test work with 16k columns
'row1' is not a valid named range with 16k columns, it's a cell
address. Since the named range is constructed by the test,
not even 582fc887f1 can take
care of it, so rename such ranges.

Change-Id: I6643953d41e391c8c3cfc55768b06d61d9fcb0a2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131046
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-03-05 10:14:18 +01:00
pragat-pandya
6f121860d0 tdf#130924 replace debugging printf calls with SAL_INFO/SAL_WARN
Change-Id: Iaef5eec6508d031ab711a71c0d8ecebb18112ef6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130764
Tested-by: Luboš Luňák <l.lunak@collabora.com>
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-03-05 08:35:23 +01:00
Luboš Luňák
31e0ada711 remove more hardcoded sheet sizes from Calc tests
E.g. sctablesheetobj test had the limits hardcoded, even as actual
numbers. Apparently some tests cannot easily access global
settings, but this at least makes it easy to check all tests
after modifying ScSheetLimits::CreateDefault().

Change-Id: I6cff577fb01b1ea262dcd1f9fde24e114e19abdc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131040
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-03-05 08:30:59 +01:00
Luboš Luňák
16b4525e87 remove more hardcoded MAXROW
Change-Id: Ica57f18d3fd1bf9ec06f05869f4a956d7d1097b0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131036
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-03-05 08:30:45 +01:00
Luboš Luňák
2e2e30d7ae remove pAttrArray nullptr checks
I don't see how it possibly could be nullptr in a correct situation,
ScColumn::Init() is called right after creating ScColumn.
Also make a bunch of trivial forwarding functions inline.

Change-Id: I710d3cd86a660a8b4dcfbb9966a685b657b93c18
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131035
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-03-05 08:30:30 +01:00
Luboš Luňák
17bcf1073b introduce ScColumnData for ScColumn/ScTable code sharing
Since columns are allocated dynamically on demand, up until
this commit ScTable had ScPatternAttr member for unallocated
columns that it was using in place of those unallocated columns.
But that meant either copy&pasting pieces of code from ScColumn,
or having extra slightly more cumbersome shared function
in ScColumn, or even nothing.

Improve this by creating ScColumnData, which will be used as
ScColumn base class to keep things working as before, but
ScTable now also contains one ScColumnData instance and
so it can also call its functions.

Change-Id: If1d842c4a5aec32e2a7729358006d79cd831349f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131034
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-03-05 08:30:15 +01:00
Mike Kaganski
e001a86393 Use rtl::isAsciiDigit instead of custom macro
Change-Id: Iabca31825dd47cee661b47b14f09e96459a42015
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131033
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2022-03-05 06:22:06 +01:00
Mike Kaganski
2c82ed2416 Convert some macros to local lambdas
Change-Id: I22942588c7e7ebfb3f53cc5739d2bbd9a7ccfd41
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130983
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2022-03-05 06:21:47 +01:00
Caolán McNamara
c695c60be9 ofz: Null-dereference
Change-Id: I01be4c06c6d97430953ada8f3f5f84ef0a389267
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131032
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-04 22:38:37 +01:00
Caolán McNamara
d3e0159a3e ofz: Null-dereference
Change-Id: I7d8e30dc85df3cc5800617e5b2f232136bb72cdd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131006
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-04 22:38:20 +01:00