generic class used to store shape in MWAWDraftParser More...
Public Types | |
enum | Type { Basic , Bitmap , Group , Text , QuotationSurface , Unknown } |
the different shape More... | |
Public Member Functions | |
Shape () | |
constructor | |
MWAWBox2f | getBdBox () const |
return the shape bdbox | |
void | translate (MWAWVec2f const &dir) |
translate a shape | |
void | transform (float rotate, bool flipX, MWAWVec2f const ¢er) |
transform a shape | |
Static Public Member Functions | |
static MWAWBox2f | rotateBox (MWAWBox2f const &box, float angle, MWAWVec2f const ¢er) |
returns the rotation of a box | |
Public Attributes | |
Type | m_type |
the graphic type | |
int | m_fileType |
the file type | |
MWAWBox2f | m_box |
the shape bdbox | |
MWAWVec2f | m_origin |
the shape origin | |
MWAWGraphicStyle | m_style |
the graphic style | |
MWAWGraphicShape | m_shape |
the graphic shape ( for basic geometric form ) | |
std::vector< MWAWGraphicStyle > | m_otherStyleList |
the other graphic style ( for complex basic geometric form ) | |
std::vector< MWAWGraphicShape > | m_otherShapeList |
other graphic shapes ( for complex basic geometric form ) | |
bool | m_isLine |
flag to know if the shape is a line | |
long | m_id |
the shape id | |
long | m_parentId |
the parent id | |
long | m_modifierId |
the modifier id | |
long | m_nameId |
the name id | |
std::map< long, MWAWFont > | m_posToFontMap |
the font ( for a text box) | |
MWAWParagraph | m_paragraph |
the paragraph ( for a text box) | |
MWAWEntry | m_textEntry |
the textbox entry (main text) | |
std::vector< int > | m_childList |
the child list id ( for a group ) | |
std::vector< int > | m_bitmapIdList |
the list of bitmap id ( for a bitmap) | |
std::vector< MWAWBox2i > | m_bitmapDimensionList |
the list of bitmap dimension ( for a bitmap) | |
bool | m_isSent |
a flag used to know if the object is sent to the listener or not | |
generic class used to store shape in MWAWDraftParser
|
inline |
constructor
|
inline |
return the shape bdbox
Referenced by MacDraft5Parser::send().
|
inlinestatic |
returns the rotation of a box
Referenced by transform().
|
inline |
transform a shape
|
inline |
translate a shape
std::vector<MWAWBox2i> MacDraft5ParserInternal::Shape::m_bitmapDimensionList |
the list of bitmap dimension ( for a bitmap)
std::vector<int> MacDraft5ParserInternal::Shape::m_bitmapIdList |
the list of bitmap id ( for a bitmap)
Referenced by MacDraft5Parser::sendBitmap().
MWAWBox2f MacDraft5ParserInternal::Shape::m_box |
the shape bdbox
Referenced by getBdBox(), transform(), and translate().
std::vector<int> MacDraft5ParserInternal::Shape::m_childList |
the child list id ( for a group )
Referenced by MacDraft5Parser::readModifier(), MacDraft5Parser::send(), and MacDraft5ParserInternal::Layout::updateRelations().
int MacDraft5ParserInternal::Shape::m_fileType |
the file type
long MacDraft5ParserInternal::Shape::m_id |
the shape id
Referenced by MacDraft5Parser::send().
bool MacDraft5ParserInternal::Shape::m_isLine |
flag to know if the shape is a line
|
mutable |
a flag used to know if the object is sent to the listener or not
Referenced by MacDraft5Parser::send(), and MacDraft5Parser::sendBitmap().
long MacDraft5ParserInternal::Shape::m_modifierId |
the modifier id
long MacDraft5ParserInternal::Shape::m_nameId |
the name id
MWAWVec2f MacDraft5ParserInternal::Shape::m_origin |
the shape origin
Referenced by MacDraft5Parser::send(), transform(), and translate().
std::vector<MWAWGraphicShape> MacDraft5ParserInternal::Shape::m_otherShapeList |
other graphic shapes ( for complex basic geometric form )
Referenced by MacDraft5Parser::send().
std::vector<MWAWGraphicStyle> MacDraft5ParserInternal::Shape::m_otherStyleList |
the other graphic style ( for complex basic geometric form )
Referenced by MacDraft5Parser::send().
MWAWParagraph MacDraft5ParserInternal::Shape::m_paragraph |
the paragraph ( for a text box)
long MacDraft5ParserInternal::Shape::m_parentId |
the parent id
std::map<long,MWAWFont> MacDraft5ParserInternal::Shape::m_posToFontMap |
the font ( for a text box)
Referenced by MacDraft5Parser::readText().
MWAWGraphicShape MacDraft5ParserInternal::Shape::m_shape |
the graphic shape ( for basic geometric form )
Referenced by getBdBox(), MacDraft5Parser::send(), transform(), and translate().
MWAWGraphicStyle MacDraft5ParserInternal::Shape::m_style |
the graphic style
Referenced by MacDraft5Parser::readModifier(), MacDraft5Parser::send(), MacDraft5Parser::sendBitmap(), and transform().
MWAWEntry MacDraft5ParserInternal::Shape::m_textEntry |
the textbox entry (main text)
Referenced by MacDraft5Parser::readText().
Type MacDraft5ParserInternal::Shape::m_type |
the graphic type
Referenced by getBdBox(), MacDraft5Parser::send(), transform(), and translate().