QuattroDosChart Class Reference

This class parses Quattro Pro DOS chart file. More...

#include <QuattroDosChart.h>

Public Member Functions

 QuattroDosChart (QuattroDosParser &parser)
 constructor More...
 
 ~QuattroDosChart ()
 destructor More...
 
void setListener (WKSContentListenerPtr &listen)
 sets the listener More...
 
bool readChartSetType ()
 reads the chart type: b8(3d) or ca(bubble) More...
 
bool readChartName ()
 reads the chart name: b9 More...
 
bool readChart ()
 reads a structure which define a chart: 2d(default), 2e(name + value) More...
 
int getNumSpreadsheets () const
 returns the number of spreadsheet More...
 
void getChartPositionMap (int sheetId, std::map< Vec2i, Vec2i > &cellMap) const
 returns the list of cell's begin to end corresponding to a chart More...
 
bool sendChart (int sheetId, Vec2i const &cell, Vec2f const &chartSize)
 try to send the chart corresponding to sheetId and a position 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 sendText (WPSEntry const &entry)
 try to send the text More...
 

Private Member Functions

 QuattroDosChart (QuattroDosChart const &orig)=delete
 
QuattroDosChartoperator= (QuattroDosChart const &orig)=delete
 
libwps::DebugFileascii ()
 returns the debug file More...
 

Private Attributes

RVNGInputStreamPtr m_input
 the input More...
 
std::shared_ptr
< WKSContentListener
m_listener
 
QuattroDosParserm_mainParser
 the listener (if set) More...
 
std::shared_ptr
< QuattroDosChartInternal::State
m_state
 the internal state More...
 
libwps::DebugFilem_asciiFile
 the ascii file More...
 

Friends

class QuattroDosParser
 
class QuattroDosChartInternal::Chart
 

Detailed Description

This class parses Quattro Pro DOS chart file.

Constructor & Destructor Documentation

QuattroDosChart::QuattroDosChart ( QuattroDosParser parser)
explicit

constructor

QuattroDosChart::~QuattroDosChart ( )

destructor

QuattroDosChart::QuattroDosChart ( QuattroDosChart const &  orig)
privatedelete

Member Function Documentation

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

returns the debug file

Referenced by readChart(), readChartName(), and readChartSetType().

bool QuattroDosChart::checkFilePosition ( long  pos)
protected

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

void QuattroDosChart::getChartPositionMap ( int  sheetId,
std::map< Vec2i, Vec2i > &  cellMap 
) const

returns the list of cell's begin to end corresponding to a chart

int QuattroDosChart::getNumSpreadsheets ( ) const

returns the number of spreadsheet

QuattroDosChart& QuattroDosChart::operator= ( QuattroDosChart const &  orig)
privatedelete
bool QuattroDosChart::readChart ( )

reads a structure which define a chart: 2d(default), 2e(name + value)

bool QuattroDosChart::readChartName ( )

reads the chart name: b9

bool QuattroDosChart::readChartSetType ( )

reads the chart type: b8(3d) or ca(bubble)

bool QuattroDosChart::sendChart ( int  sheetId,
Vec2i const &  cell,
Vec2f const &  chartSize 
)

try to send the chart corresponding to sheetId and a position

bool QuattroDosChart::sendText ( WPSEntry const &  entry)
protected

try to send the text

Referenced by QuattroDosChartInternal::Chart::sendContent().

void QuattroDosChart::setListener ( WKSContentListenerPtr listen)
inline

sets the listener

int QuattroDosChart::version ( ) const
protected

return the file version

Referenced by readChart().

Friends And Related Function Documentation

friend class QuattroDosChartInternal::Chart
friend
friend class QuattroDosParser
friend

Member Data Documentation

libwps::DebugFile& QuattroDosChart::m_asciiFile
private

the ascii file

Referenced by ascii().

RVNGInputStreamPtr QuattroDosChart::m_input
private
std::shared_ptr<WKSContentListener> QuattroDosChart::m_listener
private

Referenced by sendChart(), sendText(), and setListener().

QuattroDosParser& QuattroDosChart::m_mainParser
private

the listener (if set)

the main parser

Referenced by readChart(), readChartName(), sendText(), and version().

std::shared_ptr<QuattroDosChartInternal::State> QuattroDosChart::m_state
private

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

Generated on Wed Dec 26 2018 19:08:24 for libwps by doxygen 1.8.8