Commit Graph
2258 Commits
Author SHA1 Message Date
Caolán McNamara 95045fb7d5 put links in form imagecontrols under link management
Change-Id: I265f889bcfdcf1b214cde02e9e5799081ec6aa42
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/2396
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit 01a314d398a497e01d0b9e4b575f3b7c842b8622)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/206343
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-07-14 13:26:15 +02:00
Xisco Fauli 9ce8ac35ab cid#1695397: Logically dead code
Change-Id: I5434ffdf28eae35791b619d6f80b7fa5ef9b566b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207338
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-06-26 14:07:51 +02:00
Xisco Fauli a2f2925e96 cid#1695402: 'Constant' variable guards dead code
Change-Id: I2be2bce70075386eeac1e5c06450c99e8118009f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207339
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-06-26 13:25:47 +02:00
Caolán McNamara 8d0cb8f2e9 remove the write-only second animation sound field
loplugin:unusedfields already lists it as only used in the constructor.
Drop it, and note in its place that the second effect's sound URL really
lives in the shape's bookmark string, not in a sound field of its own.

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I6ba402fd6e8052d6533f396d746da735abbf27bd
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/4809
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit 9d96470a60ad0c783fd3836bfc7f22ea91c5c24a)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207282
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-06-25 15:36:57 +02:00
Mike Kaganski db79242098 svx, sd: add threaded fields to Draw annotation model
Extend sdr::annotation::Annotation and AnnotationData with m_Threaded,
m_Resolved, and m_ParentId so a Draw annotation can carry a reply/resolve
relationship. The three fields are propagated by toData / fromData and
by sd::Annotation::clone; when IsThreaded() is true they are emitted
from Annotation::ToJSON and SdXImpressDocument::getPostIts under the
same keys (threaded, resolved, parentId) that ScModelObj::getPostIts
already uses for Calc.

The fields will be used by the PDF filter (follow-up commits) and left
at their defaults elsewhere; ODP, PPTX and ODF exporters are unchanged
and continue to ignore them. Support for [MS-PPTX] extensions [1] for
comments that introduce state and replies is not in the scope of this
patch series.

[1] https://learn.microsoft.com/en-us/openspecs/office_standards/ms-pptx/161bc2c9-98fc-46b7-852b-ba7ee77e2e54

Signed-off-by: Mike Kaganski <mike.kaganski@collabora.com>
Change-Id: I49594e1e4698bfd541f4c5041362a52b675683fd
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/1454
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit bbde910405829527c92c406a82f75743bc4416c2)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207199
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-06-23 17:16:44 +02:00
Mohit Marathe bde6437f72 sd: add .uno:RemoveSlideSectionsAndSlides
Executing this command would iteratively delete all the slides in the
section in reverse order via XDrawPages::remove. The deletion of slide
is handled by SlideSectionManager::OnSlideRemoved, which deletes the
section when all of its slides are removed.

Signed-off-by: Mohit Marathe <mohit.marathe@collabora.com>
Change-Id: Idacb703f67695751ace2837bd03ce9deb8abd238
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/3256
Reviewed-by: Pranam Lashkari <lpranam@collabora.com>
Tested-by: Pranam Lashkari <lpranam@collabora.com>
(cherry picked from commit 6bc6c67557fe4c2a09d0260c97b6d4c561f55c9f)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/206632
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-06-23 14:11:27 +02:00
Xisco Fauli 667fe200a9 Revert "[API CHANGE] remove deprecated XSpell1 and XSupportedLanguages"
This reverts commit bce4b4af9d.

Reason for revert: Revert it for now until there is a policy
for removal of published APIs

Change-Id: Ia1cbcfcd6b953be48a60d8ef67333b1e3265e563
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207150
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-06-23 10:58:29 +02:00
Noel Grandin bce4b4af9d [API CHANGE] remove deprecated XSpell1 and XSupportedLanguages
in favour of their replacements XSpell and XSupportedLocales

