34 #ifndef TEACH_TXT_PARSER
35 # define TEACH_TXT_PARSER
40 #include <librevenge/librevenge.h>
67 void parse(librevenge::RVNGTextInterface *documentInterface);
74 void createDocument(librevenge::RVNGTextInterface *documentInterface);
109 shared_ptr<TeachTxtParserInternal::State>
m_state;
bool sendPicture(int id)
try to send a picture knowing the id
Definition: TeachTxtParser.cxx:439
void newPage(int number)
adds a new page
Definition: TeachTxtParser.cxx:118
bool readWRCT(MWAWEntry const &entry)
try to read the unknown wrct structure ( only in TexEdit,id=1000 )
Definition: TeachTxtParser.cxx:415
shared_ptr< TeachTxtParserInternal::State > m_state
the state
Definition: TeachTxtParser.hxx:109
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:65
void createDocument(librevenge::RVNGTextInterface *documentInterface)
creates the listener which will be associated to the document
Definition: TeachTxtParser.cxx:165
friend class TTText
Definition: TeachTxtParser.hxx:56
virtual ~TeachTxtParser()
destructor
Definition: TeachTxtParser.cxx:91
bool readStyles(MWAWEntry const &entry)
try to read the styles ( resource styl : SimpleText,id=128, Tex-Edit,id=1000 )
Definition: TeachTxtParser.cxx:346
MWAWInputStreamPtr rsrcInput()
return the input input
Definition: TeachTxtParser.cxx:105
bool sendText()
try to send the main text
Definition: TeachTxtParser.cxx:257
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:449
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: TeachTxtParser.cxx:230
virtual class which defines the ancestor of all text zone parser
Definition: MWAWParser.hxx:284
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:439
void parse(librevenge::RVNGTextInterface *documentInterface)
virtual function used to parse the input
Definition: TeachTxtParser.cxx:134
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: TeachTxtParser.cxx:489
TeachTxtParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor
Definition: TeachTxtParser.cxx:85
Internal: the structures of a TeachTxtParser.
Definition: TeachTxtParser.cxx:56
void init()
inits all internal variables
Definition: TeachTxtParser.cxx:95
int computeNumPages() const
compute the number of page of a zone
Definition: TeachTxtParser.cxx:243
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
libmwaw::DebugFile & rsrcAscii()
a DebugFile used to write what we recognize when we parse the document in rsrc
Definition: TeachTxtParser.cxx:110
the main class to read a SimpleText/TeachText/Tex-Edit file
Definition: TeachTxtParser.hxx:54
bool createZones()
finds the different objects zones
Definition: TeachTxtParser.cxx:193