Commit graph

501538 commits

Author SHA1 Message Date
Bogdan Buzea
7feaecc98a tdf#163486: PVS: The variable was asign the same value.
V1048 The 'eEnableChildren' variable was assigned the same value. See lines 2537 and 2542.

Change-Id: If1e7630ea3fc3bec8401977a011f29380c70da0c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175156
Reviewed-by: David Gilbert <freedesktop@treblig.org>
Tested-by: Jenkins
2024-11-10 22:59:51 +01:00
Bogdan Buzea
3a513d1ba4 tdf#163486: PVS: Identical branches
Change-Id: If68fa2c871472a21d9404370351828753db37ee4
V1037: Two or more case-branches perform the same actions. Check lines: 727, 731
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175159
Tested-by: Jenkins
Reviewed-by: David Gilbert <freedesktop@treblig.org>
2024-11-10 22:58:57 +01:00
Dione Maddern
c57d6827da Update git submodules
* Update helpcontent2 from branch 'master'
  to 4c8d7f27a01462bf8e05b6fd5cdc979433d62412
  - Remove empty paragraph at line 78
    
    Removed empty paragraph at line 78 to avoid warnings and translation problems.
    
    Change-Id: I6d28f08bed4ec68921c1b8640504eff966cf517c
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/176349
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
    Tested-by: Jenkins
2024-11-10 22:55:09 +01:00
Dione Maddern
f93681a70a Update git submodules
* Update helpcontent2 from branch 'master'
  to 9e9a188e016b3126a9b07d50084338dfead65bf6
  - Fix empty heading in 'Edit module' help page
    
    Added text to the heading in line 77, so that in now reads "Reset", to avoid the warning:
    > Helpex warning: invalid po attributes extracted from /home/timar/libreoffice-master/helpcontent2/source/text/shared/optionen/01010401.xhp
    > No string specified!> 
    > GroupID: hd_id3161832
    - and problems with translation.
    Change-Id: Ia5936a110fa1bbe663032f5fc36b07b7e1af210c
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/176347
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
    Tested-by: Jenkins
2024-11-10 22:54:29 +01:00
Regina Henschel
1b7bdc2955 tdf#162686 tdf#162687 ODF 1.4 extrusion-metal-type
and extrusion-specularity.

In ODF strict always value 'draw:MetalODF' was written. Changed the
logic to write 'loext:MetalMSCompatible' too, depending on eMetalType.
Using a QName as value requires a namespace declaration for the prefix
'loext'. That is now written directly at the element, not as global
declaration, to restrict its scope to the element. A global declaration
would hide when attributes or elements are accidentially written in
'loext' namespace.

The pattern for nonNegativePercent had missed the percent sign.
The export is adapted to write the percent sign.

Validation is skipped for save to ODF 1.3, because currently the
implicit validation uses always latest ODF version, see tdf#163806.

Tests are extended to cover ODF 1.4 and value draw:MetalODF.

Change-Id: I836d11b9cd327b9772e800d9797e04e1613ab2f9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176246
Tested-by: Jenkins
Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
2024-11-10 18:50:37 +01:00
Caolán McNamara
873b814660 drop a static
Change-Id: Ic4eeb87e680cec3667f305e57de2f4688e1ea138
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176321
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-11-10 15:19:38 +01:00
Patrick Luby
5a38e4f979 tdf#163734 Revert commit f4c2c7c79c
Commit f4c2c7c79c lowered the Skia
flushing priority to solve tdf#157312. But the commit caused the
"window will dock in rectangle" border to not be drawn when dragging
a dockable window over a dockable position.

Surprisingly, tdf#157312 does not reoccur without the commit so
it appears that the commit is now unnecessary.

Change-Id: Ibd74ef94e8448cf32fd690d7a26dd098191040b8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176341
Tested-by: Jenkins
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
2024-11-10 14:49:01 +01:00
Caolán McNamara
4aae5b2c3c rRedlTable is rDoc.getIDocumentRedlineAccess().GetRedlineTable()
so make this less confusing

Change-Id: Icc4d4c43f0d35963bb71cdcd64bdd78b00ed9632
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176324
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-11-10 12:51:11 +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
Michael Weghorn
6c957f1b49 tdf#130857 qt weld: Add QtInstanceNotebook skeleton
Add a new QtInstanceNotebook class that is the
weld::Notebook implementation using a native
Qt widget. It uses a QTabWidget.

