drawinglayer/source/primitive2d/textdecoratedprimitive2d.cxx  |   13 ++++++++++
 include/drawinglayer/primitive2d/textdecoratedprimitive2d.hxx |    8 ++++++
 2 files changed, 21 insertions(+)

New commits:
commit 2ffed6f2d4936091285190d9d8b7f1141444f12e
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Mon Aug 21 14:32:11 2023 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Mon Aug 21 20:45:11 2023 +0200

    split to allow getting decoration on its own
    
    Change-Id: Ib65750245906de0852c39e4a4bdaa85a2f822282
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155899
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/drawinglayer/source/primitive2d/textdecoratedprimitive2d.cxx 
b/drawinglayer/source/primitive2d/textdecoratedprimitive2d.cxx
index b14e6994f7c9..c97b7a83bcae 100644
--- a/drawinglayer/source/primitive2d/textdecoratedprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/textdecoratedprimitive2d.cxx
@@ -52,6 +52,19 @@ namespace drawinglayer::primitive2d
                     getLocale(),
                     getFontColor())));
 
+            CreateDecorationGeometryContent(rTarget, rDecTrans, rText,
+                                            nTextPosition, nTextLength,
+                                            rDXArray);
+        }
+
+        void TextDecoratedPortionPrimitive2D::CreateDecorationGeometryContent(
+            Primitive2DContainer& rTarget,
+            basegfx::utils::B2DHomMatrixBufferedOnDemandDecompose const & 
rDecTrans,
+            const OUString& rText,
+            sal_Int32 nTextPosition,
+            sal_Int32 nTextLength,
+            const std::vector< double >& rDXArray) const
+        {
             // see if something else needs to be done
             const bool bOverlineUsed(TEXT_LINE_NONE != getFontOverline());
             const bool bUnderlineUsed(TEXT_LINE_NONE != getFontUnderline());
diff --git a/include/drawinglayer/primitive2d/textdecoratedprimitive2d.hxx 
b/include/drawinglayer/primitive2d/textdecoratedprimitive2d.hxx
index 73663ff95d32..a854a8833713 100644
--- a/include/drawinglayer/primitive2d/textdecoratedprimitive2d.hxx
+++ b/include/drawinglayer/primitive2d/textdecoratedprimitive2d.hxx
@@ -112,6 +112,14 @@ namespace drawinglayer::primitive2d
             bool getEmphasisMarkBelow() const { return mbEmphasisMarkBelow; }
             bool getShadow() const { return mbShadow; }
 
+            void CreateDecorationGeometryContent(
+                Primitive2DContainer& rTarget,
+                basegfx::utils::B2DHomMatrixBufferedOnDemandDecompose const & 
rDecTrans,
+                const OUString& rText,
+                sal_Int32 nTextPosition,
+                sal_Int32 nTextLength,
+                const std::vector< double >& rDXArray) const;
+
             /// compare operator
             virtual bool operator==( const BasePrimitive2D& rPrimitive ) const 
override;
 

Reply via email to