Commit Graph
519820 Commits
Author SHA1 Message Date
Andrea Gelmini f184f59c8a Fix typos
Change-Id: I05edaae7fc13c0fd5685ba55627046491b4446ab
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210078
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-27 14:17:25 +02:00
Andrea Gelmini 0c48ac2f19 Fix typos
Change-Id: I998817b5b92aa3b372dec4906b3b980355d4e34e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210069
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-27 14:12:54 +02:00
Andrea Gelmini b0483fcff5 Fix typos
Change-Id: I2f0e2e45af1aa91cb5d06271e2c6893e5e2c42f5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210079
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2026-08-27 14:11:46 +02:00
Andrea Gelmini cdca504f29 Fix typos
Change-Id: Ia7dd97cbf467603797cb3d073a2b6fa0251ce7b8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210077
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2026-08-27 14:10:49 +02:00
Andrea Gelmini d94230cfa8 Fix typos
Change-Id: I61ade6d3666563bae20b837f27868bffb75a08eb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210066
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-27 14:10:01 +02:00
Andrea Gelmini 14022fd7d9 Fix typos
Change-Id: Ifdabd2826fa1f147aedf38945409c2192c989d77
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210073
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2026-08-27 14:01:20 +02:00
Andrea Gelmini d7f3114f2b Fix typos
Change-Id: I4486dfccc2a375daaa1929fd7efd31f6e606525b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210071
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2026-08-27 13:59:07 +02:00
Andrea Gelmini dd7fa7563e Fix typos
Change-Id: I9895f3ba33682fa5d2eb040458579679e5a90f8b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210076
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-27 13:58:25 +02:00
Andrea Gelmini 6c938c38c4 Fix typos
Change-Id: I369dbcd09d5f5c06a22e5f25b7c2b59f363c6a57
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210075
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-27 13:57:51 +02:00
Andrea Gelmini 2f0906a531 Fix typos
Change-Id: I828e2b10a191ef188f912c8432cc6b647a29dba0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210072
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-27 13:56:33 +02:00
Andrea Gelmini 884aa7c812 Fix typos
Change-Id: I403f3eda049443befa27b2c8d1d55a25d3dcacf6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210065
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-27 13:56:01 +02:00
Andrea Gelmini b51747c62b Fix typos
Change-Id: I1df063db2b8f6f87080f470120b7487ba49b1c5a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210070
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-27 13:54:19 +02:00
ApurvR20 79d1e583fb tdf#173254 Removed 'using namespace' in lokclipboard
Change-Id: I490f84aa8a4e33600ff3c03e213c5ed5321fedd2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210117
Reviewed-by: Hossein <hossein@libreoffice.org>
Tested-by: Jenkins
2026-08-27 13:33:57 +02:00
ApurvR20 9d4d2c85fa tdf#42982 Improve UNO API error reporting
Provide a descriptive error in RuntimeException in instancelocker.cxx

Change-Id: I7b0579a51fa0f0423df43dadd1aa0a010ac1f420
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209481
Reviewed-by: Hossein <hossein@libreoffice.org>
Tested-by: Jenkins
2026-08-27 13:33:16 +02:00
Michael Weghorn 7628307edc [API CHANGE] a11y: Drop com.sun.star.awt.AccessibleTextField
Drop the unpublished service
"com.sun.star.awt.AccessibleTextField"
because it's unused. (The IDL file only documents some
internal implementation details of the a11y class
implementing the service.)

Also drop VCLXAccessibleTextField::getImplementationName
as there is no need to report a different implementation name
than the base class implementation.

Change-Id: I1cbce092d21253411d5fe0ff3e0d16732fe10ff0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210032
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-08-27 11:36:08 +02:00
Michael Weghorn 94ee592963 [API CHANGE] a11y: Drop com.sun.star.awt.AccessibleEdit
Drop the unpublished service
"com.sun.star.awt.AccessibleEdit"
because it's unused. (The IDL file only documents some
internal implementation details of the a11y class
implementing the service.)

Also drop VCLXAccessibleEdit::getImplementationName
as there is no need to report a different implementation name
than the base class implementation.

