22#include <config_options.h>
26#include <rtl/ustring.hxx>
28#include <osl/diagnose.h>
84 virtual ::basegfx::BColor
getModifiedColor(const ::basegfx::BColor& aSourceColor)
const = 0;
104 SAL_DLLPRIVATE virtual ::basegfx::BColor getModifiedColor(const ::basegfx::BColor& aSourceColor)
const override;
105 SAL_DLLPRIVATE
virtual OUString getModifierName()
const override;
125 SAL_DLLPRIVATE virtual ::basegfx::BColor getModifiedColor(const ::basegfx::BColor& aSourceColor)
const override;
126 SAL_DLLPRIVATE
virtual OUString getModifierName()
const override;
150 SAL_DLLPRIVATE virtual ::basegfx::BColor getModifiedColor(const ::basegfx::BColor& aSourceColor)
const override;
151 SAL_DLLPRIVATE
virtual OUString getModifierName()
const override;
174 const ::basegfx::BColor&
getBColor()
const {
return maBColor; }
180 SAL_DLLPRIVATE virtual ::basegfx::BColor getModifiedColor(const ::basegfx::BColor& aSourceColor)
const override;
181 SAL_DLLPRIVATE
virtual OUString getModifierName()
const override;
210 SAL_DLLPRIVATE virtual ::basegfx::BColor getModifiedColor(const ::basegfx::BColor& aSourceColor)
const override;
211 SAL_DLLPRIVATE
virtual OUString getModifierName()
const override;
235 SAL_DLLPRIVATE virtual ::basegfx::BColor getModifiedColor(const ::basegfx::BColor& aSourceColor)
const override;
236 SAL_DLLPRIVATE
virtual OUString getModifierName()
const override;
262 SAL_DLLPRIVATE virtual ::basegfx::BColor getModifiedColor(const ::basegfx::BColor& aSourceColor)
const override;
263 SAL_DLLPRIVATE
virtual OUString getModifierName()
const override;
287 SAL_DLLPRIVATE virtual ::basegfx::BColor getModifiedColor(const ::basegfx::BColor& aSourceColor)
const override;
288 SAL_DLLPRIVATE
virtual OUString getModifierName()
const override;
313 SAL_DLLPRIVATE virtual ::basegfx::BColor getModifiedColor(const ::basegfx::BColor& aSourceColor)
const override;
314 SAL_DLLPRIVATE
virtual OUString getModifierName()
const override;
333 BColorModifier_gamma(
double fValue);
335 virtual ~BColorModifier_gamma()
override;
338 SAL_DLLPRIVATE
virtual bool operator==(
const BColorModifier& rCompare)
const override;
341 virtual ::basegfx::BColor getModifiedColor(const ::basegfx::BColor& aSourceColor)
const override;
342 SAL_DLLPRIVATE
virtual OUString getModifierName()
const override;
362 double mfContrastOff;
370 BColorModifier_RGBLuminanceContrast(
double fRed,
double fGreen,
double fBlue,
double fLuminance,
double fContrast);
372 virtual ~BColorModifier_RGBLuminanceContrast()
override;
375 SAL_DLLPRIVATE
virtual bool operator==(
const BColorModifier& rCompare)
const override;
378 SAL_DLLPRIVATE virtual ::basegfx::BColor getModifiedColor(const ::basegfx::BColor& aSourceColor)
const override;
379 SAL_DLLPRIVATE
virtual OUString getModifierName()
const override;
400 SAL_DLLPRIVATE virtual ::basegfx::BColor getModifiedColor(const ::basegfx::BColor& aSourceColor)
const override;
401 SAL_DLLPRIVATE
virtual OUString getModifierName()
const override;
422 return maBColorModifiers.size();
427 OSL_ENSURE(
nIndex <
count(),
"BColorModifierStack: Access out of range (!)");
428 return maBColorModifiers[
nIndex];
437 maBColorModifiers.push_back(rNew);
442 maBColorModifiers.pop_back();
#define BASEGFX_DLLPUBLIC
Class to hold a stack of BColorModifierSharedPtrs and to get the modified color with applying all exi...
const BColorModifierSharedPtr & getBColorModifier(sal_uInt32 nIndex) const
::std::vector< BColorModifierSharedPtr > maBColorModifiers
void push(const BColorModifierSharedPtr &rNew)
convert color to black and white
BColorModifier_black_and_white(double fValue)
Apply hueRotate This derivation is used for the svg importer and does exactly what SVG defines for th...
basegfx::B3DHomMatrix maHueMatrix
BColorModifier_interpolate(const ::basegfx::BColor &rBColor, double fValue)
::basegfx::BColor maBColor
convert to alpha based on luminance
BColorModifier_luminance_to_alpha()
Apply matrix This derivation is used for the svg importer and does exactly what SVG defines for this ...
BColorModifier_matrix(std::vector< double > aVector)
std::vector< double > maVector
BColorModifier_replace(const ::basegfx::BColor &rBColor)
const ::basegfx::BColor & getBColor() const
::basegfx::BColor maBColor
Apply saturation This derivation is used for the svg importer and does exactly what SVG defines for t...
basegfx::B3DHomMatrix maSatMatrix
base class to define color modifications
bool operator!=(const BColorModifier &rCompare) const
virtual OUString getModifierName() const =0
BColorModifier & operator=(const BColorModifier &)=delete
virtual bool operator==(const BColorModifier &rCompare) const =0
virtual ::basegfx::BColor getModifiedColor(const ::basegfx::BColor &aSourceColor) const =0
BColorModifier(const BColorModifier &)=delete
Base Color class with three double values.
std::shared_ptr< BColorModifier > BColorModifierSharedPtr
typedef to allow working with shared instances of BColorModifier for the whole mechanism
class UNLESS_MERGELIBS(BASEGFX_DLLPUBLIC) B2DTrapezoid
Gradient definition as used in ODF 1.2.
bool operator==(const XclFontData &rLeft, const XclFontData &rRight)