Commit graph

501800 commits

Author SHA1 Message Date
Bogdan Buzea
d33b24d62f tdf#152299 - Remove unused define(s) from C/C++ files
Change-Id: I9b27cfb715f6cd0a9b6ea21da9cb24fc8d8ec739
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177050
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-11-23 15:18:31 +01:00
Bogdan Buzea
c1a9fa9b2c tdf#152299 - Remove unused define(s) from C/C++ files
Change-Id: I377154880c52685e5b1588221d631c51967c490a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177047
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2024-11-23 15:15:50 +01:00
Bogdan Buzea
d2adf4b1d3 tdf#152299 - Remove unused define(s) from C/C++ files
Change-Id: I93494b4dec546d48b7dced2f1a6c774177c99c86
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176782
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-11-23 15:15:03 +01:00
Bogdan Buzea
23392c3c12 tdf#152299 - Remove unused define(s) from C/C++ files
Change-Id: I0a6d9a12f3e6d84ad4ba665ba16dd05fb6f9786f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177048
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2024-11-23 15:12:28 +01:00
Bogdan Buzea
56b32b808b tdf#152299 - Remove unused define(s) from C/C++ files
Change-Id: I95b7b249082f5c2755ca54a0656912011d2cb116
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176983
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-11-23 15:11:28 +01:00
Bogdan Buzea
9d862186c0 tdf#152299 - Remove unused define(s) from C/C++ files
Change-Id: I161af7b70421a819f5ecb6b95867e6fa142fe3ee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177046
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2024-11-23 15:10:47 +01:00
Bogdan Buzea
f66d3e5502 tdf#152299 - Remove unused define(s) from C/C++ files
Change-Id: I183330f8c2e947d6c8dffbcabc7da6c115e08a8c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176963
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-11-23 15:00:23 +01:00
Bogdan Buzea
d4bc4d9e9f tdf#152299 - Remove unused define(s) from C/C++ files
Change-Id: I3207e070fba8407fd8475c8d774b3a500cae8e17
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176965
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-11-23 14:59:00 +01:00
Bogdan Buzea
2a3e7a751c tdf#152299 - Remove unused define(s) from C/C++ files
Change-Id: If150b8fec5350cb513550711a61923cc1a273a80
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177052
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-11-23 14:56:18 +01:00
Bogdan Buzea
bdb5f278a7 tdf#152299 - Remove unused define(s) from C/C++ files
Change-Id: Id74c10f5965d97bf24b49fc9ee777bf7b0ad251d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177051
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2024-11-23 14:54:15 +01:00
Bogdan Buzea
2914206849 tdf#152299 - Remove unused define(s) from C/C++ files
Change-Id: Ided473c985f8bdca007d3da34f92e42fb5080f54
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177099
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-11-23 14:51:25 +01:00
Bogdan Buzea
f57f05e574 tdf#152299 - Remove unused define(s) from C/C++ files
Change-Id: I01cc9d30499783e531777eb17e332490afab4d6f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177098
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2024-11-23 14:50:42 +01:00
Simon Chenery
c6fd44d819 tdf#158237 Use C++20 contains() instead of find() and end()
Change-Id: Ib0ed8868b94c1470768a95fb26767cf25fe4bf8f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177028
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2024-11-23 14:47:02 +01:00
Bogdan Buzea
3f2d10e2a5 tdf#152299 - Remove unused define(s) from C/C++ files
Change-Id: Id5d1b36ba734c3cf10b83f472ab5afe3a142a464
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177060
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2024-11-23 13:21:49 +01:00
Bogdan Buzea
c4338ba856 tdf#152299 - Remove unused define(s) from C/C++ files
Change-Id: I38b932ab81842b5f209d89ef5229d61e10f3ffd0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177097
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2024-11-23 13:20:58 +01:00
Bogdan Buzea
89c431aa99 tdf#152299 - Remove unused define(s) from C/C++ files
Change-Id: I1e460b817dd876977e520251b6a79d9fb9c283d0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177100
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-11-23 13:19:32 +01:00
Bogdan Buzea
9579907205 Spelling mistake in code
Change-Id: I9db111c16865a2b7514e62a21a66d5497cda91fe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176966
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-11-23 13:17:13 +01:00
Michael Weghorn
df39550839 tdf#130857 qt weld: Hide widget marked for deletion
Add a helper method QtBuilder::deleteObject
that takes care of marking no longer needed
objects for deletion and use it in the 3 places
so far calling QObject::deleteLater themselves.

