Commit graph

491852 commits

Author SHA1 Message Date
Jim Raykowski
4c2c900970 tdf#158114 SwNavigator: Make images with broken links easier to find
This patch makes an icon display in image entries with broken links to
make it easier to find images with broken links.

Change-Id: I470c9959e169d4cc53a44e0a64e88af35e671db0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161045
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
2023-12-21 21:45:23 +01:00
Matt K
e760dcf430 tdf#153690 Prevent invisible dialogs in Calc Full Screen
This change just adds the flag "SfxChildWindowFlags::NEVERHIDE"
to the info passed around so that the dialogs are not treated as
invisible when executing SfxWorkWindow::ShowChildren_Impl.

Change-Id: I35f0be94132cee438b3be9f4b4217208617a1e77
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160660
Tested-by: Jenkins
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-12-21 21:17:42 +01:00
Caolán McNamara
ba712e9a35 crashreporting: apparent null deref in a11y check
svl/source/items/itemset.cxx:801
svl/source/items/itemset.cxx:796
sw/source/core/access/AccessibilityCheck.cxx:1193
sw/source/core/access/AccessibilityCheck.cxx:1184
sw/source/core/access/AccessibilityCheck.cxx:1562
sw/source/core/access/AccessibilityCheck.cxx:1552
sw/source/core/txtnode/OnlineAccessibilityCheck.cxx:134
cppu/source/uno/copy.hxx:288
cppu/source/uno/any.cxx:72
cppu/source/typelib/typelib.cxx:1328
cppu/source/typelib/typelib.cxx:2169

Change-Id: I91a83ffb9f1912dd9736e3d6a194f63475f63b99
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161136
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-12-21 21:15:03 +01:00
Caolán McNamara
8cd01e5278 allow passing if deep detection is wanted
which naturally requires the data to achieve

Change-Id: If23e7dbd009f3d8e60422ec4d485b459d5721c8f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161135
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-12-21 21:14:50 +01:00
Caolán McNamara
33686f67da make use of toplevel docmodel's UserAllowsLinkUpdate property
Change-Id: Ia560c123c2f9dd08acb7eeaafccee332dd16300e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161133
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-12-21 21:14:25 +01:00
Caolán McNamara
b45f360fcf export UserAllowsLinkUpdate via AllowLinkUpdate property
Change-Id: I3dca61490ba9ad2912faf0bb431fb643f248c247
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161123
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-12-21 21:14:07 +01:00
Armin Le Grand (allotropia)
789a737ac9 Remove DeleteItemOnIdlex
There are some CrashReports in 7.6 which have
DeleteItemOnIdle on the stack, but there is nothing
reproducable. So I took a look...

I first thought it's a MCGR regression, due to classes
on the stack. But the Item involved is just random, can
happen with any Item.

Then I thought it may have to do with ITEM refactorings,
but it happens with DeleteItemOnIdle involved, so also
not the case. I already saw DeleteItemOnIdle when doing
these and qualified as 'hack' in the way. already

It is only on Windows and DeleteItemOnIdle is involved.
This again (took a deeper look now) is an old hack to
keep an SfxPoolItem 'alive' for some 'time'. For that,
it triggers an async reschedule which then deletes the
Item when being called. If the Item will be used after
that is pure coincidence - seems to work in most cases.

It seems as if for Windows the timing slightly changed
for some scenarios, so a reschedule is too early. This
can happen with this hack anytime.

DeleteItemOnIdle is used in scenarios where SfxPoolItem*
is e.g. returned, but is *not* anchored, so e.g. not
member of an SfxItemSet. Or in short: Lifetime is not
safe.

DeleteItemOnIdle exists since 1st import, but was
changed to AsyncEvent ca. 4 months ago (see
57145acf9e), so that may
have caused it. It is possible that these errors happen
on Windows since then. Before something more complicated
was used to delete it late, but surely also not really
safe.

Due to ITEM refactor I have the knowledge/tooling to
solve this. It will not be a 1-5 lines fix, but it is
a hack and in the way for further ITEM refactor anyways.
What we have nowadays is a SfxPoolItemHolder -> it's
like an SfxItemSet for a single Item. It safely holds/
controls the lifetime of an SfxPoolItem. It is already
used in quite some places. It helps to solve many hacks,
also the ones putting Items directly to the Pool - due
to there never was an alternative for that. In principle
the ItemPool/ItemSet/Item paradigm was never complete
without SfxPoolItemHolder.

