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