Commit graph

501361 commits

Author SHA1 Message Date
Noel Grandin
bcf9699a82 tdf#163731 Style names cropped in Stylist in Writer's Sidebar
regression from
    commit 7f42f031ed
    Author: Noel Grandin <noel.grandin@collabora.co.uk>
    Date:   Thu Oct 10 09:39:14 2024 +0200
    tdf#100894 speed up style tree creation

Change-Id: I94f7f3edd4dc31a2a86ddd73a79f276d6c30509c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176107
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-11-06 12:10:29 +01:00
Noel Grandin
5c59d82142 fix memcpy in ImplExpandCompressedPortion
regression from
    commit 11b1557147
    Author: Noel Grandin <noel.grandin@collabora.co.uk>
    Date:   Wed Oct 30 09:51:26 2024 +0200
    convert KernArray from sal_Int32 to double

Change-Id: I43a3af79159944ac84cb473a0f258f0815228bfc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176109
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-11-06 12:10:12 +01:00
Andreas Heinisch
9879cadfc5 tdf#162753 - Hyperlink dialog: preset only syntactically valid hyperlinks
Change-Id: I682acfa4e41a3cce5f4639d79004bea985cabce3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176112
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
2024-11-06 12:02:51 +01:00
Olivier Hallot
a74c599ea2 Update git submodules
* Update helpcontent2 from branch 'master'
  to 0ef21717396d8d0b92791b9ee79a1af4f63050b1
  - tagalog add hyperlinknewdocpage + refresh
    
    Change-Id: I0e3026cc92892fb254f3f40a08cb57582bc8ec93
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/176116
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2024-11-06 10:54:03 +01:00
Olivier Hallot
af039ec90b Update git submodules
* Update helpcontent2 from branch 'master'
  to a58060c90a04d99e87144b6b47eb89573424480c
  - tagalog add hyperlinkmailpage + refresh
    
    Change-Id: I3bc0bc3e15d9db9ad70e78eed14f7a8c40371950
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/176115
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2024-11-06 10:53:51 +01:00
Olivier Hallot
cca1ff25db Update git submodules
* Update helpcontent2 from branch 'master'
  to c2b41423924611c97c70b6cb4a8b49e455c84a80
  - tagalog add hyperlinkinternetpage + refresh
    
    Change-Id: I307dc8753d39035439f34f6df10e6ad6bb446816
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/176114
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
    Tested-by: Jenkins
2024-11-06 10:53:40 +01:00
Javiya Vivekkumar Dineshbhai
43c4488e58 Fix: Make the repeat slideshow property independent of the TransitionType
Change-Id: I60b00f2935df8dc224736120b1e0d70c2821c0cf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176105
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2024-11-06 10:10:44 +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
Caolán McNamara
3cf64b9d57 cid#1608064 silence Data race condition
Change-Id: Ib8fa1a1027bef3516665f17c8c4c19b6d571e7ab
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176096
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-11-06 09:27:52 +01:00
Noel Grandin
52357eefa7 loplugin:passstuffbyref in svl
Change-Id: Ibc4628941b40159aa35a0a55900efb3dd882369e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176056
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-11-06 09:25:46 +01:00
Noel Grandin
54a91f287f loplugin:passstuffbyref in tools
Change-Id: Id902f711d14eb21dc14366e8fe8fc5a96c0afec4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176055
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-11-06 09:25:37 +01:00
Noel Grandin
69f4abaffd loplugin:passstuffbyref in unotools
Change-Id: I0a63fc95f76664408a7ec3ee53a8d025eb5f560d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176054
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-11-06 09:25:28 +01:00
Noel Grandin
47a1dccd17 loplugin:passstuffbyref in comphelper
Change-Id: I2c94b6e0bbdce4f4236815df8c4841327a33939e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176053
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-11-06 09:25:20 +01:00
Noel Grandin
bd8539dfd1 add an EMPTY_OUSTRING in OUString header
we already declare the same thing in various places,
and I intend to be using this some more, so it makes
sense to only declare it in one place