Thus I started to fix that (and remove that hack for
good, sooo many changes over the years, sigh), but as
said is not straightforward. Will have to change
retvals of involved stuff to SfxPoolItemHolder - it's
just two pointers and designed to be copied (one is a
Pool, needed to cleanup when destructing).
CopyConstruct/destroy just counts the RefCnt up/down,
so cheap.

1st version compiling, let's check on gerrit...
Corrected one error in QueryState for securitypage, also
added some security features/asserts.

Change-Id: Ida49fd35ca88ead84b11d93e18b978cb9e395090
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161083
Tested-by: Jenkins
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
2023-12-21 21:13:55 +01:00
Andreas Heinisch
3430a2c639 Revert "tdf#100584 - Arrange sheets in the tab bar depending on the RTL settings"
This reverts commit be86c8f243.

Reason for revert: To many regressions.

Change-Id: Id3fb8dc5d4edb84c0008b7834a80887aaa7d9f83
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161154
Tested-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
2023-12-21 20:33:47 +01:00
Andreas Heinisch
19e856aa1a Revert "tdf#100584, tdf#157784 - Arrange sheets depending on the RTL settings"
This reverts commit 4f1b3c16f5.

Reason for revert: To many regressions.

Change-Id: I7352bb3c192d5e6c72e95c387ee551764007e97b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161152
Tested-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
2023-12-21 20:32:22 +01:00
Armin Le Grand (allotropia)
71c555c5ae Add flush mechanism to buffered Primitives II
As sberg mentioned in previous change this might be responsible
for heap-use-after-free problems. I took a look and it seems
to be possible that the timer calls back while deletion of the
helper is in progress, so I try now to first stop the timer
and then delete so that it cannot trigger. Will see if that
works - if not I might have to use another lock...

Change-Id: I1ae27d9ed890f352904cab18c3292b449659a3ce
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161128
Tested-by: Jenkins
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
2023-12-21 19:21:46 +01:00
Stéphane Guillou
90277a87b1 Update git submodules
* Update helpcontent2 from branch 'master'
  to 05f08bd00aadd36088254d7fe062507fea113de8
  - tdf#156156: add Manage Changes sidebar decks help button's HID
    
    and document how to get to it from the sidebar and the tabbed UI.
    
    Change-Id: Ibeab9e20ea4f8684b8d0a8a535b30c3122e4df70
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/161101
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2023-12-21 19:04:45 +01:00
Xisco Fauli
4fcba27210 update credits
Change-Id: I147a1e96e4c2fc855f66168c7633d254fd9d6c19
2023-12-21 17:25:32 +01:00
Caolán McNamara
6b01a0b7cb std::list::size() can still be implemented as std::distance()
seen with Red Hat Developer Toolset 10

https: //github.com/CollaboraOnline/online/issues/6893#issuecomment-1866342284
Change-Id: I4a0e8ad028126dded678e971a6261d6725a6b06c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161129
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-12-21 17:13:28 +01:00
Aleś Bułojčyk
671acff576 Update git submodules
* Update dictionaries from branch 'master'
  to 6cec1129014f23e9bc2c407ea82d2ae2a6c7fb83
  - Belarusian hunspell dictionary update
    
    Change-Id: I3d2a0f62fe59f46f201a4c7d596a22fd04efe017
    Reviewed-on: https://gerrit.libreoffice.org/c/dictionaries/+/159516
    Tested-by: Vasily Melenchuk <vasily.melenchuk@cib.de>
    Reviewed-by: Vasily Melenchuk <vasily.melenchuk@cib.de>
    Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2023-12-21 16:35:59 +01:00
Stephan Bergmann
e465747594 Windows MSI custom action for --enable-online-update-mar
...which needs to call update_service.exe with "install" (resp. "uninstall") and
needs to create (resp. delete) a registry entry containing the issuer and name
of the certificate with which the updater.exe is signed (which is required by
one of the many sanity and security checks performed by update_service.exe
before it will actually do an automatic update).  (The issuer and name of the
certificate are for now hardcoded to the values used by TDF when signing its
Windows builds.)

