Commit Graph
47685 Commits
Author SHA1 Message Date
Noel Grandin 193207c5ab improve loplugin passparamsbyref
I think I managed to disable this when I converted it to
use the shared plugin infrastructure.

So fix that, and then make it much smarter to avoid various
false positives.

Change-Id: I0a4657cff3b40a00434924bf764d024dbfd7d5b3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176646
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-11-19 07:46:25 +01:00
Gülşah Köse b4b3949da1 Fix the wrong detection of hidden autofilter button
Regression caused by 2942fdc8db

OOXML <filterColumn colId="0">

Autofilter range colID is not absolute id. It starts always with 0 even
if the autofiltered range doesn't start with col 0 in the document.

So we are checking the flag from document (rDoc), not from the autofiltered range. So
we should use absolute column id  to get right flag.

Signed-off-by: Gülşah Köse <gulsah.kose@collabora.com>
Change-Id: I1f94058caa23686596d57dd6983ddf02cd8f5e71
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176564
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176717
Tested-by: Jenkins
2024-11-19 05:38:59 +01:00
Caolán McNamara a025eef003 cid#1606638 silence Overflowed integer argument
and

cid#1608572 Overflowed integer argument
cid#1607772 Overflowed integer argument
cid#1607196 Overflowed integer argument
cid#1606568 Overflowed return value
cid#1607573 Overflowed return value

Change-Id: I9a701b19026572127399712c3b660094f2a0bd40
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176740
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-11-18 22:24:40 +01:00
Caolán McNamara 2261734d88 Resolves: tdf#163831 Invalidate cache if the style is modified
Change-Id: I4a43936a6a7130734f5ae459a9406da99bf0f5f1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176727
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-11-18 20:22:47 +01:00
Xisco Fauli b223a06401 tdf#163486: PVS: reference may become invalid
V758 	The 'rModel' reference becomes invalid when smart pointer returned by a function is destroyed.

Change-Id: I34cbf998da49a576b43b946187de94495f5e5529
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176716
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-11-18 16:39:45 +01:00
Andreas Heinisch 671886c569 tdf#81913 - Keep cell highlighting active during arrow key navigation
Don't delete range finder during arrow key navigation since cursor keys
don't count as modifications.

Change-Id: I53566a4a84ff4dc81fdf0d8b8f6468f956958925
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176689
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
Tested-by: Jenkins
2024-11-18 08:43:33 +01:00
Andrea Gelmini 7cb6712b69 Fix typos
Change-Id: Ibeadfb72c54887ac8a74dbb11958266fbbda46e0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176659
Reviewed-by: Andrea Gelmini <andrea.gelmini@gelma.net>
Tested-by: Jenkins
2024-11-16 13:11:50 +01:00
Ilmari Lauhakangas bd8a1d1c45 tdf#163383 Skip adding a tooltip to internal links in all cases
Change-Id: I1d4e46b6e886d45982f3e8145e0bc12ec12d9884
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176626
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
2024-11-15 16:42:31 +01:00
Sahil Gautam df175a50b6 tdf#136003 Change labels in the protect sheet dialog
previously a comment `(for unprotected cells)` was added to the `Delete Rows` and `Delete Columns` menu entries as a solution of tdf#136003. The change has been reverted https://gerrit.libreoffice.org/c/core/+/176614

As tdf#136003 says "Can't delete rows, despite of allow to deletes", the source of confusion is these labels `[ ] Delete Rows` and `[ ] Delete Columns` in the protect sheet dialog. Changed these to `Delete rows with unprotected cells` to make it more clear what they are about.

Change-Id: I1009fca2a3cf56ffdc513fdb9b6192b3b965d050
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176616
Tested-by: Jenkins
Reviewed-by: Sahil Gautam <sahil@libreoffice.org>
2024-11-15 14:26:46 +01:00
Hossein dbce105be9 Cleanup notebookbar.ui for sc
While trying to load notebookbar.ui for sc I found that there are issues
with the .ui file itself:

* Duplicate IDs, created in 608e1452c5
* Typo in the attribute names, created with the manual edits in
    04ed7cbe53

This patch fixes above problems.

Now, one can preview the notebookbar.ui for sc with:

$ export GLADE_CATALOG_SEARCH_PATH=$PWD/instdir/share/glade
$ glade-previewer -f sc/uiconfig/scalc/ui/notebookbar.ui

