MWProStructuresInternal::Block Struct Reference

Internal: the data block. More...

Public Types

enum  Type { UNKNOWN, GRAPHIC, TEXT, NOTE }
 

Public Member Functions

 Block ()
 the constructor More...
 
void fillFramePropertyList (WPXPropertyList &extra) const
 
bool isGraphic () const
 
bool isText () const
 
bool isTable () const
 
bool hasSurfaceColor () const
 
bool hasLineColor () const
 
bool hasSameBorders () const
 
bool hasBorders () const
 
MWAWPosition getPosition () const
 
MWAWPosition::YPos getRelativeYPos () const
 
bool contains (Box2f const &box) const
 
bool intersects (Box2f const &box) const
 

Public Attributes

int m_type
 the type More...
 
Type m_contentType
 the type More...
 
int m_fileBlock
 the file block id More...
 
int m_id
 the block id More...
 
bool m_attachment
 true if this is an attachment More...
 
int m_page
 the page (if absolute) More...
 
Box2f m_box
 the bdbox More...
 
double m_borderWList [4]
 the borders width More...
 
float m_baseline
 the baseline ( in point 0=bottom aligned) More...
 
MWAWColor m_surfaceColor
 the background color More...
 
MWAWColor m_lineColor
 the line color More...
 
float m_lineWidth
 the line witdh(in point) More...
 
int m_lineType
 the line type More...
 
int m_linePattern
 the line pattern More...
 
int m_textPos
 filled for pagebreak pos More...
 
bool m_isHeader
 filled for header/footer More...
 
int m_row
 number of row, filled for table More...
 
int m_col
 number of columns, filled for table More...
 
int m_textboxCellType
 filled for textbox : 0: unknown/textbox, 1: cell, 2: textbox(opened) More...
 
std::string m_extra
 extra data More...
 
bool m_send
 true if we have send the data More...
 

Friends

std::ostream & operator<< (std::ostream &o, Block const &bl)
 operator<< More...
 

Detailed Description

Internal: the data block.

Member Enumeration Documentation

Enumerator
UNKNOWN 
GRAPHIC 
TEXT 
NOTE 

Constructor & Destructor Documentation

MWProStructuresInternal::Block::Block ( )
inline

the constructor

Member Function Documentation

bool MWProStructuresInternal::Block::contains ( Box2f const &  box) const
inline
void MWProStructuresInternal::Block::fillFramePropertyList ( WPXPropertyList &  extra) const
inline
MWAWPosition MWProStructuresInternal::Block::getPosition ( ) const
inline
MWAWPosition::YPos MWProStructuresInternal::Block::getRelativeYPos ( ) const
inline

Referenced by getPosition().

bool MWProStructuresInternal::Block::hasBorders ( ) const
inline

Referenced by fillFramePropertyList().

bool MWProStructuresInternal::Block::hasLineColor ( ) const
inline
bool MWProStructuresInternal::Block::hasSameBorders ( ) const
inline

Referenced by fillFramePropertyList().

bool MWProStructuresInternal::Block::hasSurfaceColor ( ) const
inline

Referenced by fillFramePropertyList().

bool MWProStructuresInternal::Block::intersects ( Box2f const &  box) const
inline
bool MWProStructuresInternal::Block::isGraphic ( ) const
inline
bool MWProStructuresInternal::Block::isTable ( ) const
inline
bool MWProStructuresInternal::Block::isText ( ) const
inline

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
Block const &  bl 
)
friend

operator<<

Member Data Documentation

bool MWProStructuresInternal::Block::m_attachment

true if this is an attachment

Referenced by getPosition().

float MWProStructuresInternal::Block::m_baseline

the baseline ( in point 0=bottom aligned)

Referenced by getRelativeYPos().

double MWProStructuresInternal::Block::m_borderWList[4]

the borders width

Referenced by Block(), fillFramePropertyList(), hasBorders(), and hasSameBorders().

Box2f MWProStructuresInternal::Block::m_box

the bdbox

Referenced by contains(), getPosition(), getRelativeYPos(), and intersects().

int MWProStructuresInternal::Block::m_col

number of columns, filled for table

Type MWProStructuresInternal::Block::m_contentType

the type

Referenced by getPosition(), isGraphic(), and isText().

std::string MWProStructuresInternal::Block::m_extra

extra data

int MWProStructuresInternal::Block::m_fileBlock

the file block id

Referenced by isGraphic(), isTable(), and isText().

int MWProStructuresInternal::Block::m_id

the block id

bool MWProStructuresInternal::Block::m_isHeader

filled for header/footer

MWAWColor MWProStructuresInternal::Block::m_lineColor

the line color

Referenced by fillFramePropertyList(), and hasLineColor().

int MWProStructuresInternal::Block::m_linePattern

the line pattern

Referenced by hasBorders().

int MWProStructuresInternal::Block::m_lineType

the line type

Referenced by fillFramePropertyList().

float MWProStructuresInternal::Block::m_lineWidth

the line witdh(in point)

Referenced by hasBorders().

int MWProStructuresInternal::Block::m_page

the page (if absolute)

Referenced by getPosition().

int MWProStructuresInternal::Block::m_row

number of row, filled for table

bool MWProStructuresInternal::Block::m_send

true if we have send the data

MWAWColor MWProStructuresInternal::Block::m_surfaceColor

the background color

Referenced by fillFramePropertyList(), and hasSurfaceColor().

int MWProStructuresInternal::Block::m_textboxCellType

filled for textbox : 0: unknown/textbox, 1: cell, 2: textbox(opened)

int MWProStructuresInternal::Block::m_textPos

filled for pagebreak pos

int MWProStructuresInternal::Block::m_type

the type

Referenced by isTable().


The documentation for this struct was generated from the following file:

Generated on Tue Jul 2 2013 05:26:54 for libmwaw by doxygen 1.8.4