This class parses Quattro9Pro graph file. More...
#include <Quattro9Graph.h>
Public Member Functions | |
Quattro9Graph (Quattro9Parser &parser) | |
constructor | |
~Quattro9Graph () | |
destructor | |
void | setListener (WKSContentListenerPtr &listen) |
sets the listener | |
void | cleanState () |
clean internal state | |
void | updateState () |
update the state (need to be called before sending data) | |
bool | getColor (int id, WPSColor &color) const |
returns the color corresponding to an id | |
bool | getPattern (int id, WPSGraphicStyle::Pattern &pattern) const |
returns the pattern corresponding to a pattern id between 0 and 24 | |
Static Protected Member Functions | |
static bool | readFrameStyle (std::shared_ptr< WPSStream > const &stream) |
try to read a frame style zone: 2131 | |
static bool | readFramePattern (std::shared_ptr< WPSStream > const &stream) |
try to read a frame style zone: 2141 | |
static bool | readFrameHeader (std::shared_ptr< WPSStream > const &stream) |
try to read a frame header zone: 2171 | |
Private Member Functions | |
Quattro9Graph (Quattro9Graph const &orig)=delete | |
Quattro9Graph & | operator= (Quattro9Graph const &orig)=delete |
Private Attributes | |
std::shared_ptr< WKSContentListener > | m_listener |
Quattro9Parser & | m_mainParser |
the listener (if set) | |
std::shared_ptr< Quattro9GraphInternal::State > | m_state |
the internal state | |
Friends | |
class | Quattro9Parser |
class | Quattro9GraphInternal::SubDocument |
This class parses Quattro9Pro graph file.
|
explicit |
constructor
Quattro9Graph::~Quattro9Graph | ( | ) |
destructor
|
privatedelete |
void Quattro9Graph::cleanState | ( | ) |
clean internal state
returns the color corresponding to an id
bool Quattro9Graph::getPattern | ( | int | id, |
WPSGraphicStyle::Pattern & | pattern ) const |
returns the pattern corresponding to a pattern id between 0 and 24
|
privatedelete |
|
protected |
read the begin/end graph zone: 1401/1402
|
protected |
try to read a begin/end zone: 2051
|
staticprotected |
try to read a frame header zone: 2171
|
staticprotected |
try to read a frame style zone: 2141
|
staticprotected |
try to read a frame style zone: 2131
|
protected |
try to read a graph header zone: 2051
|
protected |
try to read the OLE name zone: 21d1
|
protected |
try to read a shape zone: 2221, 23d1
|
protected |
try to read a shape sub zone: 2221, 23d1
Referenced by readShape(), and readShapeRec().
|
protected |
try to read a textbox style zone: 2371
|
protected |
try to read a textbox text zone: 2372
|
protected |
send a OLE
Referenced by sendPageGraphics().
send the page graphic corresponding to a sheet
|
protected |
send a shape
Referenced by sendPageGraphics(), sendShape(), and sendShape().
|
protected |
send a shape (recursif)
|
protected |
send a shape
|
protected |
send a textbox
Referenced by sendPageGraphics().
|
inline |
sets the listener
|
protected |
stores the OLE objets
void Quattro9Graph::updateState | ( | ) |
update the state (need to be called before sending data)
|
protected |
return the file version
|
friend |
|
private |
Referenced by sendOLE(), sendShape(), sendShape(), sendShape(), sendTextbox(), and setListener().
|
private |
the listener (if set)
the main parser
Referenced by readOLEName(), readTextboxStyle(), readTextboxText(), sendOLE(), sendShape(), sendTextbox(), and version().
|
private |
the internal state
Referenced by cleanState(), getColor(), getPattern(), readBeginEnd(), readBeginEndZone(), readGraphHeader(), readOLEName(), readShape(), readShapeRec(), readTextboxStyle(), readTextboxText(), sendOLE(), sendPageGraphics(), storeObjects(), and version().