Initially, all methods trigger an assert;
the actual logic still needs to be implemented
in future commits.

Let QtBuilder handle "GtkNotebook" objects by
creating a QTabWidget and let
QtInstanceBuilder::weld_notebook return
an instance of the new class.

Change-Id: I5a0671a1ba98bea3e0659e4f280706179bfb4d47
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176322
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-11-10 12:28:51 +01:00
Michael Weghorn
7270c44e43 tdf#130857 VclBuilder: Split XML parsing + applying tab child props
Split the existing VclBuilder::handleTabChild into two
methods and make the logic not specific to vcl::Window
available to other subclasses as well, to make it
available for reuse by QtBuilder in the future.

In order to do that, move the existing XML parsing logic
from the beginning of VclBuilder::handleTabChild to the base
class into WidgetBuilder::handleTabChild.

Add a new purely virtual method `applyTabChildProperties`
to WidgetBuilder and move the corresponding logic for
vcl::Window to the new VclBuilder override of this method.

Call that method at the end of WidgetBuilder::handleTabChild.

For QtBuilder, just add a dummy implementation that
triggers an assert initially, which matches what
would have happened right at the beginning
of the previous WidgetBuilder::handleTabChild
implementation without this commit in place.

Change-Id: Ie5664bd341182fa51035b547accf9393d65a0702
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176320
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-11-10 12:28:38 +01:00
Michael Weghorn
d18d05e2f7 tdf#130857 VclBuilder: Abstract tab control check from VCL details
In VclBuilder::handleTabChild, move casting the vcl::Window to
TabControl further down to avoid vcl::Window specific code in
the XML parsing logic.
Introduce a new purely virtual helper method
WidgetBuilder::isHorizontalTabControl,
implement for VclBuilder and QtBuilder and
use that in the XML parsing logic instead
of directly checking whether the parent is
a TabControl widget.

This  gets rid of one detail specific to the VCL
implementation in the XML parsing part and is in
preparation of further refactoring of
VclBuilder::handleTabChild for reuse with QtBuilder.

Change-Id: I05c637f81bce4a5cdd443960a1ad096c347df560
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176319
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-11-10 12:28:32 +01:00
Xisco Fauli
fa0df21584 Update git submodules
* Update dictionaries from branch 'master'
  to 1ca6cb9f31503623a5efdab58dc17cf788989ecd
  - Update Danish dictionaries to v2.8.140
    
    Change-Id: I3e3260a3e6080949a7e09f00441a062d58206306
    Reviewed-on: https://gerrit.libreoffice.org/c/dictionaries/+/176344
    Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
    Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-11-10 11:45:27 +01:00
Andreas Heinisch
bb42adb99a tdf#162753 - Propose clipboard content only for options internet and mail
Change-Id: I11ac10ac4321f15cdd9f5096457f6ea4ab8204b1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176269
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
Tested-by: Jenkins
2024-11-10 11:08:08 +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
Bogdan Buzea
7713d916e0 tdf#163486: PVS: Identical branches
V1037 Two or more case-branches perform the same actions. Check lines: 94, 97

Change-Id: If4eeadad5a9985a2d4e8336ab4cba9188655b6ba
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175227
Tested-by: Jenkins
Reviewed-by: David Gilbert <freedesktop@treblig.org>
2024-11-10 01:09:02 +01:00
Bogdan Buzea
0488beff8b tdf#163486: PVS: Identical branches
V1037 Two or more case-branches perform the same actions. Check lines: 94, 99

Change-Id: I406b94c79426cebbd4813a019389d0cac0616bbf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175226
Tested-by: Jenkins
Reviewed-by: David Gilbert <freedesktop@treblig.org>
2024-11-10 01:07:48 +01:00
Bogdan Buzea
cd398f3e74 tdf#163486: PVS: Identical branches
V1037 Two or more case-branches perform the same actions. Check lines: 999, 1003
V1037 Two or more case-branches perform the same actions. Check lines: 1557, 1566, 1595
V1037 Two or more case-branches perform the same actions. Check lines: 2593, 2689

Change-Id: I0a3ab375e9e8c72802615108948c96808a2ec0b4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175208
Tested-by: Jenkins
Reviewed-by: David Gilbert <freedesktop@treblig.org>
2024-11-10 01:04:19 +01:00
Caolán McNamara
c4052eaa4e cid#1607142 Overflowed constant
Change-Id: I840fbf1b472dbf0a41dc9032e4e75839dec8dc2d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176314
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-11-09 21:35:58 +01:00
Caolán McNamara
9c3133fc33 cid#1634585 Use of auto that causes a copy
and