Change-Id: Ic48d51794b749e7bb58c788e038d49af726f6ca8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210031
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-08-27 11:36:02 +02:00
Michael Weghorn a478ab3f5f a11y: Stop implementing XServiceInfo in OAccessibleMenuBaseComponent
Previous commits up to

    Change-Id: I40514c1fd6f7500247d630b93c03a377e6231521
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Wed Aug 26 13:12:52 2026 +0200

        [API CHANGE] a11y: Drop com.sun.star.awt.AccessibleMenu

dropped the UNO services previously implemented by
various OAccessibleMenuBaseComponent subclasses.

Now that no UNO services are supported any more, also stop
implementing/subclassing the XServiceInfo UNO interface
in the base class altogether and drop the corresponding
methods that are not/no longer needed.

Change-Id: Ifac5c21de93558bde2b3eda994e94da50b623c2f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210030
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-08-27 11:35:55 +02:00
Michael Weghorn e6d5965576 [API CHANGE] a11y: Drop com.sun.star.awt.AccessibleMenu
Drop the unpublished service
"com.sun.star.awt.AccessibleMenu"
because it's unused. (The IDL file only documents some
internal implementation details of the a11y class
implementing the service.)

Change-Id: I40514c1fd6f7500247d630b93c03a377e6231521
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210029
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-08-27 11:35:48 +02:00
Michael Weghorn aff5f99847 [API CHANGE] a11y: Drop com.sun.star.awt.AccessibleMenuBar
Drop the unpublished service
"com.sun.star.awt.AccessibleMenuBar"
because it's unused. (The IDL file only documents some
internal implementation details of the a11y class
implementing the service.)

Change-Id: Ibf1ef76b22b605ca84945e89e16d8f73c97b7f00
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210028
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-08-27 11:35:41 +02:00
Michael Weghorn aff62dc8e7 [API CHANGE] a11y: Drop com.sun.star.awt.AccessiblePopupMenu
Drop the unpublished service
"com.sun.star.awt.AccessiblePopupMenu"
because it's unused. (The IDL file only documents some
internal implementation details of the a11y class
implementing the service.)

Change-Id: Iba7a10799f1bf6d9edd7841ebf5736f11a587ca4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210027
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-08-27 11:35:33 +02:00
Michael Weghorn c07a9b5e9c [API CHANGE] a11y: Drop com.sun.star.awt.AccessibleMenuItem
Drop the unpublished service
"com.sun.star.awt.AccessibleMenuItem"
because it's unused. (The IDL file only documents some
internal implementation details of the a11y class
implementing the service.)

Change-Id: I5512dfd28e97b8a2a98a5f54181bdae3fdbf6e44
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210026
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-08-27 11:35:26 +02:00
Michael Weghorn b728c3e876 [API CHANGE] a11y: Drop com.sun.star.awt.AccessibleMenuSeparator
Drop the unpublished service
"com.sun.star.awt.AccessibleMenuSeparator"
because it's unused. (The IDL file only documents some
internal implementation details of the a11y class
implementing the service.)

While at it, also drop explicit mentions/references of
some other services in UNO service documentations already
as the plan is to drop them in the future as well.

Change-Id: I78142e00914b26c1abe5549141ed2aa6b8a313c5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210025
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-08-27 11:35:19 +02:00
Michael Weghorn e40f461d5b a11y java tests: Drop/update obsolete comment
The comment was documenting the earlier implementation,
but is no longer accurate/up to date after that was
changed in

    commit f708e783ca
    Author: Rüdiger Timm <rt@openoffice.org>
    Date:   Mon Sep 8 12:01:00 2003 +0000

        INTEGRATION: CWS qadev11 (1.3.14); FILE MERGED
        2003/09/03 15:29:47 sw 1.3.14.1: #112049#

. Adjust the comment/doc accordingly.

Change-Id: I7bd4c9f97fa1e6013e0f2be933fac1c87b9e1a2f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210024
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-08-27 11:35:12 +02:00
Michael Weghorn 6e4c3c178e [API CHANGE] a11y: Drop com.sun.star.awt.AccessibleFixedText
Drop the unpublished service
"com.sun.star.awt.AccessibleFixedText"
because it's unused. (The IDL file only documents some
internal implementation details of the a11y class
implementing the service.)

Also drop VCLXAccessibleFixedText::getImplementationName
as there is no need to report a different implementation name
than the base class implementation.