Change-Id: I83be23f4a2a24a04f4fa8b627c138bc42bdf6916
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176619
Tested-by: Jenkins
Reviewed-by: Hossein   <hossein@libreoffice.org>
2024-11-15 11:26:11 +01:00
Balazs Varga 8391024604 tdf#160404 tdf#160535 tdf#160536 - sc improve sheet protection
tdf#160404: Fix FILEOPEN XLSX Pivot table is not imported if sheet
protection has Pivot table editing enabled
- Import correctly the pivot tables, even if the tab protection is not
allowing to use them.

tdf#160535: Support sheet protection option: Use AutoFilter
- Add new option for tab protection to enable/disable to use autofilter
on the sheet. Import/export correctly to odf/ooxml.
Add new ext-odf attribute: XML_USE_AUTOFILTER

tdf#160536: Support sheet protection option: Use PivotTable&PivotChart
- Add new option for tab protection to enable/disable to use Pivot table
on the sheet. Import/export correctly to odf/ooxml.
Add new ext-odf attribute: XML_USE_PIVOT

Change-Id: I5d34e3608aed1a3d004ec553f6125b6428e9c05e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176274
Tested-by: Jenkins
Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
2024-11-14 23:53:24 +01:00
Jonathan Clark 2cb039f570 tdf#36709 editeng: Layout for font-relative first-line indent
This change extends layout for font-relative paragraph first-line
indentation into Edit Engine.

Change-Id: I5906f493b91fbcb87ded165709fb132b33ce1906
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176487
Tested-by: Jenkins
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
2024-11-13 15:01:11 +01:00
Xisco Fauli 07ba469a35 tdf#163486: PVS: pointer not released in destructor
V773 	The 'pDefaults' pointer was not released in destructor. A memory leak is possible.

Change-Id: I7df195d1f515b86e85993d6c0a6cf60bcaff3109
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176477
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-11-13 09:29:02 +01:00
Xisco Fauli e2d333e5f2 sc: prefix members of ScEnginePoolHelper
Change-Id: I7c161ea0f30f6dce8cc64a841245f98f4ca8c507
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176472
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-11-12 13:35:14 +01:00
Noel Grandin 134afb333a clang-tidy: performance-unnecessary-copy-initialization in sc
Change-Id: I5d4b2190af6373772fcea7c8427454170fde2e6b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176437
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-11-12 11:15:45 +01:00
Noel Grandin 22a9cfbc9c loplugin:reftotemp in sc
Change-Id: Ibd0efec208447d0ad3f5d85354cbfc7d276064af
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176420
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-11-12 07:25:57 +01:00
Bogdan Buzea bb70ecfdfd tdf#163486: PVS: Identical branches
V1037 Two or more case-branches perform the same actions. Check lines: 921, 924
V1037 Two or more case-branches perform the same actions. Check lines: 1003, 1160

Change-Id: I42e78f2960b97a67625bfdb524b7f615833332ad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175230
Reviewed-by: David Gilbert <freedesktop@treblig.org>
Tested-by: Jenkins
2024-11-12 01:57:56 +01:00
Bogdan Buzea fa1902c464 tdf#163486: PVS: Identical branches
V1037 Two or more case-branches perform the same actions. Check lines: 1051, 1124

Change-Id: Iffebecc9ae82633734fd585e40fe51b30fde56b9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175211
Reviewed-by: David Gilbert <freedesktop@treblig.org>
Tested-by: Jenkins
2024-11-12 01:09:25 +01:00
Xisco Fauli 459a45800c tdf#163486: PVS: call GetItemSet() once
V656 	Variables 'aOldSet', 'aNewSet' are initialized through the call to the same function. It's probably an error or un-optimized code. Consider inspecting the 'pOldAttrs->GetItemSet()' expression. Check lines: 1181, 1182.

Change-Id: I44b7be1bfb53872109b39323f909d5e1fcc1a809
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176405
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-11-11 23:19:39 +01:00
Caolán McNamara 92618090a3 cid#1607751 silence Overflowed constant
Change-Id: I809149469d5393250e86116c37a41f7a52682484
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176384
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-11-11 18:22:40 +01:00
Caolán McNamara 7571696cdb cid#1607456 silence Overflowed constant
Change-Id: I6b8391df0d404e1e39d27a979d5e27211661fbac
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176383
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-11-11 18:22:33 +01:00
Caolán McNamara 98d80106a3 cid#1607376 Overflowed constant
Change-Id: Ib02923e0c40e97fa7a22c7f68079df48baf3fcb9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176382
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-11-11 18:22:26 +01:00
Caolán McNamara bc173a20ab cid#1607160 Overflowed return value
and

