PowerPoint1Parser Class Referencefinal

the main class to read a Mac Microsoft PowerPoint v1, v2 files More...

#include <PowerPoint1Parser.hxx>

Inheritance diagram for PowerPoint1Parser:
MWAWPresentationParser MWAWParser

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
 
- Public Member Functions inherited from MWAWPresentationParser
 ~MWAWPresentationParser () override
 destructor
 
virtual void parse (librevenge::RVNGPresentationInterface *documentInterface)=0
 virtual function used to parse the input
 
- Public Member Functions inherited from MWAWParser
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
 
MWAWHeadergetHeader ()
 returns the header
 
MWAWInputStreamPtrgetInput ()
 returns the actual input
 
MWAWListenerPtr getMainListener ()
 returns the main listener
 
MWAWGraphicListenerPtrgetGraphicListener ()
 returns the graphic listener
 
MWAWPresentationListenerPtrgetPresentationListener ()
 returns the presentation listener
 
MWAWSpreadsheetListenerPtrgetSpreadsheetListener ()
 returns the spreadsheet listener
 
MWAWTextListenerPtrgetTextListener ()
 returns the text listener
 
MWAWFontConverterPtrgetFontConverter ()
 returns the font converter
 
MWAWFontManagerPtrgetFontManager ()
 returns the font manager
 
MWAWPageSpan const & getPageSpan () const
 returns the actual page dimension
 
MWAWPageSpangetPageSpan ()
 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 )
 
MWAWRSRCParserPtrgetRSRCParser ()
 returns the rsrc parser
 
libmwaw::DebugFileascii ()
 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
 
