Go to the documentation of this file.
34 #ifndef RAG_TIME_5_PARSER
35 # define RAG_TIME_5_PARSER
52 struct DocInfoFieldParser;
96 void parse(librevenge::RVNGTextInterface *documentInterface);
107 shared_ptr<RagTime5Zone>
getDataZone(
int dataId)
const;
136 void createDocument(librevenge::RVNGTextInterface *documentInterface);
165 std::vector<RagTime5StructManager::ZoneLink> &listLinks);
169 std::vector<RagTime5StructManager::ZoneLink> &list, std::string
const &name=
"");
176 bool readLongListWithSize(
int dataId,
int fSz, std::vector<long> &list, std::string
const &zoneName=
"");
178 bool readPositions(
int posId, std::vector<long> &listPosition);
217 bool checkClusterList(std::vector<RagTime5StructManager::ZoneLink>
const &list);
229 shared_ptr<RagTime5ParserInternal::State>
m_state;
State()
constructor
Definition: RagTime5Parser.cxx:236
std::vector< int > m_ids
the data ids
Definition: RagTime5ClusterManager.hxx:200
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
bool m_isParsed
a flag to know if the zone is parsed
Definition: RagTime5StructManager.hxx:134
virtual class which defines the ancestor of all text zone parser
Definition: MWAWParser.hxx:296
friend class RagTime5StyleManager
Definition: RagTime5Parser.hxx:83
void newPage(int number)
adds a new page
Definition: RagTime5Parser.cxx:420
int m_actPage
the actual page
Definition: RagTime5Parser.cxx:257
shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:519
@ L_ClusterLink
Definition: RagTime5ClusterManager.hxx:107
shared_ptr< RagTime5ClusterManager::Cluster > readChartCluster(RagTime5Zone &zone, int zoneType)
try to read a chart cluster (via the spreadsheet manager)
Definition: RagTime5Parser.cxx:365
RagTime5Parser & m_mainParser
the main parser
Definition: RagTime5Parser.cxx:105
bool readString(RagTime5Zone &zone, std::string &string)
try to read a string zone ( zone with id1=21,id2=23:24)
Definition: RagTime5Parser.cxx:840
virtual ~IndexUnicodeParser()
destructor
Definition: RagTime5Parser.cxx:150
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:262
bool readClusterRootData(RagTime5ClusterManager::ClusterRoot &cluster)
try to read the main cluster
Definition: RagTime5Parser.cxx:962
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
virtual ~SubDocument()
destructor
Definition: RagTime5Parser.cxx:273
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
RagTime5ClusterManager::Cluster::Type getPipelineContainerType(int pipelineId) const
try to return the container's type corresponding to an id
Definition: RagTime5Parser.cxx:412
shared_ptr< RagTime5StyleManager > m_styleManager
the style manager
Definition: RagTime5Parser.hxx:248
void setAsciiFileName(std::string const &name)
defines the ascii name
Definition: RagTime5StructManager.hxx:100
bool readUnicodeStringList(RagTime5ClusterManager::Link const &link, std::map< int, librevenge::RVNGString > &idToStringMap)
try to read a list of unicode string zone
Definition: RagTime5Parser.cxx:896
std::vector< Link > m_conditionFormulaLinks
the conditions formula links
Definition: RagTime5ClusterManager.hxx:254
DocInfoFieldParser(RagTime5Parser &parser)
constructor
Definition: RagTime5Parser.cxx:75
long m_defPosition
the position of the definition in the main zones
Definition: RagTime5StructManager.hxx:114
@ C_FormatStyles
Definition: RagTime5ClusterManager.hxx:225
Internal: the helper to read doc info parse.
Definition: RagTime5Parser.cxx:73
bool readClusterFieldsData(RagTime5ClusterManager::Cluster &cluster)
try to read the field data
Definition: RagTime5Parser.cxx:1316
@ C_Pipeline
Definition: RagTime5ClusterManager.hxx:219
std::vector< int > getIdList() const
returns the not null list dataId list
Definition: RagTime5Parser.cxx:168
virtual bool parseData(MWAWInputStreamPtr &, long, RagTime5Zone &, int, libmwaw::DebugStream &)
parse a data
Definition: RagTime5StructManager.hxx:365
int m_id
the subdocument id
Definition: RagTime5Parser.cxx:288
shared_ptr< RagTime5StyleManager > getStyleManager()
returns the style manager
Definition: RagTime5Parser.cxx:360
RagTime5ClusterManager & m_clusterManager
the main zone manager
Definition: RagTime5Parser.cxx:221
Link m_listClusterLink[2]
first the main cluster link, second list of field definition link
Definition: RagTime5ClusterManager.hxx:297
@ C_ClusterC
Definition: RagTime5ClusterManager.hxx:227
shared_ptr< RagTime5ClusterManager::Cluster > readPictureCluster(RagTime5Zone &zone, int zoneType)
try to read a picture cluster (via the graphic manager)
Definition: RagTime5Parser.cxx:385
the main class to read the spreadsheet part of RagTime 56 file
Definition: RagTime5Spreadsheet.hxx:76
std::string m_kinds[2]
the zone types: normal and packing
Definition: RagTime5StructManager.hxx:116
void createDocument(librevenge::RVNGTextInterface *documentInterface)
creates the listener which will be associated to the document
Definition: RagTime5Parser.cxx:468
This class contents the main functions needed to create a Word processing Document.
Definition: MWAWTextListener.hxx:65
@ T_Unstructured
Definition: RagTime5StructManager.hxx:221
shared_ptr< RagTime5Text > m_textParser
the text manager
Definition: RagTime5Parser.hxx:241
the main class to read a RagTime v5 file
Definition: RagTime5Parser.hxx:74
shared_ptr< RagTime5StructManager > getStructManager()
returns the structure manager
Definition: RagTime5Parser.cxx:355
bool open(std::string const &filename)
opens/creates a file to store a result
Definition: MWAWDebug.cxx:46
@ L_UnicodeList
Definition: RagTime5ClusterManager.hxx:109
void setInput(MWAWInputStreamPtr input)
reset the current input
Definition: RagTime5StructManager.hxx:82
libmwaw::DebugFile & ascii()
returns the current ascii file
Definition: RagTime5StructManager.hxx:93
bool readListZone(RagTime5ClusterManager::Link const &link)
try to read a list zone
Definition: RagTime5Parser.cxx:1653
virtual bool operator==(MWAWSubDocument const &doc) const
operator!==
Definition: RagTime5Parser.cxx:278
bool m_regroupFields
a flag use to decide if we output one debug message by field or not
Definition: RagTime5StructManager.hxx:338
Internal: the subdocument of a RagTime5Parser.
Definition: RagTime5Parser.cxx:266
a field of RagTime 5/6 structures
Definition: RagTime5StructManager.hxx:218
int version() const
returns the works version
Definition: MWAWParser.hxx:108
RagTime5Parser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor
Definition: RagTime5Parser.cxx:317
shared_ptr< RagTime5ClusterManager::Cluster > readSpreadsheetCluster(RagTime5Zone &zone, int zoneType)
try to read a spreadsheet cluster (via the spreadsheet manager)
Definition: RagTime5Parser.cxx:390
std::string getClusterName(int id)
returns "data"+id+"A" ( followed by the cluster type and name if know)
Definition: RagTime5ClusterManager.cxx:215
int m_listClusterId
the cluster list id
Definition: RagTime5ClusterManager.hxx:293
std::map< int, std::vector< int > > m_pageZonesIdMap
a map: page->main zone id
Definition: RagTime5Parser.cxx:252
@ C_ChartZone
Definition: RagTime5ClusterManager.hxx:223
std::map< int, shared_ptr< RagTime5Zone > > m_childIdToZoneMap
the child zones
Definition: RagTime5StructManager.hxx:130
long m_fileType[2]
the zone type in file
Definition: RagTime5ClusterManager.hxx:206
std::set< int > m_sendZoneSet
a set used to avoid looping when sending zone
Definition: RagTime5Parser.cxx:254
bool parseData(MWAWInputStreamPtr &input, long endPos, RagTime5Zone &, int n, libmwaw::DebugStream &f)
try to parse a data
Definition: RagTime5Parser.cxx:122
MWAWEntry m_entry
the zone entry
Definition: RagTime5StructManager.hxx:118
virtual std::string getZoneName() const
return the debug name corresponding to a zone
Definition: RagTime5StructManager.hxx:353
the main class to read the text part of RagTime 56 file
Definition: RagTime5Layout.hxx:73
bool readLongListWithSize(int dataId, int fSz, std::vector< long > &list, std::string const &zoneName="")
try to read a int/long zone data
Definition: RagTime5Parser.cxx:905
SubDocument(RagTime5Parser &pars, MWAWInputStreamPtr input, int zoneId)
Definition: RagTime5Parser.cxx:269
friend class RagTime5Graph
Definition: RagTime5Parser.hxx:76
std::string getClusterName(int id) const
return the cluster name
Definition: RagTime5Parser.cxx:178
virtual class use to parse the unstructured data
Definition: RagTime5StructManager.hxx:347
@ L_UnknownClusterC
Definition: RagTime5ClusterManager.hxx:111
DataParser(std::string const &zoneName)
constructor
Definition: RagTime5StructManager.hxx:349
MWAWTextListenerPtr & getTextListener()
returns the text listener
Definition: MWAWParser.hxx:145
bool readFixedSizeZone(RagTime5ClusterManager::Link const &link, std::string const &name)
try to read a fixed size zone
Definition: RagTime5Parser.cxx:1726
bool readUnicodeString(RagTime5Zone &zone, std::string const &what="")
try to read a unicode string zone
Definition: RagTime5Parser.cxx:870
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:42
bool unpackZone(RagTime5Zone &zone, MWAWEntry const &entry, std::vector< unsigned char > &data)
try to unpack a zone
Definition: RagTime5Parser.cxx:2030
ClustListParser(RagTime5ClusterManager &clusterManager, int fieldSize, std::string const &zoneName)
constructor
Definition: RagTime5Parser.cxx:157
std::vector< shared_ptr< RagTime5Zone > > m_zonesList
the zone list
Definition: RagTime5Parser.cxx:244
int m_level
the zone level
Definition: RagTime5StructManager.hxx:110
@ T_FieldList
Definition: RagTime5StructManager.hxx:220
@ C_PictureZone
Definition: RagTime5ClusterManager.hxx:223
Link m_scriptComment
the script comment zone
Definition: RagTime5ClusterManager.hxx:315
bool readClusterLinkList(RagTime5Zone &zone, RagTime5ClusterManager::Link const &link, std::vector< RagTime5StructManager::ZoneLink > &listLinks)
try to read a cluster link zone
Definition: RagTime5Parser.cxx:1239
Internal: the structures of a RagTime5Parser.
Definition: RagTime5Parser.cxx:71
basic parser to read image/main graphic position properties
Definition: RagTime5StructManager.hxx:378
@ C_ColorPattern
Definition: RagTime5ClusterManager.hxx:219
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWParser.hxx:195
basic class used to manage RagTime 5/6 zones
Definition: RagTime5ClusterManager.hxx:59
@ C_TextStyles
Definition: RagTime5ClusterManager.hxx:225
virtual ~DocInfoFieldParser()
destructor
Definition: RagTime5Parser.cxx:108
bool send(int zoneId, MWAWListenerPtr listener, MWAWPosition const &pos, int partId=0, int part2Id=0)
try to send a cluster zone (mainly unimplemented)
Definition: RagTime5Parser.cxx:2493
basic class used to read/store RagTime 5/6 styles
Definition: RagTime5StyleManager.hxx:61
std::string const & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
bool checkClusterList(std::vector< RagTime5StructManager::ZoneLink > const &list)
check a cluster list
Definition: RagTime5Parser.cxx:1131
int m_dataId
the data id (or 0)
Definition: RagTime5StructManager.hxx:299
@ L_LongList
Definition: RagTime5ClusterManager.hxx:109
virtual class use to parse the field data
Definition: RagTime5StructManager.hxx:308
int m_N
the number of data ( or some flag if m_N & 0x8020)
Definition: RagTime5ClusterManager.hxx:202
the main class to read the graphic part of RagTime 56 file
Definition: RagTime5Graph.hxx:80
SubDocumentType
Definition: libmwaw_internal.hxx:178
shared_ptr< RagTime5ParserInternal::State > m_state
the state
Definition: RagTime5Parser.hxx:229
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:85
MWAWListenerPtr getMainListener()
returns the main listener
Definition: MWAWParser.cxx:108
std::string getZoneName() const
returns the zone name
Definition: RagTime5ClusterManager.hxx:130
void setTextListener(MWAWTextListenerPtr &listener)
sets the text listener
Definition: MWAWParser.cxx:146
long m_fileType
the file type
Definition: RagTime5StructManager.hxx:239
bool readLongList(RagTime5ClusterManager::Link const &link, std::vector< long > &list)
try to read/get the list of long of a L_LongList
Definition: RagTime5Parser.cxx:945
void setAsciiName(char const *name)
Debugging: change the default ascii file.
Definition: MWAWParser.hxx:227
void skipZone(long beginPos, long endPos)
skips the file zone defined by beginPos-endPos
Definition: MWAWDebug.hxx:105
bool readClusterScriptData(RagTime5ClusterManager::ClusterScript &cluster)
try to read the script data
Definition: RagTime5Parser.cxx:1560
bool empty() const
returns true if all link are empty
Definition: RagTime5ClusterManager.hxx:121
long m_longValue[2]
the long value
Definition: RagTime5StructManager.hxx:243
int m_headerHeight
the header height if known
Definition: RagTime5Parser.cxx:259
~ClustListParser()
destructor
Definition: RagTime5Parser.cxx:228
Link m_listUnicodeLink
a link to a list of unknown index+unicode string
Definition: RagTime5ClusterManager.hxx:291
virtual bool parseField(Field &field, RagTime5Zone &, int, libmwaw::DebugStream &f)
parse a field
Definition: RagTime5StructManager.hxx:332
shared_ptr< RagTime5ClusterManager::Cluster > readGraphicCluster(RagTime5Zone &zone, int zoneType)
try to read a graphic cluster (via the graphic manager)
Definition: RagTime5Parser.cxx:370
Link m_linkUnknown
other link: scripts and field 6
Definition: RagTime5ClusterManager.hxx:300
shared_ptr< RagTime5ClusterManager::Cluster > readLayoutCluster(RagTime5Zone &zone, int zoneType)
try to read a layout cluster (via the layout manager)
Definition: RagTime5Parser.cxx:375
std::string getKindLastPart(bool main=true) const
returns the main type
Definition: RagTime5StructManager.hxx:66
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
@ T_Long
Definition: RagTime5StructManager.hxx:220
@ C_GraphicZone
Definition: RagTime5ClusterManager.hxx:223
bool createZones()
finds the different objects zones
Definition: RagTime5Parser.cxx:503
std::string m_extra
extra data
Definition: RagTime5StructManager.hxx:136
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:56
bool m_hiLoEndian
the cluster hiLo endian
Definition: RagTime5ClusterManager.hxx:244
virtual bool operator!=(MWAWSubDocument const &doc) const
operator!=
Definition: RagTime5Parser.cxx:303
main zone in a RagTime v5-v6 document
Definition: RagTime5StructManager.hxx:49
void parse(librevenge::RVNGTextInterface *documentInterface)
virtual function used to parse the input
Definition: RagTime5Parser.cxx:436
@ C_TextZone
Definition: RagTime5ClusterManager.hxx:223
void setVersion(int vers)
sets the document's version
Definition: MWAWParser.hxx:206
int m_styleClusterIds[8]
the list of style cluster ( graph, units, unitsbis, text, format, unknown, graphcolor,...
Definition: RagTime5ClusterManager.hxx:280
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:82
bool readPositions(int posId, std::vector< long > &listPosition)
try to read a positions zone in data
Definition: RagTime5Parser.cxx:954
std::string getZoneName() const
returns the zone name
Definition: RagTime5StructManager.cxx:1660
shared_ptr< RagTime5ClusterManager::Cluster > readTextCluster(RagTime5Zone &zone, int zoneType)
try to read a text cluster (via the text manager)
Definition: RagTime5Parser.cxx:395
@ PageBreak
Definition: MWAWListener.hxx:58
@ L_FieldsList
Definition: RagTime5ClusterManager.hxx:110
IndexUnicodeParser(RagTime5Parser &, bool readIndex, std::string const &zoneName)
constructor
Definition: RagTime5Parser.cxx:115
int m_numPages
the number of page of the final document
Definition: RagTime5Parser.cxx:257
MWAWInputStreamPtr getInput()
returns the current input
Definition: RagTime5StructManager.hxx:77
static bool readUnicodeString(MWAWInputStreamPtr input, long endPos, librevenge::RVNGString &string)
try to read a unicode string
Definition: RagTime5StructManager.cxx:240
virtual std::string getZoneName() const
return the debug name corresponding to a zone
Definition: RagTime5StructManager.hxx:314
FieldParser(std::string const &zoneName)
constructor
Definition: RagTime5StructManager.hxx:310
Definition: libmwaw_internal.hxx:142
@ C_GraphicStyles
Definition: RagTime5ClusterManager.hxx:225
std::vector< MWAWEntry > m_entriesList
the list of original entries
Definition: RagTime5StructManager.hxx:128
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:72
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:61
MWAWPageSpan const & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
friend class RagTime5Layout
Definition: RagTime5Parser.hxx:77
std::vector< long > m_longList
a list of long used to store decal
Definition: RagTime5ClusterManager.hxx:208
int m_footerHeight
the footer height if known
Definition: RagTime5Parser.cxx:260
@ C_ColorStyles
Definition: RagTime5ClusterManager.hxx:225
shared_ptr< RagTime5Zone > getDataZone(int dataId) const
returns the zone corresponding to a data id (or 0)
Definition: RagTime5Parser.cxx:400
Link m_graphicTypeLink
the graphic type id
Definition: RagTime5ClusterManager.hxx:286
the main class to read the text part of RagTime 56 file
Definition: RagTime5Pipeline.hxx:73
the main class to read the text part of RagTime 56 file
Definition: RagTime5Text.hxx:76
void init()
inits all internal variables
Definition: RagTime5Parser.cxx:329
std::vector< Link > m_linksList
the link list
Definition: RagTime5ClusterManager.hxx:258
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: RagTime5Parser.cxx:2406
Internal: the state of a RagTime5Parser.
Definition: RagTime5Parser.cxx:234
Type
the cluster type
Definition: RagTime5ClusterManager.hxx:218
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
bool readZoneInfo()
try to read the main zone info zone and the main cluster(and child)
Definition: RagTime5Parser.cxx:649
Link m_dataLink
the main data link
Definition: RagTime5ClusterManager.hxx:248
long end() const
returns the end offset
Definition: MWAWEntry.hxx:77
@ C_Script
Definition: RagTime5ClusterManager.hxx:220
bool m_readIndex
a flag to know if we need to read the index
Definition: RagTime5Parser.cxx:145
shared_ptr< RagTime5StructManager > m_structManager
the structure manager
Definition: RagTime5Parser.hxx:246
bool readZoneData(RagTime5Zone &zone)
try to read the zone data
Definition: RagTime5Parser.cxx:731
@ L_List
Definition: RagTime5ClusterManager.hxx:110
the cluster for root
Definition: RagTime5ClusterManager.hxx:269
RagTime5ClusterManager::Cluster::Type getClusterType(int zId) const
returns the cluster type corresponding to zone id or C_Unknown (if the zone is not a cluster or was n...
Definition: RagTime5Parser.cxx:407
shared_ptr< RagTime5ClusterManager > m_clusterManager
the cluster manager
Definition: RagTime5Parser.hxx:244
Link m_docInfoLink
the doc info link
Definition: RagTime5ClusterManager.hxx:289
int m_idsFlag[3]
the zone flag
Definition: RagTime5StructManager.hxx:126
bool readScriptComment(RagTime5Zone &zone)
try to read a script comment zone
Definition: RagTime5Parser.cxx:1482
int m_zoneId
the zone id
Definition: RagTime5ClusterManager.hxx:242
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type)
the parser function
Definition: RagTime5Parser.cxx:291
shared_ptr< RagTime5Zone > m_zoneInfo
the zone info zone (ie. the first zone)
Definition: RagTime5Parser.cxx:248
std::map< int, librevenge::RVNGString > m_idToNameMap
the name
Definition: RagTime5Parser.cxx:218
void addErrorInDebugFile(std::string const &zoneName)
mark a zone as bad
Definition: RagTime5StructManager.cxx:1680
int m_fieldSize
the field size
Definition: RagTime5Parser.cxx:214
friend class RagTime5Text
Definition: RagTime5Parser.hxx:80
@ C_ClusterGProp
Definition: RagTime5ClusterManager.hxx:220
virtual bool parseField(RagTime5StructManager::Field &field, RagTime5Zone &zone, int, libmwaw::DebugStream &f)
parse a field
Definition: RagTime5Parser.cxx:81
@ C_SpreadsheetZone
Definition: RagTime5ClusterManager.hxx:223
@ C_Fields
Definition: RagTime5ClusterManager.hxx:219
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
bool readStructData(RagTime5Zone &zone, long endPos, int n, int headerSz, RagTime5StructManager::FieldParser &parser, librevenge::RVNGString const &dataName)
try to read a data in a structured zone
Definition: RagTime5Parser.cxx:1886
void setStream(MWAWInputStreamPtr ip)
resets the input
Definition: MWAWDebug.hxx:73
bool sendZones()
try to send the different zones
Definition: RagTime5Parser.cxx:2477
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:88
basic class used to store RagTime 5/6 structures
Definition: RagTime5StructManager.hxx:157
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:513
shared_ptr< RagTime5ClusterManager::Cluster > readPipelineCluster(RagTime5Zone &zone, int zoneType)
try to read a pipeline cluster (via the pipeline manager)
Definition: RagTime5Parser.cxx:380
int m_ids[3]
the zone id
Definition: RagTime5StructManager.hxx:124
@ C_Empty
Definition: RagTime5ClusterManager.hxx:229
shared_ptr< RagTime5Spreadsheet > m_spreadsheetParser
the spreadsheet manager
Definition: RagTime5Parser.hxx:239
Link m_nameLink
the name link
Definition: RagTime5ClusterManager.hxx:250
int m_variableD[2]
the content of the zone D if it exists
Definition: RagTime5StructManager.hxx:132
a link to a small zone (or set of zones) in RagTime 5/6 documents
Definition: RagTime5ClusterManager.hxx:105
std::map< int, librevenge::RVNGString > m_idToStringMap
the data
Definition: RagTime5Parser.cxx:147
shared_ptr< RagTime5Pipeline > m_pipelineParser
the pipeline manager
Definition: RagTime5Parser.hxx:237
std::vector< RagTime5StructManager::ZoneLink > m_linkList
the list of read cluster
Definition: RagTime5Parser.cxx:216
Internal: the helper to read index + unicode string for a RagTime5Parser.
Definition: RagTime5Parser.cxx:113
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
friend class RagTime5Chart
Definition: RagTime5Parser.hxx:75
ClustListParser & operator=(ClustListParser &orig)
copy operator, not implemented
the cluster data
Definition: RagTime5ClusterManager.hxx:216
Type m_type
the link type
Definition: RagTime5ClusterManager.hxx:196
shared_ptr< RagTime5ClusterManager > getClusterManager()
returns the cluster manager
Definition: RagTime5Parser.cxx:350
MWAWEntry m_zonesEntry
the main zone entry
Definition: RagTime5Parser.cxx:242
bool update(RagTime5Zone &zone)
try to update a zone: create a new input if the zone is stored in different positions,...
Definition: RagTime5Parser.cxx:1978
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:207
friend class RagTime5Spreadsheet
Definition: RagTime5Parser.hxx:79
virtual bool parseHeaderField(Field &field, RagTime5Zone &, int, libmwaw::DebugStream &f)
parse a header field
Definition: RagTime5StructManager.hxx:326
the cluster script ( 2/a/4002/400a zone)
Definition: RagTime5ClusterManager.hxx:307
@ L_Unknown
Definition: RagTime5ClusterManager.hxx:112
bool readUnknownClusterCData(RagTime5ClusterManager::Cluster &cluster)
try to read the unknown clusterC data
Definition: RagTime5Parser.cxx:1618
bool parseData(MWAWInputStreamPtr &input, long endPos, RagTime5Zone &, int n, libmwaw::DebugStream &f)
try to parse a data
Definition: RagTime5Parser.cxx:184
ClustListParser(ClustListParser &orig)
copy constructor, not implemented
bool m_hasLayout
a flag to know if the file has some layout
Definition: RagTime5Parser.cxx:256
shared_ptr< RagTime5Chart > m_chartParser
the chart manager
Definition: RagTime5Parser.hxx:231
@ L_LinkDef
Definition: RagTime5ClusterManager.hxx:108
bool readClusterZone(RagTime5Zone &zone, int type=-1)
try to read a cluster zone
Definition: RagTime5Parser.cxx:1146
long m_subZoneId[2]
the sub id zones
Definition: RagTime5StructManager.hxx:301
virtual ~RagTime5Parser()
destructor
Definition: RagTime5Parser.cxx:325
MWAWEntry m_entry
entry to defined the position of a String or Unstructured data
Definition: RagTime5StructManager.hxx:261
@ MWAW_T_RAGTIME
RagTime: -Mac v2.1-v3.2: done, -all v5.0-v6.5: incomplete, only try to retrieve the picture/shape/tex...
Definition: MWAWDocument.hxx:144
@ C_UnitStyles
Definition: RagTime5ClusterManager.hxx:225
bool m_hiLoEndian
true if the endian is hilo
Definition: RagTime5StructManager.hxx:122
bool readDocInfoClusterData(RagTime5Zone &zone, MWAWEntry const &entry)
try to read the main doc info cluster data
Definition: RagTime5Parser.cxx:1329
bool readStructZone(RagTime5ClusterManager::Cluster &cluster, RagTime5StructManager::FieldParser &parser, int headerSz)
try to read a structured zone
Definition: RagTime5Parser.cxx:1790
shared_ptr< RagTime5Graph > m_graphParser
the graph manager
Definition: RagTime5Parser.hxx:233
@ C_Layout
Definition: RagTime5ClusterManager.hxx:219
int m_clusterIds[1]
other cluster id (unknown cluster b, )
Definition: RagTime5ClusterManager.hxx:283
a zone link in RagTime 5/6 structures
Definition: RagTime5StructManager.hxx:266
shared_ptr< RagTime5Layout > m_layoutParser
the layout manager
Definition: RagTime5Parser.hxx:235
static bool readDataIdList(MWAWInputStreamPtr input, int n, std::vector< int > &listIds)
try to read n data id
Definition: RagTime5StructManager.cxx:269
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:505
Type m_type
the field type
Definition: RagTime5StructManager.hxx:237
std::map< int, shared_ptr< RagTime5Zone > > m_dataIdZoneMap
a map: data id->entry (datafork)
Definition: RagTime5Parser.cxx:250
std::vector< Field > m_fieldList
the list of field
Definition: RagTime5StructManager.hxx:259
Link m_fieldClusterLink
the field cluster links (def and pos)
Definition: RagTime5ClusterManager.hxx:252
void flushExtra()
flush unsent zone (debugging function)
Definition: RagTime5Parser.cxx:2522
friend class RagTime5Pipeline
Definition: RagTime5Parser.hxx:78
shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
Internal: the helper to read a clustList.
Definition: RagTime5Parser.cxx:155
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:96
bool readDocumentVersion(RagTime5Zone &zone)
try to read the document version zone
Definition: RagTime5Parser.cxx:2173
bool findDataZones(MWAWEntry const &entry)
try to create the main data zones list
Definition: RagTime5Parser.cxx:2225
void resetTextListener()
resets the listener
Definition: MWAWParser.cxx:151
@ C_Root
Definition: RagTime5ClusterManager.hxx:220
std::string m_name
the link name
Definition: RagTime5ClusterManager.hxx:198
the main class to read the chart part of RagTime 56 file
Definition: RagTime5Chart.hxx:74
@ C_Unknown
Definition: RagTime5ClusterManager.hxx:229
std::vector< Link > m_settingLinks
the settings links
Definition: RagTime5ClusterManager.hxx:256
bool readClusterGProp(RagTime5ClusterManager::Cluster &cluster)
try to read the cluster with contains main graphic object properties
Definition: RagTime5Parser.cxx:1592
int m_fieldSize
the field size
Definition: RagTime5ClusterManager.hxx:204
internal class used to create a RVNGInputStream from a unsigned char's pointer
Definition: MWAWStringStream.hxx:35
friend class RagTime5ClusterManager
Definition: RagTime5Parser.hxx:81
std::map< int, std::string > m_idToTypeMap
a map id to type string
Definition: RagTime5Parser.cxx:246
Generated on Wed Jun 17 2020 06:30:13 for libmwaw by
doxygen 1.8.18