Kaydet (Commit) 530db757 authored tarafından matteocam's avatar matteocam

Changed BColor to Color in TextFooPrimitive2D classes

Change-Id: I4f29ec307f7f86e0a43d661785f90601e24a16ce
üst fe0b0c06
...@@ -1293,7 +1293,7 @@ namespace ...@@ -1293,7 +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 Color aFillColor(rFont.GetFillColor());
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());
...@@ -1355,7 +1355,7 @@ namespace ...@@ -1355,7 +1355,7 @@ namespace
aFontAttribute, aFontAttribute,
aLocale, aLocale,
aFontColor, aFontColor,
aBFillColor, aFillColor,
// attributes for TextDecoratedPortionPrimitive2D // attributes for TextDecoratedPortionPrimitive2D
rProperty.getOverlineColorActive() ? rProperty.getOverlineColor() : aFontColor, rProperty.getOverlineColorActive() ? rProperty.getOverlineColor() : aFontColor,
......
...@@ -317,7 +317,7 @@ namespace drawinglayer ...@@ -317,7 +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, const Color& rFillColor,
// local parameters // local parameters
const basegfx::BColor& rOverlineColor, const basegfx::BColor& rOverlineColor,
......
...@@ -229,7 +229,7 @@ namespace drawinglayer ...@@ -229,7 +229,7 @@ namespace drawinglayer
const basegfx::BColor& rFontColor, const basegfx::BColor& rFontColor,
bool bFilled, bool bFilled,
long nWidthToFill, long nWidthToFill,
const basegfx::BColor& rFillColor) const Color& rFillColor)
: BufferedDecompositionPrimitive2D(), : BufferedDecompositionPrimitive2D(),
maTextTransform(rNewTransform), maTextTransform(rNewTransform),
maText(rText), maText(rText),
......
...@@ -94,7 +94,7 @@ namespace drawinglayer ...@@ -94,7 +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, const Color& rFillColor,
/// local parameters /// local parameters
const basegfx::BColor& rOverlineColor, const basegfx::BColor& rOverlineColor,
......
...@@ -89,6 +89,14 @@ namespace drawinglayer ...@@ -89,6 +89,14 @@ namespace drawinglayer
@param rFontColor @param rFontColor
The font color to use The font color to use
@param bFilled
@param nWidthToFill
@param rFillColor
Text background color (has nothing to do with bFilled and nWidthToFill)
*/ */
class DRAWINGLAYER_DLLPUBLIC TextSimplePortionPrimitive2D : public BufferedDecompositionPrimitive2D class DRAWINGLAYER_DLLPUBLIC TextSimplePortionPrimitive2D : public BufferedDecompositionPrimitive2D
{ {
...@@ -124,7 +132,7 @@ namespace drawinglayer ...@@ -124,7 +132,7 @@ namespace drawinglayer
long mnWidthToFill; // the width to fill long mnWidthToFill; // the width to fill
/// The fill color of the text /// The fill color of the text
basegfx::BColor maTextFillColor; Color maTextFillColor;
protected: protected:
/// local decomposition. /// local decomposition.
...@@ -143,7 +151,7 @@ namespace drawinglayer ...@@ -143,7 +151,7 @@ namespace drawinglayer
const basegfx::BColor& rFontColor, const basegfx::BColor& rFontColor,
bool bFilled = false, bool bFilled = false,
long nWidthToFill = 0, long nWidthToFill = 0,
const basegfx::BColor& rFillColor = Color(COL_TRANSPARENT).getBColor()); const Color& rFillColor = COL_TRANSPARENT );
/// helpers /// helpers
/** get text outlines as polygons and their according ObjectTransformation. Handles all /** get text outlines as polygons and their according ObjectTransformation. Handles all
...@@ -160,7 +168,7 @@ namespace drawinglayer ...@@ -160,7 +168,7 @@ namespace drawinglayer
const attribute::FontAttribute& getFontAttribute() const { return maFontAttribute; } const attribute::FontAttribute& getFontAttribute() const { return maFontAttribute; }
const ::com::sun::star::lang::Locale& getLocale() const { return maLocale; } const ::com::sun::star::lang::Locale& getLocale() const { return maLocale; }
const basegfx::BColor& getFontColor() const { return maFontColor; } const basegfx::BColor& getFontColor() const { return maFontColor; }
const basegfx::BColor& getTextFillColor() const { return maTextFillColor; } const Color& getTextFillColor() const { return maTextFillColor; }
bool isFilled() const { return mbFilled; } bool isFilled() const { return mbFilled; }
long getWidthToFill() const { return mnWidthToFill; } long getWidthToFill() const { return mnWidthToFill; }
......
...@@ -260,7 +260,6 @@ namespace ...@@ -260,7 +260,6 @@ 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 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,7 +339,7 @@ namespace ...@@ -340,7 +339,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, aTextFillColor,
// attributes for TextDecoratedPortionPrimitive2D // attributes for TextDecoratedPortionPrimitive2D
aBOverlineColor, aBOverlineColor,
...@@ -370,7 +369,7 @@ namespace ...@@ -370,7 +369,7 @@ namespace
aBFontColor, aBFontColor,
rInfo.mbFilled, rInfo.mbFilled,
rInfo.mnWidthToFill, rInfo.mnWidthToFill,
aBTextFillColor); aTextFillColor);
} }
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