If the object marked for deletion is a widget,
hide it as well, as it could otherwise still
be "in the way".
This was seen wit the edit (QLineEdit) of the editable
combobox in the "File" -> "Properties" dialog,
"General" tab (in a WIP branch for adding support
for that dialog), where the unnecessary edit was
shown on top of the combobox, hiding the combobox
content + dropdown button.

Change-Id: Ie299b80824c94d40cfac9f7962c9bd4ba95b446d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177057
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2024-11-23 10:49:13 +01:00
Michael Weghorn
3e65d085ef tdf#130857 qt weld: Call checkbox toggled handler
Change-Id: I0943a2d8e35acea8e1af97bdd151bba65b0af24a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177056
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2024-11-23 10:49:05 +01:00
Michael Weghorn
f928b97cfa tdf#130857 qt weld: Handle invalid ID in QtInstanceNotebook::get_page
If QtInstanceNotebook::get_page gets called with
and ID that none of the existing pages actually have,
return nullptr early and don't try to QtInstanceContainer
instance for the null widget, which would trigger an
assert when nullptr is passed to the QtInstanceWidget
base class ctor.

Calling QtInstanceNotebook::get_page with an ID for
which no page exists yet is what
SfxTabDialogController::AddTabPage does explicitly
before asserting a page to assert that there isn't
such a page yet.

SalInstanceNotebook::get_page and GtkInstanceNotebook
also have specific handling for that case.

Change-Id: Ib2044fd4c9f986f2252afed5754a6383f940e5e6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177055
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2024-11-23 10:48:59 +01:00
Michael Weghorn
f3bacd7b2a tdf#130857 qt weld: Implement QtInstanceDialog::weld_content_area
When this method gets called the first time, insert
a widget with a QVBoxLayout at the beginning
of the dialog's layout, remember and return that.
On subsequent call, return the same one.

Initially, handle the case where the dialog's
layout is a QBoxLayout (subclass), which is
the case for the "File" -> "Printer Settings"
-> "Options" dialog in Writer.

This should be easy to extend for other layouts
as well when needed. For now, assert when another
layout is used, so it will become clear when
working on adding support for another dialog
that needs this.

Change-Id: Ia41a87f8cf62666efc91c05f25dae5fccb3da41d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177054
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2024-11-23 10:48:52 +01:00
Mike Kaganski
9c14ec81b6 tdf#164006: Only use original word's positions, ignore extra encoded length
The encoding of the string passed to Hunspell/hyphen service depends on the
encoding of the dictionary itself. When the usual UTF-8 encoding is used,
the resulting octet string may be longer than the original UTF-16 code unit
count. In that case, the length of the buffer receiving the positions will
be longer, respectively. But on return, the buffer will only contain data
in positions corresponding to the characters, not code units (it is unclear
if we even need to pass buffer that large). So just as the following loop
only iterates up to nWord length, the calculation of hyphen count must use
its length, too, not the length of encWord.

I suspect that the use of UTF-16 code units as hyphen positions is wrong;
it will break in SMP surrogate pairs. The proper would be to iterate code
points. However, I don't have data to test, so let it be TODO/LATER.

