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;
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
virtual class which defines the ancestor of all text zone parser
Definition: MWAWParser.hxx:296
Internal: the subdocument of a MacWrtParser.
Definition: MacWrtParser.cxx:291
the main class to read a MacWrite file
Definition: MacWrtParser.hxx:57
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: MacWrtParser.cxx:698
bool sendWindow(int zone)
send a zone ( 0: MAIN ZONE, 1 : HEADER, 2 : FOOTER )
Definition: MacWrtParser.cxx:630
MacWrtParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor
Definition: MacWrtParser.cxx:349
bool readLinesHeight(MWAWEntry const &entry, std::vector< int > &firstParagLine, std::vector< int > &linesHeight)
read the line height
Definition: MacWrtParser.cxx:964
virtual ~MacWrtParser()
destructor
Definition: MacWrtParser.cxx:355
shared_ptr< MacWrtParserInternal::State > m_state
the state
Definition: MacWrtParser.hxx:132
void init()
inits all internal variables
Definition: MacWrtParser.cxx:359
bool checkFreeList()
check the free list
Definition: MacWrtParser.cxx:1618
void newPage(int number)
adds a new page
Definition: MacWrtParser.cxx:373
bool readInformationsV3(int numInfo, std::vector< MacWrtParserInternal::Information > &informations)
read the information ( version <= 3)
Definition: MacWrtParser.cxx:1035
bool readInformations(MWAWEntry const &entry, std::vector< MacWrtParserInternal::Information > &informations)
read the information
Definition: MacWrtParser.cxx:1081
bool readPageBreak(MacWrtParserInternal::Information const &info)
read a page break zone ( version <= 3)
Definition: MacWrtParser.cxx:1478
static bool isMagicPic(librevenge::RVNGBinaryData const &dt)
test if a graphic is empty.
Definition: MacWrtParser.cxx:1603
bool readPrintInfo()
read the print info zone
Definition: MacWrtParser.cxx:801
bool createZonesV3()
finds the different objects zones (version <= 3)
Definition: MacWrtParser.cxx:527
bool readParagraph(MacWrtParserInternal::Information const &info)
read a paragraph
Definition: MacWrtParser.cxx:1387
bool readWindowsInfo(int wh)
read the windows zone
Definition: MacWrtParser.cxx:854
void createDocument(librevenge::RVNGTextInterface *documentInterface)
creates the listener which will be associated to the document
Definition: MacWrtParser.cxx:429
void parse(librevenge::RVNGTextInterface *documentInterface)
virtual function used to parse the input
Definition: MacWrtParser.cxx:389
bool readGraphic(MacWrtParserInternal::Information const &info)
read a graphics
Definition: MacWrtParser.cxx:1526
bool createZones()
finds the different objects zones
Definition: MacWrtParser.cxx:475
bool readText(MacWrtParserInternal::Information const &info, std::vector< int > const &lineHeight)
read a text zone
Definition: MacWrtParser.cxx:1213
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:513
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
Internal: the structures of a MacWrtParser.
Definition: MacWrtParser.cxx:58