34#ifndef MACDRAFT_PARSER
35# define MACDRAFT_PARSER
40#include <librevenge/librevenge.h>
71 void parse(librevenge::RVNGDrawingInterface *documentInterface);
78 void createDocument(librevenge::RVNGDrawingInterface *documentInterface);
118 shared_ptr<MacDraftParserInternal::State>
m_state;
virtual class which defines the ancestor of all graphic zone parser
Definition: MWAWParser.hxx:251
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
Internal: the subdocument of a MacDraftParser.
Definition: MacDraftParser.cxx:261
the main class to read a MacDraft v1 file
Definition: MacDraftParser.hxx:59
virtual ~MacDraftParser()
destructor
Definition: MacDraftParser.cxx:322
bool readZone()
try to a unknown zone
Definition: MacDraftParser.cxx:539
bool readBitmapDefinition(MacDraftParserInternal::Shape &bitmap)
try to read bitmap definition
Definition: MacDraftParser.cxx:1098
MacDraftParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor
Definition: MacDraftParser.cxx:316
bool createZones()
finds the different objects zones
Definition: MacDraftParser.cxx:395
void init()
inits all internal variables
Definition: MacDraftParser.cxx:326
bool sendBitmap(MacDraftParserInternal::Shape const &bitmap, MWAWPosition const &position)
try to send a bitmap
Definition: MacDraftParser.cxx:1746
void parse(librevenge::RVNGDrawingInterface *documentInterface)
virtual function used to parse the input
Definition: MacDraftParser.cxx:339
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: MacDraftParser.cxx:1336
bool readDocHeader()
try to the doc header zone ( mainly unknown )
Definition: MacDraftParser.cxx:1417
shared_ptr< MacDraftParserInternal::State > m_state
the state
Definition: MacDraftParser.hxx:118
bool sendText(int zoneId)
try to send a text zone to the listener
Definition: MacDraftParser.cxx:1825
bool readObject()
try to read an object
Definition: MacDraftParser.cxx:570
bool send(MacDraftParserInternal::Shape const &shape)
try to send a shape
Definition: MacDraftParser.cxx:1657
bool readLabel()
try to read a label
Definition: MacDraftParser.cxx:1222
bool readPattern()
try to read a pattern
Definition: MacDraftParser.cxx:1168
bool readPrintInfo()
try to read the print info zone
Definition: MacDraftParser.cxx:1595
void createDocument(librevenge::RVNGDrawingInterface *documentInterface)
creates the listener which will be associated to the document
Definition: MacDraftParser.cxx:373
bool readBitmapData()
try to read bitmap data
Definition: MacDraftParser.cxx:1041
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 MacDraftParser.
Definition: MacDraftParser.cxx:57
generic class used to store shape in MWAWDraftParser
Definition: MacDraftParser.cxx:82