the main class to read a Microsoft PowerPoint v3 or v4 files (MacOs and Windows) More...
#include <PowerPoint3Parser.hxx>
Public Member Functions | |
PowerPoint3Parser (MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header) | |
constructor | |
~PowerPoint3Parser () 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 | readStructList (MWAWEntry const &entry, PowerPoint3ParserInternal::FieldParser &parser) |
try to read a list of structure | |
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, ...: the 8th zone | |
bool | readDocInfo (MWAWEntry const &entry) |
try to read the document info zone | |
bool | readDocRoot (MWAWEntry const &entry) |
try to read the main child of doc info | |
bool | readFont (MWAWFont &font, int schemeId) |
try to read a font | |
bool | readFontNamesList (std::map< int, int > const &fIdtoZIdMap) |
try to read a font names list | |
bool | readFontName (MWAWEntry const &entry, int id) |
try to read a font name : 11th zone | |
bool | readFramesList (MWAWEntry const &entry, PowerPoint3ParserInternal::SlideContent &content) |
try to read a frame zone in a page | |
bool | readParagraph (MWAWParagraph ¶, PowerPoint3ParserInternal::Ruler const &ruler, int schemeId) |
try to read a paragraph | |
bool | readPictureDefinition (MWAWEntry const &entry, int id) |
try to read the picture definition | |
bool | readPictureContent (MWAWEntry const &entry, MWAWEmbeddedObject &pict) |
try to read the first child of the picture | |
bool | readPictureMain (MWAWEntry const &entry) |
try to read the 5th zone | |
bool | readPicturesList (std::map< int, int > const &pIdtoZIdMap) |
try to read a picture list | |
bool | readPrintInfo (MWAWEntry const &entry) |
try to read a print info zone | |
bool | readRuler (MWAWEntry const &entry, int id) |
try to read some ruler | |
bool | readScheme (MWAWEntry const &entry, int id) |
try to read a scheme | |
bool | readSlide (MWAWEntry const &entry, PowerPoint3ParserInternal::Slide &slide, int zId) |
try to read a slide main zone | |
bool | readSlideContent (MWAWEntry const &entry, PowerPoint3ParserInternal::SlideContent &slide) |
try to read the second/third child of slideMain: main, master ? | |
bool | readSlideFormats (MWAWEntry const &entry, std::vector< PowerPoint3ParserInternal::SlideFormat > &formatList) |
try to read the second child of slide content which contains some shadow offset... | |
bool | readSlidePolygons (MWAWEntry const &entry, std::vector< PowerPoint3ParserInternal::Polygon > &polyList) |
try to read the third child of slide content | |
bool | readSlideTransition (MWAWEntry const &entry) |
try to read the first child of slideMain | |
bool | readSlidesList (MWAWEntry const &entry) |
try to read the first child of docRoot | |
bool | readTextZone (MWAWEntry const &entry, PowerPoint3ParserInternal::SlideContent &content) |
try to read a text zone | |
bool | sendSlide (PowerPoint3ParserInternal::SlideContent const &slide, bool master) |
try to send a slide | |
bool | sendFrame (PowerPoint3ParserInternal::Frame const &frame, PowerPoint3ParserInternal::SlideContent const &content, bool master, std::set< int > &seen) |
try to send a frame zone | |
bool | sendText (PowerPoint3ParserInternal::SlideContent const &slide, int tId, bool placeHolder, bool master) |
try to send a text zone | |
bool | readZone9 (MWAWEntry const &entry) |
try to read the 9th zone | |
bool | readZone10 (MWAWEntry const &entry) |
try to read the 10th zone | |
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< PowerPoint3ParserInternal::State > | m_state |
the state | |
Friends | |
class | PowerPoint3ParserInternal::SubDocument |
the main class to read a Microsoft PowerPoint v3 or v4 files (MacOs and Windows)
PowerPoint3Parser::PowerPoint3Parser | ( | MWAWInputStreamPtr const & | input, |
MWAWRSRCParserPtr const & | rsrcParser, | ||
MWAWHeader * | header | ||
) |
constructor
|
final |
destructor
|
protected |
check for unparsed zone
Referenced by parse().
|
finalvirtual |
checks if the document header is correct (or not)
Implements MWAWParser.
Referenced by createZones(), and parse().
|
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(), readFont(), readFramesList(), and readParagraph().
|
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, ...: the 8th zone
Referenced by createZones().
|
protected |
try to read the document info zone
Referenced by createZones().
|
protected |
try to read the main child of doc info
Referenced by createZones().
|
protected |
try to read a font
Referenced by readTextZone(), and sendText().
|
protected |
try to read a font name : 11th zone
Referenced by readFontNamesList().
|
protected |
try to read a font names list
Referenced by createZones().
|
protected |
try to read a frame zone in a page
Referenced by readSlideContent().
|
protected |
try to read the list of zones
Referenced by createZones().
|
protected |
try to read a paragraph
Referenced by readTextZone(), and sendText().
|
protected |
try to read the first child of the picture
Referenced by readPictureDefinition().
|
protected |
try to read the picture definition
Referenced by readPicturesList().
|
protected |
try to read the 5th zone
Referenced by createZones().
|
protected |
try to read a picture list
Referenced by readPictureMain().
|
protected |
try to read a print info zone
Referenced by createZones().
|
protected |
try to read some ruler
Referenced by createZones().
|
protected |
try to read a scheme
Referenced by createZones().
|
protected |
try to read a slide main zone
Referenced by createZones().
|
protected |
try to read the second/third child of slideMain: main, master ?
Referenced by readSlide().
|
protected |
try to read the second child of slide content which contains some shadow offset...
Referenced by readSlideContent().
|
protected |
try to read the third child of slide content
Referenced by readSlideContent().
|
protected |
try to read the first child of docRoot
Referenced by readDocRoot().
|
protected |
try to read the first child of slideMain
Referenced by readSlide().
|
protected |
try to read a list of structure
Referenced by createZones(), and readPictureMain().
|
protected |
try to read a text zone
Referenced by readSlideContent().
|
protected |
try to read the 10th zone
Referenced by createZones().
|
protected |
try to read the 9th zone
Referenced by createZones().
|
protected |
try to send a frame zone
Referenced by sendFrame(), and sendSlide().
|
protected |
try to send a slide
Referenced by sendSlides().
|
protected |
try to send all slides
Referenced by parse().
|
protected |
try to send a text zone
|
friend |
|
protected |
the state
Referenced by checkForUnparsedZones(), checkHeader(), createDocument(), createZones(), getColor(), parse(), readColors(), readColorZone(), readDocInfo(), readDocRoot(), readFont(), readFontName(), readFontNamesList(), readFramesList(), readListZones(), readParagraph(), readPictureContent(), readPictureDefinition(), readPictureMain(), readPicturesList(), readRuler(), readScheme(), readSlide(), readSlideContent(), readSlideFormats(), readSlidePolygons(), readSlidesList(), readSlideTransition(), readStructList(), readTextZone(), sendFrame(), sendSlides(), and sendText().