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:580
void setProperty(MWAWParagraph const ¶)
sends a paragraph property to the listener
Definition: MindWrtParser.cxx:2077
virtual ~MindWrtParser()
destructor
Definition: MindWrtParser.cxx:576
void parse(librevenge::RVNGTextInterface *documentInterface)
virtual function used to parse the input
Definition: MindWrtParser.cxx:622
bool sendZone(int i)
try to send a zone
Definition: MindWrtParser.cxx:838
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: MindWrtParser.cxx:1385
bool readHeadingCustom(MWAWEntry &entry)
read the heading custom zone
Definition: MindWrtParser.cxx:1663
bool readHeadingStates(MWAWEntry &entry)
read the heading state
Definition: MindWrtParser.cxx:1615
bool readHeadingProperties(MWAWEntry &entry)
read the heading property zone
Definition: MindWrtParser.cxx:1790
void newPage(int number)
adds a new page
Definition: MindWrtParser.cxx:594
bool readRuler(MindWrtParserInternal::LineInfo &line)
try to read a ruler
Definition: MindWrtParser.cxx:967
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:2047
bool readLastZone(MWAWEntry &entry)
read the last zone ( pos + 7fffffff )
Definition: MindWrtParser.cxx:1573
void sendHeaderFooter(bool header)
try to send the header/footer zone
Definition: MindWrtParser.cxx:1062
void sendHeaderFooterFields(bool header)
try to send the header/footer fields as text (in a textbox)
Definition: MindWrtParser.cxx:1085
bool readZone8(MWAWEntry &entry)
read the 8th zone ( unknown zone)
Definition: MindWrtParser.cxx:1867
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:513
bool readHeadingFields(MWAWEntry &entry)
read the heading field zone ( zone 12 )
Definition: MindWrtParser.cxx:1922
bool readFonts(MWAWEntry const &entry, std::vector< MWAWFont > &fonts, std::vector< int > &textPos)
try to read the fonts
Definition: MindWrtParser.cxx:1323
virtual class which defines the ancestor of all text zone parser
Definition: MWAWParser.hxx:295
bool readLinesInfo(MWAWEntry &entry)
read the lines information zone
Definition: MindWrtParser.cxx:1493
MWAWEntry readEntry()
read a file entry
Definition: MindWrtParser.cxx:607
bool readGraphic(MindWrtParserInternal::LineInfo const &line)
try to read a graphic
Definition: MindWrtParser.cxx:925
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
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:722
void createDocument(librevenge::RVNGTextInterface *documentInterface)
creates the listener which will be associated to the document
Definition: MindWrtParser.cxx:677
Internal: a line information of a MindWrtParser.
Definition: MindWrtParser.cxx:245
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:1156
bool readPrintInfo(MWAWEntry &entry)
read the print info zone
Definition: MindWrtParser.cxx:1981
bool readCompressedText(MindWrtParserInternal::LineInfo const &line)
try to read a compressed text zone
Definition: MindWrtParser.cxx:1224
Internal: the subdocument of a MindWrtParser.
Definition: MindWrtParser.cxx:503
MindWrtParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor
Definition: MindWrtParser.cxx:570