cid#1606794 Overflowed return value

Change-Id: I222f5fa18ed26ee92d970c744682bf21147265ea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176313
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-11-10 12:50:59 +01:00
Mike Kaganski 1180b3473a com::sun::star -> css
Change-Id: I890ec73e30d3cc6b210903ecee29431f3cb5f635
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175979
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-11-10 10:50:15 +01:00
Michael Weghorn 4b7316e2ff tdf#155447 a11y: Set accessible ID that Orca expects
Orca commit [1]

    commit 40a2d302eb52295433fd84e6c254a7dbe5108a24
    Author: Joanmarie Diggs <jdiggs@igalia.com>
    Date:   Thu Nov 7 14:15:07 2024 +0100

        Spellcheck: Check for accessible id in more places

        Do the following case-insensitive checks:
        * If the object's accessible id starts with "suggestions" treat it
          as the suggestions list.
        * If the object's accessible id starts with "replacement" treat it
          as the object (likely entry) which contains the proposed replacement.
        * If the label's/widget's accessible id starts with "error" treat
          it as the container displaying the misspelled word.

        Note that the first of the three is based on what LO 25.2 currently
        exposes ("suggestionslb"). The other two are not in use yet, but adding
        them facilitates implementation in, and getting feedback from, apps and
        toolkits.

        Also modify the existing check for the window. We were doing an exact
        match on "SpellingDialog". Making that case insensitive and limiting to
        starts with "spelling" works with the current LO implementation and
        removes an implementation detail ("dialog").

introduced logic to identify more UI elements in the spelling
dialog by their accessible ID.

Adjust the GtkBuilder ID (which gets reported as accessible ID as well)
of the drawing area that holds the misspelt text to match the
expectations as mentioned in the commit message above.

[1] https://gitlab.gnome.org/GNOME/orca/-/commit/40a2d302eb52295433fd84e6c254a7dbe5108a24

Change-Id: I0658de40a47e46a6b2451dfb4ee30d1457b9f9e3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176280
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2024-11-08 16:55:01 +01:00
Noel Grandin ed0b12f4ea no need to take a copy of the getProcessComponentContext return value
we can just take a "const &".

(found by running clang-tidy with the
performance-unnecessary-copy-initialization warning)

Change-Id: I20fd208c65303da78170b1ac06c638fdf3aa094b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176267
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-11-08 15:23:52 +01:00
Caolán McNamara d86360c7d0 cid#1608267 silence Overflowed constant
Change-Id: I10dfd5953e8f481c12111e2b541fece6aa2897e4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176260
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-11-08 12:33:15 +01:00
Mike Kaganski d833992e7e Avoid checking exact interface type of Any value
Change-Id: Ic883c3a9fd8eb87469aec6b6570a39aadf575c3e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176184
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-11-08 05:34:37 +01:00
Mike Kaganski 56f3dbffdf Simplify a bit
Change-Id: I618b0f8bcb2e8032ee12367c73e1136685f66b3e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176183
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-11-08 05:34:20 +01:00
Noel Grandin dd77b743a7 loplugin:passstuffbyref in sc
Change-Id: Ic3ce1406aa2567ca676bb8f431c52f590fadaec6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176198
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-11-07 12:11:35 +01:00
Caolán McNamara 6ec7e5bb89 cid#1555009 COPY_INSTEAD_OF_MOVE
and

cid#1555173 COPY_INSTEAD_OF_MOVE
cid#1555255 COPY_INSTEAD_OF_MOVE
cid#1556619 COPY_INSTEAD_OF_MOVE
cid#1556766 COPY_INSTEAD_OF_MOVE
cid#1557131 COPY_INSTEAD_OF_MOVE

Change-Id: Ia581e7858d8ff4db08308b4118116781db1464a6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176193
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-11-07 11:57:31 +01:00
Michael Weghorn 92a36bbd4f [API CHANGE] a11y: Switch AccessibleRelationType to enum
Switch css::accessibility::AccessibleRelationType
from integer constants to an enum.

This provides more type safety and improves the debugging
experience, e.g. GDB now prints

    com::sun::star::accessibility::AccessibleRelationType::AccessibleRelationType_CONTENT_FLOWS_TO

instead of just "2" when printing the value of a
corresponding variable, so it's no longer necessary
to manually look up what constant has that integer
value to know what relation this refers to.

offapi/com/sun/star/accessibility/AccessibleRelationType.idl
had this comment:

