From 6c1fc9e94e36b4f74136bc044cc9a4b72f79d53f Mon Sep 17 00:00:00 2001 From: matteocam Date: Mon, 16 Jun 2014 15:07:58 +0200 Subject: Added Text Fill Color in TextSimplePortionPrimitive2D Change-Id: I40309c17d6e3d0547c4724a01b464e94a3c8a61c (cherry picked from commit 4177d9b34551f7cf2a7ea8d2dfdff37b89400db4) --- include/drawinglayer/primitive2d/textprimitive2d.hxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/drawinglayer/primitive2d/textprimitive2d.hxx b/include/drawinglayer/primitive2d/textprimitive2d.hxx index 3259e8171fe5..7c812b4273eb 100644 --- a/include/drawinglayer/primitive2d/textprimitive2d.hxx +++ b/include/drawinglayer/primitive2d/textprimitive2d.hxx @@ -117,11 +117,15 @@ namespace drawinglayer /// font color basegfx::BColor maFontColor; + /// #i96669# internal: add simple range buffering for this primitive basegfx::B2DRange maB2DRange; bool mbFilled; // Whether to fill a given width with the text long mnWidthToFill; // the width to fill + /// The fill color of the text + basegfx::BColor maTextFillColor; + protected: /// local decomposition. virtual Primitive2DSequence create2DDecomposition(const geometry::ViewInformation2D& rViewInformation) const SAL_OVERRIDE; @@ -138,7 +142,8 @@ namespace drawinglayer const ::com::sun::star::lang::Locale& rLocale, const basegfx::BColor& rFontColor, bool bFilled = false, - long nWidthToFill = 0); + long nWidthToFill = 0, + const basegfx::BColor& rFillColor = Color(COL_TRANSPARENT).getBColor()); /// helpers /** get text outlines as polygons and their according ObjectTransformation. Handles all @@ -155,6 +160,7 @@ namespace drawinglayer const attribute::FontAttribute& getFontAttribute() const { return maFontAttribute; } const ::com::sun::star::lang::Locale& getLocale() const { return maLocale; } const basegfx::BColor& getFontColor() const { return maFontColor; } + const basegfx::BColor& getTextFillColor() const { return maTextFillColor; } bool isFilled() const { return mbFilled; } long getWidthToFill() const { return mnWidthToFill; } -- cgit