LotusGraph Class Reference

This class parses Microsoft Works graph file. More...

#include <LotusGraph.h>

Public Member Functions

 LotusGraph (LotusParser &parser)
 constructor More...
 
 ~LotusGraph ()
 destructor More...
 
void cleanState ()
 clean internal state More...
 
void setListener (WKSContentListenerPtr &listen)
 sets the listener More...
 
void updateState (std::map< int, int > const &zIdToSheetIdMap)
 update the state (need to be called before sending data) More...
 

Protected Member Functions

int version () const
 return the file version More...
 
bool hasGraphics (int sheetId) const
 return true if the sheet sheetId has some graphic More...
 
void sendGraphics (int sheetId)
 send the graphics corresponding to a sheetId More...
 
void sendZone (LotusGraphInternal::ZonePcList const &zoneList, size_t id, WPSTransformation &transf)
 try to send a shape: 123 pc More...
 
void sendPicture (LotusGraphInternal::ZoneMac const &zone)
 try to send a picture: 123 mac More...
 
void sendTextBox (shared_ptr< WPSStream > stream, WPSEntry const &entry)
 try to send a textbox content's More...
 
void sendTextBoxWK4 (shared_ptr< WPSStream > stream, WPSEntry const &entry, bool isButton)
 try to send a textbox content's More...
 
bool readZoneBegin (shared_ptr< WPSStream > stream, long endPos)
 reads a begin graphic zone: 2328 (wk3mac) More...
 
bool readZoneData (shared_ptr< WPSStream > stream, long endPos, int type)
 reads a graphic zone: 2332, 2346, 2350, 2352, 23f0 (wk3mac) More...
 
bool readTextBoxData (shared_ptr< WPSStream > stream, long endPos)
 reads a graphic textbox data: 23f0 (wk3mac) More...
 
bool readPictureDefinition (shared_ptr< WPSStream > stream, long endPos)
 reads a picture definition: 240e (wk3mac) More...
 
bool readPictureData (shared_ptr< WPSStream > stream, long endPos)
 reads a picture data: 2410 (wk3mac) More...
 
bool readZoneBeginC9 (shared_ptr< WPSStream > stream)
 try to read the sheet id: 0xc9 (wk4) More...
 
bool readGraphic (shared_ptr< WPSStream > stream)
 try to read a graphic: 0xca (wk4) More...
 
bool readFrame (shared_ptr< WPSStream > stream)
 try to read a graph's frame: 0xcc (wk4) More...
 
bool readTextBoxDataD1 (shared_ptr< WPSStream > stream)
 reads a graphic textbox data: 0xd1 (wk4) More...
 
bool readGraphZone (shared_ptr< WPSStream > stream, int zId)
 try to read the graphic zone: 1XXX More...
 
bool readGraphDataZone (shared_ptr< WPSStream > stream, long endPos)
 try to read the graphic data zone: 010d More...
 

Private Member Functions

 LotusGraph (LotusGraph const &orig)
 
LotusGraphoperator= (LotusGraph const &orig)
 

Private Attributes

shared_ptr< WKSContentListenerm_listener
 
LotusParserm_mainParser
 the listener (if set) More...
 
shared_ptr< LotusStyleManagerm_styleManager
 the style manager More...
 
shared_ptr
< LotusGraphInternal::State
m_state
 the internal state More...
 

Friends

class LotusParser
 
class LotusGraphInternal::SubDocument
 

Detailed Description

This class parses Microsoft Works graph file.

Constructor & Destructor Documentation

LotusGraph::LotusGraph ( LotusParser parser)
explicit

constructor

LotusGraph::~LotusGraph ( )

destructor

LotusGraph::LotusGraph ( LotusGraph const &  orig)
private

Member Function Documentation

void LotusGraph::cleanState ( )

clean internal state

bool LotusGraph::hasGraphics ( int  sheetId) const
protected

return true if the sheet sheetId has some graphic

LotusGraph& LotusGraph::operator= ( LotusGraph const &  orig)
private
bool LotusGraph::readFrame ( shared_ptr< WPSStream stream)
protected

try to read a graph's frame: 0xcc (wk4)

bool LotusGraph::readGraphDataZone ( shared_ptr< WPSStream stream,
long  endPos 
)
protected

try to read the graphic data zone: 010d

bool LotusGraph::readGraphic ( shared_ptr< WPSStream stream)
protected

try to read a graphic: 0xca (wk4)

bool LotusGraph::readGraphZone ( shared_ptr< WPSStream stream,
int  zId 
)
protected

try to read the graphic zone: 1XXX

bool LotusGraph::readPictureData ( shared_ptr< WPSStream stream,
long  endPos 
)
protected

reads a picture data: 2410 (wk3mac)

bool LotusGraph::readPictureDefinition ( shared_ptr< WPSStream stream,
long  endPos 
)
protected

reads a picture definition: 240e (wk3mac)

bool LotusGraph::readTextBoxData ( shared_ptr< WPSStream stream,
long  endPos 
)
protected

reads a graphic textbox data: 23f0 (wk3mac)

bool LotusGraph::readTextBoxDataD1 ( shared_ptr< WPSStream stream)
protected

reads a graphic textbox data: 0xd1 (wk4)

bool LotusGraph::readZoneBegin ( shared_ptr< WPSStream stream,
long  endPos 
)
protected

reads a begin graphic zone: 2328 (wk3mac)

bool LotusGraph::readZoneBeginC9 ( shared_ptr< WPSStream stream)
protected

try to read the sheet id: 0xc9 (wk4)

bool LotusGraph::readZoneData ( shared_ptr< WPSStream stream,
long  endPos,
int  type 
)
protected

reads a graphic zone: 2332, 2346, 2350, 2352, 23f0 (wk3mac)

void LotusGraph::sendGraphics ( int  sheetId)
protected

send the graphics corresponding to a sheetId

void LotusGraph::sendPicture ( LotusGraphInternal::ZoneMac const &  zone)
protected

try to send a picture: 123 mac

Referenced by sendGraphics().

void LotusGraph::sendTextBox ( shared_ptr< WPSStream stream,
WPSEntry const &  entry 
)
protected

try to send a textbox content's

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

void LotusGraph::sendTextBoxWK4 ( shared_ptr< WPSStream stream,
WPSEntry const &  entry,
bool  isButton 
)
protected

try to send a textbox content's

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

void LotusGraph::sendZone ( LotusGraphInternal::ZonePcList const &  zoneList,
size_t  id,
WPSTransformation transf 
)
protected

try to send a shape: 123 pc

Referenced by sendGraphics().

void LotusGraph::setListener ( WKSContentListenerPtr listen)
inline

sets the listener

void LotusGraph::updateState ( std::map< int, int > const &  zIdToSheetIdMap)

update the state (need to be called before sending data)

int LotusGraph::version ( ) const
protected

return the file version

Referenced by readGraphDataZone(), and readGraphZone().

Friends And Related Function Documentation

friend class LotusGraphInternal::SubDocument
friend
friend class LotusParser
friend

Member Data Documentation

shared_ptr<WKSContentListener> LotusGraph::m_listener
private
LotusParser& LotusGraph::m_mainParser
private

the listener (if set)

the main parser

Referenced by sendGraphics(), sendTextBox(), sendTextBoxWK4(), and version().

shared_ptr<LotusStyleManager> LotusGraph::m_styleManager
private

the style manager

Referenced by readGraphic(), sendGraphics(), sendPicture(), sendTextBox(), and sendZone().


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

Generated on Sat Jul 29 2017 15:32:22 for libwps by doxygen 1.8.8