> <p>We are using constants instead of a more typesafe enum.  The reason
> for this is that IDL enums may not be extended.  Therefore, in order to
> include future extensions to the set of roles we have to use constants
> here.</p>

However, the a11y UNO API is internal (not published),
so that shouldn't be a concern.

Change-Id: I44a7d56cb085dc24effb24fcd34bb222b78ef4cd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176153
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2024-11-07 08:50:13 +01:00
Balazs Varga dcf3a85e6e Related tdf#162262 - sc: odf import/export of "Summary below data"
Add new LO_EXT "summary-below" attribute for table:subtotal-rules.

Follow up commit: 26c08356d1
(tdf#162262 sc add "Summary below data" option for Subtotal dialog)

Change-Id: Ie7f43d3c76479cd9468552b5939de5dbb2082a02
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176058
Tested-by: Jenkins
Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
2024-11-06 23:26:28 +01:00
Bogdan Buzea 1259a073c1 tdf#163486: PVS: Identical branches
V1037 Two or more case-branches perform the same actions. Check lines: 601, 604, 607

Change-Id: Iec91d390ae57b9a01af867cc8af34b442841dce2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175356
Tested-by: Jenkins
Reviewed-by: David Gilbert <freedesktop@treblig.org>
2024-11-06 22:28:40 +01:00
Sahil Gautam 608e1452c5 tdf#85976 Add 'Handle Duplicate Records' button to the notebookbar
Add button under the data tab for 'Handle Duplicate Records'.

Change-Id: I610985bcb8451172d2ae240c6cb2174912526578
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175764
Reviewed-by: Sahil Gautam <sahil@libreoffice.org>
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2024-11-06 20:51:01 +01:00
Bogdan Buzea a6a68d655e tdf#163486: PVS: Identical branches
V1037 Two or more case-branches perform the same actions. Check lines: 305, 361

Change-Id: Ibab399391a23eea20d6a589123bbfc947d131bef
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175216
Tested-by: Jenkins
Reviewed-by: David Gilbert <freedesktop@treblig.org>
2024-11-06 18:17:29 +01:00
Bogdan Buzea 3c32c93239 tdf#163486: PVS: Identical branches
V1037 Two or more case-branches perform the same actions. Check lines: 1114, 1129, 1261

Change-Id: I661f54f3aaa84002e3013439ea762afa4a251857
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175210
Tested-by: Jenkins
Reviewed-by: David Gilbert <freedesktop@treblig.org>
2024-11-06 18:16:19 +01:00
Noel Grandin a6c3f0b62a loplugin:passstuffbyref in svx
Change-Id: Ic5fd72cb64208c278ffc129591cd3d1131efdc08
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176137
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-11-06 15:45:24 +01:00
Caolán McNamara 92f5913aef cid#1556442 COPY_INSTEAD_OF_MOVE
and

cid#1607753 COPY_INSTEAD_OF_MOVE
cid#1554790 COPY_INSTEAD_OF_MOVE
cid#1556463 COPY_INSTEAD_OF_MOVE
cid#1554838 COPY_INSTEAD_OF_MOVE
cid#1556231 COPY_INSTEAD_OF_MOVE
cid#1556878 COPY_INSTEAD_OF_MOVE
cid#1554913 COPY_INSTEAD_OF_MOVE
cid#1558064 COPY_INSTEAD_OF_MOVE
cid#1557043 COPY_INSTEAD_OF_MOVE
cid#1556985 COPY_INSTEAD_OF_MOVE
cid#1556766 COPY_INSTEAD_OF_MOVE
cid#1557351 COPY_INSTEAD_OF_MOVE
cid#1554863 COPY_INSTEAD_OF_MOVE
cid#1556764 COPY_INSTEAD_OF_MOVE
cid#1556279 COPY_INSTEAD_OF_MOVE
cid#1555970 COPY_INSTEAD_OF_MOVE
cid#1556942 COPY_INSTEAD_OF_MOVE
cid#1557964 COPY_INSTEAD_OF_MOVE
cid#1555166 COPY_INSTEAD_OF_MOVE
cid#1556496 COPY_INSTEAD_OF_MOVE
cid#1557175 COPY_INSTEAD_OF_MOVE
cid#1558054 COPY_INSTEAD_OF_MOVE
cid#1557392 COPY_INSTEAD_OF_MOVE
cid#1557850 COPY_INSTEAD_OF_MOVE
cid#1555118 COPY_INSTEAD_OF_MOVE
cid#1557131 COPY_INSTEAD_OF_MOVE
cid#1556614 COPY_INSTEAD_OF_MOVE
cid#1609650 COPY_INSTEAD_OF_MOVE
cid#1555114 COPY_INSTEAD_OF_MOVE
cid#1555241 COPY_INSTEAD_OF_MOVE
cid#1555442 COPY_INSTEAD_OF_MOVE
cid#1556473 COPY_INSTEAD_OF_MOVE
cid#1557654 COPY_INSTEAD_OF_MOVE
cid#1554689 COPY_INSTEAD_OF_MOVE
cid#1556316 COPY_INSTEAD_OF_MOVE
cid#1557929 COPY_INSTEAD_OF_MOVE
cid#1554807 COPY_INSTEAD_OF_MOVE
cid#1554858 COPY_INSTEAD_OF_MOVE
cid#1555103 COPY_INSTEAD_OF_MOVE
cid#1555517 COPY_INSTEAD_OF_MOVE
cid#1556424 COPY_INSTEAD_OF_MOVE
cid#1557252 COPY_INSTEAD_OF_MOVE
cid#1557566 COPY_INSTEAD_OF_MOVE
cid#1608020 COPY_INSTEAD_OF_MOVE
cid#1557742 COPY_INSTEAD_OF_MOVE
cid#1555884 COPY_INSTEAD_OF_MOVE
cid#1554809 COPY_INSTEAD_OF_MOVE
cid#1555336 COPY_INSTEAD_OF_MOVE
cid#1555173 COPY_INSTEAD_OF_MOVE
cid#1556067 COPY_INSTEAD_OF_MOVE
cid#1557040 COPY_INSTEAD_OF_MOVE
cid#1556235 COPY_INSTEAD_OF_MOVE
cid#1557366 COPY_INSTEAD_OF_MOVE
cid#1555910 COPY_INSTEAD_OF_MOVE
cid#1556716 COPY_INSTEAD_OF_MOVE
cid#1558022 COPY_INSTEAD_OF_MOVE
cid#1555769 COPY_INSTEAD_OF_MOVE
cid#1555940 COPY_INSTEAD_OF_MOVE
cid#1557077 COPY_INSTEAD_OF_MOVE
cid#1555270 COPY_INSTEAD_OF_MOVE
cid#1555660 COPY_INSTEAD_OF_MOVE
cid#1556302 COPY_INSTEAD_OF_MOVE
cid#1555678 COPY_INSTEAD_OF_MOVE
cid#1556538 COPY_INSTEAD_OF_MOVE
cid#1557689 COPY_INSTEAD_OF_MOVE
cid#1555009 COPY_INSTEAD_OF_MOVE
cid#1555433 COPY_INSTEAD_OF_MOVE
cid#1555671 COPY_INSTEAD_OF_MOVE
cid#1555255 COPY_INSTEAD_OF_MOVE
cid#1557681 COPY_INSTEAD_OF_MOVE
cid#1557512 COPY_INSTEAD_OF_MOVE
cid#1554958 COPY_INSTEAD_OF_MOVE
cid#1555758 COPY_INSTEAD_OF_MOVE
cid#1555597 COPY_INSTEAD_OF_MOVE
cid#1558040 COPY_INSTEAD_OF_MOVE
cid#1556476 COPY_INSTEAD_OF_MOVE
cid#1557646 COPY_INSTEAD_OF_MOVE
cid#1557950 COPY_INSTEAD_OF_MOVE
cid#1557019 COPY_INSTEAD_OF_MOVE
cid#1557885 COPY_INSTEAD_OF_MOVE
cid#1556402 COPY_INSTEAD_OF_MOVE
cid#1557906 COPY_INSTEAD_OF_MOVE
cid#1556619 COPY_INSTEAD_OF_MOVE
cid#1554683 COPY_INSTEAD_OF_MOVE
cid#1556549 COPY_INSTEAD_OF_MOVE
cid#1554747 COPY_INSTEAD_OF_MOVE
cid#1554929 COPY_INSTEAD_OF_MOVE
cid#1555362 COPY_INSTEAD_OF_MOVE
cid#1557053 COPY_INSTEAD_OF_MOVE
cid#1557891 COPY_INSTEAD_OF_MOVE
cid#1555043 COPY_INSTEAD_OF_MOVE
cid#1555107 COPY_INSTEAD_OF_MOVE
cid#1557203 COPY_INSTEAD_OF_MOVE
cid#1556728 COPY_INSTEAD_OF_MOVE
cid#1557773 COPY_INSTEAD_OF_MOVE
cid#1556845 COPY_INSTEAD_OF_MOVE

Change-Id: I001fb67e597b096e992fd8a0cd6f3ec577767c33
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176098
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-11-06 13:58:54 +01:00
Caolán McNamara 797e215f79 cid#1634477 COPY_INSTEAD_OF_MOVE
and

cid#1634476 COPY_INSTEAD_OF_MOVE
cid#1634474 COPY_INSTEAD_OF_MOVE
cid#1634473 COPY_INSTEAD_OF_MOVE

Change-Id: Iefa96ce12bc787bf86e3f02066c46e943d8b3ebd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176097
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-11-06 09:28:00 +01:00
Mike Kaganski 0c1ae785e3 tdf#122716: take encoding defined for font into account
Before this, the non-ASCII Windows-1252 characters get exported to RTF
without Unicode markup, regardless of the font-defined charset; and on
import to Writer (and other compliant RTF readers), this 8-bit markup
was interpreted using the font data, producing different characters.

Change-Id: I2032930b6585287fde3eb3b5e6abed0298d29330
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176048
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-11-06 08:32:16 +01:00
Regina Henschel c377e21178 tdf#162177 Adapt function EASTERSUNDAY to ODF 1.4
This includes writing ORG.OPENOFFICE.EASTERSUNDAY for ODF 1.3 and
ODF 1.2.

Change-Id: Ifa19021060f0d0223234c1ca1109300908e2dda1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175736
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
2024-11-06 00:55:37 +01:00
Noel Grandin be11f27453 tdf#163667 speed up spreadsheet with lots of cond formatting (II)
Attempt to avoid the cost of GetCondResult when dealing with large runs
of identical cells

This restructures my caching code to increase the chance of hitting the
cache.

Change-Id: Ic83ff467be05fd645c80276708adb627c6b297d4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176007
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit 2ebb1205485cdc0bdd868ee0abe83e6a288b50da)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175997
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-11-05 20:25:31 +01:00
Balazs Varga e0521498bc Related: tdf#163736 - sc: Fix wrong nSearchMode (0) in vlookup
For VLOOKUP nSearchMode was 0. So static_cast<SearchMode>(nSearchMode)
casts to a value which does not exist in SearchMode enum. That gives an
"undefined behavior". Better to use the valid default forward search. (1)

