34 #ifndef RAG_TIME_5_PARSER
35 # define RAG_TIME_5_PARSER
44 namespace RagTime5ParserInternal
73 void parse(librevenge::RVNGTextInterface *documentInterface);
87 void createDocument(librevenge::RVNGTextInterface *documentInterface);
134 shared_ptr<RagTime5ParserInternal::State>
m_state;
bool readPictureMatch(RagTime5ParserInternal::Zone &zone, bool color)
try to read a picture match zone
Definition: RagTime5Parser.cxx:1307
void parse(librevenge::RVNGTextInterface *documentInterface)
virtual function used to parse the input
Definition: RagTime5Parser.cxx:464
void init()
inits all internal variables
Definition: RagTime5Parser.cxx:418
Definition: RagTime5Parser.hxx:62
RagTime5Parser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor
Definition: RagTime5Parser.cxx:408
void createDocument(librevenge::RVNGTextInterface *documentInterface)
creates the listener which will be associated to the document
Definition: RagTime5Parser.cxx:500
bool getColor(int colId, MWAWColor &color, int listId=-1) const
returns the ith color ( if possible)
Definition: RagTime5Parser.cxx:429
PictureType
enum used to defined list of classical pict
Definition: RagTime5Parser.hxx:62
bool readPictureList(RagTime5ParserInternal::Zone &zone, std::vector< int > &listIds)
try to read a picture list
Definition: RagTime5Parser.cxx:1266
the class to store a color
Definition: libmwaw_internal.hxx:167
bool readListZone(RagTime5ParserInternal::Zone &zone)
try to read a list of unknown zone
Definition: RagTime5Parser.cxx:943
Internal: the subdocument of a RagTime5Parser.
Definition: RagTime5Parser.cxx:355
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:439
bool readItemCluster(RagTime5ParserInternal::Zone &zone)
try to read a cluster of item
Definition: RagTime5Parser.cxx:817
bool findDataZones(MWAWEntry const &entry)
try to create the main data zones list
Definition: RagTime5Parser.cxx:1486
Definition: RagTime5Parser.hxx:62
bool readUnicodeString(RagTime5ParserInternal::Zone &zone)
try to read a unicode string zone
Definition: RagTime5Parser.cxx:785
Definition: RagTime5Parser.hxx:62
void newPage(int number)
adds a new page
Definition: RagTime5Parser.cxx:448
virtual class which defines the ancestor of all text zone parser
Definition: MWAWParser.hxx:284
the main class to read a RagTime v5 file
Definition: RagTime5Parser.hxx:56
bool readDocumentVersion(RagTime5ParserInternal::Zone &zone)
try to read the document version zone
Definition: RagTime5Parser.cxx:1217
Definition: RagTime5Parser.hxx:62
Definition: RagTime5Parser.hxx:62
bool readCompressedLong(MWAWInputStreamPtr &input, long endPos, long &val)
try to read a compressed long
Definition: RagTime5Parser.cxx:739
bool readPicture(RagTime5ParserInternal::Zone &zone, MWAWEntry &entry, PictureType type)
try to read a picture zone
Definition: RagTime5Parser.cxx:1370
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:429
bool unpackZone(RagTime5ParserInternal::Zone &zone, MWAWEntry const &entry, std::vector< unsigned char > &data)
try to unpack a zone
Definition: RagTime5Parser.cxx:1074
bool createZones()
finds the different objects zones
Definition: RagTime5Parser.cxx:532
Definition: RagTime5Parser.hxx:62
Definition: RagTime5Parser.hxx:62
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
bool update(RagTime5ParserInternal::Zone &zone)
try to update a zone: create a new input if the zone is stored in different positions, ...
Definition: RagTime5Parser.cxx:1004
Internal: a zone of a RagTime5Parser.
Definition: RagTime5Parser.cxx:118
virtual ~RagTime5Parser()
destructor
Definition: RagTime5Parser.cxx:414
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: RagTime5Parser.cxx:1643
bool readString(RagTime5ParserInternal::Zone &zone, std::string &string)
try to read a string zone ( zone with id1=21,id2=23:24)
Definition: RagTime5Parser.cxx:755
void flushExtra()
flush unsent zone (debugging function)
Definition: RagTime5Parser.cxx:1714
bool sendZones()
try to send the different zones
shared_ptr< RagTime5ParserInternal::State > m_state
the state
Definition: RagTime5Parser.hxx:134
Definition: RagTime5Parser.hxx:62