38 #ifndef WRITE_NOW_PARSER
39 # define WRITE_NOW_PARSER
83 void parse(librevenge::RVNGTextInterface *documentInterface);
90 void createDocument(librevenge::RVNGTextInterface *documentInterface);
158 shared_ptr<WriteNowParserInternal::State>
m_state;
void createDocument(librevenge::RVNGTextInterface *documentInterface)
creates the listener which will be associated to the document
Definition: WriteNowParser.cxx:274
the main class to read the text part of writenow file
Definition: WriteNowText.hxx:81
shared_ptr< WriteNowText > m_textParser
the text parser
Definition: WriteNowParser.hxx:164
Definition: WriteNowEntry.hxx:47
Internal: the structures of a WriteNowParser.
Definition: WriteNowParser.cxx:56
void getColumnInfo(int &numColumns, int &width) const
returns the columns information
Definition: WriteNowParser.cxx:168
bool readColorMap(WriteNowEntry const &entry)
try to read the colormap zone
Definition: WriteNowParser.cxx:720
the manager of the entries
Definition: WriteNowEntry.hxx:97
bool readPrintInfo(WriteNowEntry const &entry)
try to read the print info zone
Definition: WriteNowParser.cxx:827
bool sendGraphic(int gId, MWAWBox2i const &bdbox)
try to send the graphic zone
Definition: WriteNowParser.cxx:212
void sendFootnote(WriteNowEntry const &entry)
try to send a footnote entry
Definition: WriteNowParser.cxx:199
shared_ptr< WriteNowParserInternal::State > m_state
the state
Definition: WriteNowParser.hxx:158
Internal: the subdocument of a WriteNowParser.
Definition: WriteNowParser.cxx:85
the class to store a color
Definition: libmwaw_internal.hxx:177
bool readDocEntriesV2()
try to read the document entries zone v2
Definition: WriteNowParser.cxx:475
bool checkIfPositionValid(long pos)
check if a position is inside the file
Definition: WriteNowParser.cxx:987
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:449
bool getColor(int colId, MWAWColor &col) const
returns the color which corresponds to colId
Definition: WriteNowParser.cxx:190
bool parseGraphicZone(WriteNowEntry const &entry)
try to read the graphic zone (unknown + list of entries ) and to create the graphic data zone ...
Definition: WriteNowParser.cxx:552
void init()
inits all internal variables
Definition: WriteNowParser.cxx:151
virtual class which defines the ancestor of all text zone parser
Definition: MWAWParser.hxx:284
void send(WriteNowEntry const &entry)
try to send an entry
Definition: WriteNowParser.cxx:207
WriteNowEntry readEntry()
read a file entry
Definition: WriteNowParser.cxx:1001
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:439
WriteNowParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor
Definition: WriteNowParser.cxx:141
shared_ptr< WriteNowEntryManager > m_entryManager
the list of entry
Definition: WriteNowParser.hxx:161
bool createZones()
finds the different objects zones
Definition: WriteNowParser.cxx:322
bool sendPicture(WriteNowEntry const &entry, MWAWBox2i const &bdbox)
try to send a picture to the listener
Definition: WriteNowParser.cxx:632
bool readGenericUnkn(WriteNowEntry const &entry)
try to read the last generic zones
Definition: WriteNowParser.cxx:903
virtual ~WriteNowParser()
destructor
Definition: WriteNowParser.cxx:147
bool readDocEntries()
try to read the document entries zone v3-v4
Definition: WriteNowParser.cxx:385
void parse(librevenge::RVNGTextInterface *documentInterface)
virtual function used to parse the input
Definition: WriteNowParser.cxx:231
void newPage(int number)
adds a new page
Definition: WriteNowParser.cxx:177
the main class to read a WriteNow file
Definition: WriteNowParser.hxx:68
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: WriteNowParser.cxx:1027