34#ifndef TEACH_TXT_PARSER
35# define TEACH_TXT_PARSER
40#include <librevenge/librevenge.h>
66 void parse(librevenge::RVNGTextInterface *documentInterface)
final;
73 void createDocument(librevenge::RVNGTextInterface *documentInterface);
108 std::shared_ptr<TeachTxtParserInternal::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 text zone parser
Definition: MWAWParser.hxx:299
the main class to read a SimpleText/TeachText/Tex-Edit file
Definition: TeachTxtParser.hxx:55
int computeNumPages() const
compute the number of page of a zone
Definition: TeachTxtParser.cxx:242
bool readStyles(MWAWEntry const &entry)
try to read the styles ( resource styl : SimpleText,id=128, Tex-Edit,id=1000 )
Definition: TeachTxtParser.cxx:345
libmwaw::DebugFile & rsrcAscii()
a DebugFile used to write what we recognize when we parse the document in rsrc
Definition: TeachTxtParser.cxx:112
~TeachTxtParser() final
destructor
Definition: TeachTxtParser.cxx:93
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: TeachTxtParser.cxx:230
bool createZones()
finds the different objects zones
Definition: TeachTxtParser.cxx:195
bool readWRCT(MWAWEntry const &entry)
try to read the unknown wrct structure ( only in TexEdit,id=1000 )
Definition: TeachTxtParser.cxx:412
std::shared_ptr< TeachTxtParserInternal::State > m_state
the state
Definition: TeachTxtParser.hxx:108
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: TeachTxtParser.cxx:485
void init()
inits all internal variables
Definition: TeachTxtParser.cxx:97
void newPage(int number)
adds a new page
Definition: TeachTxtParser.cxx:120
bool sendText()
try to send the main text
Definition: TeachTxtParser.cxx:256
bool sendPicture(int id)
try to send a picture knowing the id
Definition: TeachTxtParser.cxx:436
void createDocument(librevenge::RVNGTextInterface *documentInterface)
creates the listener which will be associated to the document
Definition: TeachTxtParser.cxx:167
void parse(librevenge::RVNGTextInterface *documentInterface) final
virtual function used to parse the input
Definition: TeachTxtParser.cxx:136
MWAWInputStreamPtr rsrcInput()
return the input input
Definition: TeachTxtParser.cxx:107
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< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:561
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
Internal: the structures of a TeachTxtParser.
Definition: TeachTxtParser.cxx:57