the main class to read the graphic part of a Mariner Write file More...
#include <MarinerWrtGraph.hxx>
Public Member Functions | |
MarinerWrtGraph (MarinerWrtParser &parser) | |
constructor | |
virtual | ~MarinerWrtGraph () |
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 | |
float | getPatternPercent (int id) const |
return the pattern percent which corresponds to an id (or -1) | |
bool | readPostscript (MarinerWrtEntry const &entry, int zoneId) |
try to read a postscript zone | |
bool | readToken (MarinerWrtEntry const &entry, int zoneId) |
try to read a token zone (can be a picture or a field) | |
bool | readTokenBlock0 (MarinerWrtStruct const &data, MarinerWrtGraphInternal::Token &tkn, std::string &res) |
try to read the first token zone ( which can contains some field text ) | |
void | sendPicture (MarinerWrtGraphInternal::Token const &tkn) |
try to send a picture token as char | |
void | sendRule (MarinerWrtGraphInternal::Token const &tkn) |
try to send a rule | |
void | sendPSZone (MarinerWrtGraphInternal::PSZone const &ps, MWAWPosition const &pos) |
try to send a ps picture as pos | |
void | sendToken (int zoneId, long tokenId) |
try to send a token | |
void | sendText (int zoneId) |
ask the main parser to send a text zone | |
Protected Attributes | |
MWAWParserStatePtr | m_parserState |
the parser state | |
std::shared_ptr< MarinerWrtGraphInternal::State > | m_state |
the state | |
MarinerWrtParser * | m_mainParser |
the main parser; | |
Private Member Functions | |
MarinerWrtGraph (MarinerWrtGraph const &orig)=delete | |
MarinerWrtGraph & | operator= (MarinerWrtGraph const &orig)=delete |
Friends | |
class | MarinerWrtParser |
class | MarinerWrtGraphInternal::SubDocument |
the main class to read the graphic part of a Mariner Write file
|
explicit |
constructor
|
virtual |
destructor
|
privatedelete |
|
protected |
sends the data which have not yet been sent to the listener
|
protected |
return the pattern percent which corresponds to an id (or -1)
int MarinerWrtGraph::numPages | ( | ) | const |
returns the number of pages
|
privatedelete |
|
protected |
try to read a postscript zone
|
protected |
try to read a token zone (can be a picture or a field)
|
protected |
try to read the first token zone ( which can contains some field text )
Referenced by readToken().
|
protected |
try to send the page graphic
|
protected |
try to send a picture token as char
Referenced by sendToken().
|
protected |
try to send a ps picture as pos
Referenced by flushExtra().
|
protected |
try to send a rule
Referenced by sendToken().
|
protected |
ask the main parser to send a text zone
Referenced by MarinerWrtGraphInternal::SubDocument::parse().
|
protected |
try to send a token
Referenced by flushExtra().
int MarinerWrtGraph::version | ( | ) | const |
returns the file version
Referenced by getPatternPercent().
|
friend |
|
friend |
|
protected |
the main parser;
Referenced by readPostscript(), readToken(), sendText(), and sendToken().
|
protected |
the parser state
Referenced by readPostscript(), readToken(), readTokenBlock0(), sendPicture(), sendPSZone(), sendRule(), sendToken(), and version().
|
protected |
the state
Referenced by flushExtra(), getPatternPercent(), numPages(), readPostscript(), readToken(), sendRule(), and sendToken().