Commit graph

500324 commits

Author SHA1 Message Date
Julien Nabet
378dd9025e Revert "tdf#163213: do not show OpenType features if the font has "morx" table"
Reason: regression
See https://bugs.documentfoundation.org/show_bug.cgi?id=163213#c14

This reverts commit 0679a5cee1.

Change-Id: Ib1392e2ad44577f69e6197bad8ae79791f072086
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174435
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2024-10-03 19:30:58 +02:00
Noel Grandin
94c33fb4f2 cid#1556166 Data race condition
Change-Id: I2b5e4fe19c8ba4792b3cb89a90278540733192d4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174431
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-10-03 18:44:28 +02:00
Noel Grandin
9c59f0bc66 cid#1556833 Data race condition
Change-Id: I8b6b929240d9bd730480c5559bc40f39e9c93511
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174430
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-10-03 18:44:18 +02:00
Noel Grandin
6f7265ef03 cid#1608220 Data race condition
Change-Id: I7ff30128d663ca3524dc95ef99ef8c64dd158643
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174429
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-10-03 18:44:06 +02:00
Noel Grandin
fa58e87279 cid#1606585 Data race condition
and
cid#1606993 Data race condition

Change-Id: I291829f0b59fc228ad3f305f280f7f58aae0d40b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174428
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-10-03 18:43:57 +02:00
Noel Grandin
95faca7cf8 cid#1555162 Data race condition
Change-Id: I0f1aa14732d6fe32ac6875e29cb678cb0b2d2872
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174427
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-10-03 18:43:47 +02:00
Caolán McNamara
259624bc68 We don't need to constantly fetch SvtCTLOptions::GetCTLTextNumerals
we are already listening to SvtCTLOptions and triggering
SwViewShell::ChgNumberDigits if it changes, so can just keep
the initial value and update it at that point.

Change-Id: I669aeb755506b9d703a7c638a82c03935779ce8d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174421
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-10-03 16:59:50 +02:00
Noel Grandin
2be7689549 cid#1606754 Thread deadlock
Change-Id: I51985e5ac573aa42c011730b73848ab55a4b2130
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174410
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-10-03 16:56:27 +02:00
Noel Grandin
16569ed326 simplify SvxShapeCollection::dispose
Change-Id: Idb1605b27995cbf9eccb2710f74f6ccb37547646
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174409
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-10-03 15:46:47 +02:00
Noel Grandin
db20a13d45 cid#1607746 Data race condition
and
cid#1608428 Data race condition
cid#1607985 Data race condition
cid#1607894 Data race condition
cid#1607463 Data race condition
cid#1607218 Data race condition

Change-Id: Ifb30dd8490f41e06d47442c3a2b090b184932a4b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174408
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-10-03 15:26:49 +02:00
Armin Le Grand (Collabora)
c92846d670 tdf#163234: CairoSDPR: PixelSnap corrections
PixelSnap has to also snap control points, also
simplified some stuff in line geometry conversion
to cairo, plus more precise detection of when to
apply piyel snap

Change-Id: I41d27d8d513a62609a727dfd80f073356c901c49
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174418
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
Tested-by: Jenkins
2024-10-03 14:26:53 +02:00
Noel Grandin
36d4938894 use more concrete UNO class in SdXImpressDocument
Change-Id: I61fb3e0c5f76fd6208255dc1f1bc403c25221ba6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174412
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-10-03 14:08:07 +02:00
Noel Grandin
9b26255f03 use more concrete UNO class in ValueSetAcc
Change-Id: I9d6c31ccda4ff05f33d437ab064a2a55d84627b3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174411
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-10-03 14:07:57 +02:00
Usman Akinyemi
760686f881 tdf#143148 Use pragma once instead of include guards in svx directory
Change-Id: I1b26987848f0a7772a52fc07a811abd7098e0793
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174419
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2024-10-03 13:49:50 +02:00
Justin Luth
55a8fce5d7 tdf#159690 tdf#159938 Revert "tdf#158252 sc: Enable text wrapping...
... when inputting line breaks in cell"

This reverts 24.2 commit 17e362e56f
because it was made as a regression fix
for a commit that I just reverted,
AS WELL AS having several (duplicate) regression bugs of its own.