(gid_Customaction_uninstall_updateservice needs to run rather early, when
update_service.exe has not yet been removed, so I rather randomly picked
"MigrateFeatureStates" as the point where to run it.)

Change-Id: I6e0f62ec3e51d74d4a526a490badc7c14ebe99ae
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161125
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2023-12-21 16:25:21 +01:00
Stephan Bergmann
1061cf3fcb No good reason to not --enable-windows-build-signing with --enable-dbgutil
...at least for debug purposes?

Change-Id: I02fc410109353ca3d421a6b8e0e1848df05cf479
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161126
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2023-12-21 15:47:05 +01:00
Caolán McNamara
8ed865ffc1 crash when one user deletes a chart another has a property dialog open for
Insert a chart, user #1 select it, user #2 select it. User #1 double click
it, double click again the legend to get dialog to edit it. User #2 delete
chart, User #1 'ok'

 #0  0x00007f5365797d59 in osl::Mutex::acquire (this=<optimized out>) at include/osl/mutex.hxx:63
 #1  osl::ClearableGuard<osl::Mutex>::ClearableGuard (t=..., this=0x7ffc7ffcccf0) at include/osl/mutex.hxx:182
 #2  apphelper::LifeTimeGuard::LifeTimeGuard (rManager=..., this=0x7ffc7ffcccf0) at chart2/source/inc/LifeTime.hxx:175
 #3  chart::ChartModel::lockControllers (this=0x0) at chart2/source/model/main/ChartModel.cxx:415
 #4  0x00007f53658375ab in chart::ControllerLockGuardUNO::ControllerLockGuardUNO (this=this@entry=0x7ffc7ffcce80, xModel=...)
     at chart2/source/tools/ControllerLockGuard.cxx:34
 #5  0x00007f5364df5f34 in chart::ChartController::executeDlg_ObjectProperties_withoutUndoGuard (this=<optimized out>, rObjectCID=..., bSuccessOnUnchanged=<optimized out>)
     at chart2/source/controller/main/ChartController_Properties.cxx:797
 #6  0x00007f5364df7a5e in chart::ChartController::executeDlg_ObjectProperties (this=0x7f535401f310, rSelectedObjectCID=...)
     at chart2/source/controller/main/ChartController_Properties.cxx:707
 #7  0x00007f5364e0f497 in chart::ChartController::execute_MouseButtonUp (this=<optimized out>, rMEvt=...) at chart2/source/controller/main/ChartController_Window.cxx:924
 #8  0x00007f53760d61dc in (anonymous namespace)::LOKPostAsyncEvent (pEv=0x55e2f1b93db0) at sfx2/source/view/lokhelper.cxx:893
 #9  0x00007f53760d0977 in LokChartHelper::postMouseEvent (this=<optimized out>, nType=1, nX=<optimized out>, nY=<optimized out>, nCount=2, nButtons=1, nModifier=0, fScaleX=0.083333333333333329,
     fScaleY=0.083333333333333329) at sfx2/source/view/lokcharthelper.cxx:294

just hold a reference to the chart the dialog operates on

Change-Id: I3b05d1fc12e4df899c1a996f1029f9d3d62e87ad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161099
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-12-21 15:36:31 +01:00
Caolán McNamara
54da61d1d9 we are at 24.8 in trunk now, not 24.2
Change-Id: Iac329b0f11a564e90d6eb1e9c4a42f36254021f9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161120
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-12-21 15:36:08 +01:00
Xisco Fauli
798c2a352d CppunitTest_sw_uiwriter9: avoid external fonts
Change-Id: Ieb890a0e2ceebbd81977069cf0813e746e38c835
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161121
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2023-12-21 15:25:45 +01:00
Alain Romedenne
33925cfe33 Update git submodules
* Update helpcontent2 from branch 'master'
  to 89b8eaffddb9e3cd462eed1090d00a3dbd3a1652
  - SF_Datasheet table of methods layout correction
    
    Change-Id: I3574860ab19e8171e86b6e4417364ef34d68b54b
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/161098
    Tested-by: Jenkins
    Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