Change-Id: Ieed5e696e03cb22e3b48fabc14537372bbe74363
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177077
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-11-23 10:03:41 +01:00
Mike Kaganski
2909196239 tdf#164005: make sure to initialize locales before use of Hyphenator
Change-Id: I23ab742801ab00b68e4f8c5e7bc415c401e28c37
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177076
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-11-23 10:03:17 +01:00
Bogdan Buzea
061b9dc1f5 tdf#152299 - Remove unused define(s) from C/C++ files
Change-Id: Iae168766fdfcbf4c68aa0770b0c42e96a61001c1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176964
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-11-23 09:56:31 +01:00
Bogdan Buzea
4ece715160 tdf#152299 - Remove unused define(s) from C/C++ files
Change-Id: Ic07d9b5e5ed5c486f2fefbd535b4209a1a62eae6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177066
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2024-11-23 09:55:36 +01:00
Bogdan Buzea
d784c1a5ec tdf#152299 - Remove unused define(s) from C/C++ files
Change-Id: Ifbdf8e07aa8085e465df45b48fe54345f0ad56e8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176961
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-11-23 09:54:47 +01:00
Bogdan Buzea
929875a431 tdf#152299 - Remove unused define(s) from C/C++ files
Change-Id: I23379077766af9c04357bd098b132a03a9b35877
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177061
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-11-23 09:52:44 +01:00
Mike Kaganski
6e828489da tdf#162195: use SwFrame::IsHiddenNow when building index
Before commit 0c96119895 (tdf#159565
prerequisite: make hidden sections have zero-height frames, 2024-02-15),
the hidden sections were absent from layout, so didn't appear in the
SwTOXBaseSection::Update* functions. Now they are zero-height, but
present, so their visibility must be taken into account explicitly.

Change-Id: I95cc72b383a99e1f65152579c5458e253a3f60ea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177079
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-11-23 09:50:36 +01:00
Bogdan Buzea
a3ad37edf2 tdf#152299 - Remove unused define(s) from C/C++ files
Change-Id: I171b90858f58c4afa8984f55864712e8b7a93b2f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177088
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2024-11-23 09:49:07 +01:00
Bogdan Buzea
aee4e18411 tdf#152299 - Remove unused define(s) from C/C++ files
Change-Id: I7206e5ac7f525d810505230ef4dcdaa5fff3fbf3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177065
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-11-23 09:48:45 +01:00
Bogdan Buzea
16a5ae7c90 tdf#152299 - Remove unused define(s) from C/C++ files
Change-Id: Iac23bad883f54bd980d051fe74474efdcd2572a7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177063
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2024-11-23 09:47:34 +01:00
Mike Kaganski
fec1501374 Use specific SvtModuleOptions::Is*Installed for clarity
Change-Id: Ibe64b9fcccf33471d96bb0fb1aa896cb456657f0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177069
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-11-23 09:45:38 +01:00
Mike Kaganski
e777bda239 Simplify a bit
Change-Id: I6cb0d64119b859446e015eccb6438396960f351e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177068
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-11-23 08:42:48 +01:00
Aron Budea
10f3e7f602 tdf#163486: PVS V1028 Possible overflow. Consider casting operands,
...not the result.

Change-Id: I4ba8afa5989aea906000bb9c4059855015055002
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177042
Tested-by: Jenkins
Reviewed-by: Aron Budea <aron.budea@collabora.com>
2024-11-23 06:39:52 +01:00
Balazs Varga
869fff459c Related: tdf#160517 - chart odf: import/export formatted chart titles
No need to check chart title paragraph style name and ID, since its
never exists.

follow-up of:
d7214aba95
6fdad72372

Change-Id: Ieffe3026adc848cfbf3a847b4f876b5aa2e2a026
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177011
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
Tested-by: Jenkins
2024-11-22 21:58:13 +01:00
Christian Lohmaier
bbad335816 bump product version to 25.2.0.0.alpha1+
Change-Id: If5be3912a516f279ada6f6b5d82b927701a0ac16
2024-11-22 21:06:27 +01:00
Caolán McNamara
d7cfb08c1f cid#1634864 avoid Missing move assignment operator
and

cid#1634866 Missing move assignment operator

