a border attribute More...
Public Member Functions | |
StarGAttributeBorder (Type type, std::string const &debugName) | |
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 | addTo (StarState &state, std::set< StarAttribute const * > &) const |
add to a cell/graphic/paragraph style | |
virtual void | printData (libstoff::DebugStream &o) const |
debug function to print the data | |
Protected Member Functions | |
StarGAttributeBorder (StarGAttributeBorder const &orig) | |
copy constructor | |
Protected Attributes | |
int | m_distance |
the distance | |
STOFFBorderLine | m_borders [4] |
the border list: top, left, right, bottom | |
int | m_distances [4] |
the padding distance: top, left, right, bottom |
a border attribute
StarGraphicAttribute::StarGAttributeBorder::StarGAttributeBorder | ( | Type | type, |
std::string const & | debugName | ||
) | [inline] |
constructor
Referenced by create().
StarGraphicAttribute::StarGAttributeBorder::StarGAttributeBorder | ( | StarGAttributeBorder const & | orig | ) | [inline, protected] |
copy constructor
void StarGraphicAttribute::StarGAttributeBorder::addTo | ( | StarState & | state, |
std::set< StarAttribute const * > & | |||
) | const [virtual] |
add to a cell/graphic/paragraph style
Reimplemented from StarAttribute.
virtual shared_ptr<StarAttribute> StarGraphicAttribute::StarGAttributeBorder::create | ( | ) | const [inline, virtual] |
create a new attribute
Implements StarAttribute.
virtual void StarGraphicAttribute::StarGAttributeBorder::printData | ( | libstoff::DebugStream & | o | ) | const [inline, virtual] |
bool StarGraphicAttribute::StarGAttributeBorder::read | ( | StarZone & | zone, |
int | vers, | ||
long | endPos, | ||
StarObject & | object | ||
) | [virtual] |
read a zone
Implements StarAttribute.
the border list: top, left, right, bottom
Referenced by addTo(), printData(), read(), and StarGAttributeBorder().
int StarGraphicAttribute::StarGAttributeBorder::m_distance [protected] |
the distance
Referenced by printData(), and read().
int StarGraphicAttribute::StarGAttributeBorder::m_distances[4] [protected] |
the padding distance: top, left, right, bottom
Referenced by addTo(), printData(), read(), and StarGAttributeBorder().