Change-Id: I69ea1f87a39470c955ea2dff361e8e995ead9ffa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210023
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-08-27 11:35:05 +02:00
Andrea Gelmini 2f4c240fab Fix typos
Change-Id: I739007b9f8ce1d0fa654fe14c2d15cfb5678415d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210064
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-27 11:20:33 +02:00
Krunal Baraskar ff95e14a30 tdf#121759 Add Enable toggle to Insert Header/Footer dialog
Implemented the fix suggested in comment#33 of tdf#99296

Added a new "Enable" checkbox (checkBTN_ENABLE_HF) to
headerfootercontent.ui, placed left of the "Preset" line.

Added ToggleEnableHdl in scuitphfedit.cxx to dynamically disable/gray
menu options when disabled.

Updated "FillItemSet" to utilize a purely boolean toggle.

The changes below were made using AI assistance for code review (Claude Opus 5).

Dropped editeng/ulspitem.hxx, nothing references SvxULSpaceItem.

Used ScResId(STR_HF_ENABLE_HEADER / _FOOTER) instead of string
concatenation.

Removed the SID_HFEDIT disabling in GetStatePageStyle, as on/off is now
set inside the dialog.

Removed m_bHeaderOn, m_bFooterOn and GetPageOnFromPageStyleSet, left
unreachable by the above.

Removed the on/off branching in ExecutePageStyle, as ScHFEditActiveDlg
re-derives the shared left/right setting itself.

Restored two internal-child entry blocks on the font combos that a Glade
re-save had dropped.

Change-Id: I59a56ee74f74375a58fcaad38dae626e071ca5f5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/203405
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2026-08-27 11:19:39 +02:00
Andrea Gelmini c62535aa01 Fix typos
Change-Id: Id5cfaa1e76ea5bbcc0c70a5d376d7b957f042ae4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210068
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2026-08-27 10:52:45 +02:00
Andrea Gelmini 410886d382 Fix typos
Change-Id: I2a6b54f9a5736a02f792198e7818feee1690fb34
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210074
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2026-08-27 10:51:24 +02:00
Andrea Gelmini 941c112903 Fix typos
Change-Id: I700c7fa85163b18dd310772997bb64f06ad95163
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210059
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-27 10:48:21 +02:00
Andrea Gelmini da9156aadc Fix typos
Change-Id: I3c228f14a624ce81568bcceccea05e4927d05f39
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210043
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-27 10:45:45 +02:00
Andrea Gelmini 9c1bbbd457 Fix typo in code
Change-Id: I9b367676669caa50636952ddf04c3cb9e0ba13f8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210042
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-27 10:43:07 +02:00
Andrea Gelmini 6e811dff28 Fix typo in code
Change-Id: Ie0046f75e1e501b7d4e3e4762a5a6f6a3ff08730
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210039
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-27 10:42:33 +02:00
Andrea Gelmini 9f970f8cf6 Fix typo in code
Change-Id: Id22fea4a07aa6fee9783565cd4d7f14ecdff1d17
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210041
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2026-08-27 10:41:40 +02:00
Andrea Gelmini 487a2f8c22 Remove duplicated line (code)
Change-Id: Ifc85b7936d575d57dbfde64e46dcd906f24950d9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210040
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-27 10:41:16 +02:00
Jesus Solis 54156526c0 tdf#156931 unit tests for importing JPEG XL images
Change-Id: If664eca6fd5f6b4ec715e87452bcb401301a3058
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208999
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-08-27 09:55:10 +02:00
Mike Kaganski dec2f2b9ef cool#16078: draw a graphic object's clip polygon
The clip a graphic object carries was kept in the model and carried through
save and load, but nothing ever drew it, so a shape a file describes as an
outline still covered its whole frame and hid what sat behind the parts the
outline leaves out. Wrap the shape's content in a mask.

The polygon states the shape's own coordinates, so it is normalised and then
put through the same object matrix as the content, and follows the shape's
rotation and shear along with it. A flip is expressed on the graphic itself
rather than in that matrix, so the clip is mirrored here to follow it - the
picture would otherwise turn round inside an outline that stayed where it
was. The mask covers the fill as well as the graphic, which is what uncovers
the background. The invisible outline stays outside it, leaving bounds and
hit-testing as they were.

