Small class used to store the decoded zone of HMWKParser. More...
#include <HMWKParser.hxx>
Public Member Functions | |
HMWKZone (MWAWInputStreamPtr input, libmwaw::DebugFile &asciiFile) | |
constructor given an input and an asciiFile More... | |
HMWKZone (shared_ptr< libmwaw::DebugFile > asciiFile) | |
constructor given an asciiFile (used for compressed zone) More... | |
~HMWKZone () | |
destructor More... | |
long | begin () const |
returns the first position in the input More... | |
long | end () const |
returns the last position in the input More... | |
long | length () const |
returns the zone size More... | |
bool | valid () const |
returns true if the zone data exists More... | |
long | fileBeginPos () const |
returns the file begin position More... | |
long | fileEndPos () const |
returns the file begin position More... | |
void | setFileBeginPos (long begPos) |
sets the begin file pos More... | |
void | setFileLength (long len) |
sets the file length More... | |
void | setFilePositions (long begPos, long endPos) |
sets the begin/end file pos More... | |
WPXBinaryData & | getBinaryData () |
returns a pointer to the binary data More... | |
std::string | name () const |
returns the zone name More... | |
libmwaw::DebugFile & | ascii () |
returns the debug file More... | |
Static Public Member Functions | |
static std::string | name (int type) |
returns the zone name More... | |
Public Attributes | |
int | m_type |
the type : 1(text), .... More... | |
long | m_id |
the zone id More... | |
long | m_subId |
the zone subId More... | |
MWAWInputStreamPtr | m_input |
the main input More... | |
std::string | m_extra |
some extra data More... | |
bool | m_parsed |
true if the zone is sended More... | |
Protected Attributes | |
long | m_filePos |
the begin of the entry More... | |
long | m_endFilePos |
the end of the entry More... | |
WPXBinaryData | m_data |
the storage (if needed) More... | |
libmwaw::DebugFile * | m_asciiFile |
the debug file More... | |
shared_ptr< libmwaw::DebugFile > | m_asciiFilePtr |
the file pointer More... | |
Private Member Functions | |
HMWKZone (HMWKZone const &orig) | |
HMWKZone & | operator= (HMWKZone const &orig) |
Friends | |
std::ostream & | operator<< (std::ostream &o, HMWKZone const &zone) |
operator << More... | |
Small class used to store the decoded zone of HMWKParser.
HMWKZone::HMWKZone | ( | MWAWInputStreamPtr | input, |
libmwaw::DebugFile & | asciiFile | ||
) |
constructor given an input and an asciiFile
HMWKZone::HMWKZone | ( | shared_ptr< libmwaw::DebugFile > | asciiFile | ) |
constructor given an asciiFile (used for compressed zone)
HMWKZone::~HMWKZone | ( | ) |
destructor
|
private |
|
inline |
returns the debug file
Referenced by HMWKText::readFont(), HMWKText::readParagraph(), HMWKParser::readPrintInfo(), HMWKText::readToken(), HMWKParser::readZoneb(), HMWKText::sendText(), and ~HMWKZone().
|
inline |
returns the first position in the input
Referenced by HMWKText::canSendTextAsGraphic(), HMWKParser::readPrintInfo(), HMWKParser::readZoneb(), and HMWKText::sendText().
|
inline |
returns the last position in the input
Referenced by HMWKParser::readPrintInfo(), and HMWKParser::readZoneb().
|
inline |
returns the file begin position
Referenced by HMWKParser::readPrintInfo(), HMWKParser::readZoneb(), and HMWKText::sendText().
|
inline |
returns the file begin position
|
inline |
returns a pointer to the binary data
|
inline |
returns the zone size
Referenced by HMWKText::canSendTextAsGraphic(), HMWKText::readFont(), HMWKText::readParagraph(), HMWKParser::readPrintInfo(), HMWKText::readToken(), HMWKParser::readZoneb(), HMWKText::sendText(), and valid().
|
inline |
returns the zone name
Referenced by operator<<(), HMWKParser::readPrintInfo(), HMWKParser::readZoneb(), and HMWKText::sendText().
|
static |
returns the zone name
|
inline |
sets the begin file pos
|
inline |
sets the file length
|
inline |
sets the begin/end file pos
|
inline |
returns true if the zone data exists
Referenced by HMWKText::canSendTextAsGraphic(), and HMWKText::sendText().
|
friend |
operator <<
|
protected |
the debug file
Referenced by ascii().
|
protected |
the file pointer
Referenced by begin(), end(), length(), and ~HMWKZone().
|
protected |
the storage (if needed)
Referenced by end(), getBinaryData(), and length().
|
protected |
the end of the entry
Referenced by end(), fileEndPos(), length(), setFileBeginPos(), setFileLength(), and setFilePositions().
std::string HMWKZone::m_extra |
some extra data
Referenced by operator<<().
|
protected |
the begin of the entry
Referenced by begin(), fileBeginPos(), length(), setFileBeginPos(), setFileLength(), and setFilePositions().
long HMWKZone::m_id |
the zone id
Referenced by HMWKText::canSendTextAsGraphic(), operator<<(), and HMWKText::sendText().
MWAWInputStreamPtr HMWKZone::m_input |
the main input
Referenced by HMWKText::canSendTextAsGraphic(), HMWKText::readFont(), HMWKText::readParagraph(), HMWKParser::readPrintInfo(), HMWKText::readToken(), HMWKParser::readZoneb(), and HMWKText::sendText().
|
mutable |
true if the zone is sended
Referenced by HMWKText::flushExtra(), HMWKParser::readPrintInfo(), HMWKParser::readZoneb(), and HMWKText::sendText().
long HMWKZone::m_subId |
the zone subId
Referenced by operator<<().
int HMWKZone::m_type |
the type : 1(text), ....
Referenced by name().