Duplicate Bug 163150 is a good example of why a linefeed shouldn't
automatically imply wrap text - it specified "fit to cell size".

Duplicate Bug 159834 complains about this happening on drag/drop.

Change-Id: Iad5fb87f9ab71230221c402a84ca682dba0ed004
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174402
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2024-10-03 13:32:53 +02:00
Javiya Vivekkumar Dineshbhai
c3d6ceea87 slideshow: enable mics shape transition
Change-Id: I88ac6dbba007f67b2d3648f7303869825f86b377
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174417
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2024-10-03 11:57:50 +02:00
Noel Grandin
87519013cb cid#1606693 Data race condition
Change-Id: I107174d36f2bfa0cdcb7017838b1b4404179fb0c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174407
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-10-03 10:39:50 +02:00
Noel Grandin
12e7a664f8 cid#1554974 Data race condition
Change-Id: I9b9b1bb9f63b9eaf294b27afbde4c39e773ede8b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174406
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-10-03 10:39:38 +02:00
Noel Grandin
74ed4d1937 cid#1608230 Data race condition
and
cid#1607831 Data race condition
cid#1607761 Check of thread-shared field evades lock acquisition
cid#1606784 Data race condition

Change-Id: Icbc872531117fbd9c22e33ffc560e07322f39ef8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174405
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-10-03 10:39:27 +02:00
Andrea Gelmini
76e8a1a2d7 Fix typo
Change-Id: I48ef74823ee2574439c977098f412d6a885af57d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174403
Tested-by: Jenkins
Reviewed-by: Andrea Gelmini <andrea.gelmini@gelma.net>
2024-10-03 08:33:23 +02:00
Jonathan Clark
3937143065 tdf#134166 sw: Fixed RTL/LTR toolbar buttons not updating
This change fixes an intermittent issue causing the text direction
toolbar button states to not reflect page text flow setting changes.

Change-Id: Ia20283b7efd4402dfa3b4ea9532d2b8ca6b1c8e0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174414
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
Tested-by: Jenkins
2024-10-03 06:19:40 +02:00
Justin Luth
dafb629f4f tdf#161453 tdf#158252 tdf#159690 Revert "sc: Fix wrapText ...
...not being applied correctly on export"

This reverts 24.2 commit 1760ee4d32
which was presumably made for tdf#158460.

There are two bug reports in QA statistics - Regressions with most dups
that relate to the chain of commits started by this patch.
So just revert everything and let any initial fixes start again fresh.

make CppunitTest_sc_subsequent_export_test3 \
    CPPUNIT_TEST_NAME=testCustomXml

make CppunitTest_sc_subsequent_export_test4 \
    CPPUNIT_TEST_NAME=testTdf152980

Change-Id: I3df533daa67dfec0080c99dcdc2f593b1b6da8f3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174401
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2024-10-03 03:05:05 +02:00
Olivier Hallot
784a508bba Update git submodules
* Update helpcontent2 from branch 'master'
  to e377c9e115198486cb2b1c6f0348453653a906a5
  - tdf#162607 disambiguate hid2file.js, writer bookmarks
    
    + Removed misplaced bookmark
    + refactor
    
    Change-Id: Ieeaf10cd3dc3ed99f1b2265c46051cb06fc04ce7
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/174413
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2024-10-03 02:27:29 +02:00
Tibor Nagy
4b8cec7e83 tdf#163047 sc: fix more pages on a single sheet printing function
issue caused by commit I5e494a0714e398221bee00744d7e25c419a41df7
"tdf#155218 sc: fix different page orientation in print dialog".

Change-Id: I0b6f645dc77af83b132a415570e5dfca4a5abddf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174404
Reviewed-by: Nagy Tibor <tibor.nagy.extern@allotropia.de>
Tested-by: Jenkins
2024-10-03 00:12:53 +02:00
Xisco Fauli
25ad0ee3c8 unoxml: port testXXPathAPI from java to c++
Change-Id: Iaeb6713edc8d8b54066eaa5b8de2f600b1c10296
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174395
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-10-02 22:35:08 +02:00
Xisco Fauli
d937166f51 unoxml: port testXXPathObject from java to c++
Code for "count(//foo) = 2" was duplicated
Same for "//foo" which is already tested in
testXNodeList_NodeList

