37 #ifndef MIND_WRT_PARSER
38 # define MIND_WRT_PARSER
48 namespace MindWrtParserInternal
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:578
void setProperty(MWAWParagraph const ¶)
sends a paragraph property to the listener
Definition: MindWrtParser.cxx:2075
virtual ~MindWrtParser()
destructor
Definition: MindWrtParser.cxx:574
void parse(librevenge::RVNGTextInterface *documentInterface)
virtual function used to parse the input
Definition: MindWrtParser.cxx:620
bool sendZone(int i)
try to send a zone
Definition: MindWrtParser.cxx:836
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: MindWrtParser.cxx:1383
bool readHeadingCustom(MWAWEntry &entry)
read the heading custom zone
Definition: MindWrtParser.cxx:1661
bool readHeadingStates(MWAWEntry &entry)
read the heading state
Definition: MindWrtParser.cxx:1613
bool readHeadingProperties(MWAWEntry &entry)
read the heading property zone
Definition: MindWrtParser.cxx:1788
void newPage(int number)
adds a new page
Definition: MindWrtParser.cxx:592
bool readRuler(MindWrtParserInternal::LineInfo &line)
try to read a ruler
Definition: MindWrtParser.cxx:965
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:2045
bool readLastZone(MWAWEntry &entry)
read the last zone ( pos + 7fffffff )
Definition: MindWrtParser.cxx:1571
void sendHeaderFooter(bool header)
try to send the header/footer zone
Definition: MindWrtParser.cxx:1060
void sendHeaderFooterFields(bool header)
try to send the header/footer fields as text (in a textbox)
Definition: MindWrtParser.cxx:1083
bool readZone8(MWAWEntry &entry)
read the 8th zone ( unknown zone)
Definition: MindWrtParser.cxx:1865
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:506
bool readHeadingFields(MWAWEntry &entry)
read the heading field zone ( zone 12 )
Definition: MindWrtParser.cxx:1920
bool readFonts(MWAWEntry const &entry, std::vector< MWAWFont > &fonts, std::vector< int > &textPos)
try to read the fonts
Definition: MindWrtParser.cxx:1321
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:1491
MWAWEntry readEntry()
read a file entry
Definition: MindWrtParser.cxx:605
bool readGraphic(MindWrtParserInternal::LineInfo const &line)
try to read a graphic
Definition: MindWrtParser.cxx:923
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:496
class to store the paragraph properties
Definition: MWAWParagraph.hxx:81
the main class to read a MindWrite file
Definition: MindWrtParser.hxx:60
bool createZones()
finds the different objects zones
Definition: MindWrtParser.cxx:720
void createDocument(librevenge::RVNGTextInterface *documentInterface)
creates the listener which will be associated to the document
Definition: MindWrtParser.cxx:675
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:1154
bool readPrintInfo(MWAWEntry &entry)
read the print info zone
Definition: MindWrtParser.cxx:1979
bool readCompressedText(MindWrtParserInternal::LineInfo const &line)
try to read a compressed text zone
Definition: MindWrtParser.cxx:1222
Internal: the subdocument of a MindWrtParser.
Definition: MindWrtParser.cxx:501
MindWrtParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor
Definition: MindWrtParser.cxx:568