Go to the documentation of this file.
256 virtual void parse(librevenge::RVNGDrawingInterface *documentInterface) = 0;
272 virtual void parse(librevenge::RVNGPresentationInterface *documentInterface) = 0;
288 virtual void parse(librevenge::RVNGSpreadsheetInterface *documentInterface) = 0;
304 virtual void parse(librevenge::RVNGTextInterface *documentInterface) = 0;
std::shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:567
virtual bool checkHeader(MWAWHeader *header, bool strict=false)=0
virtual function used to check if the document header is correct (or not)
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
virtual class which defines the ancestor of all text zone parser
Definition: MWAWParser.hxx:299
virtual class which defines the ancestor of all spreadsheet zone parser
Definition: MWAWParser.hxx:283
MWAWFontConverterPtr & getFontConverter()
returns the font converter
Definition: MWAWParser.hxx:150
MWAWListenerPtr getMainListener()
returns the main listener
Definition: MWAWParser.cxx:91
std::shared_ptr< MWAWFontManager > MWAWFontManagerPtr
a smart pointer of MWAWFontManager
Definition: libmwaw_internal.hxx:547
std::shared_ptr< MWAWGraphicListener > MWAWGraphicListenerPtr
a smart pointer of MWAWGraphicListener
Definition: libmwaw_internal.hxx:549
std::shared_ptr< MWAWFontConverter > MWAWFontConverterPtr
a smart pointer of MWAWFontConverter
Definition: libmwaw_internal.hxx:543
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
MWAWPageSpan m_pageSpan
the actual document size
Definition: MWAWParser.hxx:71
MWAWDocument::Kind m_kind
the document kind
Definition: MWAWParser.hxx:63
MWAWGraphicListenerPtr & getGraphicListener()
returns the graphic listener
Definition: MWAWParser.hxx:130
MWAWListManagerPtr m_listManager
the list manager
Definition: MWAWParser.hxx:80
virtual void parse(librevenge::RVNGSpreadsheetInterface *documentInterface)=0
virtual function used to parse the input
MWAWParser(MWAWParserStatePtr const &state)
constructor using a state
Definition: MWAWParser.hxx:203
a font manager which can be used to store fonts, ...
Definition: MWAWFont.hxx:583
@ Presentation
Definition: MWAWParser.hxx:53
int version() const
returns the works version
Definition: MWAWParser.hxx:108
Kind
an enum to define the kind of document
Definition: MWAWDocument.hxx:80
void resetSpreadsheetListener()
resets the listener
Definition: MWAWParser.cxx:152
MWAWSpreadsheetParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor (protected)
Definition: MWAWParser.hxx:291
MWAWTextListenerPtr & getTextListener()
returns the text listener
Definition: MWAWParser.hxx:145
MWAWPresentationListenerPtr m_presentationListener
the presentation listener
Definition: MWAWParser.hxx:82
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWParser.hxx:195
void resetPresentationListener()
resets the listener
Definition: MWAWParser.cxx:141
std::shared_ptr< MWAWPresentationListener > MWAWPresentationListenerPtr
a smart pointer of MWAWPresentationListener
Definition: libmwaw_internal.hxx:559
std::string const & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
MWAWRSRCParserPtr m_rsrcParser
the resource parser
Definition: MWAWParser.hxx:69
MWAWGraphicParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor (protected)
Definition: MWAWParser.hxx:259
MWAWSpreadsheetListenerPtr & getSpreadsheetListener()
returns the spreadsheet listener
Definition: MWAWParser.hxx:140
double getPageWidth() const
returns the page width (form width without margin )
Definition: MWAWParser.hxx:185
MWAWListenerPtr getMainListener()
returns the main listener
Definition: MWAWParser.cxx:120
std::shared_ptr< MWAWSpreadsheetListener > MWAWSpreadsheetListenerPtr
a smart pointer of MWAWSpreadsheetListener
Definition: libmwaw_internal.hxx:563
void setTextListener(MWAWTextListenerPtr &listener)
sets the text listener
Definition: MWAWParser.cxx:158
void setAsciiName(char const *name)
Debugging: change the default ascii file.
Definition: MWAWParser.hxx:227
MWAWTextParser(MWAWParserStatePtr const &state)
constructor using a state
Definition: MWAWParser.hxx:309
MWAWRSRCParserPtr & getRSRCParser()
returns the rsrc parser
Definition: MWAWParser.hxx:190
MWAWGraphicListenerPtr m_graphicListener
the graphic listener
Definition: MWAWParser.hxx:78
double getFormLength() const
returns the form length
Definition: MWAWParser.hxx:170
This class provides all the functions needed by applications to parse many pre-MacOSX documents.
Definition: MWAWDocument.hxx:70
@ Text
Definition: MWAWParser.hxx:53
virtual class which defines the ancestor of all presentation zone parser
Definition: MWAWParser.hxx:267
std::shared_ptr< MWAWListManager > MWAWListManagerPtr
a smart pointer of MWAWListManager
Definition: libmwaw_internal.hxx:555
~MWAWParserState()
destructor
Definition: MWAWParser.cxx:71
MWAWFontManagerPtr & getFontManager()
returns the font manager
Definition: MWAWParser.hxx:155
virtual void parse(librevenge::RVNGDrawingInterface *documentInterface)=0
virtual function used to parse the input
void setGraphicListener(MWAWGraphicListenerPtr &listener)
sets the graphic listener
Definition: MWAWParser.cxx:125
void setVersion(int vers)
sets the document's version
Definition: MWAWParser.hxx:206
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:561
Definition: libmwaw_internal.hxx:144
MWAWSpreadsheetParser(MWAWParserStatePtr const &state)
constructor using a state
Definition: MWAWParser.hxx:293
virtual ~MWAWParser()
virtual destructor
Definition: MWAWParser.cxx:116
double getFormWidth() const
returns the form width
Definition: MWAWParser.hxx:175
MWAWPageSpan const & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
virtual class which defines the ancestor of all graphic zone parser
Definition: MWAWParser.hxx:251
~MWAWSpreadsheetParser() override
destructor
Definition: MWAWParser.cxx:181
MWAWPresentationListenerPtr & getPresentationListener()
returns the presentation listener
Definition: MWAWParser.hxx:135
std::string m_asciiName
the debug file name
Definition: MWAWParser.hxx:246
MWAWParser(const MWAWParser &)=delete
private copy constructor: forbidden
MWAWGraphicParser(MWAWParserStatePtr const &state)
constructor using a state
Definition: MWAWParser.hxx:261
Type m_type
the state type
Definition: MWAWParser.hxx:61
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
void setSpreadsheetListener(MWAWSpreadsheetListenerPtr &listener)
sets the spreadsheet listener
Definition: MWAWParser.cxx:147
MWAWParser(MWAWParserState::Type type, MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor (protected)
Definition: MWAWParser.cxx:110
MWAWParserState & operator=(MWAWParserState const &orig)=delete
MWAWFontConverterPtr m_fontConverter
the font converter
Definition: MWAWParser.hxx:74
MWAWTextParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor (protected)
Definition: MWAWParser.hxx:307
MWAWPresentationParser(MWAWParserStatePtr const &state)
constructor using a state
Definition: MWAWParser.hxx:277
virtual void parse(librevenge::RVNGPresentationInterface *documentInterface)=0
virtual function used to parse the input
MWAWParser & operator=(const MWAWParser &)=delete
private operator=: forbidden
virtual class which defines the ancestor of all main zone parser
Definition: MWAWParser.hxx:100
MWAWSpreadsheetListenerPtr m_spreadsheetListener
the spreadsheet listener
Definition: MWAWParser.hxx:84
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
a class to define the parser state
Definition: MWAWParser.hxx:50
MWAWTextListenerPtr m_textListener
the text listener
Definition: MWAWParser.hxx:86
MWAWPresentationParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor (protected)
Definition: MWAWParser.hxx:275
Defines MWAWTextListener: the libmwaw word processor listener.
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
MWAWFontManagerPtr m_fontManager
the font manager
Definition: MWAWParser.hxx:76
double getPageLength() const
returns the page length (form length without margin )
Definition: MWAWParser.hxx:180
int m_version
the actual version
Definition: MWAWParser.hxx:88
Type
the parser state type
Definition: MWAWParser.hxx:53
MWAWParserStatePtr m_parserState
the parser state
Definition: MWAWParser.hxx:244
MWAWParserState(MWAWParserState const &orig)=delete
a namespace used to convert Mac font characters in unicode
Definition: MWAWFontConverter.hxx:63
Defines MWAWSpreadsheetListener: the libmwaw spreadsheet processor listener.
MWAWParserState(Type type, MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
Constructor.
Definition: MWAWParser.cxx:45
libmwaw::DebugFile m_asciiFile
the debug file
Definition: MWAWParser.hxx:91
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
@ Spreadsheet
Definition: MWAWParser.hxx:53
a manager which manages the lists, keeps the different kind of lists, to assure the unicity of each l...
Definition: MWAWList.hxx:216
@ Graphic
Definition: MWAWParser.hxx:53
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
~MWAWGraphicParser() override
destructor
Definition: MWAWParser.cxx:173
virtual void parse(librevenge::RVNGTextInterface *documentInterface)=0
virtual function used to parse the input
~MWAWPresentationParser() override
destructor
Definition: MWAWParser.cxx:177
MWAWInputStreamPtr m_input
the input
Definition: MWAWParser.hxx:65
MWAWHeader * m_header
the header
Definition: MWAWParser.hxx:67
void setPresentationListener(MWAWPresentationListenerPtr &listener)
sets the presentation listener
Definition: MWAWParser.cxx:136
~MWAWTextParser() override
destructor
Definition: MWAWParser.cxx:185
void resetGraphicListener()
resets the listener
Definition: MWAWParser.cxx:130
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:99
void resetTextListener()
resets the listener
Definition: MWAWParser.cxx:163
MWAWPageSpan & getPageSpan()
returns the actual page dimension
Definition: MWAWParser.hxx:165
MWAWHeader * getHeader()
returns the header
Definition: MWAWParser.hxx:118
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20