From d5c19ef9d30cde052e8cd2486ac9395e62d9c9a9 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Wed, 11 Oct 2023 19:13:53 +0200 Subject: drawinglayer,svx: PDF/UA export: put Form SE into anchor paragraph SE This is like commit d467f1aa3d028f399826c97e2eecedcd79efcf65 and commit 6e5d59c2ca6969e9491f97cd7a00d094fc62cfb3 but for the form controls, which have their own special ControlPrimitive2D. Change-Id: I4b4ac45e81f490a7b625acd9e8753300d10bf119 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157847 Tested-by: Jenkins Reviewed-by: Michael Stahl --- include/drawinglayer/primitive2d/controlprimitive2d.hxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/drawinglayer/primitive2d/controlprimitive2d.hxx b/include/drawinglayer/primitive2d/controlprimitive2d.hxx index e33c26886cd9..a7128b7f7322 100644 --- a/include/drawinglayer/primitive2d/controlprimitive2d.hxx +++ b/include/drawinglayer/primitive2d/controlprimitive2d.hxx @@ -58,6 +58,9 @@ private: /// yet another special snowflake way to generate PDF Alt text OUString m_AltText; + /// anchor structure element (Writer) + void const* const m_pAnchorStructureElementKey; + /** used from getXControl() to create a local awt::XControl which is remembered in mxXControl and from thereon always used and returned by getXControl() */ @@ -81,7 +84,8 @@ public: ControlPrimitive2D(basegfx::B2DHomMatrix aTransform, css::uno::Reference xControlModel, css::uno::Reference xXControl, - ::std::u16string_view rTitle, ::std::u16string_view rDescription); + ::std::u16string_view rTitle, ::std::u16string_view rDescription, + void const* pAnchorKey); /// data read access const basegfx::B2DHomMatrix& getTransform() const { return maTransform; } @@ -98,6 +102,8 @@ public: OUString const& GetAltText() const { return m_AltText; } + void const* GetAnchorStructureElementKey() const { return m_pAnchorStructureElementKey; } + /// compare operator virtual bool operator==(const BasePrimitive2D& rPrimitive) const override; -- cgit