the main class to read a Mac Microsoft PowerPoint v1, v2 files More...
#include <PowerPoint1Parser.hxx>
Public Member Functions | |
PowerPoint1Parser (MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header) | |
constructor | |
~PowerPoint1Parser () final | |
destructor | |
bool | checkHeader (MWAWHeader *header, bool strict=false) final |
checks if the document header is correct (or not) | |
void | parse (librevenge::RVNGPresentationInterface *documentInterface) final |
virtual function used to parse the input | |
![]() | |
~MWAWPresentationParser () override | |
destructor | |
virtual void | parse (librevenge::RVNGPresentationInterface *documentInterface)=0 |
virtual function used to parse the input | |
![]() | |
virtual | ~MWAWParser () |
virtual destructor | |
virtual bool | checkHeader (MWAWHeader *header, bool strict=false)=0 |
virtual function used to check if the document header is correct (or not) | |
int | version () const |
returns the works version | |
MWAWParserStatePtr | getParserState () |
returns the parser state | |
MWAWHeader * | getHeader () |
returns the header | |
MWAWInputStreamPtr & | getInput () |
returns the actual input | |
MWAWListenerPtr | getMainListener () |
returns the main listener | |
MWAWGraphicListenerPtr & | getGraphicListener () |
returns the graphic listener | |
MWAWPresentationListenerPtr & | getPresentationListener () |
returns the presentation listener | |
MWAWSpreadsheetListenerPtr & | getSpreadsheetListener () |
returns the spreadsheet listener | |
MWAWTextListenerPtr & | getTextListener () |
returns the text listener | |
MWAWFontConverterPtr & | getFontConverter () |
returns the font converter | |
MWAWFontManagerPtr & | getFontManager () |
returns the font manager | |
MWAWPageSpan const & | getPageSpan () const |
returns the actual page dimension | |
MWAWPageSpan & | getPageSpan () |
returns the actual page dimension | |
double | getFormLength () const |
returns the form length | |
double | getFormWidth () const |
returns the form width | |
double | getPageLength () const |
returns the page length (form length without margin ) | |
double | getPageWidth () const |
returns the page width (form width without margin ) | |
MWAWRSRCParserPtr & | getRSRCParser () |
returns the rsrc parser | |
libmwaw::DebugFile & | ascii () |
a DebugFile used to write what we recognize when we parse the document | |
Protected Member Functions | |
void | createDocument (librevenge::RVNGPresentationInterface *documentInterface) |
creates the listener which will be associated to the document | |
bool | createZones () |
finds the different zones | |
void | sendSlides () |
try to send all slides | |
bool | readListZones (int &docInfoId) |
try to read the list of zones | |
bool | readFramesList (MWAWEntry const &entry, std::vector< PowerPoint1ParserInternal::Frame > &frame, int schemeId) |
try to read a frame zone in a page | |
bool | readZoneIdList (MWAWEntry const &entry, int zId) |
try to read a zone id list zone | |
bool | readZoneIdList2 (MWAWEntry const &entry, int zId) |
try to read a zone id list zone for v2 pc file | |
bool | readColors (MWAWEntry const &entry) |
try to read a color list | |
bool | readColorZone (MWAWEntry const &entry) |
try to read a color zone, probably used to define the menu, ... | |
bool | readFonts (MWAWEntry const &entry) |
try to read a font style list | |
bool | readFontNames (MWAWEntry const &entry) |
try to read a font names list | |
bool | readPicture (MWAWEntry const &entry, MWAWEmbeddedObject &picture) |
try to read a picture zone | |
bool | readPictureDefinition (MWAWEntry const &entry, size_t id) |
try to read the picture definition: windows v2 | |
bool | readPrintInfo (MWAWEntry const &entry) |
try to read a print info zone | |
bool | readRulers (MWAWEntry const &entry) |
try to read the paragraph style | |
bool | readRuler (MWAWEntry const &entry, size_t id) |
try to read some ruler: windows v2 | |
bool | readScheme (MWAWEntry const &entry, int id) |
try to read a scheme | |
bool | readSchemes () |
try to read the schemes | |
bool | readTextZone (MWAWEntry const &entry, PowerPoint1ParserInternal::TextZone &zone) |
try to read a text zone | |
bool | readSlide (MWAWEntry const &entry, std::vector< int > &slideIds) |
try to read a slide zone, update the list of slide ids | |
bool | readDocInfo (MWAWEntry const &entry) |
try to read the document info zone | |
bool | readZone2 (MWAWEntry const &entry) |
try to read a unknown zone with size 22: related to scheme? | |
bool | sendSlide (PowerPoint1ParserInternal::Slide const &slide, bool master) |
try to send a slide | |
bool | sendFrame (PowerPoint1ParserInternal::Frame const &frame, PowerPoint1ParserInternal::TextZone const &textZone) |
try to send a frame zone | |
bool | sendPicture (MWAWPosition const &position, MWAWGraphicStyle const &style, int pId) |
try to send a picture | |
bool | sendText (PowerPoint1ParserInternal::TextZone const &textZone, MWAWVec2i tId, int rulerId) |
try to send a text zone | |
bool | sendSlideNote (PowerPoint1ParserInternal::Slide const &slide) |
try to send the slide note text | |
bool | getColor (int colorId, int schemeId, MWAWColor &color) const |
try to return a color corresponding to a scheme and color | |
void | checkForUnparsedZones () |
check for unparsed zone | |
![]() | |
MWAWPresentationParser (MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header) | |
constructor (protected) | |
MWAWPresentationParser (MWAWParserStatePtr const &state) | |
constructor using a state | |
![]() | |
MWAWParser (MWAWParserState::Type type, MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header) | |
constructor (protected) | |
MWAWParser (MWAWParserStatePtr const &state) | |
constructor using a state | |
void | setVersion (int vers) |
sets the document's version | |
void | setGraphicListener (MWAWGraphicListenerPtr &listener) |
sets the graphic listener | |
void | resetGraphicListener () |
resets the listener | |
void | setPresentationListener (MWAWPresentationListenerPtr &listener) |
sets the presentation listener | |
void | resetPresentationListener () |
resets the listener | |
void | setSpreadsheetListener (MWAWSpreadsheetListenerPtr &listener) |
sets the spreadsheet listener | |
void | resetSpreadsheetListener () |
resets the listener | |
void | setTextListener (MWAWTextListenerPtr &listener) |
sets the text listener | |
void | resetTextListener () |
resets the listener | |
void | setAsciiName (char const *name) |
Debugging: change the default ascii file. | |
std::string const & | asciiName () const |
return the ascii file name | |
Protected Attributes | |
std::shared_ptr< PowerPoint1ParserInternal::State > | m_state |
the state | |
Friends | |
class | PowerPoint1ParserInternal::SubDocument |
the main class to read a Mac Microsoft PowerPoint v1, v2 files
PowerPoint1Parser::PowerPoint1Parser | ( | MWAWInputStreamPtr const & | input, |
MWAWRSRCParserPtr const & | rsrcParser, | ||
MWAWHeader * | header | ||
) |
constructor
|
final |
destructor
|
protected |
check for unparsed zone
Referenced by parse().
|
finalvirtual |
|
protected |
creates the listener which will be associated to the document
Referenced by parse().
|
protected |
finds the different zones
Referenced by parse().
|
protected |
try to return a color corresponding to a scheme and color
Referenced by createDocument(), readFramesList(), and sendText().
|
finalvirtual |
virtual function used to parse the input
Implements MWAWPresentationParser.
|
protected |
try to read a color list
Referenced by readColorZone().
|
protected |
try to read a color zone, probably used to define the menu, ...
Referenced by createZones().
|
protected |
try to read the document info zone
Referenced by createZones().
|
protected |
try to read a font names list
Referenced by createZones().
|
protected |
try to read a font style list
Referenced by createZones().
|
protected |
try to read a frame zone in a page
Referenced by readSlide().
|
protected |
try to read the list of zones
Referenced by createZones().
|
protected |
try to read a picture zone
Referenced by checkForUnparsedZones(), and sendPicture().
|
protected |
try to read the picture definition: windows v2
Referenced by readZoneIdList2().
|
protected |
try to read a print info zone
Referenced by createZones().
|
protected |
try to read some ruler: windows v2
Referenced by readZoneIdList2().
|
protected |
try to read the paragraph style
Referenced by createZones().
|
protected |
try to read a scheme
Referenced by readSchemes().
|
protected |
try to read the schemes
Referenced by createZones().
|
protected |
try to read a slide zone, update the list of slide ids
Referenced by createZones(), and readSlide().
|
protected |
try to read a text zone
Referenced by readSlide().
|
protected |
try to read a unknown zone with size 22: related to scheme?
Referenced by createZones().
|
protected |
try to read a zone id list zone
Referenced by createZones().
|
protected |
try to read a zone id list zone for v2 pc file
Referenced by createZones().
|
protected |
try to send a frame zone
Referenced by sendSlide().
|
protected |
try to send a picture
Referenced by sendFrame().
|
protected |
try to send a slide
Referenced by sendSlides().
|
protected |
try to send the slide note text
|
protected |
try to send all slides
Referenced by parse().
|
protected |
try to send a text zone
Referenced by sendSlideNote().
|
friend |
|
protected |
the state
Referenced by checkForUnparsedZones(), checkHeader(), createDocument(), createZones(), getColor(), readColors(), readColorZone(), readDocInfo(), readFonts(), readFramesList(), readListZones(), readPictureDefinition(), readRuler(), readRulers(), readScheme(), readSchemes(), readSlide(), readTextZone(), readZone2(), readZoneIdList(), readZoneIdList2(), sendFrame(), sendPicture(), sendSlides(), and sendText().