Kaydet (Commit) 9ab43875 authored tarafından matteocam's avatar matteocam Kaydeden (comit) Fridrich Štrba

Added Text Fill Color in TextDecoratedPrimitive2D

Change-Id: I8c3946c08d20cc2ca2af6f17a2a57d6c9a5cfa23
(cherry picked from commit 00fc45e7)
üst 6c1fc9e9
...@@ -1293,6 +1293,7 @@ namespace ...@@ -1293,6 +1293,7 @@ namespace
// prepare FontColor and Locale // prepare FontColor and Locale
const basegfx::BColor aFontColor(rProperty.getTextColor()); const basegfx::BColor aFontColor(rProperty.getTextColor());
const basegfx::BColor aBFillColor(rFont.GetFillColor().getBColor());
const com::sun::star::lang::Locale aLocale(LanguageTag(rProperty.getLanguageType()).getLocale()); const com::sun::star::lang::Locale aLocale(LanguageTag(rProperty.getLanguageType()).getLocale());
const bool bWordLineMode(rFont.IsWordLineMode()); const bool bWordLineMode(rFont.IsWordLineMode());
...@@ -1354,6 +1355,7 @@ namespace ...@@ -1354,6 +1355,7 @@ namespace
aFontAttribute, aFontAttribute,
aLocale, aLocale,
aFontColor, aFontColor,
aBFillColor,
// attributes for TextDecoratedPortionPrimitive2D // attributes for TextDecoratedPortionPrimitive2D
rProperty.getOverlineColorActive() ? rProperty.getOverlineColor() : aFontColor, rProperty.getOverlineColorActive() ? rProperty.getOverlineColor() : aFontColor,
......
...@@ -144,6 +144,7 @@ namespace drawinglayer ...@@ -144,6 +144,7 @@ namespace drawinglayer
mrSource.getFontAttribute(), mrSource.getFontAttribute(),
mrSource.getLocale(), mrSource.getLocale(),
mrSource.getFontColor(), mrSource.getFontColor(),
mrSource.getTextFillColor(),
pTextDecoratedPortionPrimitive2D->getOverlineColor(), pTextDecoratedPortionPrimitive2D->getOverlineColor(),
pTextDecoratedPortionPrimitive2D->getTextlineColor(), pTextDecoratedPortionPrimitive2D->getTextlineColor(),
......
...@@ -317,6 +317,7 @@ namespace drawinglayer ...@@ -317,6 +317,7 @@ namespace drawinglayer
const attribute::FontAttribute& rFontAttribute, const attribute::FontAttribute& rFontAttribute,
const ::com::sun::star::lang::Locale& rLocale, const ::com::sun::star::lang::Locale& rLocale,
const basegfx::BColor& rFontColor, const basegfx::BColor& rFontColor,
const basegfx::BColor& rFillColor,
// local parameters // local parameters
const basegfx::BColor& rOverlineColor, const basegfx::BColor& rOverlineColor,
...@@ -331,7 +332,7 @@ namespace drawinglayer ...@@ -331,7 +332,7 @@ namespace drawinglayer
bool bEmphasisMarkBelow, bool bEmphasisMarkBelow,
TextRelief eTextRelief, TextRelief eTextRelief,
bool bShadow) bool bShadow)
: TextSimplePortionPrimitive2D(rNewTransform, rText, nTextPosition, nTextLength, rDXArray, rFontAttribute, rLocale, rFontColor), : TextSimplePortionPrimitive2D(rNewTransform, rText, nTextPosition, nTextLength, rDXArray, rFontAttribute, rLocale, rFontColor, false, 0, rFillColor),
maOverlineColor(rOverlineColor), maOverlineColor(rOverlineColor),
maTextlineColor(rTextlineColor), maTextlineColor(rTextlineColor),
meFontOverline(eFontOverline), meFontOverline(eFontOverline),
......
...@@ -94,6 +94,7 @@ namespace drawinglayer ...@@ -94,6 +94,7 @@ namespace drawinglayer
const attribute::FontAttribute& rFontAttribute, const attribute::FontAttribute& rFontAttribute,
const ::com::sun::star::lang::Locale& rLocale, const ::com::sun::star::lang::Locale& rLocale,
const basegfx::BColor& rFontColor, const basegfx::BColor& rFontColor,
const basegfx::BColor& rFillColor,
/// local parameters /// local parameters
const basegfx::BColor& rOverlineColor, const basegfx::BColor& rOverlineColor,
......
...@@ -260,7 +260,7 @@ namespace ...@@ -260,7 +260,7 @@ namespace
const basegfx::BColor aBFontColor(aFontColor.getBColor()); const basegfx::BColor aBFontColor(aFontColor.getBColor());
const Color aTextFillColor(rInfo.mrFont.GetFillColor()); const Color aTextFillColor(rInfo.mrFont.GetFillColor());
const basegfx::BColor aBTextFill(aTextFillColor.getBColor()); const basegfx::BColor aBTextFillColor(aTextFillColor.getBColor());
// prepare wordLineMode (for underline and strikeout) // prepare wordLineMode (for underline and strikeout)
// NOT for bullet texts. It is set (this may be an error by itself), but needs to be suppressed to hinder e.g. '1)' // NOT for bullet texts. It is set (this may be an error by itself), but needs to be suppressed to hinder e.g. '1)'
...@@ -340,6 +340,7 @@ namespace ...@@ -340,6 +340,7 @@ namespace
aFontAttribute, aFontAttribute,
rInfo.mpLocale ? *rInfo.mpLocale : ::com::sun::star::lang::Locale(), rInfo.mpLocale ? *rInfo.mpLocale : ::com::sun::star::lang::Locale(),
aBFontColor, aBFontColor,
aBTextFillColor,
// attributes for TextDecoratedPortionPrimitive2D // attributes for TextDecoratedPortionPrimitive2D
aBOverlineColor, aBOverlineColor,
...@@ -368,7 +369,8 @@ namespace ...@@ -368,7 +369,8 @@ namespace
rInfo.mpLocale ? *rInfo.mpLocale : ::com::sun::star::lang::Locale(), rInfo.mpLocale ? *rInfo.mpLocale : ::com::sun::star::lang::Locale(),
aBFontColor, aBFontColor,
rInfo.mbFilled, rInfo.mbFilled,
rInfo.mnWidthToFill); rInfo.mnWidthToFill,
aBTextFillColor);
} }
if(rInfo.mbEndOfBullet) if(rInfo.mbEndOfBullet)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment