a color attribute More...
#include <StarAttribute.hxx>
Public Member Functions | |
StarAttributeColor (Type type, std::string const &debugName, STOFFColor const &value) | |
constructor | |
virtual shared_ptr< StarAttribute > | create () const |
create a new attribute | |
virtual bool | read (StarZone &zone, int vers, long endPos, StarObject &object) |
read a zone | |
virtual void | printData (libstoff::DebugStream &o) const |
debug function to print the data | |
Protected Member Functions | |
StarAttributeColor (StarAttributeColor const &orig) | |
copy constructor | |
Protected Attributes | |
STOFFColor | m_value |
the color value | |
STOFFColor | m_defValue |
the default value |
a color attribute
StarAttributeColor::StarAttributeColor | ( | Type | type, |
std::string const & | debugName, | ||
STOFFColor const & | value | ||
) | [inline] |
constructor
Referenced by create().
StarAttributeColor::StarAttributeColor | ( | StarAttributeColor const & | orig | ) | [inline, protected] |
copy constructor
virtual shared_ptr<StarAttribute> StarAttributeColor::create | ( | ) | const [inline, virtual] |
create a new attribute
Implements StarAttribute.
Reimplemented in StarParagraphAttribute::StarPAttributeColor, StarGraphicAttribute::StarGAttributeColor, StarCharAttribute::StarCAttributeColor, StarPageAttribute::StarPAttributeColor, and StarCellAttribute::StarCAttributeColor.
virtual void StarAttributeColor::printData | ( | libstoff::DebugStream & | o | ) | const [inline, virtual] |
debug function to print the data
Reimplemented from StarAttribute.
bool StarAttributeColor::read | ( | StarZone & | zone, |
int | vers, | ||
long | endPos, | ||
StarObject & | object | ||
) | [virtual] |
read a zone
Implements StarAttribute.
STOFFColor StarAttributeColor::m_defValue [protected] |
the default value
Referenced by read().
STOFFColor StarAttributeColor::m_value [protected] |
the color value
Referenced by StarCharAttribute::StarCAttributeColor::addTo(), printData(), and read().