Change-Id: I2144552f5b687e639fef66b82463aae3bf82f53c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174394
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-10-02 22:35:01 +02:00
Xisco Fauli
466134863b unoxml: port testXNodeList_NodeList from java to c++
Change-Id: I1a059ecb13e35518828b395f9eb9863930a3d12e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174392
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-10-02 22:34:54 +02:00
Michael Weghorn
cc7f535f16 tdf#130857 qt weld: Add QtInstanceCheckButton
Add a QtInstanceCheckButton as the native Qt
implementation for a weld::CheckButton.
This uses a QCheckBox.

Handle the "GtkCheckButton" object type from .ui
files in QtBuilder.

This will e.g. be needed for the "Insert" -> "Axes..."
dialog seen in Calc after a chart has been inserted
and double-clicked -- once further
remaining aspects needed to be able to support that dialog
has been implemented and it will be enabled
in QtInstanceBuilder::IsUIFileSupported.

The handling for the "inconsistent" state
is mostly based on the the VCL implementation,
see SalInstanceCheckButton::set_inconsistent etc.

QtInstanceCheckButton::QtInstanceCheckButton::set_label_wrap
remains unimplemented for now and triggers an assert,
can be implemented when adding support for a dialog
that actually makes use of it.

Change-Id: I1e43ba25a23312534ee7cc0e650cd6e7aae20000
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174398
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-10-02 22:11:19 +02:00
Michael Weghorn
9dd1c9f9df tdf#130857 qt weld: Add new layout to parent layout
Similar to the way it's already done for widgets
a few lines above, also add a newly created layout
to the parent layout (if the parent is a layout).

This makes the case where a QLayout is inside a
QLayout (e.g. a "GtkBox" inside a "GtkBox" in the
.ui file) work, where previously, the inner layout
wouldn't be added to the hierarchy, and thus
not be displayed in the dialog.

Quoting from the QLayout::addItem doc [1]:

> This function is not usually called in application code. To add a widget
> to a layout, use the addWidget() function; to add a child layout, use
> the addLayout() function provided by the relevant QLayout subclass.

Therefore, cast to QBoxLayout, the only QLayout
type used so far and call QBoxLayout::addLayout
to add the child layout.
(This might have to be extended when using e.g.
QGridLayout in the future as well.)

This will e.g. be needed for the "Tools" -> "Word count"
dialog in Writer or the "Insert" -> "Axes..." dialog
seen in Calc when a chart is selected -- once further
remaining aspects needed to be able to support those
have been implemented and they'll be enabled
in QtInstanceBuilder::IsUIFileSupported.

Change-Id: I518b9a33be1db419737a80aee44d93b2a7be1094
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174397
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2024-10-02 22:11:10 +02:00
Michael Weghorn
938b998862 chart2: Resave insertaxisdlg.ui with glade 3.40
This dialog can be seen by inserting a chart using
"Insert" -> "Chart" in Calc, then double-clicking on
the newly inserted chart, then opening the dialog
using "Insert" -> "Axes...".

Change-Id: Ie726805f7ec1e4ec81e74e90da7a3e7851cb4f90
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174396
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-10-02 22:11:01 +02:00
Michael Stahl
d5fcc8ea25 tdf#163032 sw: fix painting of row frame with rowspan > 1 cell
Super non intuitive representation of a rowspan > 1 cell split across
pages is that the follow frame will be in a row that's 0 height, but its
own height extends to the bottom of the following merged rows.

(regression from commit 1349592639)

Change-Id: I0e32477613ceb5b6dbcc590bf70e0b5fc62a5d0a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174399
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2024-10-02 21:27:13 +02:00
Jean-Pierre Ledure
74b79b7ac1 scriptforge.pyi - Typo
Change-Id: Ieff7ec790c457b1f4f67544d3f300fc68723d5aa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174393
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
2024-10-02 17:53:55 +02:00
Stephan Bergmann
ea5e3865b4 Hack reordering includes to avoid Windows Yield macro fallout
No idea why my local Windows build started to only now fail with

