Commit graph

501014 commits

Author SHA1 Message Date
Mike Kaganski
de4ef35350 tdf#163680: fix fixed-length strings assignment
Change-Id: I4aa8144df5dfb836ad0689c7855301b8b04da485
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175878
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-10-31 20:46:09 +01:00
Mike Kaganski
9a07b6c34c tdf#163697: avoid premature handling of following notifications
This avoids re-entry to Document::handleParagraphNotifications, which
already was known to be problematic (see comments in Document::Notify,
and m_bSelectionChangedNotification introduced to avoid one such case).

Change-Id: I9e0b451f13ad109d08b1afc9cc0346cd6049b026
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175879
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-10-31 19:13:47 +01:00
Caolán McNamara
15eb26d0f2 ofz: Undefined-shift
Change-Id: Ibb42de616566aabdf6596b7c45d0afab90118bc9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175877
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-10-31 18:18:48 +01:00
Xisco Fauli
52a91c1e32 tdf#163486: PVS: Initial and final values of the iterator are the same
Since
commit 4a4602ad75
Author: Michael Meeks <michael.meeks@collabora.com>
Date:   Fri Mar 10 10:36:22 2023 +0000

    lok: add trimMemory capability, and expand dumpState to caches

V625 	Consider inspecting the 'for' operator. Initial and final values of the iterator are the same.

Change-Id: I9ddd2593ace4234f720a6561b0dcbd85dbc18ef2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175880
Tested-by: Jenkins
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2024-10-31 18:17:24 +01:00
Armin Le Grand (allotropia)
288d720e49 tdf#162666 Make SfxStateCache handle Items correctly
SfxStateCache had problems processing the extra Item
states disabled/invalid. Note that due to not using a
Pool here it is not possible to use an ItemSet or an
ItemHolder, those would automatically handle these
cases correctly.
In this cache, this currently needs to be done
handish. Also note that because of that this may break
again when changes in the Item/ItemSet/ItemHolder
mechanism may be done.

Change-Id: I007bc25c727e6432062fa0d2af8215a912cb2fff
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175871
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
Tested-by: Jenkins
2024-10-31 17:22:09 +01:00
Michael Weghorn
a58d37eb50 Update git submodules
* Update helpcontent2 from branch 'master'
  to fd8e67a6f9d2cbf27e223f76bf96bc6cbae06b45
  - Drop help for removed "Support assistive technology tools" option
    
    This option no longer exists in the UI since LibreOffice core
    commit [1]
    
        commit 069d2c0796
        Author: Michael Weghorn <m.weghorn@posteo.de>
        Date:   Mon Oct 28 21:12:48 2024 +0100
    
            win a11y: Drop "Enable AT Tool support" from options UI
    
    , so drop the corresponding section from help, too.
    
    [1] https://git.libreoffice.org/core/commit/069d2c079664cf44fc471216b1204cb71a6362cd
    
    Change-Id: Icd48d2db877f18aa31500e590c485c7237a5d958
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/175881
    Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
    Tested-by: Jenkins
2024-10-31 17:18:14 +01:00
Caolán McNamara
87b4701c07 cid#1607569 silence Overflowed return value
and

cid#1607406 Overflowed return value

Change-Id: Ia7917f9046382c25232415b7eb1de3b60071957a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175838
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-10-31 16:59:27 +01:00
Xisco Fauli
0c0795f059 tdf#163486: PVS: parameter is always rewritten
Since
commit 1e58937522
Author: Szymon Kłos <szymon.klos@collabora.com>
Date:   Wed Aug 10 14:43:51 2022 +0200

    Make Autofilter MessageBoxes async

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

Change-Id: Ibb8a8b63887d06913fffe310a6754fdbba8c61ea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175875
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-10-31 16:51:39 +01:00
Heiko Tietze
1a5b1552d8 Resolves tdf#163537 && tdf#131253 - Make Boundaries independent from NPC
Sections and Objects are now toggled on/off independently from Text Boundaries. Both, single and multi-column sections receive a frame (multi-column in addition one for text boundaries).

Partially resolves 5bf7df62645f73ad69772f318ea3058dfd6fce12ommit.

Change-Id: I6d43f936c3d2e1c454fdc39f1bbbb2c6f7bef3e7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175832
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2024-10-31 16:14:56 +01:00
Julien Nabet
9c1f25609a Related tdf#163679: fix tip for Insert Field menu in notebookbar ui
Change-Id: Id471cc037e23deab48644086682c7a09a8645ab0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175874
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-10-31 16:10:50 +01:00
Caolán McNamara
f9af5beb9d use SAL_WARN_IF here instead
Change-Id: Iaeac042caec04e5bda5c23d22995e509e9fe824a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175862
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-10-31 15:08:24 +01:00
Mike Kaganski
92de9528f4 Don't store iterators
The iterators are invalidated on insertion / deletion;
store indices, and sanitize when obtaining iterators