Change-Id: Iaf588bdd9185da6afeee26eea0607e72a9792bab
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177045
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-11-22 20:34:31 +01:00
Caolán McNamara
36c2ce1344 cid#1608081 silence Overflowed array index write
Change-Id: I40d4207eafe46736a122e07c56f6db94cb517697
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177044
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-11-22 20:34:25 +01:00
Noel Grandin
437aaf54c6 loplugin:unusedmethods
Change-Id: I24666a7746f8920ddf84731f204f3e1a5b9b0c85
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177024
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-11-22 20:03:48 +01:00
Noel Grandin
d1e8e430db loplugin:unusedfields
Change-Id: I9ee946ceabf59e4126db938d6abda446fcf9ce36
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176994
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-11-22 20:03:37 +01:00
Noel Grandin
0c7c2716db loplugin:methodcycles
found cycle
    FmEntryData::FmEntryData(const FmEntryData &)
    svx/source/inc/fmexpl.hxx:148

    FmFormData::FmFormData(const FmFormData &)
    svx/source/inc/fmexpl.hxx:230

    FmControlData::FmControlData(const FmControlData &)
    svx/source/inc/fmexpl.hxx:252

    std::unique_ptr<FmEntryData> FmEntryData::Clone()
    svx/source/inc/fmexpl.hxx:161

Change-Id: I2bef463f62b4513c473bb99eb999a97e99f5e602
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176993
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-11-22 20:03:28 +01:00
Christian Lohmaier
2fe487b20e add Santali (Ol-Chiki) languagepack (sat-Olck)
Change-Id: I6cdc09f1c44acf3c7e2d8b24ccb5a73f175acbc6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177043
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2024-11-22 19:08:52 +01:00
Christian Lohmaier
351e6e17e0 Update git submodules
* Update translations from branch 'master'
  to 096ea211364abd9f3a59671796e3aabb093faf54
  - add translation files for Santali (Ol-Chiki) (sat-Olck)
    
    Change-Id: Ic6efa6bfeee7fbd70c8fd629e3e7f87c8e840f8d
2024-11-22 17:48:14 +01:00
Christian Lohmaier
e49e878d82 Update git submodules
* Update translations from branch 'master'
  to 318e92fb60edf7a9889cac87bd0489123553ce1d
  - update translations for master/25.2.0 alpha1
    
    and force-fix errors using pocheck
    
    Change-Id: Ie52bd18e7f82e90d5095b195ffbf6bbc4f84e254
2024-11-22 17:42:36 +01:00
Xisco Fauli
90c25e5912 PVS: V547 Expression 'bComplete' is always true.
Since
commit 47527821f3
Author: Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org>
Date:   Mon Nov 16 22:17:07 2020 +0100

    SwGrfNode: Remove graphic arrived hack

Change-Id: I7c0a3b0208d2da06781be6b69e04e9958b762870
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177036
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-11-22 17:07:11 +01:00
Michael Stahl
ea1d0a62d9 sw: do not paint hidden frames' borders
SwFrame::PaintSwFrameShadowAndBorder() is called by upper's
SwFrame::PaintSwFrameBackground() so it needs another check.

(regression from commit ff7f1b59e2)

Change-Id: Ic7ac28e4af8e0abf4970d87edb40a79ad4d25156
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177032
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2024-11-22 17:06:40 +01:00
Xisco Fauli
c80cbceeed PVS: V547 Expression '!aPropertyStates.empty()' is always true.
Identified by M. Kaganski

Change-Id: I02c3ab0ec29367ebc2e73586044d729eab24231d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177029
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-11-22 16:55:00 +01:00
Xisco Fauli
f3a302043b PVS: V1048 The 'bRet' variable was assigned the same value
Change-Id: Idbd94e0eb49819f737a90bcb161cd3dd88f24221
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177014
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-11-22 16:54:18 +01:00
Tomaž Vajngerl
180a99d9ff Render objects that are in an animation as a separate layer
Change-Id: I4220b8398e75589bd54b67942cf987244b1d0b0c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177035
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2024-11-22 16:51:26 +01:00
Julien Nabet
a680e71b50 tdf#163486: PVS V1043 global object variable is declared in header (starmath)
Change-Id: Ieb038d21f27c7d31362be44b71fd13e2932fcf69
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176995
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-11-22 16:35:42 +01:00