main zone in a RagTime v5-v6 document More...
#include <RagTime5StructManager.hxx>
Public Member Functions | |
RagTime5Zone (MWAWInputStreamPtr const &input, libmwaw::DebugFile &asc) | |
constructor More... | |
virtual | ~RagTime5Zone () |
destructor More... | |
std::string | getZoneName () const |
returns the zone name More... | |
std::string | getKindLastPart (bool main=true) const |
returns the main type More... | |
MWAWInputStreamPtr | getInput () |
returns the current input More... | |
void | setInput (MWAWInputStreamPtr const &input) |
reset the current input More... | |
bool | isMainInput () const |
returns true if the input correspond to the basic file More... | |
libmwaw::DebugFile & | ascii () |
returns the current ascii file More... | |
void | setAsciiFileName (std::string const &name) |
defines the ascii name More... | |
void | createAsciiFile () |
creates the ascii file More... | |
void | addErrorInDebugFile (std::string const &zoneName) |
mark a zone as bad More... | |
Public Attributes | |
int | m_level |
the zone level More... | |
std::string | m_parentName |
the parent name More... | |
long | m_defPosition |
the position of the definition in the main zones More... | |
std::string | m_kinds [2] |
the zone types: normal and packing More... | |
MWAWEntry | m_entry |
the zone entry More... | |
std::string | m_name |
the zone name ( mainly used for debugging) More... | |
bool | m_hiLoEndian |
true if the endian is hilo More... | |
int | m_ids [3] |
the zone id More... | |
int | m_idsFlag [3] |
the zone flag More... | |
std::vector< MWAWEntry > | m_entriesList |
the list of original entries More... | |
std::map< int, std::shared_ptr< RagTime5Zone > > | m_childIdToZoneMap |
the child zones More... | |
int | m_variableD [2] |
the content of the zone D if it exists More... | |
bool | m_isInitialised |
a flag to know if the zone is initialised (stream, hiLoEndian) More... | |
bool | m_isParsed |
a flag to know if the zone is parsed More... | |
std::string | m_extra |
extra data More... | |
Protected Attributes | |
MWAWInputStreamPtr | m_input |
the main input More... | |
MWAWInputStreamPtr | m_defaultInput |
the main file input More... | |
std::string | m_asciiName |
the ascii file name ( used if we need to create a ascii file) More... | |
libmwaw::DebugFile * | m_asciiFile |
the ascii file corresponding to an input More... | |
libmwaw::DebugFile * | m_mainAsciiFile |
the main ascii file (used to print error) More... | |
std::shared_ptr< libmwaw::DebugFile > | m_localAsciiFile |
the local ascii file ( if we need to create a new input) More... | |
Private Member Functions | |
RagTime5Zone (RagTime5Zone const &orig)=delete | |
RagTime5Zone & | operator= (RagTime5Zone const &orig)=delete |
Friends | |
std::ostream & | operator<< (std::ostream &o, RagTime5Zone const &z) |
operator<< More... | |
main zone in a RagTime v5-v6 document
|
inline |
constructor
|
virtual |
destructor
|
privatedelete |
void RagTime5Zone::addErrorInDebugFile | ( | std::string const & | zoneName | ) |
mark a zone as bad
Referenced by RagTime5Document::readScriptComment().
|
inline |
returns the current ascii file
Referenced by RagTime5Spreadsheet::readCellBlocks(), RagTime5Spreadsheet::readCellRefPos(), RagTime5Chart::readChartCluster(), RagTime5ClusterManager::readCluster(), RagTime5ClusterManager::readClusterGObjProperties(), RagTime5Document::readClusterLinkList(), RagTime5Document::readDocInfoClusterData(), RagTime5Document::readDocumentVersion(), RagTime5ClusterManager::readFieldHeader(), RagTime5Formula::readFormulaDefinition(), RagTime5Formula::readFormulaPosition(), RagTime5Graph::readGraphicShape(), RagTime5Graph::readPictureContainer(), RagTime5Graph::readPictureData(), RagTime5Graph::readPictureList(), RagTime5Graph::readPictureMatch(), RagTime5Spreadsheet::readSheetDimensions(), RagTime5Document::readString(), RagTime5Document::readStructData(), RagTime5Text::readTextCluster(), RagTime5Text::readTextSeparators(), RagTime5Document::readUnicodeString(), RagTime5Spreadsheet::readValuesTree(), RagTime5Document::readZoneData(), RagTime5Text::send(), and RagTime5Document::unpackZone().
void RagTime5Zone::createAsciiFile | ( | ) |
creates the ascii file
Referenced by ascii().
|
inline |
returns the current input
Referenced by RagTime5ClusterManager::getClusterBasicHeaderInfo(), RagTime5ClusterManager::getClusterFileType(), RagTime5ClusterManager::readCluster(), RagTime5ClusterManager::readClusterGObjProperties(), RagTime5Document::readClusterLinkList(), RagTime5Document::readDocInfoClusterData(), RagTime5Document::readDocumentVersion(), RagTime5ClusterManager::readFieldHeader(), RagTime5Formula::readFormulaDefinition(), RagTime5Formula::readFormulaPosition(), RagTime5Graph::readGraphicShape(), RagTime5Graph::readPictureData(), RagTime5Graph::readPictureList(), RagTime5Graph::readPictureMatch(), RagTime5Document::readString(), RagTime5Document::readStructData(), RagTime5Text::readTextSeparators(), RagTime5StructManager::readTypeDefinitions(), RagTime5Document::readUnicodeString(), RagTime5Text::send(), RagTime5Document::unpackZone(), and RagTime5Document::updateZoneInput().
|
inline |
returns the main type
Referenced by RagTime5Graph::readPictureData(), RagTime5Graph::readPictureRep(), RagTime5Document::readScriptComment(), RagTime5Text::readTextSeparators(), and RagTime5Document::readZoneData().
std::string RagTime5Zone::getZoneName | ( | ) | const |
returns the zone name
Referenced by operator<<(), and RagTime5Document::updateZoneInput().
|
inline |
returns true if the input correspond to the basic file
Referenced by ascii(), and RagTime5Graph::readPictureData().
|
privatedelete |
|
inline |
defines the ascii name
Referenced by RagTime5Document::updateZoneInput().
|
inline |
reset the current input
Referenced by RagTime5Document::unpackZone(), and RagTime5Document::updateZoneInput().
|
friend |
operator<<
|
protected |
the ascii file corresponding to an input
Referenced by ascii().
|
protected |
the ascii file name ( used if we need to create a ascii file)
Referenced by setAsciiFileName().
std::map<int,std::shared_ptr<RagTime5Zone> > RagTime5Zone::m_childIdToZoneMap |
|
protected |
the main file input
Referenced by isMainInput().
long RagTime5Zone::m_defPosition |
the position of the definition in the main zones
Referenced by RagTime5Document::readDocumentVersion(), RagTime5Graph::readPictureContainer(), RagTime5Graph::readPictureData(), RagTime5Graph::readPictureList(), RagTime5Graph::readPictureMatch(), and RagTime5Document::readZoneData().
std::vector<MWAWEntry> RagTime5Zone::m_entriesList |
the list of original entries
Referenced by operator<<(), and RagTime5Document::updateZoneInput().
MWAWEntry RagTime5Zone::m_entry |
the zone entry
Referenced by RagTime5ClusterManager::getClusterBasicHeaderInfo(), operator<<(), RagTime5Spreadsheet::readCellBlocks(), RagTime5Spreadsheet::readCellRefPos(), RagTime5ClusterManager::readCluster(), RagTime5ClusterManager::readClusterGObjProperties(), RagTime5Document::readClusterLinkList(), RagTime5Document::readDocumentVersion(), RagTime5Graph::readPictureContainer(), RagTime5Graph::readPictureData(), RagTime5Graph::readPictureList(), RagTime5Graph::readPictureMatch(), RagTime5Graph::readPictureRep(), RagTime5Document::readScriptComment(), RagTime5Spreadsheet::readSheetDimensions(), RagTime5Document::readString(), RagTime5Text::readTextSeparators(), RagTime5StructManager::readTypeDefinitions(), RagTime5Document::readUnicodeString(), RagTime5Spreadsheet::readValuesTree(), RagTime5Document::readZoneData(), RagTime5Text::send(), RagTime5Document::unpackZone(), and RagTime5Document::updateZoneInput().
std::string RagTime5Zone::m_extra |
extra data
Referenced by operator<<(), and RagTime5Document::unpackZone().
bool RagTime5Zone::m_hiLoEndian |
true if the endian is hilo
Referenced by RagTime5ClusterManager::getClusterBasicHeaderInfo(), RagTime5ClusterManager::getClusterFileType(), operator<<(), RagTime5ClusterManager::readCluster(), RagTime5ClusterManager::readClusterGObjProperties(), RagTime5Document::readClusterLinkList(), RagTime5Graph::readPictureList(), RagTime5Graph::readPictureMatch(), RagTime5Document::readScriptComment(), and RagTime5StructManager::readTypeDefinitions().
int RagTime5Zone::m_ids[3] |
the zone id
Referenced by operator<<(), RagTime5Zone(), RagTime5Graph::readButtonCluster(), RagTime5ClusterManager::readCluster(), RagTime5Graph::readGraphicCluster(), RagTime5Layout::readLayoutCluster(), RagTime5Graph::readPictureCluster(), RagTime5Graph::readPictureContainer(), RagTime5Graph::readPictureData(), RagTime5Graph::readPictureRep(), RagTime5Pipeline::readPipelineCluster(), RagTime5Document::readScriptComment(), RagTime5Spreadsheet::readSpreadsheetCluster(), RagTime5Text::readTextCluster(), and RagTime5Document::readZoneData().
int RagTime5Zone::m_idsFlag[3] |
the zone flag
Referenced by operator<<(), and RagTime5Zone().
|
protected |
the main input
Referenced by getInput(), isMainInput(), and setInput().
|
mutable |
a flag to know if the zone is initialised (stream, hiLoEndian)
|
mutable |
a flag to know if the zone is parsed
Referenced by RagTime5Document::parseMainZoneInfoData(), RagTime5Spreadsheet::readCellBlocks(), RagTime5Spreadsheet::readCellRefPos(), RagTime5ClusterManager::readCluster(), RagTime5ClusterManager::readClusterGObjProperties(), RagTime5Document::readClusterLinkList(), RagTime5Document::readDocumentVersion(), RagTime5Graph::readPictureContainer(), RagTime5Graph::readPictureData(), RagTime5Graph::readPictureList(), RagTime5Graph::readPictureMatch(), RagTime5Spreadsheet::readSheetDimensions(), RagTime5Text::readTextSeparators(), RagTime5Document::readUnicodeString(), RagTime5Spreadsheet::readValuesTree(), and RagTime5Document::readZoneData().
std::string RagTime5Zone::m_kinds[2] |
the zone types: normal and packing
Referenced by getKindLastPart(), operator<<(), RagTime5Zone(), RagTime5Graph::readPictureData(), RagTime5Document::readScriptComment(), RagTime5Text::readTextSeparators(), and RagTime5Document::readZoneData().
int RagTime5Zone::m_level |
the zone level
Referenced by RagTime5Document::readZoneData().
|
protected |
the local ascii file ( if we need to create a new input)
Referenced by ascii().
|
protected |
the main ascii file (used to print error)
std::string RagTime5Zone::m_name |
the zone name ( mainly used for debugging)
Referenced by RagTime5ClusterManager::readCluster(), RagTime5Graph::readPictureList(), and RagTime5Graph::readPictureMatch().
std::string RagTime5Zone::m_parentName |
the parent name
int RagTime5Zone::m_variableD[2] |
the content of the zone D if it exists
Referenced by operator<<(), RagTime5Zone(), and RagTime5Graph::readPictureList().