cid#1634580 Use of auto that causes a copy
cid#1634578 Use of auto that causes a copy

Change-Id: Iad2ec6285b1eb923f3f30e8b18ee577d53ca140b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176312
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-11-09 20:21:51 +01:00
Caolán McNamara
6e9f865789 cid#1634574 COPY_INSTEAD_OF_MOVE
and

cid#1634579 COPY_INSTEAD_OF_MOVE
cid#1634583 COPY_INSTEAD_OF_MOVE
cid#1634586 COPY_INSTEAD_OF_MOVE

Change-Id: I24f4f0edf90546fe89ebecf0652f27298b5dd2a0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176311
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-11-09 20:21:43 +01:00
Mike Kaganski
dcd7be141f XTopWindowListener is unused here
Change-Id: Ib4c1464d709c41f019d1910000e71075c9f5e037
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176310
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-11-09 19:33:09 +01:00
Mike Kaganski
ce310aa33a Use OInterfaceContainerHelper4 per listener class for type safety
Change-Id: I919fef7e981d2dbdd69eb3cce34b3236dd6ed7ad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176309
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-11-09 19:33:03 +01:00
Michael Weghorn
d0ea15aace tdf#130857 qt weld: Add QtInstanceTreeView skeleton
Add a new QtInstanceTreeView class that is the
weld::TreeView implementation using a native
Qt widget. It uses a QTreeView.

Initially, all methods trigger an assert;
the actual logic still needs to be implemented
in future commits.

Let QtBuilder handle "GtkTreeView" objects by
creating a QTreeView.

Let QtInstanceBuilder::weld_treeview return
an instance of the new class.

Change-Id: Ia3e694dbef9033fe45a6d2bdbe09fc021cd47c58
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176307
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-11-09 19:05:28 +01:00
Michael Weghorn
99b465fc3c tdf#130857 qt weld: Implement QtInstanceWidget::get_approximate_digit_width
Similar to how OutputDevice::approximate_digit_width, used
by SalInstanceWidget::get_approximate_digit_width does it,
get the width for all a text containing all of of the 10 digits
and divide by 10 to get the average/approximate width of a digit.

This method e.g. gets called by the print progress dialog.

Change-Id: Ib1779a0a211f571c10714a291fed8f84ae5906ee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176306
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2024-11-09 19:05:18 +01:00
Michael Weghorn
c74924f0fe tdf#130857 qt weld: Assert in unimplemented methods
Trigger asserts in more currently not (yet)
implemented methods, so anything missing becomes
clear more easily when working on adding support for another
dialog in the future, rather than some functionality
just not working as expected.

None of the newly added asserts was triggered
in a quick test of opening all of the dialogs
currently listed in QtInstanceBuilder::IsUIFileSupported.

Change-Id: Iea0c7aa22744cd7652ca6cbc2fbb287bfeaa4ef7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176305
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-11-09 19:05:07 +01:00
Michael Weghorn
43da735182 tdf#130857 qt weld: Implement QtInstanceWindow::present
The gtk_window_present doc says:

> Presents a window to the user.
>
> This may mean raising the window in the stacking order, unminimizing it,
> moving it to the current desktop and/or giving it the keyboard
> focus (possibly dependent on the user’s platform, window manager
> and preferences).

Therefore, call QWindow::requestActivate [2] for the Qt
implementation of weld::Window::present.

[1] https://docs.gtk.org/gtk4/method.Window.present.html
[2] https://doc.qt.io/qt-6/qwindow.html#requestActivate

Change-Id: I1c73dba1675523171a92c760836c6702a81f4c12
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176303
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2024-11-09 19:04:59 +01:00
Michael Weghorn
028a525986 tdf#130857 qt weld: Signal container focus on window (de)activation
Set QtInstanceWindow as an event filter for it's
QWidget, and call `signal_container_focus_changed`
when receiving a QEvent::WindowActivate or QEvent::WindowDeactivate
event.
This code path got triggered as expected in a
quick test switching between e.g. the "Help" -> "About"
dialog and other windows in KDE Plasma using the Alt+Tab
shortcut.

The VCL implementation does something similar by
handling VclEventId::WindowActivate and
VclEventId::WindowDeactivate events, see
SalInstanceContainer::HandleEventListener.

