LibreOffice Module editeng (master) 1
|
SvxColorItem item describes a color. More...
#include <colritem.hxx>
Public Member Functions | |
SvxColorItem (const sal_uInt16 nId) | |
SvxColorItem (const Color &aColor, const sal_uInt16 nId) | |
SvxColorItem (const Color &aColor, model::ComplexColor const &rComplexColor, const sal_uInt16 nId) | |
virtual | ~SvxColorItem () override |
virtual bool | operator== (const SfxPoolItem &rPoolItem) const override |
virtual bool | QueryValue (css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override |
virtual bool | PutValue (const css::uno::Any &rVal, sal_uInt8 nMemberId) override |
virtual bool | GetPresentation (SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &rIntlWrapper) const override |
virtual SvxColorItem * | Clone (SfxItemPool *pPool=nullptr) const override |
SvxColorItem (SvxColorItem const &)=default | |
const Color & | GetValue () const |
void | SetValue (const Color &rNewColor) |
const Color & | getColor () const |
void | setColor (const Color &rNewColor) |
model::ComplexColor const & | getComplexColor () const |
void | setComplexColor (model::ComplexColor const &rComplexColor) |
void | dumpAsXml (xmlTextWriterPtr pWriter) const override |
Public Member Functions inherited from SfxPoolItem | |
void | AddRef (sal_uInt32 n=1) const |
virtual | ~SfxPoolItem () |
void | SetWhich (sal_uInt16 nId) |
sal_uInt16 | Which () const |
T & | StaticWhichCast (TypedWhichId< T > nId) |
const T & | StaticWhichCast (TypedWhichId< T > nId) const |
T * | DynamicWhichCast (TypedWhichId< T > nId) |
const T * | DynamicWhichCast (TypedWhichId< T > nId) const |
virtual bool | operator== (const SfxPoolItem &) const=0 |
bool | operator!= (const SfxPoolItem &rItem) const |
virtual bool | operator< (const SfxPoolItem &) const |
virtual bool | IsSortable () const |
virtual bool | HasLookup () const |
virtual lookup_iterator | Lookup (lookup_iterator, lookup_iterator end) const |
virtual bool | GetPresentation (SfxItemPresentation ePresentation, MapUnit eCoreMetric, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &rIntlWrapper) const |
virtual void | ScaleMetrics (tools::Long lMult, tools::Long lDiv) |
virtual bool | HasMetrics () const |
virtual bool | QueryValue (css::uno::Any &rVal, sal_uInt8 nMemberId=0) const |
virtual bool | PutValue (const css::uno::Any &rVal, sal_uInt8 nMemberId) |
virtual SfxPoolItem * | Clone (SfxItemPool *pPool=nullptr) const=0 |
std::unique_ptr< SfxPoolItem > | CloneSetWhich (sal_uInt16 nNewWhich) const |
std::unique_ptr< T > | CloneSetWhich (TypedWhichId< T > nId) const |
sal_uInt32 | GetRefCount () const |
SfxItemKind | GetKind () const |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const |
virtual boost::property_tree::ptree | dumpAsJSON () const |
virtual bool | IsVoidItem () const |
Static Public Member Functions | |
static SfxPoolItem * | CreateDefault () |
Private Attributes | |
Color | mColor |
model::ComplexColor | maComplexColor |
Additional Inherited Members | |
Public Types inherited from SfxPoolItem | |
typedef std::vector< SfxPoolItem * >::const_iterator | lookup_iterator |
Protected Member Functions inherited from SfxPoolItem | |
SfxPoolItem (sal_uInt16 nWhich=0) | |
SfxPoolItem (const SfxPoolItem &rCopy) | |
SvxColorItem item describes a color.
Definition at line 31 of file colritem.hxx.
|
explicit |
Definition at line 1377 of file textitem.cxx.
References COL_BLACK(), and nId.
Referenced by Clone(), and CreateDefault().
SvxColorItem::SvxColorItem | ( | const Color & | aColor, |
const sal_uInt16 | nId | ||
) |
Definition at line 1383 of file textitem.cxx.
References nId.
SvxColorItem::SvxColorItem | ( | const Color & | aColor, |
model::ComplexColor const & | rComplexColor, | ||
const sal_uInt16 | nId | ||
) |
Definition at line 1389 of file textitem.cxx.
References nId.
|
overridevirtual |
Definition at line 1396 of file textitem.cxx.
|
default |
|
overridevirtual |
|
static |
Definition at line 99 of file textitem.cxx.
References SvxColorItem().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 1603 of file textitem.cxx.
References aStr, GetPresentation(), model::ComplexColor::getTransformations(), maComplexColor, mColor, model::ComplexColor::meType, OUStringToOString(), and SfxPoolItem::Which().
|
inline |
Definition at line 66 of file colritem.hxx.
|
inline |
Definition at line 75 of file colritem.hxx.
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 1591 of file textitem.cxx.
References GetColorString(), and mColor.
Referenced by dumpAsXml().
|
inline |
Definition at line 57 of file colritem.hxx.
Referenced by legacy::SvxColor::Store(), ImpEditEngine::WriteItemAsRTF(), and ImpEditEngine::WriteRTF().
|
overridevirtual |
Implements SfxPoolItem.
Definition at line 1400 of file textitem.cxx.
References maComplexColor, and mColor.
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 1486 of file textitem.cxx.
References model::ComplexColor::addTransformation(), Any2Bool(), model::color::convertFromJSON(), model::convertToThemeColorType(), basegfx::fround(), model::color::getFromXComplexColor(), model::LumMod, model::LumOff, maComplexColor, mColor, MID_COLOR_ALPHA, MID_COLOR_LUM_MOD, MID_COLOR_LUM_OFF, MID_COLOR_RGB, MID_COLOR_THEME_INDEX, MID_COLOR_TINT_OR_SHADE, MID_COMPLEX_COLOR, MID_COMPLEX_COLOR_JSON, MID_GRAPHIC_TRANSPARENT, nIndex, OUStringToOString(), model::ComplexColor::removeTransformations(), Color::SetAlpha(), model::ComplexColor::setSchemeColor(), model::Shade, and model::Tint.
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 1409 of file textitem.cxx.
References model::color::convertToJSON(), model::color::createXComplexColor(), basegfx::fround(), Color::GetAlpha(), model::ComplexColor::getTransformations(), model::LumMod, model::LumOff, maComplexColor, mColor, model::ComplexColor::meSchemeType, MID_COLOR_ALPHA, MID_COLOR_LUM_MOD, MID_COLOR_LUM_OFF, MID_COLOR_RGB, MID_COLOR_THEME_INDEX, MID_COLOR_TINT_OR_SHADE, MID_COMPLEX_COLOR, MID_COMPLEX_COLOR_JSON, MID_GRAPHIC_TRANSPARENT, nValue, model::Shade, and model::Tint.
|
inline |
Definition at line 70 of file colritem.hxx.
|
inline |
Definition at line 76 of file colritem.hxx.
|
inline |
Definition at line 61 of file colritem.hxx.
Referenced by legacy::SvxColor::Create().
|
private |
Definition at line 35 of file colritem.hxx.
Referenced by dumpAsXml(), operator==(), PutValue(), and QueryValue().
|
private |
Definition at line 34 of file colritem.hxx.
Referenced by dumpAsXml(), GetPresentation(), operator==(), PutValue(), and QueryValue().