PowerPoint1Parser Class Reference documentation

Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
PowerPoint1Parser Class Referencefinal

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

`#include <PowerPoint1Parser.hxx>`

Inheritance diagram for PowerPoint1Parser:

## Public Member Functions
| PowerPoint1Parser (MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
| constructor More...
| ~PowerPoint1Parser () final
| destructor More...
bool | checkHeader (MWAWHeader *header, bool strict=false) final
| checks if the document header is correct (or not) More...
void | parse (librevenge::RVNGPresentationInterface *documentInterface) final
| virtual function used to parse the input More...
Public Member Functions inherited from MWAWPresentationParser
| ~MWAWPresentationParser () override
| destructor More...
Public Member Functions inherited from MWAWParser
virtual | ~MWAWParser ()
| virtual destructor More...
int | version () const
| returns the works version More...
MWAWParserStatePtr | getParserState ()
| returns the parser state More...
MWAWHeader * | getHeader ()
| returns the header More...
MWAWInputStreamPtr & | getInput ()
| returns the actual input More...
MWAWListenerPtr | getMainListener ()
| returns the main listener More...
MWAWGraphicListenerPtr & | getGraphicListener ()
| returns the graphic listener More...
MWAWPresentationListenerPtr & | getPresentationListener ()
| returns the presentation listener More...
MWAWSpreadsheetListenerPtr & | getSpreadsheetListener ()
| returns the spreadsheet listener More...
MWAWTextListenerPtr & | getTextListener ()
| returns the text listener More...
MWAWFontConverterPtr & | getFontConverter ()
| returns the font converter More...
MWAWFontManagerPtr & | getFontManager ()
| returns the font manager More...
MWAWPageSpan const & | getPageSpan () const
| returns the actual page dimension More...
MWAWPageSpan & | getPageSpan ()
| returns the actual page dimension More...
double | getFormLength () const
| returns the form length More...
double | getFormWidth () const
| returns the form width More...
double | getPageLength () const
| returns the page length (form length without margin ) More...
double | getPageWidth () const
| returns the page width (form width without margin ) More...
MWAWRSRCParserPtr & | getRSRCParser ()
| returns the rsrc parser More...
libmwaw::DebugFile & | ascii ()
| a DebugFile used to write what we recognize when we parse the document More...

## Protected Member Functions
void | createDocument (librevenge::RVNGPresentationInterface *documentInterface)
| creates the listener which will be associated to the document More...
bool | createZones ()
| finds the different zones More...
void | sendSlides ()
| try to send all slides More...
bool | readListZones (int &docInfoId)
| try to read the list of zones More...
bool | readFramesList (MWAWEntry const &entry, std::vector< PowerPoint1ParserInternal::Frame > &frame, int schemeId)
| try to read a frame zone in a page More...
bool | readZoneIdList (MWAWEntry const &entry, int zId)
| try to read a zone id list zone More...
bool | readZoneIdList2 (MWAWEntry const &entry, int zId)
| try to read a zone id list zone for v2 pc file More...
bool | readColors (MWAWEntry const &entry)
| try to read a color list More...
bool | readColorZone (MWAWEntry const &entry)
| try to read a color zone, probably used to define the menu, ... More...
bool | readFonts (MWAWEntry const &entry)
| try to read a font style list More...
bool | readFontNames (MWAWEntry const &entry)
| try to read a font names list More...
bool | readPicture (MWAWEntry const &entry, MWAWEmbeddedObject &picture)
| try to read a picture zone More...
bool | readPictureDefinition (MWAWEntry const &entry, size_t id)
| try to read the picture definition: windows v2 More...
bool | readPrintInfo (MWAWEntry const &entry)
| try to read a print info zone More...
bool | readRulers (MWAWEntry const &entry)
| try to read the paragraph style More...
bool | readRuler (MWAWEntry const &entry, size_t id)
| try to read some ruler: windows v2 More...
bool | readScheme (MWAWEntry const &entry, int id)
| try to read a scheme More...
bool | readSchemes ()
| try to read the schemes More...
bool | readTextZone (MWAWEntry const &entry, PowerPoint1ParserInternal::TextZone &zone)
| try to read a text zone More...
bool | readSlide (MWAWEntry const &entry, std::vector< int > &slideIds)
| try to read a slide zone, update the list of slide ids More...
bool | readDocInfo (MWAWEntry const &entry)
| try to read the document info zone More...
bool | readZone2 (MWAWEntry const &entry)
| try to read a unknown zone with size 22: related to scheme? More...
bool | sendSlide (PowerPoint1ParserInternal::Slide const &slide, bool master)
| try to send a slide More...
bool | sendFrame (PowerPoint1ParserInternal::Frame const &frame, PowerPoint1ParserInternal::TextZone const &textZone)
| try to send a frame zone More...
bool | sendPicture (MWAWPosition const &position, MWAWGraphicStyle const &style, int pId)
| try to send a picture More...
bool | sendText (PowerPoint1ParserInternal::TextZone const &textZone, MWAWVec2i tId, int rulerId)
| try to send a text zone More...
bool | sendSlideNote (PowerPoint1ParserInternal::Slide const &slide)
| try to send the slide note text More...
bool | getColor (int colorId, int schemeId, MWAWColor &color) const
| try to return a color corresponding to a scheme and color More...
void | checkForUnparsedZones ()
| check for unparsed zone More...
Protected Member Functions inherited from MWAWPresentationParser
| MWAWPresentationParser (MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
| constructor (protected) More...
| MWAWPresentationParser (MWAWParserStatePtr const &state)
| constructor using a state More...
Protected Member Functions inherited from MWAWParser
| MWAWParser (MWAWParserState::Type type, MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
| constructor (protected) More...
| MWAWParser (MWAWParserStatePtr const &state)
| constructor using a state More...
void | setVersion (int vers)
| sets the document's version More...
void | setGraphicListener (MWAWGraphicListenerPtr &listener)
| sets the graphic listener More...
void | resetGraphicListener ()
| resets the listener More...
void | setPresentationListener (MWAWPresentationListenerPtr &listener)
| sets the presentation listener More...
void | resetPresentationListener ()
| resets the listener More...
void | setSpreadsheetListener (MWAWSpreadsheetListenerPtr &listener)
| sets the spreadsheet listener More...
void | resetSpreadsheetListener ()
| resets the listener More...
void | setTextListener (MWAWTextListenerPtr &listener)
| sets the text listener More...
void | resetTextListener ()
| resets the listener More...
void | setAsciiName (char const *name)
| Debugging: change the default ascii file. More...
std::string const & | asciiName () const
| return the ascii file name More...

## Protected Attributes
std::shared_ptr< PowerPoint1ParserInternal::State > | m_state
| the state More...

## 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().

## ◆ 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

friend class PowerPoint1ParserInternal::SubDocument
| friend

## Member Data Documentation

## ◆ m_state

std::shared_ptr<PowerPoint1ParserInternal::State> PowerPoint1Parser::m_state
| 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().

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

- PowerPoint1Parser.hxx
- PowerPoint1Parser.cxx