A mask clips with an even-odd fill, which is what makes a contour overlapping
another one a hole.

Signed-off-by: Mike Kaganski <mike.kaganski@collabora.com>
Change-Id: I69c8c6c31f43e87399fb582665904dc81221b32b
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/9302
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit 120b9ef0b7c50a0e025e7be87e005aa39ab7db8a)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210037
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-08-27 09:53:25 +02:00
Heiko Tietze c49435178e Related tdf#126857 - Make Center On Page/Slide the first item
Change-Id: I5c488b2ca92a09f2ca02bfb40245d5ad406939e9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210010
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2026-08-27 08:41:52 +02:00
ApurvR20 2c5bbfa3e6 tdf#145614 Convert #define to enum class and o3tl::typed_flags
Converted #define to enum class and o3tl::typed_flags to handle bitwise
operations in the code.

Added a zero flag to PortionAttribute as previous implementation was
comparing with integer value of zero.

Change-Id: I5dc1b06c4c5cb7d59f3dcf9e8b86561280974ef6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208879
Reviewed-by: Hossein <hossein@libreoffice.org>
Tested-by: Jenkins
2026-08-26 23:26:13 +02:00
Mike Kaganski 9d36b250d9 cool#16078: add SdrGrafClipPolyPolygonItem
Introduce an SfxPoolItem in the SDR graphic attribute range that
carries a basegfx::B2DPolyPolygon clip outline on SdrGrafObj.
Allocate SDRATTR_GRAFCLIPPOLYPOLYGON between SDRATTR_GRAFCROP and
SDRATTR_GRAF_LAST (which shifts SDRATTR_3D_FIRST and the downstream
ids by one), register the pool default, and surface the value as the
"GraphicClipPolyPolygon" UNO property on the GraphicObjectShape
property map (covering both drawing.GraphicObjectShape and
presentation.GraphicObjectShape via SVXMAP_GRAPHICOBJECT) using the
css::drawing::PolyPolygonBezierCoords type. QueryValue/PutValue
do the round-trip through the existing basegfx helpers.

The new which-id is 1175. The trailing comments in svddef.hxx have
run 2 high since two XATTR items were dropped upstream, so the ones
added here say 1177 to stay consistent with the file.

No reader, writer or render path consumes the property yet; this
is infrastructure for upcoming custGeom round-trip work on empty
picture placeholders.

Signed-off-by: Mike Kaganski <mike.kaganski@collabora.com>
Change-Id: I17d98cabeb230c25b3de0da4eadd8338ed672ce1
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/9190
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit be7f21fc7187bb87129eed4e8ed2f794faf6e757)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210036
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-08-26 21:09:05 +02:00
Mike Kaganski 9fac5940ce cool#16078: write a schema-valid empty draw:image
A graphic-object shape with no embedded graphic data exported as
<draw:image><text:p/></draw:image>. Per ODF's draw-image content
model draw:image has a choice between common-draw-data-attlist (the
xlink:href and friends attributes) and office-binary-data, followed
by draw-text (text:p etc.). Without either alternative of the choice
the element is incomplete, and the validator rejects it - the
diagnostic mentions text:p because the parser stops at the missing
choice content before reaching the draw-text part where text:p would
be valid.

Emit an empty <office:binary-data/> placeholder when there is no
xlink:href and no graphic data, satisfying the choice.

Groundwork for the clip polygon that follows, which is written on
exactly such a shape: a picture placeholder that never got an image.

Signed-off-by: Mike Kaganski <mike.kaganski@collabora.com>
Change-Id: I5bf792c60affd35b33779c91be0a381eb074f00f
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/9189
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit 6d1cbfc9fb8e9a705b05f6cdddd4a87a630e973d)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210035
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-08-26 21:08:51 +02:00
Mike Kaganski c4256a2a76 cool#15754: round-trip empty media placeholders
Commit 73f1e76b1760d4e936aa22627623c922dcda964b (cool#15754: Fix PPTX
round-trip of empty picture placeholders, 2026-05-21) covered <p:ph
type="pic"> only. A layout's media placeholder still imported as an
outliner shape, and an empty slide-side one exported as a <p:pic> whose
<a:videoFile> named an empty external relationship - a package the Open
XML SDK validator refuses to open at all.

