Go to the documentation of this file.
34 #ifndef POWER_POINT7_PARSER
35 # define POWER_POINT7_PARSER
75 void parse(librevenge::RVNGPresentationInterface *documentInterface);
79 void createDocument(librevenge::RVNGPresentationInterface *documentInterface);
112 bool readSlides(
int level,
long endPos,
bool master);
123 bool readColorScheme(
int level,
long endPos, std::vector<MWAWColor> &colors);
158 bool readIdentifier(
int level,
long endPos,
int &
id, std::string
const &wh);
168 bool readColorList(
int level,
long endPos, std::vector<MWAWColor> &colors);
187 bool readString(
int level,
long endPos, std::string &
string,
int &zId, std::string
const &what=
"");
212 bool readZone(
int level,
long endPos);
214 bool readZoneNoData(
int level,
long endPos, std::string
const &name, std::string
const &wh=
"");
225 shared_ptr<PowerPoint7ParserInternal::State>
m_state;
bool readZone1028Data(int level, long endPos)
try to read the zone 4052: child of Zone1028
Definition: PowerPoint7Parser.cxx:2457
bool readSSDocInfoAtom(int level, long endPos)
try to read the slide show doc info atom 1025: child of Document
Definition: PowerPoint7Parser.cxx:1258
void sendSlides()
try to send all slides
Definition: PowerPoint7Parser.cxx:2803
std::string getName() const
returns a basic name
Definition: PowerPoint7Struct.hxx:116
MWAWFontConverterPtr & getFontConverter()
returns the font converter
Definition: MWAWParser.hxx:150
shared_ptr< MWAWPresentationListener > MWAWPresentationListenerPtr
a smart pointer of MWAWPresentationListener
Definition: libmwaw_internal.hxx:511
MWAWBox2i m_box
the bdbox
Definition: PowerPoint7Parser.cxx:69
void popColorList()
pop a slide id
Definition: PowerPoint7Parser.cxx:134
bool readSoundCollection(int level, long endPos)
try to read the sound collection zone 2020
Definition: PowerPoint7Parser.cxx:1710
std::vector< PowerPoint7Struct::SlideId > m_slideList
the list of slides
Definition: PowerPoint7Parser.cxx:155
std::stack< PowerPoint7Struct::SlideId > m_slideIdStack
a stack of slide id
Definition: PowerPoint7Parser.cxx:163
bool m_inNotes
a flag to know if the content is in the notes part
Definition: PowerPoint7Struct.hxx:102
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
bool readSorterViewInfo(int level, long endPos)
try to read the sorter view info zone 1032
Definition: PowerPoint7Parser.cxx:1460
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
bool readKinsokuAtom(int level, long endPos)
try to read the Kinsoku atom zone 4050
Definition: PowerPoint7Parser.cxx:2429
std::map< PowerPoint7Struct::SlideId, librevenge::RVNGString > m_masterSlideIdToNameMap
the master slide
Definition: PowerPoint7Parser.cxx:157
bool readSlideIdentifier(int level, long endPos, PowerPoint7Struct::SlideId &sId)
try to read a slide identifier zone 4032
Definition: PowerPoint7Parser.cxx:2244
bool readZone4072(int level, long endPos)
try to read the zone 4072: child of Zone3008
Definition: PowerPoint7Parser.cxx:2629
shared_ptr< PowerPoint7Text > m_textParser
the text parser
Definition: PowerPoint7Parser.cxx:151
bool readMainSub10(long endPos)
try to read the main sub zone: the zone 10: child of Root
Definition: PowerPoint7Parser.cxx:365
bool readBookmarkCollection(int level, long endPos)
try to read the bookmark collection zone 2019
Definition: PowerPoint7Parser.cxx:1658
bool readNotes(int level, long endPos)
try to read the notes zone 1008
Definition: PowerPoint7Parser.cxx:728
bool readDocAtom(int level, long endPos)
try to read the document atom's zone 1001: child of Document
Definition: PowerPoint7Parser.cxx:464
Internal: the structures of a PowerPoint7Parser.
Definition: PowerPoint7Parser.cxx:61
bool m_isMaster
a flag to know if this is a master slide or a normal slide
Definition: PowerPoint7Struct.hxx:100
bool open(std::string const &filename)
opens/creates a file to store a result
Definition: MWAWDebug.cxx:46
int m_type
the type
Definition: PowerPoint7Struct.hxx:131
void createDocument(librevenge::RVNGPresentationInterface *documentInterface)
creates the listener which will be associated to the document
Definition: PowerPoint7Parser.cxx:234
the class to store a color
Definition: libmwaw_internal.hxx:182
bool readHeaderFooterAtom(int level, long endPos)
try to read the header footer atom zone: 4058
Definition: PowerPoint7Parser.cxx:2591
a slide id
Definition: PowerPoint7Struct.hxx:50
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: PowerPoint7Parser.cxx:2843
int version() const
returns the works version
Definition: MWAWParser.hxx:108
bool readContainerList(int level, long endPos)
try to read the container list zone 2000: child of Document
Definition: PowerPoint7Parser.cxx:1504
bool readHandout(int level, long endPos)
try to read the handout zone 4041
Definition: PowerPoint7Parser.cxx:2360
bool m_hasBackground
a flag to know if the slide has some background or no background
Definition: PowerPoint7Parser.cxx:73
bool readZone1015(int level, long endPos)
try to read the zone 1015: child of Slides
Definition: PowerPoint7Parser.cxx:949
bool readDocRoot()
try to read the main zone: the zone 3
Definition: PowerPoint7Parser.cxx:317
bool readOutlineTextProps9Atom(int level, long endPos, int &pId, PowerPoint7Struct::SlideId &sId)
try to read the outline text props9 atom zone 4009
Definition: PowerPoint7Parser.cxx:2124
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
bool m_inHandout
a flag to know if the content is in the handout part
Definition: PowerPoint7Struct.hxx:104
std::string m_fontFamily
the basic pc font family if known
Definition: PowerPoint7Parser.cxx:145
shared_ptr< PowerPoint7ParserInternal::State > m_state
the state
Definition: PowerPoint7Parser.hxx:225
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWParser.hxx:195
MWAWVec2i m_pageDimension
the page dimension
Definition: PowerPoint7Parser.cxx:147
bool readZone1028(int level, long endPos)
try to read the zone 1028: child of Environment
Definition: PowerPoint7Parser.cxx:1335
bool readSlideViewInfoAtom(int level, long endPos)
try to read the slide view info zone 1022
Definition: PowerPoint7Parser.cxx:1145
void resetPresentationListener()
resets the listener
Definition: MWAWParser.cxx:129
std::string const & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
virtual ~PowerPoint7Parser()
destructor
Definition: PowerPoint7Parser.cxx:181
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:172
void setMasterPageName(librevenge::RVNGString const &name)
set the page master name
Definition: MWAWPageSpan.hxx:237
bool readZone(int level, long endPos)
try to read a zone
Definition: PowerPoint7Parser.cxx:2707
@ MWAW_T_POWERPOINT
PowerPoint: v1-v4 and pc v2-v4,95.
Definition: MWAWDocument.hxx:195
bool readVbaInfoAtom(int level, long endPos)
try to read the vba info zone 1024
Definition: PowerPoint7Parser.cxx:1225
bool isValid() const
returns true if the id is valid
Definition: PowerPoint7Struct.hxx:59
bool readOutlineViewInfo(int level, long endPos)
try to read the outline view info zone 1031
Definition: PowerPoint7Parser.cxx:1416
@ MWAW_K_PRESENTATION
presentation graphic
Definition: MWAWDocument.hxx:85
the main class to read a Microsoft PowerPoint 95 files (Windows)
Definition: PowerPoint7Parser.hxx:62
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:85
a zone header of a PowerPoint7Parser
Definition: PowerPoint7Struct.hxx:107
bool readSlides(int level, long endPos, bool master)
try to read the slides zone 1006(slides) or 1016(master)
Definition: PowerPoint7Parser.cxx:590
SlideInfo()
constructor
Definition: PowerPoint7Parser.cxx:65
void setAsciiName(char const *name)
Debugging: change the default ascii file.
Definition: MWAWParser.hxx:227
bool readSlideInformation(int level, long endPos)
try to read the slide information 1005: dimension, has background, ...
Definition: PowerPoint7Parser.cxx:521
void addSlide(PowerPoint7Struct::SlideId const &sId, PowerPoint7Struct::SlideId const &mId)
add a slide
Definition: PowerPoint7Parser.cxx:94
the main class to read the graphic part of a PowerPoint 95 file
Definition: PowerPoint7Graph.hxx:74
bool parseTextContent(MWAWInputStreamPtr input)
try to read the "Text_Content" stream
Definition: PowerPoint7Parser.cxx:2766
T y() const
second element
Definition: libmwaw_internal.hxx:620
void setFormWidth(const double formWidth)
set the total page width
Definition: MWAWPageSpan.hxx:177
the main class to read the text part of a PowerPoint 95 file
Definition: PowerPoint7Text.hxx:68
T x() const
first element
Definition: libmwaw_internal.hxx:615
virtual class which defines the ancestor of all presentation zone parser
Definition: MWAWParser.hxx:266
std::map< PowerPoint7Struct::SlideId, PowerPoint7Struct::SlideId > m_idToMasterIdMap
the slideId to masterId slide
Definition: PowerPoint7Parser.cxx:159
bool readDocument(long endPos)
try to read the document's zone 1000: child of Root
Definition: PowerPoint7Parser.cxx:399
void setVersion(int vers)
sets the document's version
Definition: MWAWParser.hxx:206
bool readVbaInfo(int level, long endPos)
try to read the vba info zone 1023
Definition: PowerPoint7Parser.cxx:1175
@ PageBreak
Definition: MWAWListener.hxx:58
State()
constructor
Definition: PowerPoint7Parser.cxx:79
bool m_displayMaster
a flag to know if we need to display the master slide graphic
Definition: PowerPoint7Parser.cxx:71
Definition: libmwaw_internal.hxx:142
MWAWPageSpan const & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
bool readColorList(int level, long endPos, std::vector< MWAWColor > &colors)
try to read the color list zone 2031
Definition: PowerPoint7Parser.cxx:1826
bool readGuideAtom(int level, long endPos)
try to read the guide atom zone 1019
Definition: PowerPoint7Parser.cxx:1072
bool readSlideViewInfo(int level, long endPos)
try to read the slide view info zone 1018
Definition: PowerPoint7Parser.cxx:1022
bool read(MWAWInputStreamPtr stream, long endPos=-1)
try to read a zone header
Definition: PowerPoint7Struct.cxx:38
MWAWPresentationListenerPtr & getPresentationListener()
returns the presentation listener
Definition: MWAWParser.hxx:135
Internal: the state of a PowerPoint7Parser.
Definition: PowerPoint7Parser.cxx:77
Internal: the basic information about a slide/notes/... zone in a PowerPoint7Parser.
Definition: PowerPoint7Parser.cxx:63
bool getColor(int cId, MWAWColor &col) const
returns the color corresponding to an id
Definition: PowerPoint7Parser.cxx:190
bool readZone2026(int level, long endPos)
try to read the zone 2026: child of SlideViewInfo
Definition: PowerPoint7Parser.cxx:1782
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
shared_ptr< PowerPoint3OLE > m_oleParser
the ole parser
Definition: PowerPoint7Parser.cxx:153
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
MWAWBox2< int > MWAWBox2i
MWAWBox2 of int.
Definition: libmwaw_internal.hxx:1132
bool readKinsoku(int level, long endPos)
try to read the Kinsoku zone 4040
Definition: PowerPoint7Parser.cxx:2275
bool readSlideAtom(int level, long endPos, PowerPoint7Struct::SlideId &sId, PowerPoint7Struct::SlideId &mId)
try to read the slide zone 1007
Definition: PowerPoint7Parser.cxx:689
void popSlideId()
pop a slide id
Definition: PowerPoint7Parser.cxx:117
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
bool readSummary(int level, long endPos)
try to read the summary zone 1026: child of Document
Definition: PowerPoint7Parser.cxx:1291
shared_ptr< PowerPoint7Graph > m_graphParser
the graph parser
Definition: PowerPoint7Parser.cxx:149
This class contains code needed to write a presention document.
Definition: MWAWPresentationListener.hxx:60
bool readZone3000(int level, long endPos)
try to read the zone 3000: child of Handout/Notes/Slides/Zone3001
Definition: PowerPoint7Parser.cxx:1872
bool readZoneNoData(int level, long endPos, std::string const &name, std::string const &wh="")
try to read a zone with no data
Definition: PowerPoint7Parser.cxx:2679
bool readEnvironment(int level, long endPos)
try to read the environment zone 1010
Definition: PowerPoint7Parser.cxx:835
void pushColorList(std::vector< MWAWColor > const &colorList)
push a new slide id
Definition: PowerPoint7Parser.cxx:128
bool createZones()
finds the different zones
Definition: PowerPoint7Parser.cxx:275
bool readStyleTextPropAtom(int level, long endPos, int &textId)
try to read the style text prop atom zone 4001
Definition: PowerPoint7Parser.cxx:2067
bool readZone4039(int level, long endPos)
try to read the zone 4039: child of Zone4072
Definition: PowerPoint7Parser.cxx:2325
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
void setStream(MWAWInputStreamPtr ip)
resets the input
Definition: MWAWDebug.hxx:73
bool readViewInfoAtom(int level, long endPos)
try to read the view info zone 1021
Definition: PowerPoint7Parser.cxx:1103
std::map< PowerPoint7Struct::SlideId, SlideInfo > m_idToSlideInfoMap
the slideId to information slide
Definition: PowerPoint7Parser.cxx:161
int m_values[6]
some value
Definition: PowerPoint7Struct.hxx:135
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:513
bool readZone1028Atom(int level, long endPos)
try to read the zone 1029
Definition: PowerPoint7Parser.cxx:1382
the main class to read the ole stream in a Microsoft PowerPoint v4 files (MacOs and Windows)
Definition: PowerPoint3OLE.hxx:51
bool readBookmarkSeedAtom(int level, long endPos)
try to read the bookmark seed atom zone 2025
Definition: PowerPoint7Parser.cxx:1751
void parse(librevenge::RVNGPresentationInterface *documentInterface)
virtual function used to parse the input
Definition: PowerPoint7Parser.cxx:204
std::stack< std::vector< MWAWColor > > m_colorListStack
a stack of color list
Definition: PowerPoint7Parser.cxx:165
bool readZone4042(int level, long endPos)
try to read the zone 4042: child of FontCollection
void pushSlideId(PowerPoint7Struct::SlideId const &id)
push a new slide id
Definition: PowerPoint7Parser.cxx:111
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
bool readNoteAtom(int level, long endPos, PowerPoint7Struct::SlideId &sId)
try to read the note atom zone 1009
Definition: PowerPoint7Parser.cxx:804
bool readZone3012(int level, long endPos)
try to read the zone 3012: child of Environment
Definition: PowerPoint7Parser.cxx:1931
bool readString(int level, long endPos, std::string &string, int &zId, std::string const &what="")
try to read the string zone 4026
Definition: PowerPoint7Parser.cxx:2219
void checkForUnparsedZones()
check for unparsed zone
Definition: PowerPoint7Parser.cxx:2758
PowerPoint7Parser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor
Definition: PowerPoint7Parser.cxx:173
bool readSlideShowInfo(int level, long endPos)
try to read the slide show info zone 1017
Definition: PowerPoint7Parser.cxx:989
bool readContainerAtom(int level, long endPos, int &N)
try to read the container atom zone 2001
Definition: PowerPoint7Parser.cxx:1600
bool readOutlineTextPropsHeader9Atom(int level, long endPos)
try to read the outline text props header9 atom zone 4015
Definition: PowerPoint7Parser.cxx:2188
bool readSlideIdentifierContainer(int level, long endPos, PowerPoint7Struct::SlideId &sId)
try to read a container of a slide identifier 4054
Definition: PowerPoint7Parser.cxx:2497
friend class PowerPoint7Text
Definition: PowerPoint7Parser.hxx:64
friend class PowerPoint7Graph
Definition: PowerPoint7Parser.hxx:63
bool readZone3012Atom(int level, long endPos)
try to read the zone 3013: child of Zone3012
Definition: PowerPoint7Parser.cxx:1987
bool readIdentifier(int level, long endPos, int &id, std::string const &wh)
try to read an identifier zone 2017
Definition: PowerPoint7Parser.cxx:1630
bool readTextCharsAtom(int level, long endPos)
try to read the text chars atom zone 4000
Definition: PowerPoint7Parser.cxx:2017
void setPresentationListener(MWAWPresentationListenerPtr &listener)
sets the presentation listener
Definition: MWAWParser.cxx:124
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:781
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
namespace used to define basic struct of a Microsoft PowerPoint 95 files (Windows)
Definition: PowerPoint7Graph.hxx:62
long m_dataSize
the data size
Definition: PowerPoint7Struct.hxx:133
bool sendText(int textId)
try to send the text content
Definition: PowerPoint7Parser.cxx:185
bool readHeaderFooters(int level, long endPos)
try to read the header footer zone: 4057
Definition: PowerPoint7Parser.cxx:2541
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:96
bool readColorScheme(int level, long endPos, std::vector< MWAWColor > &colors)
try to read the color scheme 1012
Definition: PowerPoint7Parser.cxx:905
Generated on Wed Jun 17 2020 06:30:12 for libmwaw by
doxygen 1.8.18