HanMacWrdKGraph Class Reference

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

#include <HanMacWrdKGraph.hxx>

List of all members.

Public Member Functions

 HanMacWrdKGraph (HanMacWrdKParser &parser)
 constructor
virtual ~HanMacWrdKGraph ()
 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< HanMacWrdKZone > zone)
 try to read the frame definition (type 2)
bool readPicture (shared_ptr< HanMacWrdKZone > zone)
 try to read a picture zone (type d)
void prepareStructures ()
 check the group structures, the linked textbox
bool sendFrame (long frameId, MWAWPosition pos)
 try to send a frame to the listener
bool sendPicture (long pictId, MWAWPosition pos)
 try to send a picture to the listener
bool sendText (long textId, long id, MWAWListenerPtr listener=MWAWListenerPtr())
 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 checkGroupStructures (long fileId, long fileSubId, std::multimap< long, long > &seens, bool inGroup)
 check the graph structures: ie.
bool sendPicture (HanMacWrdKGraphInternal::Picture const &picture, MWAWPosition pos)
 try to send a picture to the listener
bool sendFrame (HanMacWrdKGraphInternal::Frame const &frame, MWAWPosition pos)
 try to send a frame to the listener
bool sendShapeGraph (HanMacWrdKGraphInternal::ShapeGraph const &shape, MWAWPosition pos)
 try to send a basic picture to the listener
bool sendPictureFrame (HanMacWrdKGraphInternal::PictureFrame const &pict, MWAWPosition pos)
 try to send a picture frame
bool sendEmptyPicture (MWAWPosition pos)
 try to send an empty picture
bool sendTextBox (HanMacWrdKGraphInternal::TextBox const &textbox, MWAWPosition pos)
 try to send a textbox to the listener
bool sendTableUnformatted (long fId)
 try to send a table unformatted
bool sendGroup (long fId, MWAWPosition pos)
 try to send a group to the listener
bool sendGroup (HanMacWrdKGraphInternal::Group const &group, MWAWPosition pos)
 try to send a group to the listener
bool canCreateGraphic (HanMacWrdKGraphInternal::Group const &group)
 check if we can send a group as graphic
void sendGroupChild (HanMacWrdKGraphInternal::Group const &group, MWAWPosition const &pos)
 try to send a group elements by elements
void sendGroup (HanMacWrdKGraphInternal::Group const &group, MWAWGraphicListenerPtr &listener)
 send the group as a graphic zone
shared_ptr
< HanMacWrdKGraphInternal::ShapeGraph
readShapeGraph (shared_ptr< HanMacWrdKZone > zone, HanMacWrdKGraphInternal::Frame const &header)
 try to read the basic graph data
shared_ptr
< HanMacWrdKGraphInternal::FootnoteFrame
readFootnoteFrame (shared_ptr< HanMacWrdKZone > zone, HanMacWrdKGraphInternal::Frame const &header)
 try to read the footnote data
shared_ptr
< HanMacWrdKGraphInternal::Group
readGroup (shared_ptr< HanMacWrdKZone > zone, HanMacWrdKGraphInternal::Frame const &header)
 try to read the group data
shared_ptr
< HanMacWrdKGraphInternal::PictureFrame
readPictureFrame (shared_ptr< HanMacWrdKZone > zone, HanMacWrdKGraphInternal::Frame const &header)
 try to read the picture data
shared_ptr
< HanMacWrdKGraphInternal::Table
readTable (shared_ptr< HanMacWrdKZone > zone, HanMacWrdKGraphInternal::Frame const &header)
 try to read the table data
shared_ptr
< HanMacWrdKGraphInternal::TextBox
readTextBox (shared_ptr< HanMacWrdKZone > zone, HanMacWrdKGraphInternal::Frame const &header, bool isMemo)
 try to read the textbox data

Protected Attributes

MWAWParserStatePtr m_parserState
 the parser state
shared_ptr
< HanMacWrdKGraphInternal::State
m_state
 the state
HanMacWrdKParserm_mainParser
 the main parser;

Private Member Functions

 HanMacWrdKGraph (HanMacWrdKGraph const &orig)
HanMacWrdKGraphoperator= (HanMacWrdKGraph const &orig)

Friends

class HanMacWrdKParser
class HanMacWrdKGraphInternal::SubDocument
struct HanMacWrdKGraphInternal::Table

Detailed Description

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


Constructor & Destructor Documentation

destructor


Member Function Documentation

check if we can send a group as graphic

Referenced by sendFrame(), and sendGroupChild().

bool HanMacWrdKGraph::checkGroupStructures ( long  fileId,
long  fileSubId,
std::multimap< long, long > &  seens,
bool  inGroup 
) [protected]

check the graph structures: ie.

the group children

Referenced by prepareStructures().

void HanMacWrdKGraph::flushExtra ( ) [protected]

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

bool HanMacWrdKGraph::getColor ( int  colId,
int  patternId,
MWAWColor color 
) const [protected]

returns the color associated with a pattern