Change-Id: Ifea6b589e992dd9f6cd8f2301f837e71397481c8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176046
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-11-06 09:25:10 +01:00
Olivier Hallot
34099cedc5 Update git submodules
* Update helpcontent2 from branch 'master'
  to c0aba512effb26006837e7f9c9d3517f5f167e3a
  - tagalog add screenshot for effectpage and hyperlinkdocpage
    
    + refresh screenshots
    
    Change-Id: Idf0cbc11bdaa0ef61f84887f573bdda68964f2a1
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/176102
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2024-11-06 09:08:46 +01:00
Olivier Hallot
d67c7f3895 Update git submodules
* Update helpcontent2 from branch 'master'
  to a9056f80c82213fee22c37d0815ec06ad5a651f6
  - tagalog: add screenshot colorpage colorpickerdialog
    
    + update respective screenshots for all languages
    
    Change-Id: I26c50fe9c55c28760c160238513c1499d17a4bb3
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/176101
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
    Tested-by: Jenkins
2024-11-06 09:04:05 +01:00
Miklos Vajna
27753561a1 cool#9992 lok doc sign, create-certs.sh password-less mode: still create a .p12
I have a case where LOK convert-to with ODT->PDF and
SignCertificateCaPem/SignCertificateCertPem/SignCertificateKeyPem set
creates a corrupted PDF signature, while more or less the same on the
desktop works.

The PDF signature is a hex dump, and once converted to binary, one can
analyze the content using 'openssl asn1parse -inform der -in ... -i'.
Still, the LOK and the desktop case differs, because this script
generates random certificates and then the binary output in the two
cases differs, so hard to see the actual difference.

Fix the problem by still generating .p12 output (needed for the desktop
case) in the no-password case, so a single run can emit ca/cert/key PEM
files and a .p12 archive, so exactly the same input can be used for
desktop and LOK signing.

It turns out the actual problem I looked at was some setup problem,
because now that the same input can be used in the two cases, the LOK
signing during PDF export works fine.

Change-Id: Ifc5ff73cd6fbbc057af536c84e4367ce1d489931
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176081
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2024-11-06 08:54:56 +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
Stephan Bergmann
dc9dcb5c00 loplugin:redundantcast
...after 11b1557147 "convert KernArray from
sal_Int32 to double"

