34 #ifndef MAC_WRT_PARSER
35 # define MAC_WRT_PARSER
70 void parse(librevenge::RVNGTextInterface *documentInterface);
77 void createDocument(librevenge::RVNGTextInterface *documentInterface);
96 std::vector<int> &linesHeight);
100 std::vector<MacWrtParserInternal::Information> &informations);
104 std::vector<MacWrtParserInternal::Information> &informations);
113 static bool isMagicPic(librevenge::RVNGBinaryData
const &dt);
132 shared_ptr<MacWrtParserInternal::State>
m_state;
bool readWindowsInfo(int wh)
read the windows zone
Definition: MacWrtParser.cxx:846
bool sendWindow(int zone)
send a zone ( 0: MAIN ZONE, 1 : HEADER, 2 : FOOTER )
Definition: MacWrtParser.cxx:624
Internal: the subdocument of a MacWrtParser.
Definition: MacWrtParser.cxx:284
bool readParagraph(MacWrtParserInternal::Information const &info)
read a paragraph
Definition: MacWrtParser.cxx:1379
static bool isMagicPic(librevenge::RVNGBinaryData const &dt)
test if a graphic is empty.
Definition: MacWrtParser.cxx:1594
bool readPageBreak(MacWrtParserInternal::Information const &info)
read a page break zone ( version <= 3)
Definition: MacWrtParser.cxx:1470
bool readPrintInfo()
read the print info zone
Definition: MacWrtParser.cxx:793
void newPage(int number)
adds a new page
Definition: MacWrtParser.cxx:367
shared_ptr< MacWrtParserInternal::State > m_state
the state
Definition: MacWrtParser.hxx:132
bool readInformations(MWAWEntry const &entry, std::vector< MacWrtParserInternal::Information > &informations)
read the information
Definition: MacWrtParser.cxx:1073
virtual ~MacWrtParser()
destructor
Definition: MacWrtParser.cxx:349
void parse(librevenge::RVNGTextInterface *documentInterface)
virtual function used to parse the input
Definition: MacWrtParser.cxx:383
the main class to read a MacWrite file
Definition: MacWrtParser.hxx:56
void createDocument(librevenge::RVNGTextInterface *documentInterface)
creates the listener which will be associated to the document
Definition: MacWrtParser.cxx:423
MacWrtParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor
Definition: MacWrtParser.cxx:343
bool readGraphic(MacWrtParserInternal::Information const &info)
read a graphics
Definition: MacWrtParser.cxx:1518
Internal: the structures of a MacWrtParser.
Definition: MacWrtParser.cxx:57
bool readInformationsV3(int numInfo, std::vector< MacWrtParserInternal::Information > &informations)
read the information ( version <= 3)
Definition: MacWrtParser.cxx:1027
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:449
bool readText(MacWrtParserInternal::Information const &info, std::vector< int > const &lineHeight)
read a text zone
Definition: MacWrtParser.cxx:1205
bool checkFreeList()
check the free list
Definition: MacWrtParser.cxx:1609
virtual class which defines the ancestor of all text zone parser
Definition: MWAWParser.hxx:284
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: MacWrtParser.cxx:690
bool readLinesHeight(MWAWEntry const &entry, std::vector< int > &firstParagLine, std::vector< int > &linesHeight)
read the line height
Definition: MacWrtParser.cxx:956
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:439
bool createZones()
finds the different objects zones
Definition: MacWrtParser.cxx:469
void init()
inits all internal variables
Definition: MacWrtParser.cxx:353
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
bool createZonesV3()
finds the different objects zones (version <= 3)
Definition: MacWrtParser.cxx:521