> [build CXX] desktop/source/app/updater.cxx
> C:\lo\core\include\vcl/svapp.hxx(491): error C2208: 'void': no members defined using this type
> C:\lo\core\include\vcl/svapp.hxx(491): warning C4091: 'static ': ignored on left of 'void' when no variable is declared

or how to potentially address that properly with prewin.h/postwin.h...

Change-Id: I8afbc0c485505ee8ab2cb956c58835bb6a73cab8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174390
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Tested-by: Jenkins
2024-10-02 17:35:48 +02:00
Stephan Bergmann
064937d0b5 Avoid C4847 with --with-latest-c++ when compiling CLR
> [build CLR] cli_ure/source/climaker/climaker_emit.cxx
> c1xx: error C2220: the following warning is treated as an error
> c1xx: warning C4857: C++/CLI mode does not support C++ versions newer than C++20; setting language to /std:c++20

etc., as seen now with at least VS2022 Preview 17.12.0 Preview 2.1

Change-Id: I34d5bca2a81e849ba24b8df5f41ebb12f08a75fd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174389
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Tested-by: Jenkins
2024-10-02 17:35:18 +02:00
Olivier Hallot
3c3d7b3134 Update git submodules
* Update helpcontent2 from branch 'master'
  to f232ea1618140f45dc1643338e9d75a5bf2e49eb
  - Mute L10N for embedvar
    
    Change-Id: I7c03f7326d14499b391ab6971e766350ed6fcc11
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/174325
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2024-10-02 16:32:15 +02:00
Caolán McNamara
7f09dc4ba9 Get SolarMutex before calling ImplClearAllFontData
to avoid:

