diff options
author | Michael Stahl <michael.stahl@allotropia.de> | 2023-10-11 19:13:53 +0200 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2023-10-12 11:54:51 +0200 |
commit | d5c19ef9d30cde052e8cd2486ac9395e62d9c9a9 (patch) | |
tree | aa143345d82cc29f47fd861ffc9ca854c6a00487 /include | |
parent | 2e32aa1e9fc240c9cd9854655106d0decbd3694a (diff) |
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 <michael.stahl@allotropia.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/drawinglayer/primitive2d/controlprimitive2d.hxx | 8 |
1 files changed, 7 insertions, 1 deletions
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<css::awt::XControlModel> xControlModel, css::uno::Reference<css::awt::XControl> 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; |