Change-Id: I96ef4ca5bef4f686b5633cc736981dd5454dbca8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175852
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-10-31 14:50:37 +01:00
Adesola Samuel
71d2849bf6 tdf#153138 Add IgnoreTabsAndBlanksForLineCalculation compat opt to dialog
IgnoreTabsAndBlanksForLineCalculation was added to the option->
writer->compatibility options with the label "Make whitespace
character height not affect line height"

Change-Id: I8b99409b01ba2af635018d15cde2e549dff92732
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175831
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-10-31 14:46:30 +01:00
Caolán McNamara
50a0bb366d cid#1607783 Data race condition
Change-Id: Ie1a4fac64db52c584c183b132d57c588bcc56567
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175840
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-10-31 14:39:04 +01:00
Caolán McNamara
1e9eca1af5 cid#1607945 Data race condition
Change-Id: I8c00cab53b775d042f183abef324fcabc9a9c73e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175839
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-10-31 14:26:53 +01:00
László Németh
bb4da18c55 tdf#163699 sw: fix reported crash using the Navigator
"On a specific file, when double-clicking multiple times on
different images in the navigator panel, LO crashes."
reported by Vladimir Tarakanov with a code pointer.

Regression since 3e0650fb16
"tdf#157533 sw: fix cursor position deselecting formula in table".

Change-Id: I550d61d8ee10205ff2357c2511ae0062077d651e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175865
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
2024-10-31 14:26:50 +01:00
Caolán McNamara
8c200de995 cid#1606874 silence Data race condition
Change-Id: I6703ee228ac0717b04f58e14eedd02ab0722edf4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175861
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-10-31 14:23:00 +01:00
Armin Le Grand (allotropia)
9ea9cd14ff tdf#163457 CairoSDPR: Need to apply 'damage' to gtk
If a CairoSDPR does directly render to a Window the changes
do not get reliably visualized due to the Cairo backend
and gtk/QT usage being dependent of being told what
'damage' is done to refresh the window accordingly.
The VCLCairoBackend is doing that, but without reach
from the outside.
Note that this is a rare case, in fact the 1st one discovered
where a CairoSDPR is painting to a Window directly, see
comments in the task. Even this occasion should not do
that - showing the Comments in Calc on the Overlay would
be major to just painting to the Window roughly.
There are other possible workarounds (also see comments in
the task), but just adding to be able to set the needed
'damage' in case target is a Window is simplest and
potentially the fastest way to do this.
Since usage of CairoSDPR is bound to use GetSystemGfxData
anyways it is okay to react there and call a method
ApplyFullDamage that exists on Graphics when the flag
USE_HEADLESS_CODE is active. That forwards to the
CairoCommon being responsible for that Window and does
the minimal necessary to apply 'damage' to the full
Window.
This is done when constructing the CairoSDPR, thus
from the timing that incarnation can then paint anything
and it seems that at the next occasion something can
handle the callback from gtk all is painted. If that
should change it may get necessary to separate
the usage of ApplyFullDamage from GetSystemGfxData,
but works as intended for now.

Change-Id: I5442f3413e43418954da29a18d66dea27e25e655
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175794
Tested-by: Jenkins
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
2024-10-31 12:25:26 +01:00
Mike Kaganski
298feac9c4 No need to heap-allocate it
Change-Id: Ia6bbf6d3f5b9af2a5b52b8c6baec85bdcb579275
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175847
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-10-31 12:14:18 +01:00
Noel Grandin
11b1557147 convert KernArray from sal_Int32 to double
which allows us to eliminate a bunch of rounding at various layers, and
consequently maintain a lot more precision

Change-Id: I911dedd7c041c1d67396c082e5695346ea689acb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175814
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-10-31 12:10:52 +01:00
Mike Kaganski
ef085d09e0 Merge init into ctor
Change-Id: Id936b4bd9d5cb1a787667226c128ee023aa2b784
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175848
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-10-31 11:53:58 +01:00
Sahil Gautam
965287a9ed tdf#85976 Make labels more intuitive in "Duplicate Records Dialog"
Records is not a very intuitive label for the the treeview section of
the dialog. Change to "Rows: " and "Columns: " based on what's being
displayed in the dialog