For non-top-level containers, a different solution
will probably be needed.
For now, adjust the assert in
QtInstanceContainer::connect_container_focus_changed
to only trigger for non-QtInstanceWindow containers.

And call the base class implementation, so that the
handler is actually set for the QtInstanceWindow
case.

A potential solution for QtInstanceContainer
might be to connect to the QApplication::focusChanged
signal in QtInstanceContainer::connect_container_focus_changed
and in the slot check whether exactly one of the old and
new focus widgets has the container's widget in
hierarchy.

Change-Id: I945c8bf0999d93ae91cf25dcffd3fd3ce164d214
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176302
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2024-11-09 19:04:51 +01:00
Michael Weghorn
fe19219556 tdf#130857 qt weld: Support "LibreOffice Help Not Installed" dlg
Declare support for the "LibreOfficeDev Help Not Installed"
dialog that shows when pressing F1 in a build that doesn't
include the local help.

This means that native Qt widgets are used for that dialog
now when using the qt5 or qt6 VCL plugin and starting LO with
environment variable SAL_VCL_QT_USE_WELDED_WIDGETS=1 set.

Change-Id: I25254fd462b867a10e3ed6efc31d9b145466b0f5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176299
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-11-09 19:04:41 +01:00
Michael Weghorn
19b09cbc7f tdf#130857 qt weld: Return actual msg dialog ret code
If a synchronous message dialog is closed by means other than clicking
a button, return the QDialog::exec response code in
QtInstanceMessageDialog::run, comparable to what already
happens in the async case (s. QtInstanceMessageDialog::dialogFinished)
instead of always returning RET_CLOSE.

This is relevant e.g. for the "LibreOfficeDev Help Not
Installed" dialog that shows when pressing F1 in a build
not including local help, which will be declared as
supported in an upcoming commit. That dialog gets
closed with a response code of RET_YES
when the link button is clicked, see
HelpManualMessage's DownloadClickHdl
(in sfx2/source/appl/sfxhelp.cxx).

Change-Id: Iaa1599dda618e61a5b19264f1984d570a45c6881
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176298
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2024-11-09 19:04:32 +01:00
Michael Weghorn
eb479763e7 tdf#130857 qt weld: Always set non-empty link target
In QtHyperlinkLabel::update, always set a non-empty
string for the link target, as otherwise the text
in the QLabel will not be a clickable hyperlink, but
just plain text. While that seems reasonable in general,
this is problematic as the QtHyperlinkLabel is the widget
used for QtInstanceLinkButton, and a weld::LinkButton
should be clickable even if the link target is empty, as
a custom signal handler can be set that doesn't make use
of th URI anyway.

Therefore, just set a single space character as the URI
if the actual one is empty.

This is relevant e.g. for the "LibreOfficeDev Help Not
Installed" dialog that shows when pressing F1 in a build
not including local help, which will be declared as
supported in an upcoming commit.

Change-Id: I1db4c405793109ae9af811d6dd08b1da37246271
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176297
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2024-11-09 19:03:44 +01:00
Michael Weghorn
a43d2aa3bc tdf#130857 qt weld: Extract setting label props
Move logic to set "GtkLabel" properties on
a QLabel to a new helper method
QtBuilder::setLabelProperties and call it right
after creating the QLabel for a "GtkLabel", and only
for that case.

This also prevents potentially overwriting the
text of a QtHyperlinkLabel widget created for a
"GtkLinkButton" object in a .ui file, as that
class also derives from QLabel, but has specialized
handling for setting the label text to be a hyperlink.

Change-Id: I8bfcc31a503a1c9deec32bcd584e1a86c3dfff19
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176296
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2024-11-09 19:02:48 +01:00
Mike Kaganski
57b6d2d6f1 Make Multiplex do what it claims
Since the initial import, it used to only notify the first listener.
I guess it was just an overlook of using 'if' instead of 'while' in
the macro code, later flattened.

Change-Id: If2b769e71f937271c004a7152da751b26a2e0f24
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176293
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-11-09 06:32:56 +01:00
Justin Luth
af0946b9ea tdf#163812 sw: invalidate "Area" properties so sidebar updates
Changes to the background fill were not being updated
in Writer's sidebar, ever since the introduction in 5.3.

Each of these invalidations can be observed to be necessary
in the corresponding fill type and fill choice listboxes.

It already worked in Draw, and I don't see anywhere
this would be needed in Calc