2023-12-21 15:17:40 +01:00
Noel Grandin
6ef0460e92 SVT_DLL_NAME is unused
since
    commit b2cdf8a1ea
    Author: Caolán McNamara <caolanm@redhat.com>
    Date:   Fri Aug 5 14:51:30 2022 +0100
    the "CreateWindow" function in svtools is newly removed

Change-Id: I815d2aff0dc478d782df056c58f91deee248b2c0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161119
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-12-21 15:06:45 +01:00
Christian Lohmaier
f66ba1fa48 Update git submodules
* Update translations from branch 'master'
  to 4eb96d17e8d53f48a7709ae657534cc451c7e4c8
  - update translations for master/24.2.0 RC1
    
    and force-fix errors using pocheck
    
    Change-Id: I3a90b2320a21d218eeef7bdb8168b4e634304f78
    
  - Updated Slovenian translation
    
    Change-Id: I4abd1636021dabc93c91f1c51d3f8b0aadbb320b
2023-12-21 13:55:24 +01:00
Justin Luth
9b32a016e3 tdf#158785 partial revert "enable hyperlink to be detected
... at the end of text"

This reverts lpranam's 7.2.0 regressive
commit 3233db0913.

The character after a hyperlink should not offer
to CTRL-click or jump to the hyperlink target.

make CppunitTest_sw_uiwriter9 CPPUNIT_TEST_NAME=testTdf158785

Change-Id: I3f5398cc3a4f29ddf1c50764c311046713d39439
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161042
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2023-12-21 13:13:02 +01:00
Michael Stahl
9276d5338e xmlsecurity: fix AES-GCM code to build with NSS < 3.52
(regression from commit f0fda7ad22)

Change-Id: I42fda00eb37fb1939013b21158c931d47e4e8486
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161117
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2023-12-21 13:12:26 +01:00
Noel Grandin
a193161040 update script to python3
Change-Id: Ia793b2362b65b431d32cf85321b1d5f17177229a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161088
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-12-21 11:49:41 +01:00
NickWingate
13bd849f60 Add export sheet range option to calc
User can specify which sheets to export e.g. '2-5,7'
exports sheets 2,3,4,5,7.
Note: this is different from exporting pages as one
sheet may contain several pages worth of content.

Also fix a bug where exporting only a selected sheet
causes the next sheet to be exported. e.g.:
Sheet 1 is empty, Sheet 2 has content. Exporting Sheet 1
results in Sheet 2's content being exported

Signed-off-by: NickWingate <nick.wingate@collabora.com>
Change-Id: Iecd42188ddbbbcd70eb37bec80783e29e3cb5b19
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156255
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159686
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-12-21 10:49:16 +01:00
Ricardo Donino
dac8885090 tdf#143123 Port SDraw Java SDK example to Python
Change-Id: I12e19b4a0d76affa178618cfbaf761692f29152a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160360
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
2023-12-21 10:02:43 +01:00
Xisco Fauli
2eb428a889 CppunitTest_sw_rtfexport8: avoid external fonts
Change-Id: I7fb3f54134e3cf5a2f4fd318f36df35a4b5967dd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161068
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2023-12-21 08:34:31 +01:00
Sarper Akdemir
09b13f3f85 tdf#158375: adapt UI when DDE is disabled via DisableActiveContent
When DisableActiveContent is set, provide now non-functional areas
meaningful error messages / popup dialogs.

Change-Id: I34bffee10fb0ba5c0194193f3d3d81b93d7dbd26
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160923
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Tested-by: Jenkins
2023-12-21 07:49:16 +01:00
Andras Timar
a2a9850217 get rid of warnings when reportbuilder is not configured for build
In the LOK case for example, where there is no reportbuilder, there
were a lot of bogus warning messages at startup, confimgr complained
that there were translations for non existing configuration nodes,
all belonged to reportbuilder.

Change-Id: I7f9cef3206bddd9e333b97ee966fb950fbb352d2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160887
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161048
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2023-12-21 07:03:28 +01:00
Kira Tubo
8555c3180c tdf#141908: replace hex colors with color keywords
Update hex colors 0x000000, 0xFFFFFF, and 0xFF0000 with COL_BLACK, COL_WHITE,
and COL_LIGHTRED, respectively. See comment #30 for more details.