Change-Id: I3ad20d0c6c3bf0a00d7ef3947705059027a1ff6f
Signed-off-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/4228
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit 35842d441f2e82204ce77ba8c53735be3f18dc78)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/206467
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-06-16 14:55:20 +02:00
Caolán McNamara 23ea1663b7 put calc background images under link control
Change-Id: I5adbbaf7e4860732dad2375dcbee541198ef6fab
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/2393
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit 6ebc3fb5db211b6c9de96dcf3ba14b6b7f37c203)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/206342
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-06-11 21:42:21 +02:00
Caolán McNamara dfc1b53266 put impress/draw background images under link control
Change-Id: Id1355ed3346e2c2123a2b35f16bd9cabf21d451f
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/2391
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit bdb5efeea50d3d7aeb1b50bc5b7e00b5a89c17d9)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/206341
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-06-11 10:45:37 +02:00
Noel Grandin dcbe928a4f simplify SdStyleFamily
it is very confusing to have (1) a pimpl that is sometimes there
and sometimes not and (2) to have the same fields in the pimpl
struct and also on the parent instqnce.

Change-Id: Ie647e4d1867d44373f31d3cf2fc75f9e1fdcf060
Reviewed-on: https://gerrit.collaboraoffice.com/c/core/+/1310
Reviewed-by: Noel Grandin <noel.grandin@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit 1adc2ed48e8b8ef4fd14e8f6d597ead0d5c5accf)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/206325
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-06-10 22:27:41 +02:00
Jan Holesovsky bc2da4e14c sd: Read paragraph emptiness from the outliner, not the shape's UNO text
In a dbgutil build (on macOS - but probably does not matter), type a word in a
slide's text box, select it, copy it, move the cursor past it, and paste.
The paste asserts:

  assert( IsUpdateLayout() && "Should not be used for Update=FALSE: GetTextHeight" );

The paste merges paragraphs, which reaches
EffectSequenceHelper::disposeTextRange through the ParagraphDeleted callback
(SdPage::onParagraphRemoving).  To decide which effect to drop it called
isParagraphTargetTextEmpty(), which reads the shape text through the UNO text
forwarder and so forces a text frame layout recompute
(NbcAdjustTextFrameWidthAndHeight, then GetTextHeight).  The paste runs with
the EditEngine layout updates suspended, hence the assert in
ImpEditEngine::GetTextHeight.

Decide the previous paragraph's emptiness in onParagraphRemoving, where the
editing outliner with the live text is at hand, and pass it down to
disposeTextRange.  This drops the UNO read and its layout side effect for
every case, animated or not.

Includes a unit test that executes the sequence described at the beginning;
without the fix, it fails with an assert.

Signed-off-by: Jan Holesovsky <kendy@collabora.com>
Change-Id: Id6ae3c8a121f036f87fa43ce134541376ff0b179
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/3669
Reviewed-by: Noel Grandin <noel.grandin@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit 89a1a74dc95054698c1097b0aea0466ad6a6e092)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/206213
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-06-09 10:53:57 +02:00
Xisco Fauli b0e4238a46 svx: remove svx::theme::notifyLOK
The logic was relevant for Collabora Online
but it no longer uses this repo

Change-Id: I11755f26a3ed345eafcf7fe5aeaee850729227eb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/206162
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-06-05 21:52:31 +02:00
Michael Weghorn f26084217a weld: Move weld::Button to own header/Rename weld.hxx
In the past, weld.hxx used to contain the class
definitions for weld::Widget and all subclasses.

By now, weld::Widget and almost all subclasses have
been moved to separate headers, to make it easier
to keep the overview and to avoid having to
recompile ~all UI code when one class changes.

By now, only weld::Button is left in weld.hxx.
Rename the header to Button.hxx.
Drop weld.hxx includes and instead add Button.hxx
includes (or weld::Button forward declarations) where
weld::Button is used.
(Don't simply replace all weld.hxx includes with
Button.hxx ones, since many of them were for the
use of other widgets that have since been moved
to their own headers.)

