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...
 

Protected Member Functions

bool checkFilePosition (long pos)
 return true if the pos is in the file, update the file size if need More...
 
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 sendPicture (LotusGraphInternal::Zone const &zone)
 try to send a picture More...
 
void sendTextBox (WPSEntry const &entry)
 try to send a textbox content's More...
 
bool readZoneBegin (long endPos)
 reads a begin graphic zone More...
 
bool readZoneData (long endPos, int type)
 reads a graphic zone More...
 
bool readTextBoxData (long endPos)
 reads a graphic textbox data More...
 
bool readPictureDefinition (long endPos)
 reads a picture definition More...
 
bool readPictureData (long endPos)
 reads a picture data More...
 

Private Member Functions

 LotusGraph (LotusGraph const &orig)
 
LotusGraphoperator= (LotusGraph const &orig)
 
libwps::DebugFileascii ()
 returns the debug file More...
 

Private Attributes

RVNGInputStreamPtr m_input
 the input More...
 
shared_ptr< WKSContentListenerm_listener
 
LotusParserm_mainParser
 the listener (if set) More...
 
shared_ptr< LotusStyleManagerm_styleManager
 the style manager More...
 
shared_ptr< LotusGraphInternal::Statem_state
 the internal state More...
 
libwps::DebugFilem_asciiFile
 the ascii file More...
 

Friends

class LotusParser
 
class LotusGraphInternal::SubDocument
 

Detailed Description

This class parses Microsoft Works graph file.

Constructor & Destructor Documentation

§ LotusGraph() [1/2]

LotusGraph::LotusGraph ( LotusParser parser)
explicit

constructor

§ ~LotusGraph()

LotusGraph::~LotusGraph ( )

destructor

§ LotusGraph() [2/2]

LotusGraph::LotusGraph ( LotusGraph const &  orig)
private

Member Function Documentation

§ ascii()

libwps::DebugFile& LotusGraph::ascii ( )
inlineprivate

§ checkFilePosition()

bool LotusGraph::checkFilePosition ( long  pos)
protected

return true if the pos is in the file, update the file size if need

§ cleanState()

void LotusGraph::cleanState ( )

clean internal state

§ hasGraphics()

bool LotusGraph::hasGraphics ( int  sheetId) const
protected

return true if the sheet sheetId has some graphic

§ operator=()

LotusGraph& LotusGraph::operator= ( LotusGraph const &  orig)
private

§ readPictureData()

bool LotusGraph::readPictureData ( long  endPos)
protected

reads a picture data

§ readPictureDefinition()

bool LotusGraph::readPictureDefinition ( long  endPos)
protected

reads a picture definition

§ readTextBoxData()

bool LotusGraph::readTextBoxData ( long  endPos)
protected

reads a graphic textbox data

§ readZoneBegin()

bool LotusGraph::readZoneBegin ( long  endPos)
protected

reads a begin graphic zone

§ readZoneData()

bool LotusGraph::readZoneData ( long  endPos,
int  type 
)
protected

reads a graphic zone

§ sendGraphics()

void LotusGraph::sendGraphics ( int  sheetId)
protected

send the graphics corresponding to a sheetId

§ sendPicture()

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

try to send a picture

Referenced by sendGraphics().

§ sendTextBox()

void LotusGraph::sendTextBox ( WPSEntry const &  entry)
protected

try to send a textbox content's

§ setListener()

void LotusGraph::setListener ( WKSContentListenerPtr listen)
inline

sets the listener

§ version()

int LotusGraph::version ( ) const
protected

return the file version

Friends And Related Function Documentation

§ LotusGraphInternal::SubDocument

friend class LotusGraphInternal::SubDocument
friend

§ LotusParser

friend class LotusParser
friend

Member Data Documentation

§ m_asciiFile

libwps::DebugFile& LotusGraph::m_asciiFile
private

the ascii file

§ m_input

§ m_listener

shared_ptr<WKSContentListener> LotusGraph::m_listener
private

§ m_mainParser

LotusParser& LotusGraph::m_mainParser
private

the listener (if set)

the main parser

Referenced by sendTextBox(), and version().

§ m_state

§ m_styleManager

shared_ptr<LotusStyleManager> LotusGraph::m_styleManager
private

the style manager

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


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

Generated on Tue Nov 1 2016 15:22:57 for libwps by doxygen 1.8.12