37 #ifndef MIND_WRT_PARSER
38 # define MIND_WRT_PARSER
74 void parse(librevenge::RVNGTextInterface *documentInterface);
81 void createDocument(librevenge::RVNGTextInterface *documentInterface);
102 void sendText(std::string
const &text, std::vector<MWAWFont>
const &fonts, std::vector<int>
const &textPos);
108 bool readFonts(
MWAWEntry const &entry, std::vector<MWAWFont> &fonts, std::vector<int> &textPos);
148 shared_ptr<MindWrtParserInternal::State>
m_state;
void init()
inits all internal variables
Definition: MindWrtParser.cxx:576
void setProperty(MWAWParagraph const ¶)
sends a paragraph property to the listener
Definition: MindWrtParser.cxx:2074
virtual ~MindWrtParser()
destructor
Definition: MindWrtParser.cxx:572
void parse(librevenge::RVNGTextInterface *documentInterface)
virtual function used to parse the input
Definition: MindWrtParser.cxx:618
bool sendZone(int i)
try to send a zone
Definition: MindWrtParser.cxx:834
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: MindWrtParser.cxx:1382
bool readHeadingCustom(MWAWEntry &entry)
read the heading custom zone
Definition: MindWrtParser.cxx:1660
bool readHeadingStates(MWAWEntry &entry)
read the heading state
Definition: MindWrtParser.cxx:1612
bool readHeadingProperties(MWAWEntry &entry)
read the heading property zone
Definition: MindWrtParser.cxx:1787
void newPage(int number)
adds a new page
Definition: MindWrtParser.cxx:590
bool readRuler(MindWrtParserInternal::LineInfo &line)
try to read a ruler
Definition: MindWrtParser.cxx:964
shared_ptr< MindWrtParserInternal::State > m_state
the state
Definition: MindWrtParser.hxx:148
void sendText(std::string const &text, std::vector< MWAWFont > const &fonts, std::vector< int > const &textPos)
try to send the text
Definition: MindWrtParser.cxx:2044
Internal: the structures of a MindWrtParser.
Definition: MindWrtParser.cxx:59
bool readLastZone(MWAWEntry &entry)
read the last zone ( pos + 7fffffff )
Definition: MindWrtParser.cxx:1570
void sendHeaderFooter(bool header)
try to send the header/footer zone
Definition: MindWrtParser.cxx:1059
void sendHeaderFooterFields(bool header)
try to send the header/footer fields as text (in a textbox)
Definition: MindWrtParser.cxx:1082
bool readZone8(MWAWEntry &entry)
read the 8th zone ( unknown zone)
Definition: MindWrtParser.cxx:1864
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:449
bool readHeadingFields(MWAWEntry &entry)
read the heading field zone ( zone 12 )
Definition: MindWrtParser.cxx:1919
bool readFonts(MWAWEntry const &entry, std::vector< MWAWFont > &fonts, std::vector< int > &textPos)
try to read the fonts
Definition: MindWrtParser.cxx:1320
virtual class which defines the ancestor of all text zone parser
Definition: MWAWParser.hxx:284
bool readLinesInfo(MWAWEntry &entry)
read the lines information zone
Definition: MindWrtParser.cxx:1490
MWAWEntry readEntry()
read a file entry
Definition: MindWrtParser.cxx:603
bool readGraphic(MindWrtParserInternal::LineInfo const &line)
try to read a graphic
Definition: MindWrtParser.cxx:921
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:439
class to store the paragraph properties
Definition: MWAWParagraph.hxx:82
the main class to read a MindWrite file
Definition: MindWrtParser.hxx:60
bool createZones()
finds the different objects zones
Definition: MindWrtParser.cxx:718
void createDocument(librevenge::RVNGTextInterface *documentInterface)
creates the listener which will be associated to the document
Definition: MindWrtParser.cxx:673
Internal: a line information of a MindWrtParser.
Definition: MindWrtParser.cxx:243
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
bool readText(MindWrtParserInternal::LineInfo const &line)
try to read a non compressed text zone
Definition: MindWrtParser.cxx:1153
bool readPrintInfo(MWAWEntry &entry)
read the print info zone
Definition: MindWrtParser.cxx:1978
bool readCompressedText(MindWrtParserInternal::LineInfo const &line)
try to read a compressed text zone
Definition: MindWrtParser.cxx:1221
Internal: the subdocument of a MindWrtParser.
Definition: MindWrtParser.cxx:499
MindWrtParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor
Definition: MindWrtParser.cxx:566