Add further includes where needed now that the
(direct or transitive) includes of weld.hxx were removed.

Change-Id: I8ea6201446a418d5e38b46337059dcd517ee29d7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205937
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-06-05 07:58:07 +02:00
Xisco Fauli 7579bac8e9 drop isLOKTablet
follow-up of
commit f436c1cd89
Author: Xisco Fauli <xiscofauli@libreoffice.org>
Date:   Fri May 29 10:07:20 2026 +0200

    drop isLOKMobilePhone

Change-Id: I0b7774357071ea25069655dad33b2f3e2c02b835
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205827
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-29 13:38:57 +02:00
Xisco Fauli f436c1cd89 drop isLOKMobilePhone
follow-up of
commit 8b90f2cd18
Author: Heiko Tietze <tietze.heiko@gmail.com>
Date:   Thu May 28 09:05:55 2026 +0200

    Remove wordcount-mobile dialog

This commit also reverts
commit 5eec86d6c4
Author: Caolán McNamara <caolan.mcnamara@collabora.com>
Date:   Tue May 6 16:38:57 2025 +0100

    no searchicon (or searchbox) in mobile version of search dialog

Change-Id: I7dd37f5e6575f2f1b7748ce6c1bd6ddadb8c3e77
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205826
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-29 13:38:32 +02:00
Miklos Vajna 0f3bbf5345 cool#15821 engine sd: scale objects unconditionally when...
...copying slides between documents

Open both presentations bugdocs, right click on the preview of slide 1
in the source document, copy, right click on the preview of the last
slide in the target document, paste, nothing happens in product builds.