vcl/source/app/dbggui.cxx:35: void ImplDbgTestSolarMutex(): Assertion `ImplGetSVData()->mpDefInst->GetYieldMutex()->IsCurrentThread() && "SolarMutex not owned!"' failed.

Change-Id: I6d56bb05e8a89190838c5437043bc61034607d8e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174328
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-10-02 16:10:00 +02:00
Xisco Fauli
fa496381da CppunitTest_unoxml_domtest: merge BasicTest and serializerTest
And convert it into a class

Change-Id: Ie2090ab3426ebc15ccccad8bbbc91d777d376c9d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174383
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-10-02 15:35:36 +02:00
Mohit Marathe
a5cd427624 sw: replace hardcoded strings with SwResId to improve localization
Change-Id: Ife431999fb53a44a2fab15468a995d91b5b65fea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174354
Tested-by: Jenkins
Reviewed-by: Sarper Akdemir <sarper.akdemir@allotropia.de>
2024-10-02 15:09:03 +02:00
Patrick Luby
a4e9584c55 tdf#163000 don't add any fonts with an 'hvgl' font table
macOS Sequoia added a new PingFangUI.ttc font file which
contains all of the PingFang font families. However, any
fonts loaded from this font file result in the following
failures:

- Skia renders font with wrong glyphs
- Export to PDF contain a damaged embedded font

Despite the fact that the fonts in this new font file have
a TrueType font type, they are missing a 'glyf' font table
and, instead, have a new, undefined 'hvgl' font table. See
the following link for more details about the new 'hvgl'
font table:

https://gitlab.freedesktop.org/freetype/freetype/-/issues/1281

Change-Id: I18170b1b226de86f79402ad0e45df8620c693f83
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174305
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
Tested-by: Jenkins
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
Reviewed-by: خالد حسني <khaled@libreoffice.org>
2024-10-02 14:54:59 +02:00
Xisco Fauli
16684eb4ba tdf#163212: context-fill/context-stroke can also use gradients
Change-Id: Ic6f7f5e0817d8f5fccee64938004aa899bde47dc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174382
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-10-02 14:31:47 +02:00
Noel Grandin
4dfffddceb flatten ScMyStylesImportHelper::AddDefaultRange
Change-Id: I7a3afbed392786eea3533318421959d8e2b0dbd6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174377
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-10-02 14:00:20 +02:00
Noel Grandin
5f6b8b18dc tdf#161986 speedup ODS with large merged range
reduces load time from 90s to 25s

Change-Id: I7523776e5f4e2c4dc8645ccdf303e51178a9848a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174376
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-10-02 14:00:10 +02:00
Michael Weghorn
cb7e14bf37 tdf#130857 qt weld: Move runAsync logic to QtInstanceDialog
Refactor the handling for running a QtInstanceMessageDialog
asynchronously, and reuse the logic for the QtInstanceDialog
base class:

Move implementations for both QtInstanceMessageDialog::runAsync
methods and the involved class members from QtInstanceMessageDialog
to QtInstanceDialog.

Split the previous logic from
QtInstanceMessageDialog::dialogFinished into two methods:

* move most of the logic as is to a new virtual slot
  in the base class, QtInstanceDialog::dialogFinished
* override the base class implementation to get the
  response code from the actually clicked button
  via the PROPERTY_VCL_RESPONSE_CODE property
  set on that button, and call the base class
  method with that one.

For QtInstanceDialog, there's no QDialog::clickedButton
method that could be used to retrieve the clicked button,
but it's also not needed there, because there a slot
connected to the QAbstractButton::clicked signal that triggers
closing the dialog, and passes the proper response code of the
corresponding button already, see

    commit 08b55df5c9
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Sat Sep 28 00:32:15 2024 +0200

        tdf#130857 qt weld: Close dialog on button click

With this commit in place, QtInstanceDialog can now
also be run asynchronously, instead of the
QtInstanceDialog::runAsync methods
just returning true without doing anything.

This will be needed e.g. when adding support for the
"Tools" -> "Word Count" dialog in Writer.

Change-Id: I4edb9443cb11d1dc831a18f708cdbdd67c239aa6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174374
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2024-10-02 13:15:38 +02:00
Michael Weghorn
169c56518e tdf#130857 qt weld: Let QtInstancDialog subclass QObject
... and add the Q_OBJECT macro, in preparation of moving
some logic from the QtInstanceMessageDialog subclass
to QtInstanceDialog for reuse.

Change-Id: Iaf76ae3efb352dd04d15716174818e8a902a16cc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174373
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-10-02 13:15:31 +02:00
Miklos Vajna
d5d7883fde desktop lok: fix crash in getStyles()
Crashreport backtrace:

> program/libmergedlo.so
>       getStyles
>               desktop/source/lib/init.cxx:6411
> program/libmergedlo.so
>       doc_getCommandValues
>               desktop/source/lib/init.cxx:6666

Which is probably a call on an already disposed document. Fix it similar
to how getFonts() does it.

Change-Id: I1744bd04b7ebdea1b69ca121b8cfa47314d67528
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174372
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2024-10-02 13:09:04 +02:00
Caolán McNamara
0e23cabf2f cid#1606631 Overflowed constant
Change-Id: I9ed28057b0435b78743303d1d6edea928598787b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174379
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-10-02 12:25:51 +02:00
Caolán McNamara
dba433c1ee cid#1606791 Overflowed constant
Change-Id: I540f58b42366a1053ca59c1d31cb44784dcd9ce1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174378
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-10-02 12:25:31 +02:00
Mohit Marathe
1a09da6c7e sw: give warning when comment cannot be deleted in comments panel
Instead of crashing LO, this patch gives a warning if it is not
able to find the comment or thread to be deleted

Change-Id: Ia36e1b31929cea6c70322265b3062b5b8458291f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174107
Tested-by: Jenkins
Reviewed-by: Sarper Akdemir <sarper.akdemir@allotropia.de>
2024-10-02 11:59:21 +02:00
Xisco Fauli
4dc04a1069 qa: use SetODFDefaultVersion everywhere
Change-Id: I4a08abea9a6c61a0365d238abf1021806ae6df29
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174375
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-10-02 11:15:09 +02:00
Miklos Vajna
1c7f6188eb cool#9992 lok doc sign: avoid storing the sign cert in the model after sign
Open the signatures dialog in LOK mode, add a signature, close it, you
get a (non-async) popup asking if you want to automatically re-sign the
document on each save in the future.

This makes sense when only one user edits the document, but the LOK mode
stores the signing certificates in the view, so this would mean user A
can enable this mode, then user B could edit + save, which is not
wanted.

Fix the problem by just not offering this functionality in LOK mode,
where we assume that certificates are per-view and the save works on the
model.

Change-Id: I180fc2e6078623d44f8414f7891481218df7cebd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174369
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2024-10-02 09:49:04 +02:00