Small class used to store the decoded zone of HanMacWrdKParser. More...
#include <HanMacWrdKParser.hxx>
Public Member Functions | |
HanMacWrdKZone (MWAWInputStreamPtr const &input, libmwaw::DebugFile &asciiFile) | |
constructor given an input and an asciiFile | |
HanMacWrdKZone (std::shared_ptr< libmwaw::DebugFile > const &asciiFile) | |
constructor given an asciiFile (used for compressed zone) | |
~HanMacWrdKZone () | |
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 | |
librevenge::RVNGBinaryData & | getBinaryData () |
returns a pointer to the binary data | |
std::string | name () const |
returns the zone name | |
libmwaw::DebugFile & | ascii () const |
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 | |
librevenge::RVNGBinaryData | m_data |
the storage (if needed) | |
libmwaw::DebugFile * | m_asciiFile |
the debug file | |
std::shared_ptr< libmwaw::DebugFile > | m_asciiFilePtr |
the file pointer | |
Private Member Functions | |
HanMacWrdKZone (HanMacWrdKZone const &orig)=delete | |
HanMacWrdKZone & | operator= (HanMacWrdKZone const &orig)=delete |
Friends | |
std::ostream & | operator<< (std::ostream &o, HanMacWrdKZone const &zone) |
operator << | |
Small class used to store the decoded zone of HanMacWrdKParser.
HanMacWrdKZone::HanMacWrdKZone | ( | MWAWInputStreamPtr const & | input, |
libmwaw::DebugFile & | asciiFile | ||
) |
constructor given an input and an asciiFile
|
explicit |
constructor given an asciiFile (used for compressed zone)
HanMacWrdKZone::~HanMacWrdKZone | ( | ) |
destructor
|
privatedelete |
|
inline |
returns the debug file
Referenced by HanMacWrdKText::readFont(), HanMacWrdKText::readParagraph(), HanMacWrdKParser::readPrintInfo(), HanMacWrdKText::readToken(), HanMacWrdKParser::readZoneb(), HanMacWrdKText::sendText(), and ~HanMacWrdKZone().
|
inline |
returns the first position in the input
Referenced by HanMacWrdKText::canSendTextAsGraphic(), HanMacWrdKText::computeNumPages(), HanMacWrdKParser::readPrintInfo(), HanMacWrdKParser::readZoneb(), and HanMacWrdKText::sendText().
|
inline |
returns the last position in the input
Referenced by HanMacWrdKText::canSendTextAsGraphic(), HanMacWrdKText::computeNumPages(), HanMacWrdKParser::readPrintInfo(), HanMacWrdKParser::readZoneb(), and HanMacWrdKText::sendText().
|
inline |
returns the file begin position
Referenced by HanMacWrdKParser::readPrintInfo(), HanMacWrdKParser::readZoneb(), and HanMacWrdKText::sendText().
|
inline |
returns the file begin position
|
inline |
returns a pointer to the binary data
|
inline |
returns the zone size
Referenced by HanMacWrdKText::readFont(), HanMacWrdKText::readParagraph(), HanMacWrdKParser::readPrintInfo(), HanMacWrdKText::readToken(), HanMacWrdKParser::readZoneb(), and valid().
|
inline |
returns the zone name
Referenced by name(), HanMacWrdKParser::readPrintInfo(), HanMacWrdKParser::readZoneb(), and HanMacWrdKText::sendText().
|
static |
returns the zone name
|
privatedelete |
|
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 HanMacWrdKText::canSendTextAsGraphic(), HanMacWrdKText::computeNumPages(), and HanMacWrdKText::sendText().
|
friend |
operator <<
|
protected |
the debug file
Referenced by ascii().
|
protected |
the file pointer
Referenced by begin(), end(), length(), and ~HanMacWrdKZone().
|
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 HanMacWrdKZone::m_extra |
some extra data
|
protected |
the begin of the entry
Referenced by begin(), fileBeginPos(), length(), setFileBeginPos(), setFileLength(), and setFilePositions().
long HanMacWrdKZone::m_id |
the zone id
Referenced by HanMacWrdKText::canSendTextAsGraphic(), HanMacWrdKText::computeNumPages(), and HanMacWrdKText::sendText().
MWAWInputStreamPtr HanMacWrdKZone::m_input |
|
mutable |
true if the zone is sended
Referenced by HanMacWrdKText::flushExtra(), HanMacWrdKParser::readPrintInfo(), HanMacWrdKParser::readZoneb(), and HanMacWrdKText::sendText().
long HanMacWrdKZone::m_subId |
the zone subId
int HanMacWrdKZone::m_type |
the type : 1(text), ....
Referenced by name().