In debug builds, we hit an assert due to a non-async dialog:
coolforkit-ns: /home/vmiklos/git/collaboraonline/online/engine/vcl/source/window/dialog.cxx:947: bool Dialog::ImplStartExecute(bool): Assertion `!"A dialog without a notifier: make me async / properly set up"' failed.

Converting the appearing dialog to async is not trivial, because
sd::slidesorter::controller::Clipboard::PasteSlidesFromSystemClipboard()
first calls InsertFileAsPage() (part of that triggers the dialog) and
then later it also calls InsertBookmarkAsObject(), so a number of
callers would need an async conversion. Instead do what other
presentation software (e.g. PowerPoint does): when pasting slides in,
just scale the objects unconditionally.

The test uses the same trick as commit
3db35199e711da81032c40cf525eb9fb3e792851 (Fix Impress textbox background
changing on cross-document paste in engine and online., 2026-05-11) to
trigger a slide sorter paste.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: Ia410f57efbaf0a514ae2fc3fb2a645be76bb799d
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/3077
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit 350d2c9da46659781095361e0ded395102b9619f)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205700
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-27 08:58:36 +02:00
Caolán McNamara 0fc4bfb611 Removed unused bUpdateGrfLinks param from LinkManager::UpdateAllLinks
Change-Id: Ie9d364feab5bbb623fff3277375e65e8b7f412a4
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/2387
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit 41c0c39fbd9edd117b241f0f311000c074d9a8fc)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205493
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-22 09:36:27 +02:00
Caolán McNamara 0e0083c017 use same update links infobar throughout all apps
temporarily duplicate some of this

Change-Id: I0705c6bb17b22e306e96cee34be6fe81aae3fcae
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/2384
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit fa02d12d939405e2025c14ffdea05380c567a0fd)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205306
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-19 09:32:03 +02:00
Caolán McNamara 49baf58197 implement UpdateLinks for impress/draw
which didn't happen back around

commit bc571debfc
Date:   Fri Mar 11 09:47:32 2005 +0000

    INTEGRATION: CWS os54 (1.46.44); FILE MERGED
    2005/02/25 11:45:34 fme 1.46.44.1: #i42634# Update links after binfilter import

when writer got that feature.

Change-Id: I0c8c1b177eeb9c72355eeac4261f5f56c4f526a3
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/2151
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit 0f66171cad07a7c7bdeb7a92a0afee0cca954f8b)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205302
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-05-18 20:21:56 +02:00
Pranam Lashkari cddbd57195 sd: fix MoveSection downward overshoot
MoveSection's downward branch computed nTargetPage with an extra
-nSrcCount adjustment, assuming MoveSelectedPages pre-removes the
selected pages. It doesn't — MovePages() moves pages in place and
interprets nTargetPage in the current ordering. The adjustment
caused the source block to land in the middle of the target
section instead of after it, while section metadata still claimed
the split contents as one section.

Use nTargetEnd - 1 directly. Extend the Move{Up,Down}{PPTX,ODP}
tests to capture each section's SdPage* set before the move and
assert the same set lands under the expected section afterwards —
count-only assertions missed this class of failure.

Change-Id: I73bdd8e5b1c3a0c0687385fd6f16a3b151f0d481
Reviewed-on: https://gerrit.collaboraoffice.com/c/core/+/1271
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/1620
Tested-by: Pranam Lashkari <lpranam@collabora.com>
Reviewed-by: Pranam Lashkari <lpranam@collabora.com>
(cherry picked from commit 71fbe7ad6c1af884b8a998ca754977e75027d747)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205183
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-14 15:41:35 +02:00
Pranam Lashkari 5142c825f3 slide sections: implemented undo/redo
UndoSlideSection captures the sections vector before the mutation
and, on first Undo(), captures the post-mutation state for Redo —
matching the UndoAnimation lazy-snapshot pattern. Wired into
Add/Remove/Rename/MoveSection in both SlotManager and DrawViewShell;
Move uses BegUndo/EndUndo to group with MovePages()'s own undos so
the whole operation reverts atomically.

Change-Id: I755b2118511eb5e629980b3b644fe24c8edac9cf
Reviewed-on: https://gerrit.collaboraoffice.com/c/core/+/1251
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/1619
Reviewed-by: Pranam Lashkari <lpranam@collabora.com>
Tested-by: Pranam Lashkari <lpranam@collabora.com>
(cherry picked from commit b9fafb69b1259dcb8e63e8f8e5877a58291a2317)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205182
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-14 15:41:24 +02:00
Pranam Lashkari c3ccc3109b sd: SlideSectionManager cleanup - remove redundant SaveToDocument
The "SlideSections" UNO property is just a view onto our own
in-memory maSections (the getter calls GetSectionsAsPropertyValues,
the setter calls SetSectionsFromPropertyValues). Calling
setPropertyValue from SaveToDocument was therefore a roundtrip:
maSections -> PropertyValue -> maSections, with no actual
persistence. The data was already in its final place after each
mutation.

Remove SaveToDocument() and all its callers; mutations to
maSections are the final state. Also drop the includes that
were only needed by it: DrawDocShell.hxx, XPropertySet.hpp,
XPropertySetInfo.hpp, XModel.hpp, sal/log.hxx.

Change-Id: I2fda95a52ba067b69f4492b8abaec7e1eb145f7b
Reviewed-on: https://gerrit.collaboraoffice.com/c/core/+/1232
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/1618
Tested-by: Pranam Lashkari <lpranam@collabora.com>
Reviewed-by: Pranam Lashkari <lpranam@collabora.com>
(cherry picked from commit b43943b73d5b98b180eac2093bc0fe9c1f58192c)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205171
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-14 00:27:49 +02:00
Pranam Lashkari a226c37e40 Impress: replace InteropGrabBag with native SlideSections UNO property
Add "SlideSections" document property on SdXImpressDocument and
migrate all section import/export paths from InteropGrabBag to
use it directly. SlideSectionManager is now the authoritative
model, accessible from any module via standard UNO property access.

Change-Id: I276cc968e3be9a5d3599e2d7e1c581e5b1d84c1c
Reviewed-on: https://gerrit.collaboraoffice.com/c/core/+/1030
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/1615
Tested-by: Pranam Lashkari <lpranam@collabora.com>
Reviewed-by: Pranam Lashkari <lpranam@collabora.com>
(cherry picked from commit 03ce4ec8b3d3752cbf5377a7f21f24affd73b9c4)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205169
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-14 00:27:18 +02:00
Pranam Lashkari d7cc529bd6 Impress: add SlideSectionManager for slide section model
Add SlideSectionManager as an in-memory model that bridges the
InteropGrabBag (used for PPTX/ODP round-trip) and the Impress UI.

Sections are stored as a sorted vector of SlideSection structs,
each holding a name, GUID, and the 0-based start index of the
first slide.

Change-Id: I23c109fd2c7e00e288c1e8793fa7a1d53290169b
Reviewed-on: https://gerrit.collaboraoffice.com/c/core/+/893
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit 9e585554af9824ef076ed5e41808d622863f96e9)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205052
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-12 08:33:25 +02:00
Julien Nabet 793fd70ad6 Related tdf#164685: Cleanup class SfxItemSetFixed (sd remnants)
Change-Id: I34403867da234aa5ff826bd860bab5ee2830c2af
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/203929
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-04-19 16:41:28 +02:00
Julien Nabet 92645e2fde Related tdf#164685: Cleanup class SfxItemSetFixed (sd)
script used:
find . -type f \( -name "*.cxx" -o -name "*.hxx" \) -print0 | \
xargs -0 perl -pi.bak -e 's/SfxItemSetFixed<([^>]+)>\s+([A-Za-z_]\w*)\s*\(([^;]+)\)/SfxItemSet $2(SfxItemSet::makeFixedSfxItemSet<$1>($3))/g;'

Change-Id: Iad92ae6e1707a99265800ea3f867220386935e28
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/203896
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-04-18 21:51:04 +02:00
Liam Connors 6808e0e7c2 tdf#114441 replace sal_uLong in drawdoc2.cxx
Found acceptable change to do with type mismatch where nBottom / nRight
computed as tools::Long already

Change-Id: I89506f7ad32fa3735d9e2a2f756c9448d2729f2e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/202391
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2026-03-25 15:19:08 +01:00
Andreas Heinisch ca4f6e7159 tdf#126823 - Remove explicit arrow sizes for start/end widths
Change-Id: Ic0c30a2d580d652533dae053b63db7b9ca47be90
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/202533
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
2026-03-24 07:36:48 +01:00
Andreas Heinisch 715004c51b tdf#96454, tdf#126823 - Retrieve default arrow sizes for start/end widths
Change-Id: Ia224edb015ff15e033ad266bcc172c18be28505d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201982
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
2026-03-23 19:42:30 +01:00
Noel Grandin 6e8a77d0bb Fraction->double in SdrModel
Change-Id: Iace435987028618c5e2d5ff4b5f1fa65dc15a2a3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201743
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2026-03-18 18:52:44 +01:00
Noel Grandin 1e0c448ebe Fraction->double in SdrObject::Resize
Change-Id: I01a7fa3303fdbc3db5e8b259f7bdb9631d64bd74
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201733
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2026-03-16 12:28:50 +01:00
Caolán McNamara 2b67ec98a8 cid#1680368 silence Overflowed constant
and

cid#1680365 Overflowed constant

Change-Id: Id59573858d032a85da70f50bead680fc2cc5c3bf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201801
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2026-03-16 12:08:57 +01:00
Noel Grandin 5505d3bc4d loplugin:constparams
Change-Id: I33c701be5a441c1121b797f1eb5a8bda6fc3f89b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200927
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2026-03-04 11:29:39 +01:00
Swarnadeep Paul 83a8572a99 tdf#114441 sd: Use size_t for container links
Replaced platform-dependent sal_uLong with
size_t for proper container size tracking.

Change-Id: I58cdba8facfb5740c7540ac39908a6fca5c47cd5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200667
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-03-03 10:43:05 +01:00
Swarnadeep Paul 351df84114 tdf#114441 sd: Use tools::Long for UI geometry
- Replaced platform-dependent sal_uLong with
tools::Long for UI coordinates, scaling, and zoom factors.
- Used sal_uInt32 for height and weigth
- Used 16bit Integer for example in outlview.cxx
- Use size_t for counting and iterating

Change-Id: I1eab0a88b61a93715fec116e699a826e9e38dc74
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200665
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-03-03 10:41:19 +01:00
Khaled Hosny 059b717535 tdf#153368: Support optical size for variable fonts, part 7
Enable by default for new documents in Draw/Impress.

Change-Id: I07d306c744703b01958e8bb86101e112c8ad9b0c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200741
Tested-by: Jenkins
Reviewed-by: Khaled Hosny <khaled@libreoffice.org>
2026-03-02 21:46:01 +01:00
Gabor Kelemen a9e9175ba6 tdf#146619 Use more forward declarations in include/sfx2
This shaves off some 300M of input
Change-Id: I2fae9ff6c6dab31010986e55365676d4a01f402d

Change-Id: I3b2551a1937929100f25c01c0c416a419e7fbb51
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199388
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Tested-by: Jenkins
2026-02-23 12:19:48 +01:00
Michael Weghorn ab3635b2f3 weld: Move weld::MessageDialog to own header
Move the class out of weld.hxx into its own header, in
order to make it easier to keep an overview and to avoid
having to recompile ~all UI code when the class is
modified.

Change-Id: I5b23b02151c75bb49831a2bbf8d515eb0b54415e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199068
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-02-11 07:32:45 +01:00
Gabor Kelemen bce3ef60a8 tdf#146619 Use more forward declarations in include/sot/
Change-Id: I6706c7009432d0d8d7bc6f9193d8f020e9aedf25
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198239
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Tested-by: Jenkins
2026-02-06 19:33:51 +01:00
Gabor Kelemen 0bdcfc2900 tdf#146619 Use more forward declarations in include/unotools/
This shaves off some 40M of input

Change-Id: I12e10deb87ceea1f7a23f3de4ea624befe187c3f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198238
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
Tested-by: Jenkins
2026-02-05 17:35:46 +01:00
Jonathan Clark fac0e4f913 tdf#169035 sd: Make para align start/end the default
Previously, new Draw/Impress documents defaulted to left/right paragraph
alignment, depending on application language. This change updates Draw
and Impress to instead use the language-independent start alignment by
default.

Change-Id: Ic11dd496904d64906f442ace5d850310d1d55a84
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198323
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
Tested-by: Jenkins
2026-01-29 13:26:19 +01:00
Caolán McNamara 4fb7d83362 cid#1680369 silence Unintended sign extension
and

cid#1680362 Unintended sign extension

Change-Id: I07e9d3ae1fdbe59b4c625e5ce0db235a77285294
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198035
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2026-01-24 20:31:56 +01:00
Gabor Kelemen 49cb3077fb tdf#146619 Use more forward declarations in include/vcl/outdev.hxx
these were skipped in previous runs, since they contain some code behind #if

After inspecting these, it seems like the removals should not cause trouble.

This also shaves off some 140M input

Change-Id: Ie1f57174dd6fec3ba5b0b91eb0688acdc1a8143d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197494
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-01-23 21:27:08 +01:00
Caolán McNamara 168fadadbc cid#1680361 Unchecked dynamic_cast
Change-Id: I49268b245038541c007cb714cdc2309aba2440ca
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197812
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2026-01-23 10:03:56 +01:00
Jonathan Clark a72f594239 tdf#169035 sw: Make para align start/end the default
Previously, new Writer documents defaulted to left/right paragraph
alignment, depending on application language. This change updates Writer
to instead use the language-independent start alignment by default.

Change-Id: Ic385bb8e38234d29365d21f46a11ebb115523970
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197309
Tested-by: Jenkins
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
2026-01-17 04:24:32 +01:00
Mohit Marathe a1f3108cae tdf#170277 sd: allow setting different page size of a master page directly
Earlier it was only possible to do this via resizing a normal page.

Signed-off-by: Mohit Marathe <mohit.marathe@collabora.com>
Change-Id: I93a3b8a57258c5fdbc234d613b6e5d1f3425af7b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196952
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
2026-01-13 19:52:54 +01:00
Mohit Marathe e7474615ce sd: add page count check in SdDrawDocument::connectPagePreviews
return early if the document has only one non-canvas page

Signed-off-by: Mohit Marathe <mohit.marathe@collabora.com>
Change-Id: I79cb8277f5ed62a1f683c1c6a4b18844267dddf6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195651
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196822
Tested-by: Jenkins
2026-01-13 09:05:46 +01:00
Mohit Marathe 1b427e1b08 sd: do not call updatePagePreviewsGrid for notes page
Signed-off-by: Mohit Marathe <mohit.marathe@collabora.com>
Change-Id: Ia50627ee3df36f4b1843109a0a62426ed7f3cdd4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195718
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196821
Tested-by: Jenkins
2026-01-13 09:05:36 +01:00
Mohit Marathe 9f1c5f027d sd: allow dtor of SdDrawDocument to remove pages unconditionally
Fixes the exception:
0 sal::backtrace_get(unsigned int) at /home/collabora/jenkins/workspace/gerrit_linux_co-25.04_clang_dbgutil/sal/osl/unx/backtraceapi.cxx:42
1 (anonymous namespace)::printStack(int) at /home/collabora/jenkins/workspace/gerrit_linux_co-25.04_clang_dbgutil/sal/osl/unx/signal.cxx:289
2 (anonymous namespace)::callSystemHandler(int, siginfo_t*, void*) at /home/collabora/jenkins/workspace/gerrit_linux_co-25.04_clang_dbgutil/sal/osl/unx/signal.cxx:330
3 (anonymous namespace)::signalHandlerFunction(int, siginfo_t*, void*) at /home/collabora/jenkins/workspace/gerrit_linux_co-25.04_clang_dbgutil/sal/osl/unx/signal.cxx:427
4 __restore_rt in /lib64/libpthread.so.0
5 __GI_raise at :?
6 __GI_abort at :?
7 /lib64/libstdc++.so.6(+0x91f97) [0x7f4c69c91f97]
8 std::__debug::vector<SdrPageObj*, std::allocator<SdrPageObj*> >::operator[](unsigned long) at /opt/rh/gcc-toolset-12/root/usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/debug/vector:442
9 SdDrawDocument::connectPagePreviews() at /home/collabora/jenkins/workspace/gerrit_linux_co-25.04_clang_dbgutil/sd/source/core/drawdoc2.cxx:1794
10 SdDrawDocument::updatePagePreviewsGrid(SdPage*) at /home/collabora/jenkins/workspace/gerrit_linux_co-25.04_clang_dbgutil/sd/source/core/drawdoc2.cxx:1770
11 SdDrawDocument::RemovePage(unsigned short) at /home/collabora/jenkins/workspace/gerrit_linux_co-25.04_clang_dbgutil/sd/source/core/drawdoc2.cxx:540
12 SdrModel::DeletePage(unsigned short) at /home/collabora/jenkins/workspace/gerrit_linux_co-25.04_clang_dbgutil/svx/source/svdraw/svdmodel.cxx:1224
13 SdDrawDocument::DeletePage(unsigned short) at /home/collabora/jenkins/workspace/gerrit_linux_co-25.04_clang_dbgutil/sd/source/core/drawdoc2.cxx:494
14 SdrModel::ClearModel(bool) at /home/collabora/jenkins/workspace/gerrit_linux_co-25.04_clang_dbgutil/svx/source/svdraw/svdmodel.cxx:608
15 ~SdDrawDocument at /home/collabora/jenkins/workspace/gerrit_linux_co-25.04_clang_dbgutil/sd/source/core/drawdoc.cxx:380

Signed-off-by: Mohit Marathe <mohit.marathe@collabora.com>
Change-Id: Ie878a6a14d94a43bef9f53f2795d8cf4b768b5a2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195717
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196820
Tested-by: Jenkins
2026-01-13 09:05:27 +01:00