Go to the documentation of this file.
38 #ifndef STAR_FRAME_ATTRIBUTE
39 # define STAR_FRAME_ATTRIBUTE
51 void addInitTo(std::map<
int, std::shared_ptr<StarAttribute> > &whichToAttributeMap);
a brush attribute
Definition: StarFrameAttribute.cxx:328
STOFFColor m_color
the color
Definition: StarFrameAttribute.cxx:593
Definition: STOFFPosition.hxx:51
long m_height
the height
Definition: StarFrameAttribute.cxx:404
librevenge::RVNGPropertyList m_propertyList
the property list
Definition: STOFFGraphicStyle.hxx:66
a line numbering attribute
Definition: StarFrameAttribute.cxx:410
void printData(libstoff::DebugStream &o) const final
debug function to print the data
Definition: StarFrameAttribute.cxx:347
bool read(StarZone &zone, int vers, long endPos, StarObject &object) final
read a zone
Definition: StarFrameAttribute.cxx:1262
virtual class used to store the different attribute
Definition: StarAttribute.hxx:62
STOFFGraphicStyle m_graphic
the graphic style
Definition: StarState.hxx:177
int m_position
the position(none, lt, mt, rt, lm, mm, rm, lb, mb, rb, area, tiled)
Definition: StarGraphicStruct.hxx:94
void setSize(STOFFVec2f const &size)
utility function to set a size in point
Definition: STOFFPosition.hxx:108
Definition: StarAttribute.hxx:161
int m_transparency
the trans?
Definition: StarFrameAttribute.cxx:591
int m_break
a page/column break: 1=columnBefore, 2=columnAfter, 3=columnBoth, 4=pageBefore, 5=pageAfter,...
Definition: StarState.hxx:170
std::shared_ptr< StarAttribute > create() const final
create a new attribute
Definition: StarFrameAttribute.cxx:58
Type
the attribute list
Definition: StarAttribute.hxx:66
int m_distance
the distance
Definition: StarFrameAttribute.cxx:320
StarFAttributeLineNumbering(Type type, std::string const &debugName)
constructor
Definition: StarFrameAttribute.cxx:414
libstoff::DebugFile & ascii()
returns the ascii file
Definition: StarZone.hxx:254
void addTo(StarState &state, std::set< StarAttribute const * > &) const final
add to a frame style
Definition: StarFrameAttribute.cxx:193
#define STOFF_DEBUG_MSG(M)
Definition: libstaroffice_internal.hxx:129
void addTo(StarState &state, std::set< StarAttribute const * > &) const final
add to a cell/font/graphic style
Definition: StarFrameAttribute.cxx:743
long m_width
the width
Definition: StarFrameAttribute.cxx:402
void printData(libstoff::DebugStream &o) const final
debug function to print the data
Definition: StarFrameAttribute.cxx:382
STOFFFrameStyle m_frame
the frame style
Definition: StarState.hxx:175
void addTo(StarState &state, std::set< StarAttribute const * > &) const final
add to a cell/graphic style
Definition: StarFrameAttribute.cxx:1018
a shadow attribute
Definition: StarFrameAttribute.cxx:547
StarFAttributeOrientation(Type type, std::string const &debugName)
constructor
Definition: StarFrameAttribute.cxx:502
Type m_type
the type
Definition: StarAttribute.hxx:805
void addTo(StarState &state, std::set< StarAttribute const * > &) const final
add to a paragraph/page
Definition: StarFrameAttribute.cxx:888
std::shared_ptr< StarAttribute > create() const final
create a new attribute
Definition: StarFrameAttribute.cxx:421
a surround attribute
Definition: StarFrameAttribute.cxx:601
std::shared_ptr< StarAttribute > create() const final
create a new attribute
Definition: StarFrameAttribute.cxx:168
std::shared_ptr< StarAttribute > create() const final
create a new attribute
Definition: StarFrameAttribute.cxx:461
STOFFColor m_fillColor
the fill color
Definition: StarFrameAttribute.cxx:595
int m_relat
the relative position, FRAME, PRTAREA, CHAR, PG_LEFT, PG_RIGTH, FRM_LEFT, FRM_RIGHT,...
Definition: StarFrameAttribute.cxx:541
StarFAttributeLRSpace(Type type, std::string const &debugName)
constructor
Definition: StarFrameAttribute.cxx:452
bool hasUniqueColor() const
returns true is the brush has unique color
Definition: StarGraphicStruct.hxx:72
Definition: StarAttribute.hxx:147
std::shared_ptr< StarAttribute > create() const final
create a new attribute
Definition: StarFrameAttribute.cxx:511
a void attribute
Definition: StarFrameAttribute.cxx:157
bool read(StarZone &zone, int vers, long endPos, StarObject &object) final
read a zone
Definition: StarFrameAttribute.cxx:1335
AnchorTo
a list of enum used to defined the anchor
Definition: STOFFPosition.hxx:51
void printData(libstoff::DebugStream &o) const final
debug function to print the data
Definition: StarFrameAttribute.cxx:621
std::shared_ptr< StarAttribute > create() const final
create a new attribute
Definition: StarFrameAttribute.cxx:562
StarFAttributeVoid(Type type, std::string const &debugName)
constructor
Definition: StarFrameAttribute.cxx:161
Definition: StarAttribute.hxx:163
int m_propMargins[2]
the prop margins: top, bottom
Definition: StarFrameAttribute.cxx:681
librevenge::RVNGPropertyList m_propertyList
the property list
Definition: STOFFFont.hxx:84
Definition: STOFFPosition.hxx:51
a border line
Definition: libstaroffice_internal.hxx:326
void addAttributeColor(std::map< int, std::shared_ptr< StarAttribute > > &map, StarAttribute::Type type, std::string const &debugName, STOFFColor const &defValue)
add a color attribute
Definition: StarFrameAttribute.cxx:209
std::string str() const
print the color in the form #rrggbb
Definition: libstaroffice_internal.cxx:226
Definition: StarAttribute.hxx:265
int m_orient
the orientation: -horizontal:NONE,RIGHT,CENTER, LEFT,INSIDE,OUTSIDE,FULL, LEFT_AND_WIDTH -vertical:NO...
Definition: StarFrameAttribute.cxx:539
void addAttributeInt(std::map< int, std::shared_ptr< StarAttribute > > &map, StarAttribute::Type type, std::string const &debugName, int numBytes, int defValue)
add a int attribute
Definition: StarFrameAttribute.cxx:214
int m_margins[3]
the margins: left, right, firstline
Definition: StarFrameAttribute.cxx:488
bool read(StarZone &zone, int vers, long endPos, StarObject &object) final
read a zone
Definition: StarFrameAttribute.cxx:1283
the class to store a color
Definition: libstaroffice_internal.hxx:189
bool read(StarZone &zone, int vers, long endPos, StarObject &object) final
read a zone
Definition: StarFrameAttribute.cxx:1312
std::shared_ptr< StarAttribute > create() const final
create a new attribute
Definition: StarFrameAttribute.cxx:245
std::shared_ptr< StarAttribute > create() const final
create a new attribute
Definition: StarFrameAttribute.cxx:654
bool read(StarZone &zone, int vers, long endPos, StarObject &object) override
read a zone
Definition: StarAttribute.cxx:515
int m_anchorIndex
the anchor index: used to relate to find the character related to at_char
Definition: STOFFFrameStyle.hxx:75
class to store an state: ie.
Definition: StarState.hxx:67
STOFFVec2f m_size
the size in point
Definition: STOFFPosition.hxx:149
void addAttributeVoid(std::map< int, std::shared_ptr< StarAttribute > > &map, StarAttribute::Type type, std::string const &debugName)
add a void attribute
Definition: StarFrameAttribute.cxx:224
bool read(StarZone &zone, int vers, long endPos, StarObject &object) final
read a zone
Definition: StarFrameAttribute.cxx:1159
StarFAttributeUInt(Type type, std::string const &debugName, int intSize, unsigned int value)
constructor
Definition: StarFrameAttribute.cxx:122
int m_textLeft
the text left
Definition: StarFrameAttribute.cxx:492
~StarFAttributeVoid() final
destructor
Definition: StarFrameAttribute.cxx:179
small class use to define a embedded object
Definition: libstaroffice_internal.hxx:408
librevenge::RVNGPropertyList m_propertyList
the property list
Definition: STOFFCellStyle.hxx:63
bool getPattern(STOFFEmbeddedObject &object, STOFFVec2i &sz) const
try to return a pattern corresponding to the brush
Definition: StarGraphicStruct.cxx:434
a anchor attribute
Definition: StarFrameAttribute.cxx:234
static std::string str()
Definition: STOFFDebug.hxx:203
librevenge::RVNGPropertyList m_propertyList
the property list
Definition: STOFFFrameStyle.hxx:71
~StarFAttributeColor() final
destructor
Definition: StarFrameAttribute.cxx:93
bool isWhite() const
return true if the color is white
Definition: libstaroffice_internal.hxx:282
StarFAttributeBool(Type type, std::string const &debugName, bool value)
constructor
Definition: StarFrameAttribute.cxx:53
bool read(StarZone &zone, int vers, long endPos, StarObject &object) final
read a zone
Definition: StarFrameAttribute.cxx:1218
bool read(StarZone &zone, int vers, long endPos, StarObject &object) final
read a zone
Definition: StarFrameAttribute.cxx:1119
long m_start
the name value
Definition: StarFrameAttribute.cxx:442
int m_frmType
the type
Definition: StarFrameAttribute.cxx:400
StarFAttributeFrameSize(Type type, std::string const &debugName)
constructor
Definition: StarFrameAttribute.cxx:364
int m_distance
the border distance
Definition: libstaroffice_internal.hxx:359
void addTo(StarState &state, std::set< StarAttribute const * > &) const final
add to a para
Definition: StarFrameAttribute.cxx:878
a unsigned integer attribute
Definition: StarAttribute.hxx:946
void addTo(StarState &state, std::set< StarAttribute const * > &) const final
add to a page
Definition: StarFrameAttribute.cxx:864
Definition: StarAttribute.hxx:159
bool m_posToggle
a posToggle flag
Definition: StarFrameAttribute.cxx:543
bool getColor(STOFFColor &color) const
try to return a color corresponding to the brush
Definition: StarGraphicStruct.cxx:420
Definition: StarAttribute.hxx:152
int m_width
the width in twip
Definition: StarFrameAttribute.cxx:589
std::shared_ptr< STOFFInputStream > STOFFInputStreamPtr
a smart pointer of STOFFInputStream
Definition: libstaroffice_internal.hxx:485
bool read(StarZone &zone, int vers, long endPos, StarObject &object) final
read a zone
Definition: StarFrameAttribute.cxx:1201
Definition: StarAttribute.hxx:149
void addInitTo(std::map< int, std::shared_ptr< StarAttribute > > &map)
adds frame attribute to the general it to attribute map
Definition: StarFrameAttribute.cxx:1355
a character integer attribute
Definition: StarFrameAttribute.cxx:97
Class to store a brush.
Definition: StarGraphicStruct.hxx:51
int m_surround
the main value: NONE, THROUGH, PARALLEL, IDEAL, LEFT, RIGHT, END
Definition: StarFrameAttribute.cxx:637
a zone in a StarOffice file
Definition: StarZone.hxx:56
int getRecordLevel() const
returns the record level
Definition: StarZone.hxx:195
an object corresponding to an OLE directory
Definition: StarObject.hxx:64
bool m_bools[4]
the ideal,anchorOnly, contour, outside
Definition: StarFrameAttribute.cxx:639
void addTo(StarState &state, std::set< StarAttribute const * > &) const final
add to a cell/graphic/paragraph style
Definition: StarFrameAttribute.cxx:684
void printData(libstoff::DebugStream &o) const final
debug function to print the data
Definition: StarFrameAttribute.cxx:520
int m_index
the index (page?)
Definition: StarFrameAttribute.cxx:268
void addTo(StarState &state, std::set< StarAttribute const * > &) const final
add to a frame style
Definition: StarFrameAttribute.cxx:183
void printData(libstoff::DebugStream &o) const final
debug function to print the data
Definition: StarFrameAttribute.cxx:663
a orientation attribute
Definition: StarFrameAttribute.cxx:498
Definition: StarAttribute.hxx:171
void addAttributeUInt(std::map< int, std::shared_ptr< StarAttribute > > &map, StarAttribute::Type type, std::string const &debugName, int numBytes, unsigned int defValue)
add a unsigned int attribute
Definition: StarFrameAttribute.cxx:219
STOFFFont m_font
the font
Definition: StarState.hxx:182
Definition: StarAttribute.hxx:165
unsigned int m_value
Definition: StarAttribute.hxx:978
namespace used to contain frame attributes
Definition: StarFrameAttribute.cxx:46
void printData(libstoff::DebugStream &o) const final
debug function to print the data
Definition: StarFrameAttribute.cxx:292
Definition: STOFFDebug.hxx:194
Definition: StarAttribute.hxx:160
Definition: StarAttribute.hxx:225
int m_inWidth
the inline width in TWIP
Definition: libstaroffice_internal.hxx:355
Definition: StarAttribute.hxx:88
librevenge::RVNGPropertyList m_propertyList
the property list
Definition: STOFFPosition.hxx:153
void setAnchor(AnchorTo anchor)
set the anchor
Definition: STOFFPosition.hxx:121
bool read(StarZone &zone, int vers, long endPos, StarObject &object) final
read a zone
Definition: StarFrameAttribute.cxx:1083
bool m_value
Definition: StarAttribute.hxx:841
a color attribute
Definition: StarAttribute.hxx:845
STOFFPosition m_position
the position
Definition: STOFFFrameStyle.hxx:73
bool addTo(librevenge::RVNGPropertyList &propList, std::string which="") const
add the border property to proplist (if needed )
Definition: libstaroffice_internal.cxx:256
StarGraphicStruct::StarBrush m_brush
the brush
Definition: StarFrameAttribute.cxx:356
a character color attribute
Definition: StarFrameAttribute.cxx:71
void addTo(StarState &state, std::set< StarAttribute const * > &) const final
add to a cell/graphic style
Definition: StarFrameAttribute.cxx:1042
STOFFVec2< float > STOFFVec2f
STOFFVec2 of float.
Definition: libstaroffice_internal.hxx:767
a character bool attribute
Definition: StarFrameAttribute.cxx:49
void addTo(StarState &state, std::set< StarAttribute const * > &) const final
add to a page/paragraph
Definition: StarFrameAttribute.cxx:1055
a character unsigned integer attribute
Definition: StarFrameAttribute.cxx:118
STOFFColor m_color
the border color
Definition: libstaroffice_internal.hxx:357
int32_t m_position
the position in twip
Definition: StarFrameAttribute.cxx:534
int m_distances[4]
the padding distance: top, left, right, bottom
Definition: StarFrameAttribute.cxx:324
bool read(StarZone &zone, int vers, long endPos, StarObject &object) final
read a zone
Definition: StarFrameAttribute.cxx:1179
int m_propMargins[3]
the prop margins: left, right, firstline
Definition: StarFrameAttribute.cxx:490
bool read(StarZone &zone, int vers, long endPos, StarObject &object) final
read a zone
Definition: StarFrameAttribute.cxx:127
void printData(libstoff::DebugStream &o) const final
debug function to print the data
Definition: StarFrameAttribute.cxx:254
int m_margins[2]
the margins: top, bottom
Definition: StarFrameAttribute.cxx:679
#define STOFF_N_ELEMENTS(m)
Definition: libstaroffice_internal.hxx:119
void addAttributeBool(std::map< int, std::shared_ptr< StarAttribute > > &map, StarAttribute::Type type, std::string const &debugName, bool defValue)
add a bool attribute
Definition: StarFrameAttribute.cxx:204
void printData(libstoff::DebugStream &o) const final
debug function to print the data
Definition: StarFrameAttribute.cxx:470
std::shared_ptr< StarAttribute > create() const final
create a new attribute
Definition: StarFrameAttribute.cxx:373
Definition: STOFFPosition.hxx:51
StarFAttributeULSpace(Type type, std::string const &debugName)
constructor
Definition: StarFrameAttribute.cxx:647
void printData(libstoff::DebugStream &o) const final
debug function to print the data
Definition: StarFrameAttribute.cxx:430
double convertInPoint(double val) const
return the relative units
Definition: StarState.hxx:150
STOFFCellStyle m_cell
the cell style
Definition: StarState.hxx:173
Definition: StarAttribute.hxx:150
static void addPos(long)
Definition: STOFFDebug.hxx:223
void addTo(StarState &state, std::set< StarAttribute const * > &) const final
add to a cell/graphic/paragraph style
Definition: StarFrameAttribute.cxx:715
StarFAttributeColor(Type type, std::string const &debugName, STOFFColor const &value)
constructor
Definition: StarFrameAttribute.cxx:75
STOFFBorderLine m_borders[4]
the border list: top, left, right, bottom
Definition: StarFrameAttribute.cxx:322
STOFFVec2i m_percent
the percent value
Definition: StarFrameAttribute.cxx:406
std::shared_ptr< StarAttribute > create() const final
create a new attribute
Definition: StarFrameAttribute.cxx:145
a frameSize attribute
Definition: StarFrameAttribute.cxx:360
void addTo(StarState &state, std::set< StarAttribute const * > &) const final
add to a cell style
Definition: StarFrameAttribute.cxx:934
StarFAttributeSurround(Type type, std::string const &debugName)
constructor
Definition: StarFrameAttribute.cxx:605
STOFFParagraph m_paragraph
the paragraph style
Definition: StarState.hxx:180
int m_location
the location 0-4
Definition: StarFrameAttribute.cxx:587
a top, bottom, ... attribute
Definition: StarFrameAttribute.cxx:643
Definition: STOFFPosition.hxx:51
std::shared_ptr< StarAttribute > create() const final
create a new attribute
Definition: StarFrameAttribute.cxx:82
std::shared_ptr< GlobalState > m_global
global state
Definition: StarState.hxx:165
void attribute of StarAttribute
Definition: StarAttribute.hxx:1058
Definition: STOFFDebug.hxx:210
std::shared_ptr< StarAttribute > create() const final
create a new attribute
Definition: StarFrameAttribute.cxx:108
StarFAttributeBrush(Type type, std::string const &debugName)
constructor
Definition: StarFrameAttribute.cxx:332
std::string m_debugName
the debug name
Definition: StarAttribute.hxx:807
bool read(StarZone &zone, int nVers, long endPos, StarObject &document)
try to read a brush
Definition: StarGraphicStruct.cxx:498
a border attribute
Definition: StarFrameAttribute.cxx:272
Definition: StarAttribute.hxx:221
void printData(libstoff::DebugStream &o) const final
debug function to print the data
Definition: StarFrameAttribute.cxx:571
std::shared_ptr< StarAttribute > create() const final
create a new attribute
Definition: StarFrameAttribute.cxx:338
static void addNote(char const *)
Definition: STOFFDebug.hxx:224
bool isEmpty() const
returns true if the brush is empty
Definition: StarGraphicStruct.hxx:67
Definition: StarAttribute.hxx:174
StarFAttributeInt(Type type, std::string const &debugName, int intSize, int value)
constructor
Definition: StarFrameAttribute.cxx:101
std::shared_ptr< StarAttribute > create() const final
create a new attribute
Definition: StarFrameAttribute.cxx:283
bool m_autoFirst
a bool
Definition: StarFrameAttribute.cxx:494
librevenge::RVNGPropertyList m_propertyList
the properties
Definition: STOFFParagraph.hxx:73
STOFFInputStreamPtr input()
return the zone input
Definition: StarZone.hxx:247
a left, right, ... attribute
Definition: StarFrameAttribute.cxx:448
STOFFVec2< int > STOFFVec2i
STOFFVec2 of int.
Definition: libstaroffice_internal.hxx:763
Definition: StarAttribute.hxx:223
Definition: StarAttribute.hxx:164
StarFAttributeBorder(Type type, std::string const &debugName)
constructor
Definition: StarFrameAttribute.cxx:276
Definition: STOFFPosition.hxx:51
StarFAttributeAnchor(Type type, std::string const &debugName)
constructor
Definition: StarFrameAttribute.cxx:238
int m_style
the style
Definition: StarFrameAttribute.cxx:597
Definition: StarAttribute.hxx:162
int m_outWidth
the outline width in TWIP
Definition: libstaroffice_internal.hxx:353
Definition: StarAttribute.hxx:378
an integer attribute
Definition: StarAttribute.hxx:907
std::shared_ptr< StarAttribute > create() const final
create a new attribute
Definition: StarFrameAttribute.cxx:612
int m_transparency
the transparency
Definition: StarGraphicStruct.hxx:85
StarFAttributeShadow(Type type, std::string const &debugName)
constructor
Definition: StarFrameAttribute.cxx:551
a boolean attribute
Definition: StarAttribute.hxx:814
void addTo(StarState &state, std::set< StarAttribute const * > &) const final
add to a frame style
Definition: StarFrameAttribute.cxx:189
int m_anchor
the anchor
Definition: StarFrameAttribute.cxx:266
bool m_countLines
the countLines flag
Definition: StarFrameAttribute.cxx:444
Generated on Mon Jan 20 2020 23:02:17 for libstaroffice by
doxygen 1.8.16