Change-Id: I82ff851d8c19f9ef4aeeb01bff313160da615222
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160452
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2023-12-21 06:43:54 +01:00
Taichi Haradaguchi
324a12413f external/lcms2: fix lcms2-2.4-windows.patch
fix typos and macros in code.

Change-Id: I0886f3d95d87be70be1e7e6a220617f728fe6653
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161056
Tested-by: Jenkins
Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
2023-12-21 04:49:20 +01:00
Balazs Varga
0cd74b5be2 tdf#158759 - UI: Part 56 - Unify lockdown behavior of Options dialog
for General - Application Colors Page.

Change-Id: I2fb6c73cef82c12c3c8f3c49fb0e4b62703a1de3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161030
Tested-by: Jenkins
Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
2023-12-21 00:22:27 +01:00
Patrick Luby
9f92a39234 Related: tdf#155266 stop delaying painting timer while swiping
After fixing several flushing issues in tdf#155266, scrollbars
still will not redraw until swiping has ended or paused when
using Skia/Raster or Skia disabled. So, stop the delay by only
including NSEventMaskScrollWheel if the current event type is
not NSEventTypeScrollWheel.

Change-Id: I9348e5a38b4d0fedbf424b92a71eed25280fc21f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161075
Tested-by: Jenkins
Reviewed-by: Patrick Luby <plubius@libreoffice.org>
2023-12-20 23:47:53 +01:00
Miklos Vajna
ee7ca8e4ea cool#7865 sfx2 lok: fix bad view id on async command dispatch
If you try hard enough, it's possible to request an "add conditional
format" dialog in one view and have the dialog pop up in an other view.
This is related to cool#7853 but it focuses on the wider problem.

What happens is that sometimes we do want to execute an uno command in
an async way, e.g. one dialog opening an other dialog in its response
handler: making sure the dialog is not manually / synchronously spinning
the main loop while it's running is wanted. Also fixing each & every
async command dispatch manually would be a lot of work.

Fix the problem by remembering the current view in SfxHintPoster::Post()
as it posts events to the main loop and restoring that view if necessary
in SfxHintPoster::DoEvent_Impl().

Other comments:

- An alternative would be to just dispatch all these UNO commands
  synchronously, but see above, there are cases where we want to stay
  async, a nested main loop would be worse.

- An even more general fix would be to handle all calls to
  Application::PostUserEvent(), but vcl doesn't know what is the
  current view and would have trouble switching to that view (only sfx2
  and higher up knows that), so do this only at a SfxHintPoster::Post()
  level, this is already meant to fix all async uno commands.

- There was a single case in sd/ where we tried to dispatch an async
  event while switching views, so switch to a sync command dispatch
  there to avoid the problem. CppunitTest_sd_tiledrendering would hang
  without this and would emit a warning in SfxHintPoster::Post().

- Restore the sc/ code to do its async dispatch as it used to, so now
  CppunitTest_sc_tiledrendering's testOpenURL is a test case that covers
  this change.

Change-Id: I765e618f55caad791aa1fe7569a32bcc31622525
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161071
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2023-12-20 22:37:32 +01:00
Michael Weghorn
1a81fd69e1 gtk4 a11y: Take SELECTABLE/EXPANDABLE states into account
The Gtk API has no direct equivalent for the selectable
and expandable states, but sets them on the AT-SPI layer
whenever a value for the selected/expanded states is
explicitly set.
Therefore, only explicitly set values for these
if the selectable/expandable state is present,
to avoid the expandable/selectable state being
set on AT-SPI layer when it shouldn't.

Change-Id: Ib0cf2095d4834869856bf786e662115f6a328e13
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161046
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2023-12-20 22:29:50 +01:00
Oliver Specht
fad76223d1 tdf#158762 RTF writerfilter: fix list import
While importing the properties NumberingRules and NumberingStyleName
interfere with each other. Avoid overwriting NumberingRules with an
invalid NumberingStyleName.

Regression from 588ff9a228

Change-Id: I706ea514da43faae0fdb9a2c0d4f5b1928ef55f8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160967
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2023-12-20 22:08:17 +01:00
Xisco Fauli
cb5642b1b5 CppunitTest_sw_ooxmlexport20: remove copy&paste leftover
from

