34#ifndef RAGTIME_5_DOCUMENT
35# define RAGTIME_5_DOCUMENT
52struct DocInfoFieldParser;
138 std::shared_ptr<RagTime5Zone>
getDataZone(
int dataId)
const;
183 void newPage(
int number,
bool softBreak);
192 bool updateZone(std::shared_ptr<RagTime5Zone> &zone);
215 std::vector<RagTime5StructManager::ZoneLink> &listLinks);
218 std::vector<RagTime5StructManager::ZoneLink> &list, std::string
const &name=
"");
225 bool readLongListWithSize(
int dataId,
int fSz, std::vector<long> &list, std::string
const &zoneName=
"");
227 bool readPositions(
int posId, std::vector<long> &listPosition);
264 bool checkClusterList(std::vector<RagTime5StructManager::ZoneLink>
const &list);
279 std::shared_ptr<RagTime5DocumentInternal::State>
m_state;
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
virtual class which defines the ancestor of all main zone parser
Definition: MWAWParser.hxx:100
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
the main class to read the chart part of RagTime 56 file
Definition: RagTime5Chart.hxx:74
basic class used to manage RagTime 5/6 zones
Definition: RagTime5ClusterManager.hxx:59
the main class to read a RagTime v5 file
Definition: RagTime5Document.hxx:77
std::shared_ptr< RagTime5StyleManager > m_styleManager
the style manager
Definition: RagTime5Document.hxx:300
bool readClusterGProp(RagTime5ClusterManager::Cluster &cluster)
try to read the cluster with contains main graphic object properties
Definition: RagTime5Document.cxx:1526
MWAWParserStatePtr getParserState()
returns the parser state
Definition: RagTime5Document.hxx:122
std::shared_ptr< RagTime5Formula > getFormulaParser()
returns the formula parser
Definition: RagTime5Document.cxx:410
bool readDocInfoClusterData(RagTime5Zone &zone, MWAWEntry const &entry)
try to read the main doc info cluster data
Definition: RagTime5Document.cxx:1296
std::shared_ptr< RagTime5Formula > m_formulaParser
the formula manager
Definition: RagTime5Document.hxx:283
bool readFixedSizeZone(RagTime5ClusterManager::Link const &link, std::string const &name)
try to read a fixed size zone
Definition: RagTime5Document.cxx:1658
RagTime5ClusterManager::Cluster::Type getPipelineContainerType(int pipelineId) const
try to return the container's type corresponding to an id
Definition: RagTime5Document.cxx:477
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: RagTime5Document.hxx:132
bool readZoneData(RagTime5Zone &zone)
try to read the zone data
Definition: RagTime5Document.cxx:679
bool readUnicodeStringList(RagTime5ClusterManager::NameLink const &link, std::map< int, librevenge::RVNGString > &idToStringMap)
try to read a list of unicode string zone
Definition: RagTime5Document.cxx:843
std::shared_ptr< RagTime5ClusterManager::Cluster > readGraphicCluster(RagTime5Zone &zone, int zoneType)
try to read a graphic cluster (via the graphic manager)
Definition: RagTime5Document.cxx:435
void setVersion(int vers)
sets the document version
Definition: RagTime5Document.cxx:361
bool updateZone(std::shared_ptr< RagTime5Zone > &zone)
try to update a zone: information + input
Definition: RagTime5Document.cxx:1909
bool readScriptComment(RagTime5Zone &zone)
try to read a script comment zone
Definition: RagTime5Document.cxx:1449
std::shared_ptr< RagTime5ClusterManager::Cluster > readSpreadsheetCluster(RagTime5Zone &zone, int zoneType)
try to read a spreadsheet cluster (via the spreadsheet manager)
Definition: RagTime5Document.cxx:455
bool readPositions(int posId, std::vector< long > &listPosition)
try to read a positions zone in data
Definition: RagTime5Document.cxx:923
friend class RagTime5DocumentInternal::SubDocument
Definition: RagTime5Document.hxx:91
std::shared_ptr< RagTime5Text > m_textParser
the text manager
Definition: RagTime5Document.hxx:293
bool readDocumentVersion(RagTime5Zone &zone)
try to read the document version zone
Definition: RagTime5Document.cxx:2178
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: RagTime5Document.cxx:2507
void newPage(int number, bool softBreak)
adds a new page
Definition: RagTime5Document.cxx:485
bool readUnicodeString(RagTime5Zone &zone, std::string const &what="")
try to read a unicode string zone
Definition: RagTime5Document.cxx:817
bool send(int zoneId, MWAWListenerPtr listener, MWAWPosition const &pos, int partId=0, int cellId=0, double totalWidth=-1)
try to send a cluster zone (mainly unimplemented)
Definition: RagTime5Document.cxx:2609
bool readString(RagTime5Zone &zone, std::string &string)
try to read a string zone ( zone with id1=21,id2=23:24)
Definition: RagTime5Document.cxx:787
bool readListZone(RagTime5ClusterManager::Link const &link)
try to read a list zone
Definition: RagTime5Document.cxx:1585
void(MWAWParser::* SendFootnote)(int zoneId)
callback used to send a footnote
Definition: RagTime5Document.hxx:309
bool createZones()
finds the different objects zones
Definition: RagTime5Document.cxx:500
bool sendButtonZoneAsText(MWAWListenerPtr listener, int buttonId)
try to send a button content as text
Definition: RagTime5Document.cxx:390
SendFootnote m_sendFootnote
the send footnote callback
Definition: RagTime5Document.hxx:314
~RagTime5Document()
destructor
Definition: RagTime5Document.cxx:330
std::shared_ptr< RagTime5Graph > m_graphParser
the graph manager
Definition: RagTime5Document.hxx:285
RagTime5Document & operator=(RagTime5Document const &)=delete
std::shared_ptr< RagTime5Graph > getGraphParser()
returns the graphic parser
Definition: RagTime5Document.cxx:415
bool parseMainZoneInfoData(RagTime5Zone const &zone)
try to parse the zoneInfo child
Definition: RagTime5Document.cxx:589
bool readClusterZone(RagTime5Zone &zone, int type=-1)
try to read a cluster zone
Definition: RagTime5Document.cxx:1132
std::shared_ptr< RagTime5DocumentInternal::State > m_state
the state
Definition: RagTime5Document.hxx:279
int version() const
returns the document version
Definition: RagTime5Document.cxx:356
bool unpackZone(RagTime5Zone &zone, MWAWEntry const &entry, std::vector< unsigned char > &data)
try to unpack a zone
Definition: RagTime5Document.cxx:2035
bool readLongList(RagTime5ClusterManager::Link const &link, std::vector< long > &list)
try to read/get the list of long of a L_LongList
Definition: RagTime5Document.cxx:914
bool checkClusterList(std::vector< RagTime5StructManager::ZoneLink > const &list)
check a cluster list
Definition: RagTime5Document.cxx:1117
std::shared_ptr< RagTime5StyleManager > getStyleManager()
returns the style manager
Definition: RagTime5Document.cxx:405
bool readStructZone(RagTime5ClusterManager::Link const &link, RagTime5StructManager::FieldParser &parser, int headerSz, RagTime5ClusterManager::NameLink *nameLink=nullptr)
try to read a structured zone
Definition: RagTime5Document.cxx:1722
void(MWAWParser::* NewPage)(int page, bool softBreak)
callback used to send a page break
Definition: RagTime5Document.hxx:307
bool useMainZoneInfoData()
try to read the main zone info zone and the main cluster(and child)
Definition: RagTime5Document.cxx:646
bool readUnknownClusterCData(RagTime5ClusterManager::Cluster const &cluster)
try to read the unknown clusterC data
Definition: RagTime5Document.cxx:1551
int numPages() const
returns the document number of page
Definition: RagTime5Document.cxx:366
std::shared_ptr< RagTime5Layout > m_layoutParser
the layout manager
Definition: RagTime5Document.hxx:287
std::shared_ptr< RagTime5ClusterManager::Cluster > readPictureCluster(RagTime5Zone &zone, int zoneType)
try to read a picture cluster (via the graphic manager)
Definition: RagTime5Document.cxx:450
bool readClusterRootData(RagTime5ClusterManager::ClusterRoot &cluster)
try to read the main cluster
Definition: RagTime5Document.cxx:931
MWAWParser & getMainParser()
returns the main parser
Definition: RagTime5Document.hxx:102
std::shared_ptr< RagTime5ClusterManager::Cluster > readTextCluster(RagTime5Zone &zone, int zoneType)
try to read a text cluster (via the text manager)
Definition: RagTime5Document.cxx:460
std::shared_ptr< RagTime5ClusterManager > m_clusterManager
the cluster manager
Definition: RagTime5Document.hxx:296
std::shared_ptr< RagTime5Spreadsheet > m_spreadsheetParser
the spreadsheet manager
Definition: RagTime5Document.hxx:291
std::shared_ptr< RagTime5ClusterManager::Cluster > readChartCluster(RagTime5Zone &zone, int zoneType)
try to read a chart cluster (via the spreadsheet manager)
Definition: RagTime5Document.cxx:430
std::shared_ptr< RagTime5Pipeline > m_pipelineParser
the pipeline manager
Definition: RagTime5Document.hxx:289
std::shared_ptr< RagTime5Chart > m_chartParser
the chart manager
Definition: RagTime5Document.hxx:281
bool sendSpreadsheet(MWAWListenerPtr listener)
try to send the spreadsheet (assuming there is only one spreadsheet)
Definition: RagTime5Document.cxx:2595
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: RagTime5Document.cxx:472
void flushExtra(MWAWListenerPtr listener, bool onlyCheck=false)
flush unsent zone (debugging function)
Definition: RagTime5Document.cxx:2638
std::shared_ptr< RagTime5ClusterManager > getClusterManager()
returns the cluster manager
Definition: RagTime5Document.cxx:395
void init()
inits all internal variables
Definition: RagTime5Document.cxx:334
bool sendZones(MWAWListenerPtr listener)
try to send the different zones
Definition: RagTime5Document.cxx:2580
bool findZonesKind()
try to find the zone's kind
Definition: RagTime5Document.cxx:554
NewPage m_newPage
the new page callback
Definition: RagTime5Document.hxx:312
std::shared_ptr< RagTime5StructManager > m_structManager
the structure manager
Definition: RagTime5Document.hxx:298
bool findZones(MWAWEntry const &entry)
try to find the list of zones (and stores them in a list)
Definition: RagTime5Document.cxx:2230
std::shared_ptr< RagTime5ClusterManager::Cluster > readLayoutCluster(RagTime5Zone &zone, int zoneType)
try to read a layout cluster (via the layout manager)
Definition: RagTime5Document.cxx:440
std::shared_ptr< RagTime5StructManager > getStructManager()
returns the structure manager
Definition: RagTime5Document.cxx:400
bool readClusterLinkList(RagTime5Zone &zone, RagTime5ClusterManager::Link const &link, std::vector< RagTime5StructManager::ZoneLink > &listLinks)
try to read a cluster link zone
Definition: RagTime5Document.cxx:1217
std::shared_ptr< RagTime5Spreadsheet > getSpreadsheetParser()
returns the spreadsheet parser
Definition: RagTime5Document.cxx:420
MWAWParser * m_parser
the main parser
Definition: RagTime5Document.hxx:275
std::shared_ptr< RagTime5ClusterManager::Cluster > readPipelineCluster(RagTime5Zone &zone, int zoneType)
try to read a pipeline cluster (via the pipeline manager)
Definition: RagTime5Document.cxx:445
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: RagTime5Document.cxx:1817
librevenge::RVNGPropertyList getDocumentMetaData() const
returns the document meta data
Definition: RagTime5Document.cxx:351
RagTime5Document(RagTime5Document const &)=delete
std::shared_ptr< MWAWParserState > m_parserState
the parser state
Definition: RagTime5Document.hxx:277
bool readChildList(RagTime5ClusterManager::Link const &link, std::vector< RagTime5StructManager::ZoneLink > &childList, bool findN=false)
try to read a cluster child list
Definition: RagTime5Document.cxx:1073
std::shared_ptr< RagTime5Zone > getDataZone(int dataId) const
returns the zone corresponding to a data id (or 0)
Definition: RagTime5Document.cxx:465
std::shared_ptr< RagTime5ClusterManager::Cluster > readButtonCluster(RagTime5Zone &zone, int zoneType)
try to read a button cluster (via the graphic manager)
Definition: RagTime5Document.cxx:425
bool updateZoneInput(RagTime5Zone &zone)
try to update a zone: create a new input if the zone is stored in different positions,...
Definition: RagTime5Document.cxx:1982
bool readLongListWithSize(int dataId, int fSz, std::vector< long > &list, std::string const &zoneName="")
try to read a int/long zone data
Definition: RagTime5Document.cxx:867
bool checkIsSpreadsheet()
check if the document is a spreadsheet
Definition: RagTime5Document.cxx:2424
void updatePageSpanList(std::vector< MWAWPageSpan > &spanList)
updates the page span list
Definition: RagTime5Document.cxx:383
the main class to read the graphic part of RagTime 56 file
Definition: RagTime5Graph.hxx:81
the main class to read the text part of RagTime 56 file
Definition: RagTime5Layout.hxx:73
the main class to parse a RagTime 5-6 file
Definition: RagTime5Parser.hxx:66
the main class to read the text part of RagTime 56 file
Definition: RagTime5Pipeline.hxx:73
the main class to parse a RagTime 5-6 file containing only a spreadsheet
Definition: RagTime5SSParser.hxx:66
the main class to read the spreadsheet part of RagTime 56 file
Definition: RagTime5Spreadsheet.hxx:78
basic class used to store RagTime 5/6 structures
Definition: RagTime5StructManager.hxx:175
basic class used to read/store RagTime 5/6 styles
Definition: RagTime5StyleManager.hxx:63
the main class to read the text part of RagTime 56 file
Definition: RagTime5Text.hxx:76
main zone in a RagTime v5-v6 document
Definition: RagTime5StructManager.hxx:51
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
Internal: the structures of a RagTime5Document.
Definition: RagTime5Document.cxx:72
the cluster for root
Definition: RagTime5ClusterManager.hxx:329
the cluster data
Definition: RagTime5ClusterManager.hxx:261
Type
the cluster type
Definition: RagTime5ClusterManager.hxx:263
a link to a small zone (or set of zones) in RagTime 5/6 documents
Definition: RagTime5ClusterManager.hxx:113
a link to a name zone in RagTime 5/6 documents
Definition: RagTime5ClusterManager.hxx:222
Internal: the helper to read doc info parse.
Definition: RagTime5Document.cxx:74
virtual class use to parse the unstructured data
Definition: RagTime5StructManager.hxx:396
virtual class use to parse the field data
Definition: RagTime5StructManager.hxx:353