Change "Compare: " to "Compare by: "

Change-Id: Idff5f4a6935856f2c5a16f5b45bf8ce0ba169ca4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175704
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2024-10-31 10:09:26 +01:00
Caolán McNamara
8328c69858 merge these lines
Change-Id: Ic8bcfdd09c0f23e6584daf0e30c26aaccdab6fa6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175825
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-10-31 09:24:42 +01:00
Caolán McNamara
011d5bbd06 cid#1607883 Overflowed constant
Change-Id: Ib01a9c72b2e5684552af22e3ef64a33358eacb9d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175804
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-10-31 09:24:27 +01:00
Andras Timar
7742752312 Prevent 'Failed to dispatch .uno:None' message
This was seen when checking grammar checker suggestion.
When I click on the top element of the context menu of
underlined text (e.g. Grammar error), I get

warn:lok:1663798:1663791:desktop/source/lib/init.cxx:283:
lok exception 'Failed to dispatch .uno:None'

This .uno:None was introduced by Tamas Zolnai especially for
LOK: 3616bb68f2
His intention was to add an empty command that does nothing.

Change-Id: I12a9a1e17dcf65cdd78266f44e6201ed3d5fa01f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175102
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit bdb0dd485da24a95b61df6136362ab189803bc27)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175845
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Jenkins
2024-10-31 08:30:11 +01:00
Bogdan Buzea
0e05add86c tdf#163486: PVS: The variable was assign the same value.
V1048 The 'bDoIncrement' variable was assigned the same value.

Change-Id: Id5fd249b94429c80898e8ab1553ef32066313d1c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175204
Reviewed-by: David Gilbert <freedesktop@treblig.org>
Tested-by: Jenkins
2024-10-31 02:05:59 +01:00
Bogdan Buzea
589974b0ca tdf#163486: PVS: Identical branches
V1037 Two or more case-branches perform the same actions. Check lines: 962, 979

Change-Id: Ic31a6129828a41bd3450567ca8cb8884d60691cc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175220
Reviewed-by: David Gilbert <freedesktop@treblig.org>
Tested-by: Jenkins
2024-10-31 02:04:18 +01:00
Bogdan Buzea
e2479ebd5c tdf#163486: PVS: Identical branches
V1037 Two or more case-branches perform the same actions. Check lines: 944, 957

Change-Id: Ic637d4aa5e6024cc0011e8e51a0fba68c2644378
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175225
Tested-by: Jenkins
Reviewed-by: David Gilbert <freedesktop@treblig.org>
2024-10-31 02:03:04 +01:00
Bogdan Buzea
e386bbef8f tdf#163486: PVS: Identical branches
V1037 Two or more case-branches perform the same actions. Check lines: 579, 584

Change-Id: Ifccc082caa5d8c13c92f3d4098f03fbf3c9782a8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175215
Tested-by: Jenkins
Reviewed-by: David Gilbert <freedesktop@treblig.org>
2024-10-31 02:01:31 +01:00
Bogdan Buzea
aef81068f4 tdf#163486: PVS: Identical branches
V1037 Two or more case-branches perform the same actions. Check lines: 981, 984, 1056

Change-Id: I5e1578341075dfb8f6699fca3f5468de1eeef70b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175212
Tested-by: Jenkins
Reviewed-by: David Gilbert <freedesktop@treblig.org>
2024-10-31 02:00:24 +01:00
Andrea Gelmini
06a2f46197 Fix typo
Change-Id: If3d4810cb2a5770b5432c398a3785d8bdcf19ff6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175829
Tested-by: Jenkins
Reviewed-by: David Gilbert <freedesktop@treblig.org>
2024-10-31 01:58:31 +01:00
Andrea Gelmini
24892ccbc2 Remove duplicated include
Change-Id: Ie69536fca492f0e8fcd8da5c167429d0f3de42ac
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175830
Tested-by: Jenkins
Reviewed-by: David Gilbert <freedesktop@treblig.org>
2024-10-31 01:57:58 +01:00
Pranam Lashkari
ce4ae4f082 sw: redline changes may try to set broadcast on non PostIt fields
broadcast was set from sw::UpdateFramesForRemoveDeleteRedline
which triggered SwPostItMgr::Notify
in that case SwFormatFieldHintWhich::INSERTED may have pField which maybe different from SwPostIt

fixed regression from 0b7a9c231f

problem:(in LOK)
with tracked changed on delete a merge field
then reject the changes
LOK will crash

