LibreOffice Module editeng (master) 1
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
SvxColorItem Class Referencefinal

SvxColorItem item describes a color. More...

#include <colritem.hxx>

Inheritance diagram for SvxColorItem:
[legend]
Collaboration diagram for SvxColorItem:
[legend]

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 SvxColorItemClone (SfxItemPool *pPool=nullptr) const override
 
 SvxColorItem (SvxColorItem const &)=default
 
const ColorGetValue () const
 
void SetValue (const Color &rNewColor)
 
const ColorgetColor () 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 SfxPoolItemClone (SfxItemPool *pPool=nullptr) const=0
 
std::unique_ptr< SfxPoolItemCloneSetWhich (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 SfxPoolItemCreateDefault ()
 

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)
 

Detailed Description

SvxColorItem item describes a color.

Definition at line 31 of file colritem.hxx.

Constructor & Destructor Documentation

◆ SvxColorItem() [1/4]

SvxColorItem::SvxColorItem ( const sal_uInt16  nId)
explicit

Definition at line 1377 of file textitem.cxx.

References COL_BLACK(), and nId.

Referenced by Clone(), and CreateDefault().

◆ SvxColorItem() [2/4]

SvxColorItem::SvxColorItem ( const Color aColor,
const sal_uInt16  nId 
)

Definition at line 1383 of file textitem.cxx.

References nId.

◆ SvxColorItem() [3/4]

SvxColorItem::SvxColorItem ( const Color aColor,
model::ComplexColor const &  rComplexColor,
const sal_uInt16  nId 
)

Definition at line 1389 of file textitem.cxx.

References nId.

◆ ~SvxColorItem()

SvxColorItem::~SvxColorItem ( )
overridevirtual

Definition at line 1396 of file textitem.cxx.

◆ SvxColorItem() [4/4]

SvxColorItem::SvxColorItem ( SvxColorItem const &  )
default

Member Function Documentation

◆ Clone()

SvxColorItem * SvxColorItem::Clone ( SfxItemPool pPool = nullptr) const
overridevirtual

Implements SfxPoolItem.

Definition at line 1586 of file textitem.cxx.

References SvxColorItem().

◆ CreateDefault()

SfxPoolItem * SvxColorItem::CreateDefault ( )
static

Definition at line 99 of file textitem.cxx.

References SvxColorItem().

◆ dumpAsXml()

void SvxColorItem::dumpAsXml ( xmlTextWriterPtr  pWriter) const
overridevirtual

◆ getColor()

const Color & SvxColorItem::getColor ( ) const
inline

Definition at line 66 of file colritem.hxx.

◆ getComplexColor()

model::ComplexColor const & SvxColorItem::getComplexColor ( ) const
inline

Definition at line 75 of file colritem.hxx.

◆ GetPresentation()

bool SvxColorItem::GetPresentation ( SfxItemPresentation  ePres,
MapUnit  eCoreMetric,
MapUnit  ePresMetric,
OUString &  rText,
const IntlWrapper rIntlWrapper 
) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 1591 of file textitem.cxx.

References GetColorString(), and mColor.

Referenced by dumpAsXml().

◆ GetValue()

const Color & SvxColorItem::GetValue ( ) const
inline

◆ operator==()

bool SvxColorItem::operator== ( const SfxPoolItem rPoolItem) const
overridevirtual

Implements SfxPoolItem.

Definition at line 1400 of file textitem.cxx.

References maComplexColor, and mColor.

◆ PutValue()

bool SvxColorItem::PutValue ( const css::uno::Any &  rVal,
sal_uInt8  nMemberId 
)
overridevirtual

◆ QueryValue()

bool SvxColorItem::QueryValue ( css::uno::Any &  rVal,
sal_uInt8  nMemberId = 0 
) const
overridevirtual

◆ setColor()

void SvxColorItem::setColor ( const Color rNewColor)
inline

Definition at line 70 of file colritem.hxx.

◆ setComplexColor()

void SvxColorItem::setComplexColor ( model::ComplexColor const &  rComplexColor)
inline

Definition at line 76 of file colritem.hxx.

◆ SetValue()

void SvxColorItem::SetValue ( const Color rNewColor)
inline

Definition at line 61 of file colritem.hxx.

Referenced by legacy::SvxColor::Create().

Member Data Documentation

◆ maComplexColor

model::ComplexColor SvxColorItem::maComplexColor
private

Definition at line 35 of file colritem.hxx.

Referenced by dumpAsXml(), operator==(), PutValue(), and QueryValue().

◆ mColor

Color SvxColorItem::mColor
private

Definition at line 34 of file colritem.hxx.

Referenced by dumpAsXml(), GetPresentation(), operator==(), PutValue(), and QueryValue().


The documentation for this class was generated from the following files: