GreatWksGraph Class Reference

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

#include <GreatWksGraph.hxx>

List of all members.

Public Member Functions

 GreatWksGraph (GreatWksDocument &document)
 constructor
virtual ~GreatWksGraph ()
 destructor
int version () const
 returns the file version
int numPages () const
 returns the number of pages

Protected Member Functions

bool sendPageGraphics ()
 try to send the page graphic
void flushExtra ()
 sends the data which have not yet been sent to the listener
bool readPatterns (MWAWEntry const &entry)
 read a pattern list block ( PAT# resource block )
bool readPalettes (MWAWEntry const &entry)
 read a list of color and maybe patterns ( PlTT resource block: v2 )
bool sendPageFrames (GreatWksGraphInternal::Zone const &zone)
 try to send all data corresponding to a zone
bool sendFrame (shared_ptr< GreatWksGraphInternal::Frame > frame, GreatWksGraphInternal::Zone const &zone)
 try to send a frame
bool sendGroup (GreatWksGraphInternal::FrameGroup const &group, GreatWksGraphInternal::Zone const &zone, MWAWPosition const &pos)
 try to send a group
void sendGroupChild (GreatWksGraphInternal::FrameGroup const &group, GreatWksGraphInternal::Zone const &zone, MWAWPosition const &pos)
 try to send a group elements by elemenys
bool canCreateGraphic (GreatWksGraphInternal::FrameGroup const &group, GreatWksGraphInternal::Zone const &zone)
 check if we can send a group as graphic
void sendGroup (GreatWksGraphInternal::FrameGroup const &group, GreatWksGraphInternal::Zone const &zone, MWAWGraphicListenerPtr &listener)
 send the group as a graphic zone
bool sendTextbox (GreatWksGraphInternal::FrameText const &text, GreatWksGraphInternal::Zone const &zone, MWAWPosition const &pos)
 try to send a textbox
bool sendTextboxAsGraphic (MWAWBox2f const &box, GreatWksGraphInternal::FrameText const &text, MWAWGraphicStyle const &style, MWAWListenerPtr listener)
 try to send a textbox via a graphiclistener
bool sendTextbox (MWAWEntry const &entry, MWAWListenerPtr listener)
 try to send the textbox text (via the mainParser)
bool sendPicture (MWAWEntry const &entry, MWAWPosition pos)
 try to send a picture
bool sendShape (GreatWksGraphInternal::FrameShape const &graph, GreatWksGraphInternal::Zone const &zone, MWAWPosition const &pos)
 try to send a basic picture
bool readGraphicZone ()
 try to read the graphic zone ( draw file or end of v2 text file)
bool isGraphicZone ()
 return true if this corresponds to a graphic zone
bool findGraphicZone ()
 try to find the beginning of the next graphic zone
bool isPageFrames ()
 check if a zone is or not a page frame zone
bool readPageFrames ()
 try to read a list of page frame ( picture, texture or basic )
shared_ptr
< GreatWksGraphInternal::Frame
readFrameHeader ()
 try to read a basic frame header
bool readFrameExtraData (GreatWksGraphInternal::Frame &frame, int id, long endPos=-1)
 try to read a frame extra data zone
bool readStyle (MWAWGraphicStyle &style)
 try to read a zone style
bool readLineFormat (std::string &extra)
 try to read a line format style? in v1
bool readFrameExtraDataRec (GreatWksGraphInternal::Zone &zone, int id, std::set< int > &seens, long endPos=-1)
 try to read a frame extra data zone recursively ( draw method)
bool checkGraph (GreatWksGraphInternal::Zone &zone, int id, std::set< int > &seens)
 check if the graph of zones is ok (ie. does not form loop)

Protected Attributes

GreatWksDocumentm_document
 the document
MWAWParserStatePtr m_parserState
 the parser state
shared_ptr
< GreatWksGraphInternal::State
m_state
 the state
MWAWParserm_mainParser
 the main parser;

Private Member Functions

 GreatWksGraph (GreatWksGraph const &orig)
GreatWksGraphoperator= (GreatWksGraph const &orig)

Friends

class GreatWksDocument
class GreatWksParser
class GreatWksDBParser
class GreatWksDRParser
class GreatWksSSParser
class GreatWksGraphInternal::SubDocument

Detailed Description

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


Constructor & Destructor Documentation

constructor

destructor

GreatWksGraph::GreatWksGraph ( GreatWksGraph const &  orig) [private]

Member Function Documentation

check if we can send a group as graphic

Referenced by sendGroupChild().

bool GreatWksGraph::checkGraph ( GreatWksGraphInternal::Zone zone,
int  id,
std::set< int > &  seens 
) [protected]

check if the graph of zones is ok (ie. does not form loop)

Referenced by readPageFrames().

bool GreatWksGraph::findGraphicZone ( ) [protected]

try to find the beginning of the next graphic zone

Referenced by readGraphicZone().

void GreatWksGraph::flushExtra ( ) [protected]

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

bool GreatWksGraph::isGraphicZone ( ) [protected]

return true if this corresponds to a graphic zone

Referenced by findGraphicZone(), and readGraphicZone().

bool GreatWksGraph::isPageFrames ( ) [protected]

check if a zone is or not a page frame zone

Referenced by isGraphicZone(), and readPageFrames().

int GreatWksGraph::numPages ( ) const

returns the number of pages

GreatWksGraph& GreatWksGraph::operator= ( GreatWksGraph const &  orig) [private]
bool GreatWksGraph::readFrameExtraData ( GreatWksGraphInternal::Frame frame,
int  id,
long  endPos = -1 
) [protected]

try to read a frame extra data zone

Referenced by readFrameExtraDataRec(), and readPageFrames().

bool GreatWksGraph::readFrameExtraDataRec ( GreatWksGraphInternal::Zone zone,
int  id,
std::set< int > &  seens,
long  endPos = -1 
) [protected]

try to read a frame extra data zone recursively ( draw method)

Referenced by readPageFrames().

try to read a basic frame header

Referenced by readPageFrames().

bool GreatWksGraph::readGraphicZone ( ) [protected]

try to read the graphic zone ( draw file or end of v2 text file)

bool GreatWksGraph::readLineFormat ( std::string &  extra) [protected]

try to read a line format style? in v1

Referenced by readGraphicZone(), readPageFrames(), and readStyle().

bool GreatWksGraph::readPageFrames ( ) [protected]

try to read a list of page frame ( picture, texture or basic )

Referenced by readGraphicZone().

bool GreatWksGraph::readPalettes ( MWAWEntry const &  entry) [protected]

read a list of color and maybe patterns ( PlTT resource block: v2 )

bool GreatWksGraph::readPatterns ( MWAWEntry const &  entry) [protected]

read a pattern list block ( PAT# resource block )

bool GreatWksGraph::readStyle ( MWAWGraphicStyle style) [protected]

try to read a zone style

Referenced by readGraphicZone(), and readPageFrames().

bool GreatWksGraph::sendFrame ( shared_ptr< GreatWksGraphInternal::Frame frame,
GreatWksGraphInternal::Zone const &  zone 
) [protected]

try to send a frame

Referenced by sendGroupChild(), and sendPageFrames().

bool GreatWksGraph::sendGroup ( GreatWksGraphInternal::FrameGroup const &  group,
GreatWksGraphInternal::Zone const &  zone,
MWAWPosition const &  pos 
) [protected]

try to send a group

Referenced by sendFrame(), sendGroup(), and sendGroupChild().

void GreatWksGraph::sendGroup ( GreatWksGraphInternal::FrameGroup const &  group,
GreatWksGraphInternal::Zone const &  zone,
MWAWGraphicListenerPtr listener 
) [protected]

send the group as a graphic zone

void GreatWksGraph::sendGroupChild ( GreatWksGraphInternal::FrameGroup const &  group,
GreatWksGraphInternal::Zone const &  zone,
MWAWPosition const &  pos 
) [protected]

try to send a group elements by elemenys

Referenced by sendGroup().

bool GreatWksGraph::sendPageFrames ( GreatWksGraphInternal::Zone const &  zone) [protected]

try to send all data corresponding to a zone

Referenced by flushExtra(), and sendPageGraphics().

bool GreatWksGraph::sendPageGraphics ( ) [protected]

try to send the page graphic

bool GreatWksGraph::sendPicture ( MWAWEntry const &  entry,
MWAWPosition  pos 
) [protected]

try to send a picture

Referenced by sendFrame().

bool GreatWksGraph::sendShape ( GreatWksGraphInternal::FrameShape const &  graph,
GreatWksGraphInternal::Zone const &  zone,
MWAWPosition const &  pos 
) [protected]

try to send a basic picture

Referenced by sendFrame().

bool GreatWksGraph::sendTextbox ( GreatWksGraphInternal::FrameText const &  text,
GreatWksGraphInternal::Zone const &  zone,
MWAWPosition const &  pos 
) [protected]

try to send a textbox

Referenced by GreatWksGraphInternal::SubDocument::parse(), and sendFrame().

bool GreatWksGraph::sendTextbox ( MWAWEntry const &  entry,
MWAWListenerPtr  listener 
) [protected]

try to send the textbox text (via the mainParser)

bool GreatWksGraph::sendTextboxAsGraphic ( MWAWBox2f const &  box,
GreatWksGraphInternal::FrameText const &  text,
MWAWGraphicStyle const &  style,
MWAWListenerPtr  listener 
) [protected]

try to send a textbox via a graphiclistener

Referenced by sendGroup(), sendGroupChild(), and sendTextbox().


Friends And Related Function Documentation

friend class GreatWksDBParser [friend]
friend class GreatWksDocument [friend]
friend class GreatWksDRParser [friend]
friend class GreatWksGraphInternal::SubDocument [friend]
friend class GreatWksParser [friend]
friend class GreatWksSSParser [friend]

Member Data Documentation

the main parser;

Referenced by sendFrame().


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