diff options
author | matteocam <matteo.campanelli@gmail.com> | 2014-06-16 15:07:58 +0200 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2014-06-30 22:54:42 +0200 |
commit | 6c1fc9e94e36b4f74136bc044cc9a4b72f79d53f (patch) | |
tree | a0e075cc67d7c2855946667c758f39a2f2799b7e /include | |
parent | 7bb6020ead0494b35967a6876714c2024b1dee4f (diff) |
Added Text Fill Color in TextSimplePortionPrimitive2D
Change-Id: I40309c17d6e3d0547c4724a01b464e94a3c8a61c
(cherry picked from commit 4177d9b34551f7cf2a7ea8d2dfdff37b89400db4)
Diffstat (limited to 'include')
-rw-r--r-- | include/drawinglayer/primitive2d/textprimitive2d.hxx | 8 |
1 files changed, 7 insertions, 1 deletions
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; } |