std::map< long, int > HanMacWrdKGraph::getTextFrameInformations ( ) const [protected]

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

returns the number of pages

HanMacWrdKGraph& HanMacWrdKGraph::operator= ( HanMacWrdKGraph const &  orig) [private]
void HanMacWrdKGraph::prepareStructures ( ) [protected]

check the group structures, the linked textbox

try to read the footnote data

Referenced by readFrames().

bool HanMacWrdKGraph::readFrames ( shared_ptr< HanMacWrdKZone zone) [protected]

try to read the frame definition (type 2)

shared_ptr< HanMacWrdKGraphInternal::Group > HanMacWrdKGraph::readGroup ( shared_ptr< HanMacWrdKZone zone,
HanMacWrdKGraphInternal::Frame const &  header 
) [protected]

try to read the group data

Referenced by readFrames().

bool HanMacWrdKGraph::readPicture ( shared_ptr< HanMacWrdKZone zone) [protected]

try to read a picture zone (type d)

shared_ptr< HanMacWrdKGraphInternal::PictureFrame > HanMacWrdKGraph::readPictureFrame ( shared_ptr< HanMacWrdKZone zone,
HanMacWrdKGraphInternal::Frame const &  header 
) [protected]

try to read the picture data

Referenced by readFrames().

shared_ptr< HanMacWrdKGraphInternal::ShapeGraph > HanMacWrdKGraph::readShapeGraph ( shared_ptr< HanMacWrdKZone zone,
HanMacWrdKGraphInternal::Frame const &  header 
) [protected]

try to read the basic graph data

Referenced by readFrames().

shared_ptr< HanMacWrdKGraphInternal::Table > HanMacWrdKGraph::readTable ( shared_ptr< HanMacWrdKZone zone,
HanMacWrdKGraphInternal::Frame const &  header 
) [protected]

try to read the table data

Referenced by readFrames().

shared_ptr< HanMacWrdKGraphInternal::TextBox > HanMacWrdKGraph::readTextBox ( shared_ptr< HanMacWrdKZone zone,
HanMacWrdKGraphInternal::Frame const &  header,
bool  isMemo 
) [protected]

try to read the textbox data

Referenced by readFrames().

try to send an empty picture

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

bool HanMacWrdKGraph::sendFrame ( long  frameId,
MWAWPosition  pos 
) [protected]

try to send a frame to the listener

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

bool HanMacWrdKGraph::sendFrame ( HanMacWrdKGraphInternal::Frame const &  frame,
MWAWPosition  pos 
) [protected]

try to send a frame to the listener

bool HanMacWrdKGraph::sendGroup ( long  fId,
MWAWPosition  pos 
) [protected]

try to send a group to the listener

Referenced by HanMacWrdKGraphInternal::SubDocument::parse(), sendFrame(), sendGroup(), and sendGroupChild().

bool HanMacWrdKGraph::sendGroup ( HanMacWrdKGraphInternal::Group const &  group,
MWAWPosition  pos 
) [protected]

try to send a group to the listener

void HanMacWrdKGraph::sendGroup ( HanMacWrdKGraphInternal::Group const &  group,
MWAWGraphicListenerPtr listener 
) [protected]

send the group as a graphic zone

void HanMacWrdKGraph::sendGroupChild ( HanMacWrdKGraphInternal::Group const &  group,
MWAWPosition const &  pos 
) [protected]

try to send a group elements by elements

Referenced by sendGroup().

bool HanMacWrdKGraph::sendPageGraphics ( std::vector< long > const &  doNotSendIds) [protected]

try to send the page graphic

bool HanMacWrdKGraph::sendPicture ( long  pictId,
MWAWPosition  pos 
) [protected]

try to send a picture to the listener

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

bool HanMacWrdKGraph::sendPicture ( HanMacWrdKGraphInternal::Picture const &  picture,
MWAWPosition  pos 
) [protected]

try to send a picture to the listener

try to send a picture frame

Referenced by sendFrame().

try to send a basic picture to the listener

Referenced by sendFrame().

bool HanMacWrdKGraph::sendTableUnformatted ( long  fId) [protected]

try to send a table unformatted

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

bool HanMacWrdKGraph::sendText ( long  textId,
long  id,
MWAWListenerPtr  listener = MWAWListenerPtr() 
) [protected]

ask main parser to send a text zone

Referenced by HanMacWrdKGraphInternal::SubDocument::parse(), and HanMacWrdKGraphInternal::Table::sendText().

bool HanMacWrdKGraph::sendTextBox ( HanMacWrdKGraphInternal::TextBox const &  textbox,
MWAWPosition  pos 
) [protected]

try to send a textbox to the listener

Referenced by sendFrame().

int HanMacWrdKGraph::version ( ) const

returns the file version


Friends And Related Function Documentation

friend class HanMacWrdKGraphInternal::SubDocument [friend]
friend struct HanMacWrdKGraphInternal::Table [friend]
friend class HanMacWrdKParser [friend]

Member Data Documentation


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