author	Xisco Fauli <xiscofauli@libreoffice.org>	2023-10-30 16:22:07 +0100
committer	Xisco Fauli <xiscofauli@libreoffice.org>	2023-10-31 08:43:11 +0100
commit	1171335759 (patch)
tree	29e6a859c0 /sw/CppunitTest_sw_ooxmlexport20.mk
parent	a04fc307ba (diff)
CppunitTest_sw_ooxmlexport5: split into two

Change-Id: I5ef959adb119af22b6c17ef7d64465166a13360b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161069
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2023-12-20 21:35:02 +01:00
Caolán McNamara
8f07984471 Resolves: tdf#158332 'fake' keystroke exits presentation
the fake keystroke is to make tooltips go away before menus which
used to be a problem versions of gtk3 < 3.24 that resultsed in no
menus appearing. Our min is still 3.18 so technically we need to retain
that until bumping past that as baseline.

Change-Id: I94aa309665c50c8ca310285d1e691030f443934a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161080
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-12-20 21:21:22 +01:00
Caolán McNamara
6b05dc79e5 comment re GTK 2.34 should be 3.24
Change-Id: I9acc070e6983f7f5e72120029fa968f0f15306e2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161079
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-12-20 21:21:13 +01:00
Noel Grandin
b5ab2d274a no need to use unique_ptr here
Change-Id: I1e7ef79eefa18c39f647749d6f7c94e2bff20462
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161057
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-12-20 21:07:27 +01:00
Caolán McNamara
6ef28599b2 cid#1545612 COPY_INSTEAD_OF_MOVE
and

cid#1545605 COPY_INSTEAD_OF_MOVE
cid#1545587 COPY_INSTEAD_OF_MOVE

Change-Id: Iafb1d81dbacfefe70fbddd84b29e827dc137ef07
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161077
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-12-20 20:59:04 +01:00
Mike Kaganski
3a33a97d23 tdf#158794: do not try to insert DDE table into footnotes / endnotes
Until tdf#76007 is fixed, of course.

Change-Id: Iad7fb0de679e024a8cebdd005ac5a66af3ace163
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161078
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-12-20 20:58:54 +01:00
Mike Kaganski
a2a02508d5 Fix BigInt::Abs
It would fail to negate SAL_MIN_INT32.

Change-Id: Ia5d34fc31917cabee2a1b130ef69c91b202592fa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161063
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-12-20 20:30:10 +01:00
Mike Kaganski
36df3f9ad2 Make BigInt::DivMod public, to allow optimized division
Change-Id: I4f79c30b9ab997d01e59a0dec76986e74abfc11f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161053
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-12-20 20:30:01 +01:00
Mike Kaganski
c684aa9cf3 Simplify and rename for clarity
Change-Id: Ic97a2b313c6f7d9da540a8867f01362c2fe7b0d0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161052
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2023-12-20 20:29:51 +01:00
Caolán McNamara
c905505348 capture these explicitly by name
Change-Id: I0908aedada9c59426373080d7d3894b452693939
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161076
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-12-20 20:22:30 +01:00
Sarper Akdemir
9157d8de8d tdf#158375: disable DDE when DisableActiveContent is set
Change-Id: I167f6ea5d740b5a53cd02a9b865e65ff980a8877
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160922
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Tested-by: Jenkins
2023-12-20 20:15:29 +01:00
Sarper Akdemir
7bb50fd239 tdf#158375: adapt UI when embedded content is disabled via option
When DisableActiveContent is set, embedded active content is
disabled (e.g. OLE). Therefore the existing ui insertion bits don't
function either. Disable them with a warning pop-up hinting "Active
content is disabled."

Change-Id: I14984684f22df6aff81af79d5a15589b5cae75fc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161055
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2023-12-20 20:15:18 +01:00
Sarper Akdemir
75df80e34e tdf#158375: further disable embedded objects
there was the possibility of constructing an OOoEmbeddedObjectFactory
or OleEmbeddedObjectFactory directly instead of
UNOEmbeddedObjectCreator.

So disable all createInstance calls for them too. Securing there won't
be active embedded objects.

Change-Id: Ib47ad920d4951790c12d1a8587505cab2f1e126d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160921
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2023-12-20 20:15:02 +01:00