MacWrtProStructuresInternal::Graphic Struct Reference

Internal: the graphic structure. More...

Public Types

enum  Type { UNKNOWN, GRAPHIC, TEXT, NOTE }
 

Public Member Functions

 Graphic (int vers)
 the constructor More...
 
void fillFrame (MWAWGraphicStyle &style) const
 update the style to include frame style More...
 
bool isGraphic () const
 returns true is this is a graphic zone More...
 
bool isText () const
 returns true is this is a text zone (or a not) More...
 
bool isTable () const
 returns true is this is a table zone More...
 
bool hasSameBorders () const
 
bool hasBorders () const
 
MWAWPosition getPosition () const
 
MWAWPosition::YPos getRelativeYPos () const
 
bool contains (MWAWBox2f const &box) const
 
bool intersects (MWAWBox2f const &box) const
 

Public Attributes

int m_version
 the version More...
 
int m_type
 the type More...
 
Type m_contentType
 the type 1.0 or 1.5 More...
 
int m_fileBlock
 the file block id More...
 
int m_id
 the graphic id More...
 
bool m_attachment
 true if this is an attachment 1.0 or 1.5 More...
 
int m_page
 the page (if absolute) More...
 
MWAWBox2f m_box
 the bdbox More...
 
int m_textPos
 filled for pagebreak pos More...
 
int m_textboxType
 the header footer type More...
 
int m_headerFooterFlag
 the header footer flag More...
 
int m_column
 the number of columns More...
 
float m_colSeparator
 the columns separator More...
 
int m_lastFlag
 the last flag More...
 
double m_borderWList [4]
 the borders width More...
 
MWAWBorder m_borderCellList [4]
 the cell borders More...
 
float m_baseline
 the baseline ( in point 0=bottom aligned) More...
 
MWAWColor m_surfaceColor
 the background color More...
 
MWAWBorder m_lineBorder
 the line border 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, Graphic const &bl)
 operator<< More...
 

Detailed Description

Internal: the graphic structure.

Member Enumeration Documentation

◆ Type

Enumerator
UNKNOWN 
GRAPHIC 
TEXT 
NOTE 

Constructor & Destructor Documentation

◆ Graphic()

MacWrtProStructuresInternal::Graphic::Graphic ( int  vers)
inlineexplicit

the constructor

Member Function Documentation

◆ contains()

bool MacWrtProStructuresInternal::Graphic::contains ( MWAWBox2f const &  box) const
inline

◆ fillFrame()

void MacWrtProStructuresInternal::Graphic::fillFrame ( MWAWGraphicStyle style) const
inline

update the style to include frame style

◆ getPosition()

MWAWPosition MacWrtProStructuresInternal::Graphic::getPosition ( ) const
inline

◆ getRelativeYPos()

MWAWPosition::YPos MacWrtProStructuresInternal::Graphic::getRelativeYPos ( ) const
inline

Referenced by getPosition().

◆ hasBorders()

bool MacWrtProStructuresInternal::Graphic::hasBorders ( ) const
inline

Referenced by fillFrame().

◆ hasSameBorders()

bool MacWrtProStructuresInternal::Graphic::hasSameBorders ( ) const
inline

◆ intersects()

bool MacWrtProStructuresInternal::Graphic::intersects ( MWAWBox2f const &  box) const
inline

◆ isGraphic()

bool MacWrtProStructuresInternal::Graphic::isGraphic ( ) const
inline

returns true is this is a graphic zone

◆ isTable()

bool MacWrtProStructuresInternal::Graphic::isTable ( ) const
inline

returns true is this is a table zone

◆ isText()

bool MacWrtProStructuresInternal::Graphic::isText ( ) const
inline

returns true is this is a text zone (or a not)

Friends And Related Function Documentation

◆ operator<<

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

operator<<

Member Data Documentation

◆ m_attachment

bool MacWrtProStructuresInternal::Graphic::m_attachment

true if this is an attachment 1.0 or 1.5

Referenced by getPosition().

◆ m_baseline

float MacWrtProStructuresInternal::Graphic::m_baseline

the baseline ( in point 0=bottom aligned)

Referenced by getRelativeYPos().

◆ m_borderCellList

MWAWBorder MacWrtProStructuresInternal::Graphic::m_borderCellList[4]

the cell borders

Referenced by MacWrtProStructuresInternal::Cell::Cell().

◆ m_borderWList

double MacWrtProStructuresInternal::Graphic::m_borderWList[4]

the borders width

Referenced by fillFrame(), Graphic(), hasBorders(), and hasSameBorders().

◆ m_box

◆ m_col

int MacWrtProStructuresInternal::Graphic::m_col

number of columns, filled for table

◆ m_colSeparator

float MacWrtProStructuresInternal::Graphic::m_colSeparator

the columns separator

Referenced by MacWrtProStructures::readGraphicII().

◆ m_column

int MacWrtProStructuresInternal::Graphic::m_column

the number of columns

Referenced by MacWrtProStructures::readGraphicII().

◆ m_contentType

Type MacWrtProStructuresInternal::Graphic::m_contentType

the type 1.0 or 1.5

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

◆ m_extra

std::string MacWrtProStructuresInternal::Graphic::m_extra

extra data

Referenced by MacWrtProStructures::readGraphicII().

◆ m_fileBlock

int MacWrtProStructuresInternal::Graphic::m_fileBlock

the file block id

Referenced by isGraphic(), isTable(), isText(), and MacWrtProStructures::readGraphicII().

◆ m_headerFooterFlag

int MacWrtProStructuresInternal::Graphic::m_headerFooterFlag

the header footer flag

Referenced by MacWrtProStructures::readGraphicII().

◆ m_id

int MacWrtProStructuresInternal::Graphic::m_id

the graphic id

Referenced by MacWrtProStructuresInternal::Cell::Cell().

◆ m_isHeader

bool MacWrtProStructuresInternal::Graphic::m_isHeader

filled for header/footer

◆ m_lastFlag

int MacWrtProStructuresInternal::Graphic::m_lastFlag

the last flag

Referenced by MacWrtProStructures::readGraphicII().

◆ m_lineBorder

MWAWBorder MacWrtProStructuresInternal::Graphic::m_lineBorder

the line border

Referenced by fillFrame(), and hasBorders().

◆ m_page

int MacWrtProStructuresInternal::Graphic::m_page

the page (if absolute)

Referenced by getPosition(), and MacWrtProStructures::readGraphicII().

◆ m_row

int MacWrtProStructuresInternal::Graphic::m_row

number of row, filled for table

◆ m_send

bool MacWrtProStructuresInternal::Graphic::m_send

true if we have send the data

◆ m_surfaceColor

MWAWColor MacWrtProStructuresInternal::Graphic::m_surfaceColor

the background color

Referenced by MacWrtProStructuresInternal::Cell::Cell(), and fillFrame().

◆ m_textboxCellType

int MacWrtProStructuresInternal::Graphic::m_textboxCellType

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

◆ m_textboxType

int MacWrtProStructuresInternal::Graphic::m_textboxType

the header footer type

Referenced by MacWrtProStructures::readGraphicII().

◆ m_textPos

int MacWrtProStructuresInternal::Graphic::m_textPos

filled for pagebreak pos

Referenced by MacWrtProStructures::readGraphicII().

◆ m_type

int MacWrtProStructuresInternal::Graphic::m_type

the type

Referenced by isTable(), and MacWrtProStructures::readGraphicII().

◆ m_version

int MacWrtProStructuresInternal::Graphic::m_version

the version


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

Generated for libmwaw by doxygen 1.8.14