52 namespace MDWParserInternal
78 void parse(WPXDocumentInterface *documentInterface);
109 void sendText(std::string
const &text, std::vector<MWAWFont>
const &fonts, std::vector<int>
const &textPos);
115 bool readFonts(
MWAWEntry const &entry, std::vector<MWAWFont> &fonts, std::vector<int> &textPos);
MDWParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor
Definition: MDWParser.cxx:553
void sendText(std::string const &text, std::vector< MWAWFont > const &fonts, std::vector< int > const &textPos)
try to send the text
Definition: MDWParser.cxx:2049
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: MDWParser.cxx:1386
void init()
inits all internal variables
Definition: MDWParser.cxx:563
bool readZone8(MWAWEntry &entry)
read the 8th zone ( unknown zone)
Definition: MDWParser.cxx:1869
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
Definition: ACText.hxx:44
shared_ptr< MDWParserInternal::State > m_state
the state
Definition: MDWParser.hxx:158
bool readHeadingFields(MWAWEntry &entry)
read the heading field zone ( zone 12 )
Definition: MDWParser.cxx:1924
void createDocument(WPXDocumentInterface *documentInterface)
creates the listener which will be associated to the document
Definition: MDWParser.cxx:679
bool readHeadingStates(MWAWEntry &entry)
read the heading state
Definition: MDWParser.cxx:1617
void sendHeaderFooter(bool header)
try to send the header/footer zone
Definition: MDWParser.cxx:1064
MWAWEntry readEntry()
read a file entry
Definition: MDWParser.cxx:609
shared_ptr< MWAWContentListener > MWAWContentListenerPtr
Definition: MWAWContentListener.hxx:260
bool readCompressedText(MDWParserInternal::LineInfo const &line)
try to read a compressed text zone
Definition: MDWParser.cxx:1226
void setListener(MWAWContentListenerPtr listen)
sets the listener in this class and in the helper classes
Definition: MDWParser.cxx:574
bool readHeadingProperties(MWAWEntry &entry)
read the heading property zone
Definition: MDWParser.cxx:1792
Class to store font.
Definition: MWAWFont.hxx:47
bool readHeadingCustom(MWAWEntry &entry)
read the heading custom zone
Definition: MDWParser.cxx:1665
void parse(WPXDocumentInterface *documentInterface)
virtual function used to parse the input
Definition: MDWParser.cxx:624
bool readFonts(MWAWEntry const &entry, std::vector< MWAWFont > &fonts, std::vector< int > &textPos)
try to read the fonts
Definition: MDWParser.cxx:1324
bool readGraphic(MDWParserInternal::LineInfo const &line)
try to read a graphic
Definition: MDWParser.cxx:926
void sendHeaderFooterFields(bool header)
try to send the header/footer fields as text (in a textbox)
Definition: MDWParser.cxx:1087
bool sendZone(int i)
try to send a zone
Definition: MDWParser.cxx:841
bool isFilePos(long pos)
check if an entry is in file
Definition: MDWParser.cxx:595
bool readPrintInfo(MWAWEntry &entry)
read the print info zone
Definition: MDWParser.cxx:1983
bool readText(MDWParserInternal::LineInfo const &line)
try to read a non compressed text zone
Definition: MDWParser.cxx:1158
bool createZones()
finds the different objects zones
Definition: MDWParser.cxx:724
void newPage(int number)
adds a new page
Definition: MDWParser.cxx:582
class to store the paragraph properties
Definition: MWAWParagraph.hxx:83
the main class to read a MindWrite file
Definition: MDWParser.hxx:64
virtual ~MDWParser()
destructor
Definition: MDWParser.cxx:559
virtual class which defines the ancestor of all main zone parser
Definition: MWAWParser.hxx:98
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
bool readRuler(MDWParserInternal::LineInfo &line)
try to read a ruler
Definition: MDWParser.cxx:969
void setProperty(MWAWParagraph const ¶)
sends a paragraph property to the listener
Definition: MDWParser.cxx:2079
bool readLinesInfo(MWAWEntry &entry)
read the lines information zone
Definition: MDWParser.cxx:1494
Internal: a line information of a MDWParser.
Definition: MDWParser.cxx:237
bool readLastZone(MWAWEntry &entry)
read the last zone ( pos + 7fffffff )
Definition: MDWParser.cxx:1575
Internal: the subdocument of a MWParser.
Definition: MDWParser.cxx:490
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
Definition: MWAWParser.hxx:56