Change-Id: Ic1fafa1408d7a238133f5b3d18bf948d539aa991
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175808
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175833
Reviewed-by: Pranam Lashkari <lpranam@collabora.com>
Tested-by: Jenkins
2024-10-30 21:34:31 +01:00
Sahil Gautam
22949c16e6 tdf#85976 Change label from "Handle Duplicate Records" to "Duplicates"
This is because the original label was taking a lot of space on the
notebookbar. Other suggestion was 'Manage Duplicates', which didn't
seem any better than 'Handle Duplicate Records' as when an icon for the
command is added, it will end up taking a good amount of space.

Change-Id: I852bd897d68648208102861de3d8131e103f4f14
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175826
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2024-10-30 19:39:50 +01:00
Heiko Tietze
1de5fc4671 Resolves tdf#74386 - Make Text Boundaries independent from non-printable chars
New option introduced under Formatting Aids to switch between full
and crop marks, which was done before via NPC

Change-Id: I920f68b571da740e47ae367ba1e8d28e03a131e2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175828
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2024-10-30 17:34:33 +01:00
Marc Mondesir
f9e2bc8d84 tdf#163582: Fix scrolling distance increasing geometrically.
New scroll distance was previous distance multiplied by speed factor, but distance was not reset to base values when mouse not moved (or outside app window on some platforms), resulting in continuous multiply amplification. Break out base scroll values to separate variables to prevent multiply feedback. Add comments to help future code maintenance.

Change-Id: If11baff3b25521abce7436b44aaf8e6a19e54f45
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175657
Tested-by: Jenkins
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
2024-10-30 15:04:17 +01:00
Caolán McNamara
f69980d036 Don't call std::string::erase with end()
Change-Id: I64afcbe7138de7c7655a8107fd25e3ac8393a55d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175824
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-10-30 14:47:26 +01:00
Michael Weghorn
cf627ab2c8 tdf#163684 gtk3 a11y: Don't use combobox role twice for non-editable one
Since

    commit 9f078ed7b6
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Tue May 7 10:04:16 2024 +0200

        tdf#160971 gtk3 a11y: Set role for custom editable combobox

        Set the combobox a11y role for the box in the .ui file
        used for the custom gtk3 combobox implementation.

        With this in place, moving focus to the "Font Name" or
        another editable combobox in the Writer toolbar now
        makes Orca announce that one as "editable combobox"
        rather than just "text".

, the combobox a11y role is set for the GtkBox of
the custom combobox implementation used for gtk3.
That box contains the edit (for editable comboboxes)
and the button.

While this is needed for editable comboboxes for
AT to identify this as a combobox when the edit
receives focus (by the fact that the edit's parent
has a combobox role), this resulted in Orca no
longer announcing the combobox role when the
button receives focus for non-editable comboboxes.

While the button also has the combobox role, Orca
has logic to not announce the role of combobox
children. (`SpeechGenerator._should_speak_role`
returns `false` for that case [1].)

To avoid this problem and make announcement for both,
editable and non-editable comboboxes work as expected,
no longer set a combobox role for the box in the .ui
file, but set it only for the editable combobox
in the C++ code.

[1] 78e44c625e/src/orca/speech_generator.py (L365-366)

Change-Id: Ia3ff00688f47e61d5a98c79f1a256061b2fb18a8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175823
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-10-30 14:24:33 +01:00
Stephan Bergmann
9416bafc23 Adapt to generation of .worker.js files gone from 3.1.68
...and just unused dummies since 3.1.58, so don't install them for >= 3.1.58,
even if the dummies would still be available for < 3.1.68

Change-Id: Ida55be2fa3b75982bfd764b7b2676e63c092fe79
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175822
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Tested-by: Jenkins
2024-10-30 13:51:40 +01:00
Pierre F
13a91807ed Update git submodules
* Update helpcontent2 from branch 'master'
  to 8493c54bdde03bdc793b83402b9c341a5a97efac
  - tdf#143846 split DECIMAL() + DOLLAR()
    
    Change-Id: Iba787b44ad846fd2e7ec129fbb72bf916b23e2e9
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/175756
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2024-10-30 12:59:02 +01:00
Caolán McNamara
6af797a11a We're not interested in using an empty reply
Change-Id: I6925879c83e188e892a375df5b295a48fb0f464d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174974
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit 18e1f0e92aa20ba9c08ce553523f8a2cdec2e23d)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175759
Tested-by: Jenkins
2024-10-30 12:58:28 +01:00
Olivier Hallot
1113636c0a Update git submodules
* Update helpcontent2 from branch 'master'
  to f833371fbfb54ba9414f127c96cd2bcb2b985a0c
  - Mute L10n of embedded contents.
    
    + fix bad string
    
    Change-Id: Ie84c289310923c286cc843d42ffc2c361dcd9154
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/175758
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2024-10-30 12:53:44 +01:00
Stephan Bergmann
417d0d50c8 Missing test dependency
Change-Id: I574ae3404ce4a9ad75176f2e2066563da60136ca
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175809
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Tested-by: Jenkins
2024-10-30 12:40:12 +01:00
Michael Weghorn
63a93d21d6 tdf#130857 qt weld: Implement QtInstanceComboBox::set_entry_completion
Set a corresponding QCompleter [1] using
QComboBox::setCompleter [2].

