38 #ifndef WRITE_NOW_PARSER 39 # define WRITE_NOW_PARSER
void createDocument(librevenge::RVNGTextInterface *documentInterface)
creates the listener which will be associated to the document
Definition: WriteNowParser.cxx:280
the main class to read the text part of writenow file
Definition: WriteNowText.hxx:81
class to store entry in a WriteNow document
Definition: WriteNowEntry.hxx:48
Internal: the structures of a WriteNowParser.
Definition: WriteNowParser.cxx:55
Definition: MWAWDocument.hxx:56
WriteNowParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: WriteNowParser.cxx:145
bool readColorMap(WriteNowEntry const &entry)
try to read the colormap zone
Definition: WriteNowParser.cxx:721
~WriteNowParser() final
destructor
Definition: WriteNowParser.cxx:154
the manager of the entries
Definition: WriteNowEntry.hxx:106
bool readPrintInfo(WriteNowEntry const &entry)
try to read the print info zone
Definition: WriteNowParser.cxx:828
bool sendGraphic(int gId, MWAWBox2i const &bdbox)
try to send the graphic zone
Definition: WriteNowParser.cxx:219
std::shared_ptr< WriteNowParserInternal::State > m_state
the state
Definition: WriteNowParser.hxx:158
void sendFootnote(WriteNowEntry const &entry)
try to send a footnote entry
Definition: WriteNowParser.cxx:206
Internal: the subdocument of a WriteNowParser.
Definition: WriteNowParser.cxx:91
the class to store a color
Definition: libmwaw_internal.hxx:192
bool readDocEntriesV2()
try to read the document entries zone v2
Definition: WriteNowParser.cxx:477
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:561
bool checkIfPositionValid(long pos)
check if a position is inside the file
Definition: WriteNowParser.cxx:988
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:554
void init()
inits all internal variables
Definition: WriteNowParser.cxx:158
virtual class which defines the ancestor of all text zone parser
Definition: MWAWParser.hxx:298
void send(WriteNowEntry const &entry)
try to send an entry
Definition: WriteNowParser.cxx:214
std::shared_ptr< WriteNowEntryManager > m_entryManager
the list of entry
Definition: WriteNowParser.hxx:161
WriteNowEntry readEntry()
read a file entry
Definition: WriteNowParser.cxx:1002
std::shared_ptr< WriteNowText > m_textParser
the text parser
Definition: WriteNowParser.hxx:164
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: WriteNowParser.cxx:1028
bool createZones()
finds the different objects zones
Definition: WriteNowParser.cxx:328
bool sendPicture(WriteNowEntry const &entry, MWAWBox2i const &bdbox)
try to send a picture to the listener
Definition: WriteNowParser.cxx:634
bool readGenericUnkn(WriteNowEntry const &entry)
try to read the last generic zones
Definition: WriteNowParser.cxx:904
bool readDocEntries()
try to read the document entries zone v3-v4
Definition: WriteNowParser.cxx:388
void getColumnInfo(int &numColumns, int &width) const
returns the columns information
Definition: WriteNowParser.cxx:175
void parse(librevenge::RVNGTextInterface *documentInterface) final
virtual function used to parse the input
Definition: WriteNowParser.cxx:238
void newPage(int number)
adds a new page
Definition: WriteNowParser.cxx:184
the main class to read a WriteNow file
Definition: WriteNowParser.hxx:68
bool getColor(int colId, MWAWColor &col) const
returns the color which corresponds to colId
Definition: WriteNowParser.cxx:197