- Protected Member Functions inherited from MWAWPresentationParser
 MWAWPresentationParser (MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
 constructor (protected)
 
 MWAWPresentationParser (MWAWParserStatePtr const &state)
 constructor using a state
 
- Protected Member Functions inherited from MWAWParser
 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::Statem_state
 the state
 

Friends

class PowerPoint1ParserInternal::SubDocument
 

Detailed Description

the main class to read a Mac Microsoft PowerPoint v1, v2 files

Note
there is some basic code to find the main zones in a Windows v2 files

Constructor & Destructor Documentation

◆ PowerPoint1Parser()

PowerPoint1Parser::PowerPoint1Parser ( MWAWInputStreamPtr const &  input,
MWAWRSRCParserPtr const &  rsrcParser,
MWAWHeader header 
)

constructor

◆ ~PowerPoint1Parser()

PowerPoint1Parser::~PowerPoint1Parser ( )
final

destructor

Member Function Documentation

◆ checkForUnparsedZones()

void PowerPoint1Parser::checkForUnparsedZones ( )
protected

check for unparsed zone

Referenced by parse().

◆ checkHeader()

bool PowerPoint1Parser::checkHeader ( MWAWHeader header,
bool  strict = false 
)
finalvirtual

checks if the document header is correct (or not)

Implements MWAWParser.

Referenced by parse().

◆ createDocument()

void PowerPoint1Parser::createDocument ( librevenge::RVNGPresentationInterface *  documentInterface)
protected

creates the listener which will be associated to the document

Referenced by parse().

◆ createZones()

bool PowerPoint1Parser::createZones ( )
protected

finds the different zones

Referenced by parse().

◆ getColor()

bool PowerPoint1Parser::getColor ( int  colorId,
int  schemeId,
MWAWColor color 
) const
protected

try to return a color corresponding to a scheme and color

Referenced by createDocument(), readFramesList(), and sendText().

◆ parse()

void PowerPoint1Parser::parse ( librevenge::RVNGPresentationInterface *  documentInterface)
finalvirtual

virtual function used to parse the input

Implements MWAWPresentationParser.

◆ readColors()

bool PowerPoint1Parser::readColors ( MWAWEntry const &  entry)
protected

try to read a color list

Referenced by readColorZone().

◆ readColorZone()

bool PowerPoint1Parser::readColorZone ( MWAWEntry const &  entry)
protected

try to read a color zone, probably used to define the menu, ...

Referenced by createZones().

◆ readDocInfo()

bool PowerPoint1Parser::readDocInfo ( MWAWEntry const &  entry)
protected

try to read the document info zone

Referenced by createZones().

◆ readFontNames()

bool PowerPoint1Parser::readFontNames ( MWAWEntry const &  entry)
protected

try to read a font names list

Referenced by createZones().

◆ readFonts()

bool PowerPoint1Parser::readFonts ( MWAWEntry const &  entry)
protected

try to read a font style list

Referenced by createZones().

◆ readFramesList()

bool PowerPoint1Parser::readFramesList ( MWAWEntry const &  entry,
std::vector< PowerPoint1ParserInternal::Frame > &  frame,
int  schemeId 
)
protected

try to read a frame zone in a page

Referenced by readSlide().

◆ readListZones()

bool PowerPoint1Parser::readListZones ( int &  docInfoId)
protected

try to read the list of zones

Referenced by createZones().

◆ readPicture()

bool PowerPoint1Parser::readPicture ( MWAWEntry const &  entry,
MWAWEmbeddedObject picture 
)
protected

try to read a picture zone

Referenced by checkForUnparsedZones(), and sendPicture().

◆ readPictureDefinition()

bool PowerPoint1Parser::readPictureDefinition ( MWAWEntry const &  entry,
size_t  id 
)
protected

try to read the picture definition: windows v2

Referenced by readZoneIdList2().

◆ readPrintInfo()

bool PowerPoint1Parser::readPrintInfo ( MWAWEntry const &  entry)
protected

try to read a print info zone

Referenced by createZones().

◆ readRuler()

bool PowerPoint1Parser::readRuler ( MWAWEntry const &  entry,
size_t  id 
)
protected

try to read some ruler: windows v2

Referenced by readZoneIdList2().

◆ readRulers()

bool PowerPoint1Parser::readRulers ( MWAWEntry const &  entry)
protected

try to read the paragraph style

Referenced by createZones().

◆ readScheme()

bool PowerPoint1Parser::readScheme ( MWAWEntry const &  entry,
int  id 
)
protected

try to read a scheme

Referenced by readSchemes().

◆ readSchemes()

bool PowerPoint1Parser::readSchemes ( )
protected

try to read the schemes

Referenced by createZones().

◆ readSlide()

bool PowerPoint1Parser::readSlide ( MWAWEntry const &  entry,
std::vector< int > &  slideIds 
)
protected

try to read a slide zone, update the list of slide ids

Referenced by createZones(), and readSlide().

◆ readTextZone()

bool PowerPoint1Parser::readTextZone ( MWAWEntry const &  entry,
PowerPoint1ParserInternal::TextZone zone 
)
protected

try to read a text zone

Referenced by readSlide().

◆ readZone2()

bool PowerPoint1Parser::readZone2 ( MWAWEntry const &  entry)
protected

try to read a unknown zone with size 22: related to scheme?

Referenced by createZones().

◆ readZoneIdList()

bool PowerPoint1Parser::readZoneIdList ( MWAWEntry const &  entry,
int  zId 
)
protected

try to read a zone id list zone

Referenced by createZones().

◆ readZoneIdList2()

bool PowerPoint1Parser::readZoneIdList2 ( MWAWEntry const &  entry,
int  zId 
)
protected

try to read a zone id list zone for v2 pc file

Referenced by createZones().

◆ sendFrame()

bool PowerPoint1Parser::sendFrame ( PowerPoint1ParserInternal::Frame const &  frame,
PowerPoint1ParserInternal::TextZone const &  textZone 
)
protected

try to send a frame zone

Referenced by sendSlide().

◆ sendPicture()

bool PowerPoint1Parser::sendPicture ( MWAWPosition const &  position,
MWAWGraphicStyle const &  style,
int  pId 
)
protected

try to send a picture

Referenced by sendFrame().

◆ sendSlide()

bool PowerPoint1Parser::sendSlide ( PowerPoint1ParserInternal::Slide const &  slide,
bool  master 
)
protected

try to send a slide

Referenced by sendSlides().

◆ sendSlideNote()

bool PowerPoint1Parser::sendSlideNote ( PowerPoint1ParserInternal::Slide const &  slide)
protected

try to send the slide note text

◆ sendSlides()

void PowerPoint1Parser::sendSlides ( )
protected

try to send all slides

Referenced by parse().

◆ sendText()

bool PowerPoint1Parser::sendText ( PowerPoint1ParserInternal::TextZone const &  textZone,
MWAWVec2i  tId,
int  rulerId 
)
protected

try to send a text zone

Referenced by sendSlideNote().

Friends And Related Function Documentation

◆ PowerPoint1ParserInternal::SubDocument

Member Data Documentation

◆ m_state


The documentation for this class was generated from the following files:

Generated on Wed May 3 2023 07:18:29 for libmwaw by doxygen 1.9.6