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:854
bool sendWindow(int zone)
send a zone ( 0: MAIN ZONE, 1 : HEADER, 2 : FOOTER )
Definition: MacWrtParser.cxx:630
Internal: the subdocument of a MacWrtParser.
Definition: MacWrtParser.cxx:290
bool readParagraph(MacWrtParserInternal::Information const &info)
read a paragraph
Definition: MacWrtParser.cxx:1387
static bool isMagicPic(librevenge::RVNGBinaryData const &dt)
test if a graphic is empty.
Definition: MacWrtParser.cxx:1603
bool readPageBreak(MacWrtParserInternal::Information const &info)
read a page break zone ( version <= 3)
Definition: MacWrtParser.cxx:1478
bool readPrintInfo()
read the print info zone
Definition: MacWrtParser.cxx:801
void newPage(int number)
adds a new page
Definition: MacWrtParser.cxx:373
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:1081
virtual ~MacWrtParser()
destructor
Definition: MacWrtParser.cxx:355
void parse(librevenge::RVNGTextInterface *documentInterface)
virtual function used to parse the input
Definition: MacWrtParser.cxx:389
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:429
MacWrtParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor
Definition: MacWrtParser.cxx:349
bool readGraphic(MacWrtParserInternal::Information const &info)
read a graphics
Definition: MacWrtParser.cxx:1526
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:1035
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:510
bool readText(MacWrtParserInternal::Information const &info, std::vector< int > const &lineHeight)
read a text zone
Definition: MacWrtParser.cxx:1213
bool checkFreeList()
check the free list
Definition: MacWrtParser.cxx:1618
virtual class which defines the ancestor of all text zone parser
Definition: MWAWParser.hxx:290
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: MacWrtParser.cxx:698
bool readLinesHeight(MWAWEntry const &entry, std::vector< int > &firstParagLine, std::vector< int > &linesHeight)
read the line height
Definition: MacWrtParser.cxx:964
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:500
bool createZones()
finds the different objects zones
Definition: MacWrtParser.cxx:475
void init()
inits all internal variables
Definition: MacWrtParser.cxx:359
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:527