A media placeholder needs no copy of its own onto the layout, the way a
picture one does: it reaches the file through the page's own shape tree.
Whether it is still waiting for its content is asked of the media, since
nothing marks such a placeholder empty.

Signed-off-by: Mike Kaganski <mike.kaganski@collabora.com>
Change-Id: I85707ff863a63874c6f493a0f284f25070f26e49
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/9188
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit 44a05619224ab206dae4ef076269cbb8ce56f43b)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210009
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-08-26 21:08:44 +02:00
Xisco Fauli 32142d35a0 libjxl: sort alphabetically
Change-Id: Ibc84e16e3b7184de32ddb1149eb4e1c00f5f3d36
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210017
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-08-26 21:05:28 +02:00
Justin Luth 570a4c7807 NFC findtxt: calculate bools instead of passing them
No Functional Change intended

Don't calculate variables in FindTextImpl
and then _only_ using them for passing into DoSearch.
Instead calculate the values in DoSearch itself,
since it also is passed rSearchOpt
from which all of these boolean values are calculated from.

That makes code reading much easier.

Change-Id: Ied0c59afa62e977b57b5e1b51f6babbe4d528bdb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209949
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
2026-08-26 14:08:20 +02:00
Mike Kaganski 47aa325014 tdf#166401: support custom placeholder prompt text
A slide layout is imported as a master page, and the shown text was only set
off a master, so an authored prompt was stored but never displayed or written
back; the export emitted Impress's own localized resource instead. Set it on
a master too, and accept the graphic kind in RestoreDefaultText, which keeps
the object an empty presentation object. Now that the two are
distinguishable, a placeholder that authored no prompt writes no text - its
text body keeps the properties a reader needs, and holds an empty paragraph.

A slide's own placeholder asks its master for that prompt before falling back
to the resource string, so the two no longer disagree about what is really
one placeholder.

This is what degraded in commit 73f1e76b1760d4e936aa22627623c922dcda964b
(cool#15754: Fix PPTX round-trip of empty picture placeholders, 2026-05-21):
mapping a layout <p:ph type="pic"/> to a real presentation service is what
made it reach that text reset, where the previous OutlinerShape mapping had
kept the authored prompt.

Implemented a TODO from commit 67ba6ccd5a
(tdf#140912, tdf#159219: fix import of graphic placeholder with custom
prompt, 2024-01-17). That commit deferred this because marking the object
empty after setting the text crashed the PPTX export; going through
RestoreDefaultText, which does exactly that, no longer does. Its other
objection stands: ODF stores no placeholder prompt, so a save to ODP still
drops it.

Signed-off-by: Mike Kaganski <mike.kaganski@collabora.com>
Change-Id: I1b6f3e38cb24ac737d3de6258559090596817bad
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/9046
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit b41a780d139ec6ca5a5514db972ccf0e50058dfc)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210008
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-08-26 12:20:37 +02:00
Xisco Fauli 280d307535 openssl: upgrade to 3.5.8
Downloaded from https://github.com/openssl/openssl/releases/download/openssl-3.5.8/openssl-3.5.8.tar.gz