[1] https://doc.qt.io/qt-6/qcompleter.html
[2] https://doc.qt.io/qt-6/qcombobox.html#setCompleter

Change-Id: I89cdd8bee676c8a208ffe944ca84225210e842a5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175819
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-10-30 12:08:43 +01:00
Michael Weghorn
c8da0e06f7 tdf#130857 qt weld: Declare support for print progress dialog
Add .ui file for the print progress dialog that gets shown when
starting a print job from the print dialog (Ctrl+P) to list of files
supported by QtInstanceBuilder, so that native Qt widgets are used for
that dialog now when using the qt5/qt6 VCL plugins, unless environment
variable SAL_VCL_QT_NO_WELDED_WIDGETS=1 is set.

Change-Id: I4bfdd34fcdb6d5844e04d99235fbf3ad5ef9f66c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175817
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-10-30 12:08:36 +01:00
Michael Weghorn
ef1eaad00f tdf#130857 qt weld: Add a QtInstanceProgressBar
Add a new QtInstanceProgressBar class that is
the weld::ProgressBar implementation using a native
Qt widget. The widget used is a QProgressBar.

This will be used e.g. by the print progress
dialog, for which support will be declared
in an upcoming commit.

Change-Id: Ic4b162014cd3a09801096cebd38dbdc923f5dbfa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175816
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-10-30 12:08:30 +01:00
Michael Weghorn
af4bc7e392 tdf#130857 securityoptionsdialog.ui Define grid children in order
Switch the order in which the children of the "grid3" grid in the
.ui file are defined so that the order matches the visual appearance,
which makes sure that tab focus order with the Qt-based VCL plugins is
correct as well in the "Tools" -> "Options" -> "LibreOfficeDev"
-> "Security" -> "Options..." dialog.

See

    commit 02692566ad
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Thu Oct 24 17:43:35 2024 +0200

        tdf#130857 optnewdictionarydialog.ui: Define focusable widgets in order

for more background.

Change-Id: Iffba59ba04ecfd3fcb900e09ad013e6f498beff8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175815
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-10-30 12:08:23 +01:00
Noel Grandin
faad724af5 no need to use std::unique_ptr in GetPartialTextArray
Change-Id: I3c60f69d1693721a620faef4e1cda2f479c1bfda
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175801
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-10-30 10:09:33 +01:00
Michael Weghorn
d47bfc293a tdf#130857 qt weld: Declare support for "Enter Safe Mode" dialog
Add .ui file for the "Help" -> "Restart In Safe Mode" dialog that
asks whether to really restart in safe mode to list of files
supported by QtInstanceBuilder, so that native Qt widgets are used for
that dialog now when using the qt5/qt6 VCL plugins, unless environment
variable SAL_VCL_QT_NO_WELDED_WIDGETS=1 is set.

Change-Id: Idec1c2dedd057aa2322453471c55022442941f7f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175807
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-10-30 09:09:39 +01:00
Michael Weghorn
775156dcea tdf#130857 qt weld: Support hiding plain text in entry
Evaluate the "visibility" GtkEntry property [1] [2]
and set the QLineEdit's echoMode [3] to QLineEdit::Password
if the visibility is set to false, so that replacement
characters are shown instead of the actual text as
expected.

This is used e.g. in password dialogs, e.g. in Writer:
"File" -> "Properties" -> "Security", press
"Protect..." button.
(But this dialog is not using native Qt widgets yet,
more needs to be implemented first.)

[1] https://docs.gtk.org/gtk3/property.Entry.visibility.html
[2] https://docs.gtk.org/gtk3/method.Entry.set_visibility.html
[3] https://doc.qt.io/qt-6/qlineedit.html#echoMode-prop

Change-Id: I218e4721bbc21f3d6a3553647e92c1ea7cdc4a0f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175806
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-10-30 09:09:27 +01:00