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;
bool sendPicture(int id)
try to send a picture knowing the id
Definition: TeachTxtParser.cxx:436
void newPage(int number)
adds a new page
Definition: TeachTxtParser.cxx:120
bool readWRCT(MWAWEntry const &entry)
try to read the unknown wrct structure ( only in TexEdit,id=1000 )
Definition: TeachTxtParser.cxx:412
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:167
void parse(librevenge::RVNGTextInterface *documentInterface) final
virtual function used to parse the input
Definition: TeachTxtParser.cxx:136
bool readStyles(MWAWEntry const &entry)
try to read the styles ( resource styl : SimpleText,id=128, Tex-Edit,id=1000 )
Definition: TeachTxtParser.cxx:345
MWAWInputStreamPtr rsrcInput()
return the input input
Definition: TeachTxtParser.cxx:107
bool sendText()
try to send the main text
Definition: TeachTxtParser.cxx:256
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:561
~TeachTxtParser() final
destructor
Definition: TeachTxtParser.cxx:93
TeachTxtParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: TeachTxtParser.cxx:87
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: TeachTxtParser.cxx:230
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: TeachTxtParser.cxx:485
virtual class which defines the ancestor of all text zone parser
Definition: MWAWParser.hxx:298
int computeNumPages() const
compute the number of page of a zone
Definition: TeachTxtParser.cxx:242
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
Internal: the structures of a TeachTxtParser.
Definition: TeachTxtParser.cxx:56
void init()
inits all internal variables
Definition: TeachTxtParser.cxx:97
std::shared_ptr< TeachTxtParserInternal::State > m_state
the state
Definition: TeachTxtParser.hxx:108
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:112
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:195