Change-Id: I0846dc1345b1d428e07e0d383b15f5f187c6e31d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210005
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-08-26 12:09:32 +02:00
Jesus Solis 39dcff4a99 tdf#156931 add import support for JPEG XL image format
Change-Id: I5b8c70d5739fdc91b0ca30fbaa780a5c7004741d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208352
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-08-26 11:43:32 +02:00
Michael Weghorn 5d72f86b56 Ignore loplugin:pointerbool/implicitboolconversion for some soltools C programs
For now, disable these two clang plugins for C sources of
2 build tools in soltools. Otherwise, these were newly seen
triggering/failing the build after a glibc update on Debian testing
from 2.42-17 to 2.43-3:

    /home/michi/development/git/libreoffice/soltools/mkdepend/include.c:259:12: error: implicit conversion (IntegralToBoolean) of call argument from 'int' to 'bool' [loplugin:implicitboolconversion]
      259 |     assert(n < BUFSIZ);
          |     ~~~~~~~^~~~~~~~~~~
    /usr/include/assert.h:157:42: note: expanded from macro 'assert'
      157 |     ((void) sizeof (__assert_single_arg (__VA_ARGS__)), __extension__ ({ \
          |                                          ^~~~~~~~~~~
    1 error generated.
    make[1]: *** [/home/michi/development/git/libreoffice/solenv/gbuild/LinkTarget.mk:278: /home/michi/development/git/libreoffice/workdir/CObject/soltools/mkdepend/include.o] Error 1
    make[1]: *** Waiting for unfinished jobs....
    /home/michi/development/git/libreoffice/soltools/cpp/_tokens.c:56:17: error: possibly unwanted implicit conversion when calling bool param [loplugin:pointerbool]
       56 |     assert(trp->bp); // realloc failure is OOM -> no point to handle
          |            ~~~~~^~
    /usr/include/assert.h:157:42: note: expanded from macro 'assert'
      157 |     ((void) sizeof (__assert_single_arg (__VA_ARGS__)), __extension__ ({ \
          |                                          ^~~~~~~~~~~
    /usr/include/assert.h:117:40: note: method here [loplugin:pointerbool]
      117 | extern _Bool __assert_single_arg (_Bool);
          |                                   ~~~~~^
    /home/michi/development/git/libreoffice/soltools/cpp/_tokens.c:56:12: error: implicit conversion (PointerToBoolean) of call argument from 'Token *' (aka 'struct token *') to 'bool' [loplugin:implicitboolconversion]
       56 |     assert(trp->bp); // realloc failure is OOM -> no point to handle
          |            ^~~~~~~
    /usr/include/assert.h:157:42: note: expanded from macro 'assert'
      157 |     ((void) sizeof (__assert_single_arg (__VA_ARGS__)), __extension__ ({ \
          |                                          ^~~~~~~~~~~
    2 errors generated.
    make[1]: *** [/home/michi/development/git/libreoffice/solenv/gbuild/LinkTarget.mk:278: /home/michi/development/git/libreoffice/workdir/CObject/soltools/cpp/_tokens.o] Error 1
    /home/michi/development/git/libreoffice/soltools/mkdepend/main.c:525:12: error: possibly unwanted implicit conversion when calling bool param [loplugin:pointerbool]
      525 |     assert(p); // Don't handle OOM conditions
          |            ^
    /usr/include/assert.h:117:40: note: method here [loplugin:pointerbool]
      117 | extern _Bool __assert_single_arg (_Bool);
          |                                   ~~~~~^
    /home/michi/development/git/libreoffice/soltools/mkdepend/main.c:730:16: error: possibly unwanted implicit conversion when calling bool param [loplugin:pointerbool]
      730 |         assert(new_string); // Don't handle OOM conditions
          |                ^~~~~~~~~~
    /usr/include/assert.h:117:40: note: method here [loplugin:pointerbool]
      117 | extern _Bool __assert_single_arg (_Bool);
          |                                   ~~~~~^
    /home/michi/development/git/libreoffice/soltools/mkdepend/main.c:525:12: error: implicit conversion (PointerToBoolean) of call argument from 'char *' to 'bool' [loplugin:implicitboolconversion]
      525 |     assert(p); // Don't handle OOM conditions
          |            ^
    /home/michi/development/git/libreoffice/soltools/mkdepend/main.c:730:16: error: implicit conversion (PointerToBoolean) of call argument from 'char *' to 'bool' [loplugin:implicitboolconversion]
      730 |         assert(new_string); // Don't handle OOM conditions
          |                ^~~~~~~~~~
    4 errors generated.

Change-Id: Icc11df58e8ae4f092bb4c4147bfdfad1b53ffff5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209872
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-08-26 11:39:07 +02:00
Michael Weghorn 4a8d42fc6d pyuno: Include Python.h first to avoid _POSIX_C_SOURCE redefinitions
As

    commit a545badd65
    Author: Stephan Bergmann <sbergman@redhat.com>
    Date:   Thu Feb 16 18:15:04 2012 +0100

        Work around macro redefinition warning

already did for pyuno/source/module/pyuno_dlopenwrapper.c ,
also include the <Python.h> header first
in more pyuno source files.

Quoting from the Python/C API reference manual about include
files [1]:

> Note: Since Python may define some pre-processor definitions
> which affect the standard headers on some systems, you must
> include Python.h before any standard headers are included.

This avoids build errors like the following otherwise seen
on Debian testing after a glibc update from 2.42-17 to 2.43-3:

    In file included from /home/michi/development/git/libreoffice/pyuno/source/module/pyuno_struct.cxx:28:
    In file included from /home/michi/development/git/libreoffice/pyuno/source/module/pyuno_impl.hxx:26:
    In file included from /home/michi/development/git/libreoffice/workdir/UnpackedTarball/python3/Include/Python.h:14:
    /home/michi/development/git/libreoffice/workdir/UnpackedTarball/python3/pyconfig.h:1985:9: error: '_POSIX_C_SOURCE' macro redefined [-Werror,-Wmacro-redefined]
     1985 | #define _POSIX_C_SOURCE 200809L
          |         ^
    /usr/include/features.h:319:10: note: previous definition is here
      319 | # define _POSIX_C_SOURCE        202405L
          |          ^

[1] https://docs.python.org/3/c-api/intro.html#include-files

Change-Id: I4ae90cfc9b92b559181d3884cdc8d51ee11f922d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209871
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-08-26 11:39:00 +02:00
Michael Weghorn ce1bc05c6e solenv concat-deps: Use standard bool type
Use the standard bool instead of custom
TRUE/FALSE defines.

Also drop the <stdbool.h> include no longer
needed after the program was converted to C++ in

    Change-Id: I6621e146999551b98cbc006509a72c86745fcd65
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Mon Aug 24 14:52:21 2026 +0200

        solenv concat-deps: Convert from C to C++

Change-Id: I374b8545c80cb0b69bdbebd40a0ac24db880d360
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209831
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-08-26 11:38:53 +02:00
Michael Weghorn c454227699 solenv concat-deps: Convert from C to C++
Convert concat-deps.c from C to C++:

* rename file suffix from ".c" to ".cxx"
* adjust Makefile to build as a C++ program
* adjust C-style casts to C++ casts and use nullptr
  instead of   NULL to address clang plugin warnings
  otherwise showing up after the conversion

Otherwise, leave the source/logic unchanged. Further
simplification of the program using newly available C++
features would probably be possible now (e.g. looking into
replacing the custom hash logic by a preexisting C++ stdlib
class) be possible, but is outside the scope of this commit.

The original trigger for looking into this initial
conversion from C to C++ was to avoid loplugin:pointerbool and
loplugin:implicitboolconversion clang plugin warnings newly
showing up with the original C sources after upgarding
glibc packages on Debian testing from 2.42-17 to 2.43-3:

    [C  ] solenv/bin/concat-deps.c
    /home/michi/development/git/libreoffice/solenv/bin/concat-deps.c:175:22: error: possibly unwanted implicit conversion when calling bool param [loplugin:pointerbool]
      175 |         assert(pool->primary);
          |                ~~~~~~^~~~~~~
    /usr/include/assert.h:157:42: note: expanded from macro 'assert'
      157 |     ((void) sizeof (__assert_single_arg (__VA_ARGS__)), __extension__ ({ \
          |                                          ^~~~~~~~~~~
    /usr/include/assert.h:117:40: note: method here [loplugin:pointerbool]
      117 | extern _Bool __assert_single_arg (_Bool);
          |                                   ~~~~~^
    /home/michi/development/git/libreoffice/solenv/bin/concat-deps.c:1113:12: error: possibly unwanted implicit conversion when calling bool param [loplugin:pointerbool]
     1113 |     assert(phony_content_buffer); // Don't handle OOM conditions
          |            ^~~~~~~~~~~~~~~~~~~~
    /usr/include/assert.h:117:40: note: method here [loplugin:pointerbool]
      117 | extern _Bool __assert_single_arg (_Bool);
          |                                   ~~~~~^
    /home/michi/development/git/libreoffice/solenv/bin/concat-deps.c:175:16: error: implicit conversion (IntegralToBoolean) of call argument from 'int' to 'bool' [loplugin:implicitboolconversion]
      175 |         assert(pool->primary);
          |                ^~~~~~~~~~~~~
    /usr/include/assert.h:157:42: note: expanded from macro 'assert'
      157 |     ((void) sizeof (__assert_single_arg (__VA_ARGS__)), __extension__ ({ \
          |                                          ^~~~~~~~~~~
    /home/michi/development/git/libreoffice/solenv/bin/concat-deps.c:209:12: error: implicit conversion (IntegralToBoolean) of call argument from 'int' to 'bool' [loplugin:implicitboolconversion]
      209 |     assert(primary > 0);
          |            ^~~~~~~~~~~
    /usr/include/assert.h:157:42: note: expanded from macro 'assert'
      157 |     ((void) sizeof (__assert_single_arg (__VA_ARGS__)), __extension__ ({ \
          |                                          ^~~~~~~~~~~
    /home/michi/development/git/libreoffice/solenv/bin/concat-deps.c:210:12: error: implicit conversion (IntegralToBoolean) of call argument from 'int' to 'bool' [loplugin:implicitboolconversion]
      210 |     assert(secondary >= 0);
          |            ^~~~~~~~~~~~~~
    /usr/include/assert.h:157:42: note: expanded from macro 'assert'
      157 |     ((void) sizeof (__assert_single_arg (__VA_ARGS__)), __extension__ ({ \
          |                                          ^~~~~~~~~~~
    /home/michi/development/git/libreoffice/solenv/bin/concat-deps.c:211:12: error: implicit conversion (IntegralToBoolean) of call argument from 'int' to 'bool' [loplugin:implicitboolconversion]
      211 |     assert(size_elem > 0);
          |            ^~~~~~~~~~~~~
    /usr/include/assert.h:157:42: note: expanded from macro 'assert'
      157 |     ((void) sizeof (__assert_single_arg (__VA_ARGS__)), __extension__ ({ \
          |                                          ^~~~~~~~~~~
    /home/michi/development/git/libreoffice/solenv/bin/concat-deps.c:437:12: error: implicit conversion (IntegralToBoolean) of call argument from 'int' to 'bool' [loplugin:implicitboolconversion]
      437 |     assert(size > 0);
          |            ^~~~~~~~
    /usr/include/assert.h:157:42: note: expanded from macro 'assert'
      157 |     ((void) sizeof (__assert_single_arg (__VA_ARGS__)), __extension__ ({ \
          |                                          ^~~~~~~~~~~
    /home/michi/development/git/libreoffice/solenv/bin/concat-deps.c:615:12: error: implicit conversion (IntegralToBoolean) of call argument from 'int' to 'bool' [loplugin:implicitboolconversion]
      615 |     assert(name != NULL);
          |     ~~~~~~~^~~~~~~~~~~~~
    /usr/include/assert.h:157:42: note: expanded from macro 'assert'
      157 |     ((void) sizeof (__assert_single_arg (__VA_ARGS__)), __extension__ ({ \
          |                                          ^~~~~~~~~~~
    /home/michi/development/git/libreoffice/solenv/bin/concat-deps.c:851:12: error: implicit conversion (IntegralToBoolean) of call argument from 'int' to 'bool' [loplugin:implicitboolconversion]
      851 |     assert('\0' == *end);
          |            ^~~~~~~~~~~~
    /usr/include/assert.h:157:42: note: expanded from macro 'assert'
      157 |     ((void) sizeof (__assert_single_arg (__VA_ARGS__)), __extension__ ({ \
          |                                          ^~~~~~~~~~~
    /home/michi/development/git/libreoffice/solenv/bin/concat-deps.c:1113:12: error: implicit conversion (PointerToBoolean) of call argument from 'char *' to 'bool' [loplugin:implicitboolconversion]
     1113 |     assert(phony_content_buffer); // Don't handle OOM conditions
          |            ^~~~~~~~~~~~~~~~~~~~
    10 errors generated.
    make[1]: *** No rule to make target '/home/michi/development/git/libreoffice/workdir/CObject/solenv/bin/concat-deps.o', needed by '/home/michi/development/git/libreoffice/workdir/LinkTarget/Executable/concat-deps'.  Stop.
    make: *** [Makefile:137: solenv] Error 2

Change-Id: I6621e146999551b98cbc006509a72c86745fcd65
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209870
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-08-26 11:38:46 +02:00