Change-Id: I42f94ee99036761ff69293bcbb44aeda61e1b321
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176300
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2024-11-09 00:46:04 +01:00
Pierre F
259e610c49 Update git submodules
* Update helpcontent2 from branch 'master'
  to b0473042ff89f94b04e9c7ebe0cfeb5750c2cc4b
  - tdf#143846 split LEFTB LENB MIDB RIGHTB
    
    Change-Id: I57be1c7ea1642ef84798fadc6dd204bbac4c994e
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/176069
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2024-11-09 00:11:28 +01:00
Olivier Hallot
7e8f74c7e5 Update git submodules
* Update helpcontent2 from branch 'master'
  to 7e9cbf3457ba40fdc2fbdfea743c2d8028e1f548
  - tagalog Add swriter screenshots, remove unused
    
    Change-Id: Ibad461bf00df910a53c7ac618a67a6afaa6a9451
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/176304
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2024-11-08 23:46:03 +01:00
Olivier Hallot
c2bb685161 Update git submodules
* Update helpcontent2 from branch 'master'
  to 417ad040381dd1be6e8efa9e07ef22b2f578c7cf
  - Remove ddesktop screenshots (not used)
    
    Change-Id: Iab34bd0e181153be708b7e292dd8562877ae7f12
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/176301
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2024-11-08 23:45:34 +01:00
Xisco Fauli
96fb0457f4 gpgme: Upgrade to 1.24.0
* external/gpgmepp/gettid.patch fixes
/opt/rh/gcc-toolset-12/root/usr/libexec/gcc/x86_64-redhat-linux/12/ld: ./.libs/libgpgme.so: undefined reference to `gettid'

* external/gpgmepp/strcasecmp.patch fixes
libgpgme.lib(key.obj) : error LNK2019: unresolved external symbol _strcasecmp referenced in function __gpgme_key_append_name

Downloaded from https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-1.24.0.tar.bz2

Change-Id: I2f2587f5157db7610d6ffaa84b49f9677ba1cc4c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176160
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-11-08 22:49:42 +01:00
Caolán McNamara
383067b416 be conservative on allowed temp font names
Change-Id: Iefdc1a8c9b4c7e8c08c84f747f8287ac3c419839
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176286
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2024-11-08 22:00:00 +01:00
Miklos Vajna
12e5082537 cool#9992 lok doc sign, hash extract: initial getCommandValues('Signature')
The trouble with signing via ca/cert/key PEM files is that usually the
CA is not trusted by the received of the signature. 3rd-party services
are available to do generate trusted signatures, but then you need to
share your document with them, which can be also problematic.

A middle-ground here is to sign the hash of the document by a 3rd-party,
something that's supported by e.g.
<https://docs.eideasy.com/electronic-signatures/api-flow-with-file-hashes-pdf.html>
(which itself aggregates a number of providers).

As a first step, add LOK API to get what would be the signature time
during signing -- but instead of actually signing, just return this
information. Once the same is done with the doc hash, this is supposed
to provide the same info than what the reference
<https://github.com/eideasy/eideasy-external-pades-digital-signatures>
app does.

This is only a start: incrementally replace XCertificate with
SignatureContext, which allows aborting the signing right before calling
into NSS, and also later it'll allow injecting the PKCS#7 object we get
from the 3rd-party.

Change-Id: I108564f047fdb4fb796240c7d18a584cd9044313
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176279
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2024-11-08 21:40:22 +01:00
Michael Weghorn
e44f566a2c tdf#163802 cui: Don't set temporary title for spelling dialog
The window title set using SpellingDialog::SetTitle_Impl
was overwritten right away by the next call to
`m_xDialog->set_title(...)`, so was never meant to be used
in practice anyway.

The

    // use this function to apply the correct image to be used...

comment suggests that SpellingDialog::SetTitle_Impl also
sets some image, which was actually the case when the code
was initially introduced in

    commit d32b3a714f
    Author: Mathias Bauer <mba@openoffice.org>
    Date:   Sat Oct 31 00:36:06 2009 +0100

        #i106421#: move svx/source/cui to cui

, but that's no longer the case since

    commit bc3c10b5ce
    Author: Cédric Bosdonnat <cedric.bosdonnat@free.fr>
    Date:   Sun Oct 23 07:35:06 2011 -0700

        Grammar checking dialog: reworked how explanations are shown

, so there's no more reason to call SpellingDialog::SetTitle_Impl
before setting the actual title.

Change-Id: I56d7478271b53a6ec033a8ead9b05d3eff6ad5b7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176256
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-11-08 21:40:15 +01:00
Mike Kaganski
0f55739a75 Simplify using WeakImplHelper and OMultiTypeInterfaceContainerHelperVar4
Change-Id: Ib83b93d6055d3006eecdb25f1ccd7baf1251a40a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176284
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-11-08 20:41:23 +01:00
Xisco Fauli
774fe4b443 Update git submodules
* Update dictionaries from branch 'master'
  to d1696029d8923ae697cb2d6d4d7d69791b1943f2
  - Upgrade Mongolian dictionary to 2024.11.08
    
    Downloaded from https://github.com/bataak/dict-mn/archive/refs/tags/2024.11.08.zip
    
    Change-Id: I5f3159f2162690cfd5c7f48cf3793fdbd4e2a6e6
    Reviewed-on: https://gerrit.libreoffice.org/c/dictionaries/+/176291
    Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
    Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-11-08 20:04:13 +01:00
Batmunkh Dorjgotov
ec1dc5c239 Update git submodules
* Update dictionaries from branch 'master'
  to e9052a7afc28c3f8ef24dcc8a29f59da6c3ac5e5
  - Add license statement and update hyphenation rules
    
    Change-Id: Ie5fb948541f618a7ec3fc8bba1afdaa85bb2d707
    Reviewed-on: https://gerrit.libreoffice.org/c/dictionaries/+/164311
    Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
    Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-11-08 19:58:35 +01:00
Batmunkh Dorjgotov
7a2888ff37 Update git submodules
* Update dictionaries from branch 'master'
  to 40d2ad1687d5a8450eba9dc2f24ec8822d8af37c
  - Update Mongolian dictionary
    
    Change-Id: Ide7f5149abacc1c9c043a551c0a4771b03c9cec8
    Reviewed-on: https://gerrit.libreoffice.org/c/dictionaries/+/161705
    Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
    Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-11-08 19:58:17 +01:00
Miklos Vajna
899089ddfb vcl: fix crash in findAnnotations()
Crashreport signature:

> SIG   Fatal signal received: SIGSEGV code: 1 for address: 0x0
> program/libmergedlo.so
> 	vcl::ImportPDFUnloaded(rtl::OUString const&, std::vector<vcl::PDFGraphicResult, std::allocator<vcl::PDFGraphicResult> >&)
> 		vcl/source/filter/ipdf/pdfread.cxx:335
> program/libsdlo.so
> 	SdPdfFilter::Import()
> 		sd/source/filter/pdf/sdpdffilter.cxx:55
> program/libsdlo.so
> 	sd::DrawDocShell::ConvertFrom(SfxMedium&)
> 		sd/source/ui/docshell/docshel4.cxx:502 (discriminator 2)
> libmergedlo.so
> 	SfxObjectShell::DoLoad(SfxMedium*)
> 		sfx2/source/doc/objstor.cxx:786

I.e. in case we search for a marker image inside the annotation's
object, then handle the image type without a bitmap the same as
non-image types.

Change-Id: I443b5f448ea4544183fb4ed0b457e85a45f51acc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176282
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2024-11-08 19:51:55 +01:00
Noel Grandin
5962006370 loplugin:reftotemp in dbaccess..editeng
Change-Id: I51f5e47fb2fca37928ac58952a6a34b7351ca53c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176277
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-11-08 19:38:38 +01:00
Michael Stahl
d79790da8a tdf#162944 package: add test file
Change-Id: Ie689e8dff3405fc2a0da3791089d077db8bf59b7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176288
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2024-11-08 19:33:56 +01:00
Szymon Kłos
cc76bf8076 sidebar: move apply to all slides above repeat settings
Button "apply to all slides" setups properties selected above
to all the slides. Repeat options are common to the whole
presentation. Let's move repeat section to the bottom so it
is less confusing

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I19bb8d10c3969ceb033e2a6d26489999bb7451c9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174357
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: vivek javiya <vivek.javiya@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176283
Tested-by: Jenkins
2024-11-08 18:12:46 +01:00
Noel Grandin
5fe9b3df62 loplugin:reftotemp in codemaker..connectivity
Change-Id: I9da2976410f7c4da8ab0d85150fc87f2b3df9e0d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176275
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-11-08 17:33:29 +01:00