HMWKGraph Class Reference

the main class to read the graphic part of a HanMac Word file More...

#include <HMWKGraph.hxx>

Public Member Functions

 HMWKGraph (HMWKParser &parser)
 constructor
virtual ~HMWKGraph ()
 destructor
int version () const
 returns the file version
int numPages () const
 returns the number of pages

Protected Member Functions

bool getColor (int colId, int patternId, MWAWColor &color) const
 returns the color associated with a pattern
bool sendPageGraphics (std::vector< long > const &doNotSendIds)
 try to send the page graphic
void flushExtra ()
 sends the data which have not yet been sent to the listener
bool readFrames (shared_ptr< HMWKZone > zone)
 try to read the frame definition (type 2)
bool readPicture (shared_ptr< HMWKZone > zone)
 try to read a picture zone (type d)
bool sendFrame (long frameId, MWAWPosition pos, WPXPropertyList extras=WPXPropertyList())
 try to send a frame to the listener
bool sendPicture (long pictId, MWAWPosition pos, WPXPropertyList extras=WPXPropertyList())
 try to send a picture to the listener
bool sendText (long textId, long id)
 ask main parser to send a text zone
std::map< long, int > getTextFrameInformations () const
 return a list textZId -> type which 3(footnote), 4(textbox), 9(table), 10(comment)
bool sendPicture (HMWKGraphInternal::Picture const &picture, MWAWPosition pos, WPXPropertyList extras=WPXPropertyList())
 try to send a picture to the listener
bool sendFrame (HMWKGraphInternal::Frame const &frame, MWAWPosition pos, WPXPropertyList extras=WPXPropertyList())
 try to send a frame to the listener
bool sendBasicGraph (HMWKGraphInternal::BasicGraph const &pict, MWAWPosition pos, WPXPropertyList extras=WPXPropertyList())
 try to send a basic picture to the listener
bool sendPictureFrame (HMWKGraphInternal::PictureFrame const &pict, MWAWPosition pos, WPXPropertyList extras=WPXPropertyList())
 try to send a picture frame
bool sendEmptyPicture (MWAWPosition pos)
 try to send an empty picture
bool sendTextBox (HMWKGraphInternal::TextBox const &textbox, MWAWPosition pos, WPXPropertyList extras=WPXPropertyList())
 try to send a textbox to the listener
bool sendTable (HMWKGraphInternal::Table const &table)
 try to send a table
bool sendTableUnformatted (long fId)
 try to send a table unformatted
bool updateTable (HMWKGraphInternal::Table const &table)
 check if the table is correct and if it can be send to a listener
bool sendPreTableData (HMWKGraphInternal::Table const &table)
 try to send auxilliary table data
bool sendTableCell (HMWKGraphInternal::TableCell const &cell)
 try to send a cell in a table
shared_ptr
< HMWKGraphInternal::BasicGraph
readBasicGraph (shared_ptr< HMWKZone > zone, HMWKGraphInternal::Frame const &header)
 try to read the basic graph data
shared_ptr
< HMWKGraphInternal::FootnoteFrame
readFootnoteFrame (shared_ptr< HMWKZone > zone, HMWKGraphInternal::Frame const &header)
 try to read the footnote data
shared_ptr
< HMWKGraphInternal::Group
readGroup (shared_ptr< HMWKZone > zone, HMWKGraphInternal::Frame const &header)
 try to read the group data
shared_ptr
< HMWKGraphInternal::PictureFrame
readPictureFrame (shared_ptr< HMWKZone > zone, HMWKGraphInternal::Frame const &header)
 try to read the picture data
shared_ptr
< HMWKGraphInternal::Table
readTable (shared_ptr< HMWKZone > zone, HMWKGraphInternal::Frame const &header)
 try to read the table data
shared_ptr
< HMWKGraphInternal::TextBox
readTextBox (shared_ptr< HMWKZone > zone, HMWKGraphInternal::Frame const &header, bool isMemo)
 try to read the textbox data

Protected Attributes

MWAWParserStatePtr m_parserState
 the parser state
shared_ptr
< HMWKGraphInternal::State
m_state
 the state
HMWKParserm_mainParser
 the main parser;

Private Member Functions

 HMWKGraph (HMWKGraph const &orig)
HMWKGraphoperator= (HMWKGraph const &orig)

Friends

class HMWKParser
class HMWKGraphInternal::SubDocument

Detailed Description

the main class to read the graphic part of a HanMac Word file

Constructor & Destructor Documentation

HMWKGraph::HMWKGraph ( HMWKParser parser)

constructor

HMWKGraph::~HMWKGraph ( )
virtual

destructor

HMWKGraph::HMWKGraph ( HMWKGraph const &  orig)
private

Member Function Documentation

void HMWKGraph::flushExtra ( )
protected

sends the data which have not yet been sent to the listener

bool HMWKGraph::getColor ( int  colId,
int  patternId,
MWAWColor color 
) const
protected

returns the color associated with a pattern

std::map< long, int > HMWKGraph::getTextFrameInformations ( ) const
protected

return a list textZId -> type which 3(footnote), 4(textbox), 9(table), 10(comment)

int HMWKGraph::numPages ( ) const

returns the number of pages

HMWKGraph& HMWKGraph::operator= ( HMWKGraph const &  orig)
private
shared_ptr< HMWKGraphInternal::BasicGraph > HMWKGraph::readBasicGraph ( shared_ptr< HMWKZone zone,
HMWKGraphInternal::Frame const &  header 
)
protected