Change-Id: I61e7f25f1e1b1493d1f1164f96e09eb3ba14baa8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176052
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-11-06 08:24:15 +01:00
Stephan Bergmann
72890bd3b9 loplugin:staticconstexpr (macOS)
Change-Id: I294b9476413a0d7b12daef9f26881241afcbde29
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176051
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Tested-by: Jenkins
2024-11-06 08:23:54 +01:00
Stephan Bergmann
e7cbcdf86e external/zxing: Missing include (for std::nullptr_t)
Change-Id: I731eb3039f9f43ac05d3b60d5387ff44c5986a71
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176049
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-11-06 08:23:21 +01:00
Mike Kaganski
e1beaf844f Related: tdf#163730 Release the object in separate thread
Using a local build having both commits
9f53d40fd1 "Related: tdf#163730 Avoid
deadlock", 2024-11-02, and 3015db08c9
"Related: tdf#163730 Avoid potential deadlock", 2024-11-03, I got
another deadlock (unfortunately, I didn't copy call stacks), where
main thread, holding soler mutex, called CWinClipboard::setContents,
and that tried to lock solar mutex in CMtaOleClipboard::run thread,
which released the m_foreignContent data.

This change releases m_foreignContent in a separate thread, which
has no dependencies, and so its wait wouldn't block other threads.

Change-Id: If4c486e6f3ba9201c4c9c6991992e38929ab3b81
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176047
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-11-06 06:22:22 +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
Xisco Fauli
957fea5f3d tdf#163486: PVS: variable is assigned but not used
Since
commit 2e25618fe7
Author: Mike Kaganski <mike.kaganski@collabora.com>
Date:   Mon Jul 8 12:12:49 2024 +0500

    Make convert*Angle strict

V1001 	The 'fAngle' variable is assigned but is not used by the end of the function.
V1001 	The 'fAngle' variable is assigned but is not used by the end of the function.

Change-Id: Ie0c9059e18518cae46854715fa7d39cc9c942549
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175933
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-11-05 20:30:40 +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
Jim Raykowski
60a77c7ef4 Resolves tdf#163770 BASIC Macro dialog Assign should select the macro
name in Function list box in the Customize dialog Keyboard tab

In SfxAcceleratorConfigPage Reset, RadioHdl is called just before
m_xGroupLBox->SelectMacro. In RadioHdl an idle timer is started whos
handler gets fired after m_xGroupLBox->SelectMacro is called in
Reset. This makes the selection made in the functions list box by
m_xGroupLBox->SelectMacro in Reset get bonked by the call to
m_xGroupLBox->GroupSelected in SelectHdl called from the idle timer
handler. m_xGroupLBox->GroupSelected always selects the first
function in the function list box. This patch fixes this selection
bonk by calling SelectHdl directly from RadioHdl instead of calling
SelectHdl from an idle timer handler.

Change-Id: I15d26d4611948d61e0a258e9a350d8c952b2b211
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176038
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
2024-11-05 19:48:12 +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
Miklos Vajna
ad3f929a73 comphelper: test uno::Any parsing from JSON
Fails with commit cccbf8608f3b76651993bc8576c672367c228fa2 (feat(json):
Allow serializing any, 2024-10-16) reverted.

Change-Id: Ifd59f9921f89cc4f52a21a597f433684c715f186
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176044
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2024-11-05 14:19:10 +01:00
Christian Lohmaier
c8d59dad00 Update git submodules
* Update translations from branch 'master'
  to 50f69fbf1374ebbe4f284d37c8280e972a2abd88
  - update translations for master
    
    and force-fix errors using pocheck
    
    Change-Id: I82c3048355e1bd1c6ddac5f8991019276b7a3f60
2024-11-05 14:09:30 +01:00
Patrick Luby
ed9bd5c8bc Replace unnecessary #include with forward declaration
The fix in commit 2fe53b2e43 still
works on macOS with a forward declaration of the VCLXMenu class.

Change-Id: I1080466d1783464c886111e9b47d445fb16f0d3c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176045
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-11-05 13:16:26 +01:00
Caolán McNamara
7d0a5aeeef Don't need to send both text and html
now that the other end can use html

Change-Id: Idb7959b041ebbbd9284007594473019cf603981f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175166
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
(cherry picked from commit 9ed5dd5d1b48b9a17967d85c0fad4994c40caafa)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175998
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-11-05 13:15:56 +01:00
Stephan Bergmann
25673aaeda Fix implementation of loplugin::isDerivedFrom
...where clang::CXXRecordDecl::forallBases is documented as:  "This routine
returns false if the class has non-computable base classes."  So, presumably
since
<bf099f4682>
"[llvm][ADT] Structured bindings for move-only types in `StringMap` (#114676)"
changed

> -template <std::size_t I, typename ValueTy>
> -struct tuple_element<I, llvm::StringMapEntry<ValueTy>>
> -    : std::conditional<I == 0, llvm::StringRef, ValueTy> {};
> +template <std::size_t Index, typename ValueTy>
> +struct std::tuple_element<Index, llvm::StringMapEntry<ValueTy>>
> +    : std::tuple_element<Index, std::pair<llvm::StringRef, ValueTy>> {};

in LLVM's llvm/include/llvm/ADT/StringMapEntry.h, our !forallBases check here
started to trivially always be true for that struct tuple_element
specialization, so the isDerivedFrom check in
CheckFileVisitor::VisitCXXRecordDecl in
compilerplugins/clang/sharedvisitor/analyzer.cxx started to erroneously be true
for that struct, so it started to generate
compilerplugins/clang/sharedvisitor/*.plugininfo files with bogus extra

> InfoVersion:1
> ClassName:tuple_element
> InfoEnd

content, which in turn caused the generated
compilerplugins/clang/sharedvisitor/sharedvisitor.cxx to contain lots of

> #include "tuple_element.cxx"

and other nonsense, which caused the build to break with

> [CXX] compilerplugins/clang/sharedvisitor/sharedvisitor.cxx
> lo/core/compilerplugins/clang/sharedvisitor/sharedvisitor.cxx:20:10: fatal error: 'tuple_element.cxx' file not found
>    20 | #include "tuple_element.cxx"
>       |          ^~~~~~~~~~~~~~~~~~~

etc.

(And now spelling out the implementation of forAnyBase here also reveals that
BaseCheckSubclass will never be called with a null BaseDefinition, so the code
handling that has been removed.)

Change-Id: I8a6e42260eae86852ec37a80d058777653fac394
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176042
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-11-05 12:47:54 +01:00
Stephan Bergmann
bb9090c60b Fix USE_TLS_OPENSSL builds
...after c8cba8ae30 "move CryptTools from oox to
comphelper so we can reuse it"

Change-Id: Id899c9fac9f18833afd64f18d81a7ad50916872e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176041
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Tested-by: Jenkins
2024-11-05 10:03:35 +01:00
Patrick Luby
2fe53b2e43 Fix crash due to unexpected dynamic_cast failures in optimized build
When an optimized build of this branch is compiled on Silicon Mac,
a dynamic_cast from com.sun.star.awt.XPopupMenu to VCLXPopupMenu
will fail.

The pointer being casted has not been deleted and is an undeleted
instance yet dynamic_cast fails. However, a dynamic_cast to
VCLXPopupMenu's superclass VCLXMenu succeeds so cast to that class
instead.

Change-Id: Ie9ab79df109eece46351545a71325d1e37bde94d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175992
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
2024-11-05 09:42:12 +01:00
Michael Weghorn
bf42162fc5 tdf#130857 qt weld: Add extra QWidget parents for layouts
For "GtkBox" and "GtkGrid" objects in .ui files,
don't just create the corresponding QLayout objects,
but create an extra QWidget object and set the
layout for that widget, i.e. use that QWidget as
the parent.

While this generally wouldn't be needed to properly
layout/handle things in Qt, having an associated
QWidget for the "GtkBox" and "GtkGrid" children
is needed in order to be able to create a
corresponding weld::Container (QtInstanceContainer)
for these, which derives from weld::Widget.
QLayout itself doesn't have the methods required to
implement weld::Widget, e.g. can't be hidden or shown.

Therefore, create a QWidget for these in addition,
except for special cases like the top-level layout
in a dialog or the dialog's button box.

For QGroupBox (created for "GtkFrame" objects),
this now means that the direct child is no more
necessarily a layout. Just setting a QWidget
as a child wouldn't suffice for proper layouting.
Therefore, explicitly create a layout for parent
widgets that don't have a layout set yet.

Adjust QtBuilder::applyPackingProperties
accordingly as well. Now, there's no more
use case to call QtBuilder::applyGridPackingProperties
with a QLayout for the current child. Get the
corresponding QWidget parent (if there is one)
before calling the method instead, and switch the
param from QObject* to QWidget* to simplify the
method.

Having an extra widget might have the side-effect
that extra spacing/margins might be used. If that
turns out to be a problem, these can presumably
explicitly be reduced (e.g. set to 0 for the relevant
objects) as needed later.

At least the 19 dialogs currently listed as supported in
QtInstanceBuilder::IsUIFileSupported still look OK to
me in a quick test with this commit in place.

Actually making use of the newly added widgets
to implement more of the QtInstanceContainer logic
will be done in separate commits.

Change-Id: I3d3600ddfc7883239177aafed57629c107cbdf5d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176033
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-11-05 08:21:22 +01:00
Michael Weghorn
742b2d2416 tdf#130857 qt weld: Declare support for password dialog
Add .ui file for the password that can be triggered via
"File" -> "Properties" -> "Security" -> "Protect..." in Writer.

This means that native Qt widgets are used for that dialog
now when LO gets started with environment variable
SAL_VCL_QT_USE_WELDED_WIDGETS=1 set.

Change-Id: I106444178cd89b0f37b97bb528a144652fbb2567
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176019
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-11-05 08:21:17 +01:00
Michael Weghorn
c5bf243cb3 tdf#130857 qt weld: Implement QtInstanceEntry::set_message_type
For weld::EntryMessageType::Warning and
weld::EntryMessageType::Error, set a warning/error
icon from the icon theme at the end of the entry using
QLineEdit::addAction.

The GTK implementation (GtkInstanceEntry::set_message_type)
also does this. That one also sets a background color, which
the Qt implementation doesn't do for now.

This method is used e.g. by the "File" -> "Properties"
-> "Security" -> "Protect..." dialog in Writer, which
will be declared as supported in an upcoming commit.

Change-Id: I96b81e28faf82f17e33195cfa981c82522f59b98
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176018
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-11-05 08:21:09 +01:00
Michael Weghorn
a2f5b75047 tdf#130857 qt weld: Make opt-in for now
Except for the simple message dialogs created in
QtInstance::CreateMessageDialog, disable the use
of native Qt dialogs by default for now, and only
use those if the user explicitly opts in to use
them by setting the SAL_VCL_QT_USE_WELDED_WIDGETS
environment variable.

While those dialogs declared as supported in
QtInstanceBuilder::IsUIFileSupported are meant to be
fully functional, they are only a small subset
of all LO dialogs and not all properties for
widgets are evaluated by QtBuilder at this point in
time (e.g. not all spacing, margins, text formatting
properties,...).

Therefore, default to VclBuilder again for now in order
to have a more consistent visual appearance for dialogs
with the Qt-based VCL plugins.

This can be reconsidered in the future, but at least for
25.2, sticking to VclBuilder by default seems reasonable
to me.

Change-Id: I7b275d3d3759093a6680327faeb3b86d7c623cea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176013
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-11-05 08:21:03 +01:00
Andreas Heinisch
2a2c4dddf5 tdf#153636 - Search for outline node only if index is for the current chapter
Otherwise, "Use level from source chapter" does not work for Graphics and Frames in user-defined indices.

Change-Id: I148a097276cf8a60d69a208266ceb9def0444654
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175783
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
2024-11-05 07:44:30 +01:00
Olivier Hallot
5de26fbf37 tdf#137680 Add extended tips for Skia options
Change-Id: If525c808a1ad350c878cf8f80ee3289a0c6fcbb3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175938
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2024-11-05 07:28:08 +01:00
Mike Kaganski
962bd03938 Simplify a bit
SVG diagonal percentage distances are defined in terms of
viewBox diagonal length divided by sqrt(2) (normalized).

See https://svgwg.org/svg2-draft/coords.html#Units

Change-Id: I0d2101315d5f6c3333d021251eff17f6c13e804f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175991
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-11-05 06:36:16 +01:00
Mike Kaganski
35b3abf583 Simplify a bit
The expression can't be negative. It's a Pythagorean sum.

Change-Id: Ic07783c5291da71de6701a139227def2f1c4f77b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175989
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-11-05 05:35:12 +01:00
Bogdan Buzea
9e3803ae43 tdf#163486: PVS: Identical branches
V1037 Two or more case-branches perform the same actions. Check lines: 609, 637

Change-Id: I4376e86a5484886025152a9a407b23b3d05c3911
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175355
Tested-by: Jenkins
Reviewed-by: David Gilbert <freedesktop@treblig.org>
2024-11-04 22:51:37 +01:00
Bogdan Buzea
84f85e8ad1 tdf#163486: PVS: Identical branches
V1037 Two or more case-branches perform the same actions. Check lines: 734, 739
V1037 Two or more case-branches perform the same actions. Check lines: 1031, 1054

Change-Id: I835ac504eadcbdd44b2ee507f40e6f40ff5e416d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175318
Reviewed-by: David Gilbert <freedesktop@treblig.org>
Tested-by: Jenkins
2024-11-04 22:50:54 +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
Bogdan Buzea
f0d1b3a0a3 tdf#163486: PVS: Identical branches
V1037 Two or more case-branches perform the same actions. Check lines: 764, 767

Change-Id: Ia8da107d28249132b92e7cf533505b09c0037188
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175310
Tested-by: Jenkins
Reviewed-by: David Gilbert <freedesktop@treblig.org>
2024-11-04 22:48:27 +01:00
Bogdan Buzea
e877bd2a25 tdf#163486: PVS: Identical branches
V1037 Two or more case-branches perform the same actions. Check lines: 574, 577
V1037 Two or more case-branches perform the same actions. Check lines: 738, 752, 759
V1037 Two or more case-branches perform the same actions. Check lines: 1949, 1953

Change-Id: I2a6b6cc16ff58d432e5a7b14a6a1d7fa4f1a15b4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175313
Tested-by: Jenkins
Reviewed-by: David Gilbert <freedesktop@treblig.org>
2024-11-04 22:46:50 +01:00
Bogdan Buzea
22297112c5 tdf#163486: PVS: Identical branches
V1037 Two or more case-branches perform the same actions. Check lines: 767, 777

Change-Id: Ie9a6d6376f5037ee075c95e62c2c7970b720e9a0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175309
Tested-by: Jenkins
Reviewed-by: David Gilbert <freedesktop@treblig.org>
2024-11-04 22:43:09 +01:00
Tomaž Vajngerl
2143961a14 pdf: move encryption methods into PDFEncryptor files
Moving more PDF encryption implementation into common encryption
files. This will make it easier to add new encryption later on as
the code will be in one place.

Change-Id: Id40c2f876a2e92bb8db27024a0e251befc5059e5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176030
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2024-11-04 21:51:57 +01:00
Tomaž Vajngerl
4866d7f5ec pdf: move EncHashTransporter into own files
Also rename to EncryptionHashTransporter.

Change-Id: I20f984af4428e1182c77dbce4343d69c106063a4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176029
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2024-11-04 21:51:49 +01:00