Change-Id: I1757b43073e13638704b96c4a9d036cb9a21e470
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176043
Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
Tested-by: Jenkins
2024-11-05 17:49:25 +01:00
Bogdan Buzea 9a917ff656 tdf#163486: PVS: Identical branches
V1037 Two or more case-branches perform the same actions. Check lines: 778, 793

Change-Id: I2437bbac1bc952720d4ea3c43107c9d5e1ef1655
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175308
Tested-by: Jenkins
Reviewed-by: David Gilbert <freedesktop@treblig.org>
2024-11-04 22:49:22 +01:00
Balazs Varga 2236962677 tdf#163736 - sc: fix searchmode cached values for lookup functions
Check the search mode option in cache for lookup functions, because
different search modes can produce different results.

Change-Id: I6127a644dc4eae6fad909a6bc83bde2c66e85201
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175972
Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
Tested-by: Jenkins
2024-11-04 14:51:35 +01:00
Caolán McNamara 5bca5b23b7 cid#1606699 silence Overflowed constant
Change-Id: Ib3cac90e56bd00a777871f1b07849fabd7e307a2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175974
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-11-04 09:38:38 +01:00
Caolán McNamara 3c1b7e4fe7 cid#1607290 silence Overflowed constant
Change-Id: Ic05b5a64a3be44d8aba4c9ffaf8867a45f2422db
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175973
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-11-04 09:38:32 +01:00
Noel Grandin 5de73f04f3 new loplugin:staticconstexpr
Change-Id: Ida1996dfffa106bf95fd064e8191b8033b4002f3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175336
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-11-04 08:51:00 +01:00
Xisco Fauli 1e2b4e9765 tdf#163486: PVS: parameter is always rewritten
Since
commit a9a665ed7a
Author: Szymon Kłos <szymon.klos@collabora.com>
Date:   Tue Jan 5 14:54:52 2021 +0100

    pivot table: make partial sum message box async

V763 	Parameter 'pSrcErrorId' is always rewritten in function body before being used.

Change-Id: I51c2d1b0d01563d66e828d3ebfaf61f620992443
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175876
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-11-03 15:05:48 +01:00