generic class used to store shape in MWAWDraftParser More...
Public Types | |
| enum | Type { Basic , Bitmap , Group , Label , Text , 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 | |
| MWAWBox2f | m_box |
| the shape bdbox | |
| MWAWVec2f | m_origin |
| the shape origin | |
| MWAWGraphicStyle | m_style |
| the graphic style | |
| int | m_patternId |
| the pattern id | |
| MWAWGraphicShape | m_shape |
| the graphic shape ( for basic geometric form ) | |
| bool | m_isLine |
| flag to know if the shape is a line | |
| int | m_id |
| the shape id | |
| int | m_nextId |
| the following id (if set) | |
| MWAWFont | m_font |
| the font ( for a text box) | |
| MWAWParagraph | m_paragraph |
| the paragraph ( for a text box) | |
| MWAWEntry | m_textEntry |
| the textbox entry (main text) | |
| float | m_labelWidth |
| the 1D label width in point | |
| std::vector< size_t > | m_childList |
| the child list ( for a group ) | |
| std::vector< unsigned long > | 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 MacDraftParser::readObject(), and MacDraftParser::send().
|
inlinestatic |
returns the rotation of a box
Referenced by transform().
|
inline |
transform a shape
Referenced by MacDraftParser::readObject().
|
inline |
translate a shape
Referenced by MacDraftParser::readObject().
| std::vector<MWAWBox2i> MacDraftParserInternal::Shape::m_bitmapDimensionList |
the list of bitmap dimension ( for a bitmap)
Referenced by MacDraftParser::readBitmapDefinition(), MacDraftParser::sendBitmap(), and Shape().
| std::vector<unsigned long> MacDraftParserInternal::Shape::m_bitmapIdList |
the list of bitmap id ( for a bitmap)
Referenced by MacDraftParser::readBitmapDefinition(), MacDraftParser::sendBitmap(), and Shape().
| MWAWBox2f MacDraftParserInternal::Shape::m_box |
the shape bdbox
Referenced by getBdBox(), MacDraftParser::readLabel(), MacDraftParser::readObject(), Shape(), transform(), and translate().
| std::vector<size_t> MacDraftParserInternal::Shape::m_childList |
the child list ( for a group )
Referenced by MacDraftParser::send(), and Shape().
| MWAWFont MacDraftParserInternal::Shape::m_font |
the font ( for a text box)
Referenced by MacDraftParser::readLabel(), MacDraftParser::readObject(), and Shape().
| int MacDraftParserInternal::Shape::m_id |
the shape id
Referenced by MacDraftParser::readLabel(), MacDraftParser::readObject(), MacDraftParser::send(), and Shape().
| bool MacDraftParserInternal::Shape::m_isLine |
flag to know if the shape is a line
Referenced by MacDraftParser::readObject(), and Shape().
|
mutable |
a flag used to know if the object is sent to the listener or not
Referenced by MacDraftParser::parse(), MacDraftParser::send(), MacDraftParser::sendBitmap(), and Shape().
| float MacDraftParserInternal::Shape::m_labelWidth |
the 1D label width in point
Referenced by Shape().
| int MacDraftParserInternal::Shape::m_nextId |
the following id (if set)
Referenced by MacDraftParser::parse(), MacDraftParser::readLabel(), MacDraftParser::readObject(), and Shape().
| MWAWVec2f MacDraftParserInternal::Shape::m_origin |
the shape origin
Referenced by Shape(), transform(), and translate().
| MWAWParagraph MacDraftParserInternal::Shape::m_paragraph |
the paragraph ( for a text box)
Referenced by MacDraftParser::readLabel(), MacDraftParser::readObject(), and Shape().
| int MacDraftParserInternal::Shape::m_patternId |
the pattern id
Referenced by MacDraftParser::readObject(), MacDraftParser::send(), and Shape().
| MWAWGraphicShape MacDraftParserInternal::Shape::m_shape |
the graphic shape ( for basic geometric form )
Referenced by getBdBox(), MacDraftParser::readObject(), MacDraftParser::send(), Shape(), transform(), and translate().
| MWAWGraphicStyle MacDraftParserInternal::Shape::m_style |
the graphic style
Referenced by MacDraftParser::readLabel(), MacDraftParser::readObject(), MacDraftParser::send(), Shape(), and transform().
| MWAWEntry MacDraftParserInternal::Shape::m_textEntry |
the textbox entry (main text)
Referenced by MacDraftParser::readObject(), and Shape().
| Type MacDraftParserInternal::Shape::m_type |
the graphic type
Referenced by getBdBox(), MacDraftParser::readLabel(), MacDraftParser::readObject(), MacDraftParser::send(), Shape(), transform(), and translate().