try to read the basic graph data

Referenced by readFrames().

shared_ptr< HMWKGraphInternal::FootnoteFrame > HMWKGraph::readFootnoteFrame ( shared_ptr< HMWKZone zone,
HMWKGraphInternal::Frame const &  header 
)
protected

try to read the footnote data

Referenced by readFrames().

bool HMWKGraph::readFrames ( shared_ptr< HMWKZone zone)
protected

try to read the frame definition (type 2)

shared_ptr< HMWKGraphInternal::Group > HMWKGraph::readGroup ( shared_ptr< HMWKZone zone,
HMWKGraphInternal::Frame const &  header 
)
protected

try to read the group data

Referenced by readFrames().

bool HMWKGraph::readPicture ( shared_ptr< HMWKZone zone)
protected

try to read a picture zone (type d)

shared_ptr< HMWKGraphInternal::PictureFrame > HMWKGraph::readPictureFrame ( shared_ptr< HMWKZone zone,
HMWKGraphInternal::Frame const &  header 
)
protected

try to read the picture data

Referenced by readFrames().

shared_ptr< HMWKGraphInternal::Table > HMWKGraph::readTable ( shared_ptr< HMWKZone zone,
HMWKGraphInternal::Frame const &  header 
)
protected

try to read the table data

Referenced by readFrames().

shared_ptr< HMWKGraphInternal::TextBox > HMWKGraph::readTextBox ( shared_ptr< HMWKZone zone,
HMWKGraphInternal::Frame const &  header,
bool  isMemo 
)
protected

try to read the textbox data

Referenced by readFrames().

bool HMWKGraph::sendBasicGraph ( HMWKGraphInternal::BasicGraph const &  pict,
MWAWPosition  pos,
WPXPropertyList  extras = WPXPropertyList() 
)
protected

try to send a basic picture to the listener

Referenced by sendFrame().

bool HMWKGraph::sendEmptyPicture ( MWAWPosition  pos)
protected

try to send an empty picture

Referenced by HMWKGraphInternal::SubDocument::parse().

bool HMWKGraph::sendFrame ( long  frameId,
MWAWPosition  pos,
WPXPropertyList  extras = WPXPropertyList() 
)
protected

try to send a frame to the listener

Referenced by flushExtra(), HMWKGraphInternal::SubDocument::parse(), and sendPageGraphics().

bool HMWKGraph::sendFrame ( HMWKGraphInternal::Frame const &  frame,
MWAWPosition  pos,
WPXPropertyList  extras = WPXPropertyList() 
)
protected

try to send a frame to the listener

bool HMWKGraph::sendPageGraphics ( std::vector< long > const &  doNotSendIds)
protected

try to send the page graphic

bool HMWKGraph::sendPicture ( long  pictId,
MWAWPosition  pos,
WPXPropertyList  extras = WPXPropertyList() 
)
protected

try to send a picture to the listener

Referenced by flushExtra(), HMWKGraphInternal::SubDocument::parse(), and sendPictureFrame().

bool HMWKGraph::sendPicture ( HMWKGraphInternal::Picture const &  picture,
MWAWPosition  pos,
WPXPropertyList  extras = WPXPropertyList() 
)
protected

try to send a picture to the listener

bool HMWKGraph::sendPictureFrame ( HMWKGraphInternal::PictureFrame const &  pict,
MWAWPosition  pos,
WPXPropertyList  extras = WPXPropertyList() 
)
protected

try to send a picture frame

Referenced by sendFrame().

bool HMWKGraph::sendPreTableData ( HMWKGraphInternal::Table const &  table)
protected

try to send auxilliary table data

Referenced by sendFrame().

bool HMWKGraph::sendTable ( HMWKGraphInternal::Table const &  table)
protected

try to send a table

Referenced by sendFrame().

bool HMWKGraph::sendTableCell ( HMWKGraphInternal::TableCell const &  cell)
protected

try to send a cell in a table

Referenced by sendTable().

bool HMWKGraph::sendTableUnformatted ( long  fId)
protected

try to send a table unformatted

Referenced by HMWKGraphInternal::SubDocument::parse(), and sendTable().

bool HMWKGraph::sendText ( long  textId,
long  id 
)
protected

ask main parser to send a text zone

Referenced by HMWKGraphInternal::SubDocument::parse().

bool HMWKGraph::sendTextBox ( HMWKGraphInternal::TextBox const &  textbox,
MWAWPosition  pos,
WPXPropertyList  extras = WPXPropertyList() 
)
protected

try to send a textbox to the listener

Referenced by sendFrame().

bool HMWKGraph::updateTable ( HMWKGraphInternal::Table const &  table)
protected

check if the table is correct and if it can be send to a listener

Referenced by sendFrame(), sendPreTableData(), and sendTable().

int HMWKGraph::version ( ) const

returns the file version

Friends And Related Function Documentation

friend class HMWKGraphInternal::SubDocument
friend
friend class HMWKParser
friend

Member Data Documentation

HMWKParser* HMWKGraph::m_mainParser
protected

the main parser;

Referenced by sendTableCell(), sendTableUnformatted(), and sendText().


The documentation for this class was generated from the following files:

Generated on Wed May 22 2013 18:12:45 for libmwaw by doxygen 1.8.1.2