PowerPoint3Parser.hxx Source File documentation

PowerPoint3Parser.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; c-default-style: "k&r"; indent-tabs-mode: nil; tab-width: 2; c-basic-offset: 2 -*- */
2
3 /* libmwaw
4 * Version: MPL 2.0 / LGPLv2+
5 *
6 * The contents of this file are subject to the Mozilla Public License Version
7 * 2.0 (the "License"); you may not use this file except in compliance with
8 * the License or as specified alternatively below. You may obtain a copy of
9 * the License at http://www.mozilla.org/MPL/
10 *
11 * Software distributed under the License is distributed on an "AS IS" basis,
12 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13 * for the specific language governing rights and limitations under the
14 * License.
15 *
16 * Major Contributor(s):
17 * Copyright (C) 2002 William Lachance (wrlach@gmail.com)
18 * Copyright (C) 2002,2004 Marc Maurer (uwog@uwog.net)
19 * Copyright (C) 2004-2006 Fridrich Strba (fridrich.strba@bluewin.ch)
20 * Copyright (C) 2006, 2007 Andrew Ziem
21 * Copyright (C) 2011, 2012 Alonso Laurent (alonso@loria.fr)
22 *
23 *
24 * All Rights Reserved.
25 *
26 * For minor contributions see the git repository.
27 *
28 * Alternatively, the contents of this file may be used under the terms of
29 * the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"),
30 * in which case the provisions of the LGPLv2+ are applicable
31 * instead of those above.
32 */
33
34 #ifndef POWER_POINT3_PARSER
35 # define POWER_POINT3_PARSER
36
37 #include <map>
38 #include <set>
39 #include <vector>
40
41 #include "MWAWDebug.hxx"
42 #include "MWAWInputStream.hxx"
43
44 #include "MWAWParser.hxx"
45
46 namespace PowerPoint3ParserInternal
47 {
48 struct FieldParser;
49 struct Frame;
50 struct Polygon;
51 struct Ruler;
52 struct Slide;
53 struct SlideContent;
54 struct SlideFormat;
55 struct State;
56 struct TextZone;
57
58 class SubDocument;
59 }
60
63 class PowerPoint3Parser final : public MWAWPresentationParser
64 {
65 friend class PowerPoint3ParserInternal::SubDocument;
66 public:
68 PowerPoint3Parser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header);
70 ~PowerPoint3Parser() final;
71
73 bool checkHeader(MWAWHeader *header, bool strict=false) final;
74
75 // the main parse function
76 void parse(librevenge::RVNGPresentationInterface *documentInterface) final;
77
78 protected:
80 void createDocument(librevenge::RVNGPresentationInterface *documentInterface);
81
83 bool createZones();
85 void sendSlides();
86
88 bool readListZones(int &docInfoId);
90 bool readStructList(MWAWEntry const &entry, PowerPoint3ParserInternal::FieldParser &parser);
91
92 //
93 // internal level
94 //
95
97 bool readColors(MWAWEntry const &entry);
99 bool readColorZone(MWAWEntry const &entry);
101 bool readDocInfo(MWAWEntry const &entry);
103 bool readDocRoot(MWAWEntry const &entry);
105 bool readFont(MWAWFont &font, int schemeId);
107 bool readFontNamesList(std::map<int,int> const &fIdtoZIdMap);
109 bool readFontName(MWAWEntry const &entry, int id);
111 bool readFramesList(MWAWEntry const &entry, PowerPoint3ParserInternal::SlideContent &content);
113 bool readParagraph(MWAWParagraph &para, PowerPoint3ParserInternal::Ruler const &ruler, int schemeId);
115 bool readPictureDefinition(MWAWEntry const &entry, int id);
117 bool readPictureContent(MWAWEntry const &entry, MWAWEmbeddedObject &pict);
119 bool readPictureMain(MWAWEntry const &entry);
121 bool readPicturesList(std::map<int,int> const &pIdtoZIdMap);
123 bool readPrintInfo(MWAWEntry const &entry);
125 bool readRuler(MWAWEntry const &entry, int id);
127 bool readScheme(MWAWEntry const &entry, int id);
129 bool readSlide(MWAWEntry const &entry, PowerPoint3ParserInternal::Slide &slide, int zId);
131 bool readSlideContent(MWAWEntry const &entry, PowerPoint3ParserInternal::SlideContent &slide);
133 bool readSlideFormats(MWAWEntry const &entry, std::vector<PowerPoint3ParserInternal::SlideFormat> &formatList);
135 bool readSlidePolygons(MWAWEntry const &entry, std::vector<PowerPoint3ParserInternal::Polygon> &polyList);
137 bool readSlideTransition(MWAWEntry const &entry);
139 bool readSlidesList(MWAWEntry const &entry);
141 bool readTextZone(MWAWEntry const &entry, PowerPoint3ParserInternal::SlideContent &content);
142
143
144 //
145 // send data
146 //
148 bool sendSlide(PowerPoint3ParserInternal::SlideContent const &slide, bool master);
150 bool sendFrame(PowerPoint3ParserInternal::Frame const &frame, PowerPoint3ParserInternal::SlideContent const &content, bool master, std::set<int> &seen);
152 bool sendText(PowerPoint3ParserInternal::SlideContent const &slide, int tId, bool placeHolder, bool master);
153
154 //
155 // low level
156 //
158 bool readZone9(MWAWEntry const &entry);
160 bool readZone10(MWAWEntry const &entry);
161
162
164 bool getColor(int colorId, int schemeId, MWAWColor &color) const;
166 void checkForUnparsedZones();
167 protected:
168 //
169 // data
170 //
172 std::shared_ptr<PowerPoint3ParserInternal::State> m_state;
173 };
174 #endif
175 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
PowerPoint3ParserInternal::State::m_zoneListBegin
long m_zoneListBegin
the begin position of the list of zones
Definition: PowerPoint3Parser.cxx:504
MWAWEntry
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
libmwaw::PrinterRect::size
MWAWVec2i size() const
returns the size
Definition: MWAWPrinter.hxx:56
PowerPoint3ParserInternal::Polygon::updateShape
bool updateShape(MWAWBox2f const &finalBox, MWAWGraphicShape &shape) const
update the shape
Definition: PowerPoint3Parser.cxx:328
PowerPoint3ParserInternal::SubDocument::m_isMaster
bool m_isMaster
flag to know if we send a master text zone
Definition: PowerPoint3Parser.cxx:756
MWAWField::Time
@ Time
Definition: libmwaw_internal.hxx:401
MWAWParagraph::m_justify
MWAWVariable< Justification > m_justify
the justification
Definition: MWAWParagraph.hxx:167
MWAWGraphicStyle::Pattern::getUniqueColor
bool getUniqueColor(MWAWColor &col) const
check if the pattern has only one color; if so returns true...
Definition: MWAWGraphicStyle.cxx:86
MWAWInputStreamPtr
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
PowerPoint3Parser::readSlidesList
bool readSlidesList(MWAWEntry const &entry)
try to read the first child of docRoot
Definition: PowerPoint3Parser.cxx:1484
PowerPoint3ParserInternal::FontNameFieldParser::parse
bool parse(int id, MWAWInputStreamPtr &input, libmwaw::DebugFile &ascFile) final
virtual function used to parse a field
Definition: PowerPoint3Parser.cxx:180
MWAWParser::getFontConverter
MWAWFontConverterPtr & getFontConverter()
returns the font converter
Definition: MWAWParser.hxx:150
MWAWFont::set
void set(Script const &newscript)
sets the script position
Definition: MWAWFont.hxx:314
PowerPoint3ParserInternal::State::State
State()
constructor
Definition: PowerPoint3Parser.cxx:461
MWAWPageSpan::PORTRAIT
@ PORTRAIT
Definition: MWAWPageSpan.hxx:102
PowerPoint3ParserInternal::Frame::m_shapeId
int m_shapeId
the shape id: 1: oval, 2: rectOval, 3:rectangle
Definition: PowerPoint3Parser.cxx:287
PowerPoint3ParserInternal::SubDocument
Internal: the subdocument of a PowerPointParser.
Definition: PowerPoint3Parser.cxx:707
MWAWBorder::Triple
@ Triple
Definition: libmwaw_internal.hxx:337
PowerPoint3Parser::sendFrame
bool sendFrame(PowerPoint3ParserInternal::Frame const &frame, PowerPoint3ParserInternal::SlideContent const &content, bool master, std::set< int > &seen)
try to send a frame zone
Definition: PowerPoint3Parser.cxx:3671
PowerPoint3Parser::createZones
bool createZones()
finds the different zones
Definition: PowerPoint3Parser.cxx:890
MWAWListLevel::m_spanId
int m_spanId
the style span id
Definition: MWAWList.hxx:116
PowerPoint3ParserInternal::ListZoneIdParser::m_numZones
int m_numZones
the number of zones
Definition: PowerPoint3Parser.cxx:136
MWAWGraphicShape::getBdBox
MWAWBox2f getBdBox() const
returns the basic bdbox
Definition: MWAWGraphicShape.hxx:197
MWAW_DEBUG_MSG
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
MWAWVec2f
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
PowerPoint3ParserInternal::Scheme
a scheme of a PowerPoint3Parser
Definition: PowerPoint3Parser.cxx:349
libmwaw::DebugFile::addDelimiter
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
MWAWBorder::m_type
Type m_type
the border repetition
Definition: libmwaw_internal.hxx:385
PowerPoint3ParserInternal::SlideContent::m_mainZoneIds
int m_mainZoneIds[2]
the title/body position
Definition: PowerPoint3Parser.cxx:434
MWAWGraphicStyle::setSurfaceColor
void setSurfaceColor(MWAWColor const &col, float opacity=1)
set the surface color
Definition: MWAWGraphicStyle.hxx:325
PowerPoint3ParserInternal::State::m_isMacFile
bool m_isMacFile
flag to know if the file is a mac file or a pc file
Definition: PowerPoint3Parser.cxx:498
PowerPoint3ParserInternal::SlideContent::m_useMasterPage
bool m_useMasterPage
a flag to know if we need to use the master page
Definition: PowerPoint3Parser.cxx:430
PowerPoint3ParserInternal::Polygon::m_type
int m_type
the polygon type
Definition: PowerPoint3Parser.cxx:321
MWAWGraphicStyle::setShadowColor
void setShadowColor(MWAWColor const &col, float opacity=1)
set the shadow color
Definition: MWAWGraphicStyle.hxx:368
PowerPoint3ParserInternal::Polygon
Internal: a polygon of a PowerPoint3Parser.
Definition: PowerPoint3Parser.cxx:310
MWAWParagraph::m_tabs
MWAWVariable< std::vector< MWAWTabStop > > m_tabs
the tabulations
Definition: MWAWParagraph.hxx:162
MWAWEntry::isParsed
bool isParsed() const
a flag to know if the entry was parsed or not
Definition: MWAWEntry.hxx:121
MWAWGraphicShape::pie
static MWAWGraphicShape pie(MWAWBox2f const &box, MWAWBox2f const &circleBox, MWAWVec2f const &angles)
static constructor to create a pie
Definition: MWAWGraphicShape.hxx:147
MWAWGraphicShape::translate
void translate(MWAWVec2f const &delta)
translate all the coordinate by delta
Definition: MWAWGraphicShape.cxx:356
PowerPoint3ParserInternal::ListZoneIdParser::parse
bool parse(int id, MWAWInputStreamPtr &input, libmwaw::DebugFile &ascFile) final
virtual function used to parse a field
Definition: PowerPoint3Parser.cxx:141
PowerPoint3ParserInternal::SubDocument::SubDocument
SubDocument(PowerPoint3Parser &pars, MWAWInputStreamPtr const &input, SlideContent const *slide)
constructor for note
Definition: PowerPoint3Parser.cxx:720
MWAWGraphicStyle::m_gradientType
GradientType m_gradientType
the gradient type
Definition: MWAWGraphicStyle.hxx:439
MWAWFont::id
int id() const
returns the font id
Definition: MWAWFont.hxx:259
MWAWGraphicStyle::Arrow::plain
static Arrow plain()
returns a basic plain arrow
Definition: MWAWGraphicStyle.hxx:76
MWAWFont::boldBit
@ boldBit
Definition: MWAWFont.hxx:190
PowerPoint3ParserInternal::State::m_idToSchemeMap
std::map< int, Scheme > m_idToSchemeMap
a map between schemeId and scheme
Definition: PowerPoint3Parser.cxx:514
PowerPoint3ParserInternal::SlideFormat::m_margins
MWAWVec2i m_margins
the left/right and top/bottom margins
Definition: PowerPoint3Parser.cxx:363
PowerPoint3ParserInternal::State::m_idToSlideMap
std::map< int, Slide > m_idToSlideMap
a map zoneId to slide
Definition: PowerPoint3Parser.cxx:510
libmwaw::PrinterInfo::paper
PrinterRect paper() const
returns the paper rectangle
Definition: MWAWPrinter.cxx:222
PowerPoint3ParserInternal
Internal: the structures of a PowerPoint3Parser.
Definition: PowerPoint3Parser.cxx:58
MWAWColor::white
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:250
MWAWParagraph::m_listLevelIndex
MWAWVariable< int > m_listLevelIndex
the actual level index
Definition: MWAWParagraph.hxx:174
MWAWFont::setColor
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:341
libmwaw::DebugFile::open
bool open(std::string const &filename)
opens/creates a file to store a result
Definition: MWAWDebug.cxx:46
MWAWTabStop::CENTER
@ CENTER
Definition: MWAWParagraph.hxx:48
MWAWParagraph::setInterline
void setInterline(double value, librevenge::RVNGUnit unit, LineSpacingType type=Fixed)
set the interline
Definition: MWAWParagraph.hxx:129
PowerPoint3ParserInternal::State::getCustomShape
static bool getCustomShape(int id, MWAWGraphicShape &shape)
returns a custom shape corresponding to an id
Definition: PowerPoint3Parser.cxx:575
PowerPoint3ParserInternal::State::m_zonesList
std::vector< MWAWEntry > m_zonesList
the list of zone entries
Definition: PowerPoint3Parser.cxx:506
MWAWEntry::id
int id() const
returns the id
Definition: MWAWEntry.hxx:164
PowerPoint3ParserInternal::Frame::m_pictureId
int m_pictureId
the picture id
Definition: PowerPoint3Parser.cxx:295
MWAWPageSpan::setMarginBottom
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:208
PowerPoint3ParserInternal::SlideContent::m_frameList
std::vector< Frame > m_frameList
the list of frames
Definition: PowerPoint3Parser.cxx:438
MWAWEmbeddedObject::add
void add(librevenge::RVNGBinaryData const &binaryData, std::string const &type="image/pict")
add a picture
Definition: libmwaw_internal.hxx:495
MWAWGraphicShape
a structure used to define a picture shape
Definition: MWAWGraphicShape.hxx:45
MWAWFontConverter.hxx
MWAWColor
the class to store a color
Definition: libmwaw_internal.hxx:192
libmwaw::appendUnicode
void appendUnicode(uint32_t val, librevenge::RVNGString &buffer)
adds an unicode character to a string
Definition: libmwaw_internal.cxx:63
MWAWEmbeddedObject
small class use to define a embedded object
Definition: libmwaw_internal.hxx:467
MWAWParagraph::m_spacings
MWAWVariable< double > m_spacings[3]
the line spacing
Definition: MWAWParagraph.hxx:156
MWAWSubDocumentPtr
std::shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:565
MWAWGraphicShape::line
static MWAWGraphicShape line(MWAWVec2f const &orign, MWAWVec2f const &dest)
static constructor to create a line
Definition: MWAWGraphicShape.cxx:228
MWAWParser::version
int version() const
returns the works version
Definition: MWAWParser.hxx:108
PowerPoint3Parser::sendSlide
bool sendSlide(PowerPoint3ParserInternal::SlideContent const &slide, bool master)
try to send a slide
Definition: PowerPoint3Parser.cxx:3653
MWAWGraphicStyle::G_Rectangular
@ G_Rectangular
Definition: MWAWGraphicStyle.hxx:55
PowerPoint3ParserInternal::Ruler::operator<<
friend std::ostream & operator<<(std::ostream &o, Ruler const &ruler)
operator<<
Definition: PowerPoint3Parser.cxx:234
PowerPoint3ParserInternal::FontNameFieldParser::FontNameFieldParser
FontNameFieldParser(int numZones)
the constructor
Definition: PowerPoint3Parser.cxx:163
PowerPoint3Parser::readListZones
bool readListZones(int &docInfoId)
try to read the list of zones
Definition: PowerPoint3Parser.cxx:1048
PowerPoint3Parser::readDocRoot
bool readDocRoot(MWAWEntry const &entry)
try to read the main child of doc info
Definition: PowerPoint3Parser.cxx:1366
MWAWGraphicStyle::Pattern::getAverageColor
bool getAverageColor(MWAWColor &col) const
return the average color
Definition: MWAWGraphicStyle.cxx:101
MWAWPrinter.hxx
PowerPoint3ParserInternal::State::m_origin
MWAWVec2i m_origin
the origin
Definition: PowerPoint3Parser.cxx:520
MWAWParagraph
class to store the paragraph properties
Definition: MWAWParagraph.hxx:84
MWAWPageSpan::setFormOrientation
void setFormOrientation(const FormOrientation formOrientation)
set the form orientation
Definition: MWAWPageSpan.hxx:188
MWAWPageSpan::setMarginLeft
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:193
PowerPoint3Parser::readPictureDefinition
bool readPictureDefinition(MWAWEntry const &entry, int id)
try to read the picture definition
Definition: PowerPoint3Parser.cxx:2643
MWAWColor::str
std::string str() const
print the color in the form #rrggbb
Definition: libmwaw_internal.cxx:232
MWAWParagraph::m_listLevel
MWAWVariable< MWAWListLevel > m_listLevel
the actual level
Definition: MWAWParagraph.hxx:180
MWAWFont::Line::Simple
@ Simple
Definition: MWAWFont.hxx:49
PowerPoint3ParserInternal::Ruler
Internal: a ruler.
Definition: PowerPoint3Parser.cxx:226
MWAW_FALLTHROUGH
#define MWAW_FALLTHROUGH
Definition: libmwaw_internal.hxx:118
MWAWBorder::m_width
double m_width
the border total width in point
Definition: libmwaw_internal.hxx:387
PowerPoint3Parser
the main class to read a Microsoft PowerPoint v3 or v4 files (MacOs and Windows)
Definition: PowerPoint3Parser.hxx:63
PowerPoint3ParserInternal::SubDocument::parse
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: PowerPoint3Parser.cxx:762
libmwaw::PrinterInfo
the Apple© printer information : TPrint
Definition: MWAWPrinter.hxx:82
MWAWEntry::setParsed
void setParsed(bool ok=true) const
sets the flag m_parsed to true or false
Definition: MWAWEntry.hxx:126
PowerPoint3ParserInternal::State::getPattern
bool getPattern(int id, MWAWGraphicStyle::Pattern &pattern) const
try to return a pattern
Definition: PowerPoint3Parser.cxx:537
PowerPoint3Parser.hxx
libmwaw::DebugFile::addNote
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
PowerPoint3ParserInternal::TextZone::TextZone
TextZone()
constructor
Definition: PowerPoint3Parser.cxx:373
MWAWSubDocument
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:41
PowerPoint3ParserInternal::Ruler::updateParagraph
void updateParagraph(MWAWParagraph &para, int level) const
returns a paragraph corresponding to a level
Definition: PowerPoint3Parser.cxx:244
MWAWGraphicStyle
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:47
MWAWParagraph::m_margins
MWAWVariable< double > m_margins[3]
the margins
Definition: MWAWParagraph.hxx:148
MWAWGraphicStyle::Pattern::m_data
std::vector< unsigned char > m_data
the pattern data: a sequence of data: p[0..7,0],p[8..15,0]...p[0..7,1],p[8..15,1],...
Definition: MWAWGraphicStyle.hxx:266
PowerPoint3ParserInternal::ListZoneIdParser
Internal: a basic zone id parser of a PowerPoint3Parser.
Definition: PowerPoint3Parser.cxx:125
MWAWTabStop::DECIMAL
@ DECIMAL
Definition: MWAWParagraph.hxx:48
MWAWGraphicStyle::m_gradientStopList
std::vector< GradientStop > m_gradientStopList
the list of gradient limits
Definition: MWAWGraphicStyle.hxx:445
PowerPoint3ParserInternal::TextZone::m_fonts
MWAWEntry m_fonts
the fonts entry
Definition: PowerPoint3Parser.cxx:396
MWAWParser::ascii
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWParser.hxx:195
MWAWFont::embossBit
@ embossBit
Definition: MWAWFont.hxx:190
PowerPoint3Parser::readColorZone
bool readColorZone(MWAWEntry const &entry)
try to read a color zone, probably used to define the menu, ...: the 8th zone
Definition: PowerPoint3Parser.cxx:3287
MWAWParser::resetPresentationListener
void resetPresentationListener()
resets the listener
Definition: MWAWParser.cxx:141
MWAWPresentationListenerPtr
std::shared_ptr< MWAWPresentationListener > MWAWPresentationListenerPtr
a smart pointer of MWAWPresentationListener
Definition: libmwaw_internal.hxx:559
MWAWGraphicShape::circle
static MWAWGraphicShape circle(MWAWBox2f const &box)
static constructor to create a circle
Definition: MWAWGraphicShape.hxx:129
PowerPoint3ParserInternal::Ruler::m_margins
int m_margins[10]
the left/first margins * 5 (0: normal, 1-4: level)
Definition: PowerPoint3Parser.cxx:258
PowerPoint3Parser::readTextZone
bool readTextZone(MWAWEntry const &entry, PowerPoint3ParserInternal::SlideContent &content)
try to read a text zone
Definition: PowerPoint3Parser.cxx:2349
MWAWField::Date
@ Date
Definition: libmwaw_internal.hxx:401
MWAWPresentationListener.hxx
PowerPoint3ParserInternal::Frame::m_dimension
MWAWBox2i m_dimension
the dimension
Definition: PowerPoint3Parser.cxx:285
MWAWTabStop
class to store a tab use by MWAWParagraph
Definition: MWAWParagraph.hxx:46
PowerPoint3ParserInternal::State::m_idToUserColorMap
std::map< int, MWAWColor > m_idToUserColorMap
a map between colorId and user color
Definition: PowerPoint3Parser.cxx:522
MWAWGraphicStyle::Pattern
a basic pattern used in a MWAWGraphicStyle:
Definition: MWAWGraphicStyle.hxx:180
PowerPoint3ParserInternal::FieldParser::m_fieldSize
int m_fieldSize
the field size
Definition: PowerPoint3Parser.cxx:115
MWAWSubDocument.hxx
PowerPoint3ParserInternal::Frame
Internal: a frame of a PowerPoint3Parser.
Definition: PowerPoint3Parser.cxx:261
MWAWPageSpan::setFormLength
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:178
PowerPoint3ParserInternal::SlideFormat::m_shadowOffset
MWAWVec2i m_shadowOffset
the shadow offset
Definition: PowerPoint3Parser.cxx:367
MWAWPageSpan::setMasterPageName
void setMasterPageName(librevenge::RVNGString const &name)
set the page master name
Definition: MWAWPageSpan.hxx:243
PowerPoint3ParserInternal::Frame::m_polygonId
int m_polygonId
the polygon id
Definition: PowerPoint3Parser.cxx:293
PowerPoint3ParserInternal::SubDocument::operator!=
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: PowerPoint3Parser.cxx:733
MWAWGraphicShape::Polygon
@ Polygon
Definition: MWAWGraphicShape.hxx:49
MWAWColor::barycenter
static MWAWColor barycenter(float alpha, MWAWColor const &colA, float beta, MWAWColor const &colB)
return alpha*colA+beta*colB
Definition: libmwaw_internal.cxx:206
PowerPoint3ParserInternal::FieldParser
Internal: virtual field parser of a PowerPoint3Parser.
Definition: PowerPoint3Parser.cxx:103
MWAWBox2::getUnion
MWAWBox2< T > getUnion(MWAWBox2< T > const &box) const
returns the union between this and box
Definition: libmwaw_internal.hxx:1129
PowerPoint3Parser::PowerPoint3Parser
PowerPoint3Parser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: PowerPoint3Parser.cxx:787
PowerPoint3ParserInternal::State::m_printInfoIds
int m_printInfoIds[2]
the printInfo id
Definition: PowerPoint3Parser.cxx:528
MWAWDocument::MWAW_T_POWERPOINT
@ MWAW_T_POWERPOINT
PowerPoint: v1-v4 and pc v2-v4,95.
Definition: MWAWDocument.hxx:195
PowerPoint3Parser::checkForUnparsedZones
void checkForUnparsedZones()
check for unparsed zone
Definition: PowerPoint3Parser.cxx:1136
libmwaw::SubDocumentType
SubDocumentType
Definition: libmwaw_internal.hxx:188
PowerPoint3ParserInternal::SlideFormat
Internal: the third zone defining a slide of a PowerPoint3Parser.
Definition: PowerPoint3Parser.cxx:354
PowerPoint3ParserInternal::Ruler::Ruler
Ruler()
constructor
Definition: PowerPoint3Parser.cxx:228
MWAWPageSpan::setBackgroundColor
void setBackgroundColor(MWAWColor color=MWAWColor::white())
set the background color
Definition: MWAWPageSpan.hxx:258
MWAWSubDocument::m_input
std::shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
MWAWDocument::MWAW_K_PRESENTATION
@ MWAW_K_PRESENTATION
presentation graphic
Definition: MWAWDocument.hxx:85
PowerPoint3ParserInternal::State
Internal: the state of a PowerPoint3Parser.
Definition: PowerPoint3Parser.cxx:459
libmwaw::DebugFile::reset
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:93
MWAWFont::m_extra
std::string m_extra
extra data
Definition: MWAWFont.hxx:573
PowerPoint3Parser::readFontName
bool readFontName(MWAWEntry const &entry, int id)
try to read a font name : 11th zone
Definition: PowerPoint3Parser.cxx:2898
MWAWBorder::m_widthsList
std::vector< double > m_widthsList
the different length used for each line/sep (if defined)
Definition: libmwaw_internal.hxx:391
PowerPoint3Parser::createDocument
void createDocument(librevenge::RVNGPresentationInterface *documentInterface)
creates the listener which will be associated to the document
Definition: PowerPoint3Parser.cxx:848
MWAWParser::getMainListener
MWAWListenerPtr getMainListener()
returns the main listener
Definition: MWAWParser.cxx:120
MWAWParagraph::JustificationCenter
@ JustificationCenter
Definition: MWAWParagraph.hxx:90
MWAWFont::shadowBit
@ shadowBit
Definition: MWAWFont.hxx:191
PowerPoint3ParserInternal::swapBool4UInt4
int swapBool4UInt4(int v)
swap a list of 4bool and a int4
Definition: PowerPoint3Parser.cxx:81
PowerPoint3Parser::readZone9
bool readZone9(MWAWEntry const &entry)
try to read the 9th zone
Definition: PowerPoint3Parser.cxx:3351
MWAWParser::setAsciiName
void setAsciiName(char const *name)
Debugging: change the default ascii file.
Definition: MWAWParser.hxx:227
MWAWParagraph.hxx
PowerPoint3ParserInternal::TextZone::m_adjustSize
bool m_adjustSize
adjust the textbox size
Definition: PowerPoint3Parser.cxx:404
PowerPoint3ParserInternal::TextZone::m_rulerId
int m_rulerId
the ruler id
Definition: PowerPoint3Parser.cxx:390
libmwaw::DebugFile::skipZone
void skipZone(long beginPos, long endPos)
skips the file zone defined by beginPos-endPos
Definition: MWAWDebug.hxx:113
MWAWVec2::y
T y() const
second element
Definition: libmwaw_internal.hxx:673
PowerPoint3Parser::readScheme
bool readScheme(MWAWEntry const &entry, int id)
try to read a scheme
Definition: PowerPoint3Parser.cxx:1429
MWAWParser::getPageSpan
const MWAWPageSpan & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
libmwaw::Debug::dumpFile
bool dumpFile(librevenge::RVNGBinaryData &data, char const *fileName)
a debug function to store in a datafile in the current directory WARNING: this function erase the fil...
Definition: MWAWDebug.cxx:193
MWAWEmbeddedObject::isEmpty
bool isEmpty() const
return true if the picture contains no data
Definition: libmwaw_internal.hxx:486
MWAWGraphicStyle::m_lineWidth
float m_lineWidth
the linewidth
Definition: MWAWGraphicStyle.hxx:418
MWAWPageSpan::setFormWidth
void setFormWidth(const double formWidth)
set the total page width
Definition: MWAWPageSpan.hxx:183
MWAWPosition.hxx
PowerPoint3ParserInternal::ListZoneIdParser::ListZoneIdParser
ListZoneIdParser(int numZones, std::string const &debugName)
the constructor
Definition: PowerPoint3Parser.cxx:127
PowerPoint3ParserInternal::Frame::m_isSent
bool m_isSent
flag to know if a frame is sent
Definition: PowerPoint3Parser.cxx:307
MWAWVec2::x
T x() const
first element
Definition: libmwaw_internal.hxx:668
PowerPoint3ParserInternal::FontNameFieldParser::m_childList
std::vector< int > m_childList
the child list
Definition: PowerPoint3Parser.cxx:177
MWAWPresentationParser
virtual class which defines the ancestor of all presentation zone parser
Definition: MWAWParser.hxx:266
PowerPoint3ParserInternal::Slide::Slide
Slide()
constructor
Definition: PowerPoint3Parser.cxx:449
PowerPoint3Parser::readZone10
bool readZone10(MWAWEntry const &entry)
try to read the 10th zone
Definition: PowerPoint3Parser.cxx:3394
MWAWPosition
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:47
MWAWBorder
a border
Definition: libmwaw_internal.hxx:333
MWAWEntry::setBegin
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:67
MWAWParser::getFontManager
MWAWFontManagerPtr & getFontManager()
returns the font manager
Definition: MWAWParser.hxx:155
MWAWGraphicShape::m_vertices
std::vector< MWAWVec2f > m_vertices
the list of vertices for lines or polygons
Definition: MWAWGraphicShape.hxx:226
MWAWColor::isBlack
bool isBlack() const
return true if the color is black
Definition: libmwaw_internal.hxx:284
PowerPoint3ParserInternal::TextZone::m_text
MWAWEntry m_text
the text entry
Definition: PowerPoint3Parser.cxx:394
PowerPoint3Parser::readPictureMain
bool readPictureMain(MWAWEntry const &entry)
try to read the 5th zone
Definition: PowerPoint3Parser.cxx:3189
MWAWParser::asciiName
const std::string & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
MWAWParser::setVersion
void setVersion(int vers)
sets the document's version
Definition: MWAWParser.hxx:206
M_PI
#define M_PI
Definition: libmwaw_internal.hxx:52
MWAWGraphicStyle::Pattern::m_dim
MWAWVec2i m_dim
the dimension width x height
Definition: MWAWGraphicStyle.hxx:261
PowerPoint3ParserInternal::SlideFormat::SlideFormat
SlideFormat()
constructor
Definition: PowerPoint3Parser.cxx:356
MWAWRSRCParserPtr
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:561
MWAWEntry::length
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:93
PowerPoint3ParserInternal::SlideContent::m_schemeId
int m_schemeId
the scheme id
Definition: PowerPoint3Parser.cxx:444
MWAWGraphicStyle::setBorders
void setBorders(int wh, MWAWBorder const &border)
sets the cell border: wh=libmwaw::LeftBit|...
Definition: MWAWGraphicStyle.cxx:172
PowerPoint3Parser::readFontNamesList
bool readFontNamesList(std::map< int, int > const &fIdtoZIdMap)
try to read a font names list
Definition: PowerPoint3Parser.cxx:2888
PowerPoint3ParserInternal::Polygon::m_box
MWAWBox2i m_box
the bdbox
Definition: PowerPoint3Parser.cxx:323
MWAWListener::PageBreak
@ PageBreak
Definition: MWAWListener.hxx:58
PowerPoint3Parser::readFramesList
bool readFramesList(MWAWEntry const &entry, PowerPoint3ParserInternal::SlideContent &content)
try to read a frame zone in a page
Definition: PowerPoint3Parser.cxx:1901
PowerPoint3Parser::readSlidePolygons
bool readSlidePolygons(MWAWEntry const &entry, std::vector< PowerPoint3ParserInternal::Polygon > &polyList)
try to read the third child of slide content
Definition: PowerPoint3Parser.cxx:1842
PowerPoint3ParserInternal::SlideContent::m_textZone
std::vector< TextZone > m_textZone
the textzone
Definition: PowerPoint3Parser.cxx:436
MWAWGraphicShape::m_type
Type m_type
the type
Definition: MWAWGraphicShape.hxx:216
libmwaw::DebugFile::setStream
void setStream(MWAWInputStreamPtr const &ip)
resets the input
Definition: MWAWDebug.hxx:81
PowerPoint3ParserInternal::TextZone::m_wrapText
bool m_wrapText
wrap the text
Definition: PowerPoint3Parser.cxx:402
PowerPoint3Parser::readSlideTransition
bool readSlideTransition(MWAWEntry const &entry)
try to read the first child of slideMain
Definition: PowerPoint3Parser.cxx:1615
MWAWVec2< int >
PowerPoint3Parser::m_state
std::shared_ptr< PowerPoint3ParserInternal::State > m_state
the state
Definition: PowerPoint3Parser.hxx:172
PowerPoint3ParserInternal::State::m_idToPictureContentMap
std::map< int, MWAWEmbeddedObject > m_idToPictureContentMap
a map zoneId to picture object
Definition: PowerPoint3Parser.cxx:518
MWAWTabStop::m_alignment
Alignment m_alignment
the alignment ( left, center, ...)
Definition: MWAWParagraph.hxx:76
MWAWGraphicShape.hxx
libmwaw::ParseException
Definition: libmwaw_internal.hxx:143
MWAWDebug.hxx
PowerPoint3ParserInternal::State::m_zoneIds
int m_zoneIds[13]
the sequential zones id
Definition: PowerPoint3Parser.cxx:530
PowerPoint3ParserInternal::SlideContent::m_polygonList
std::vector< Polygon > m_polygonList
the list of polygons
Definition: PowerPoint3Parser.cxx:442
MWAWFont::getDebugString
std::string getDebugString(std::shared_ptr< MWAWFontConverter > &converter) const
returns a string which can be used for debugging
Definition: MWAWFont.cxx:181
MWAWHeader
a function used by MWAWDocument to store the version of document
Definition: MWAWHeader.hxx:56
MWAWEntry::begin
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:83
PowerPoint3ParserInternal::SubDocument::m_mainTextBox
bool m_mainTextBox
flag to know if we send the title or the body
Definition: PowerPoint3Parser.cxx:754
PowerPoint3Parser::getColor
bool getColor(int colorId, int schemeId, MWAWColor &color) const
try to return a color corresponding to a scheme and color
Definition: PowerPoint3Parser.cxx:798
MWAWEntry::setLength
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:72
MWAWGraphicShape::rotate
MWAWGraphicShape rotate(float angle, MWAWVec2f const &center) const
return a new shape corresponding to a rotation from center.
Definition: MWAWGraphicShape.cxx:381
MWAWGraphicStyle::m_arrows
Arrow m_arrows[2]
the two arrows corresponding to start and end extremity
Definition: MWAWGraphicStyle.hxx:473
MWAWGraphicStyle::setPattern
void setPattern(Pattern const &pat, float opacity=1)
set the pattern
Definition: MWAWGraphicStyle.hxx:336
PowerPoint3ParserInternal::Slide
Internal: a slide of a PowerPoint3Parser.
Definition: PowerPoint3Parser.cxx:447
PowerPoint3ParserInternal::State::m_fontFamily
std::string m_fontFamily
the basic pc font family if known
Definition: PowerPoint3Parser.cxx:500
MWAWColor::black
static MWAWColor black()
return the back color
Definition: libmwaw_internal.hxx:245
PowerPoint3ParserInternal::SlideContent::m_numMainZones
int m_numMainZones
the number of title/body zones
Definition: PowerPoint3Parser.cxx:432
PowerPoint3ParserInternal::Scheme::m_colors
MWAWColor m_colors[8]
the color: back, foreground, accents
Definition: PowerPoint3Parser.cxx:351
MWAWTabStop::m_position
double m_position
the tab position
Definition: MWAWParagraph.hxx:74
MWAWFont::setId
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:264
PowerPoint3Parser::readPictureContent
bool readPictureContent(MWAWEntry const &entry, MWAWEmbeddedObject &pict)
try to read the first child of the picture
Definition: PowerPoint3Parser.cxx:2748
PowerPoint3Parser::readStructList
bool readStructList(MWAWEntry const &entry, PowerPoint3ParserInternal::FieldParser &parser)
try to read a list of structure
Definition: PowerPoint3Parser.cxx:2567
MWAWParser::getPresentationListener
MWAWPresentationListenerPtr & getPresentationListener()
returns the presentation listener
Definition: MWAWParser.hxx:135
PowerPoint3ParserInternal::State::m_idToRulerMap
std::map< int, Ruler > m_idToRulerMap
a map between id and paragraph
Definition: PowerPoint3Parser.cxx:526
MWAWEntry::setId
void setId(int newId)
sets the id
Definition: MWAWEntry.hxx:169
PowerPoint3ParserInternal::Frame::m_groupChild
int m_groupChild[2]
the group limit
Definition: PowerPoint3Parser.cxx:303
PowerPoint3ParserInternal::Frame::m_type
int m_type
the type: 0:line, 1:rect, 2: textbox, ...
Definition: PowerPoint3Parser.cxx:281
PowerPoint3Parser::readDocInfo
bool readDocInfo(MWAWEntry const &entry)
try to read the document info zone
Definition: PowerPoint3Parser.cxx:1158
PowerPoint3ParserInternal::SubDocument::m_slide
const SlideContent * m_slide
the slide
Definition: PowerPoint3Parser.cxx:750
MWAWGraphicStyle::G_Linear
@ G_Linear
Definition: MWAWGraphicStyle.hxx:55
MWAWField
a field
Definition: libmwaw_internal.hxx:399
MWAWField::PageNumber
@ PageNumber
Definition: libmwaw_internal.hxx:401
MWAWGraphicStyle::GradientStop
a structure used to define the gradient limit in MWAWGraphicStyle
Definition: MWAWGraphicStyle.hxx:141
PowerPoint3ParserInternal::ListZoneIdParser::m_fieldIdToZoneIdMap
std::map< int, int > m_fieldIdToZoneIdMap
map field id to zone id
Definition: PowerPoint3Parser.cxx:138
MWAWPageSpan::setMarginTop
void setMarginTop(const double marginTop)
set the page top margin
Definition: MWAWPageSpan.hxx:203
libmwaw::PrinterInfo::read
bool read(MWAWInputStreamPtr input)
reads the struture in a file
Definition: MWAWPrinter.cxx:235
PowerPoint3ParserInternal::TextZone
Internal: a text zone of a PowerPoint3Parser.
Definition: PowerPoint3Parser.cxx:371
PowerPoint3ParserInternal::SlideContent::SlideContent
SlideContent()
constructor
Definition: PowerPoint3Parser.cxx:410
PowerPoint3Parser::readSlide
bool readSlide(MWAWEntry const &entry, PowerPoint3ParserInternal::Slide &slide, int zId)
try to read a slide main zone
Definition: PowerPoint3Parser.cxx:1551
PowerPoint3Parser::readFont
bool readFont(MWAWFont &font, int schemeId)
try to read a font
Definition: PowerPoint3Parser.cxx:2846
MWAWGraphicStyle::Pattern::m_colors
MWAWColor m_colors[2]
the two indexed colors
Definition: MWAWGraphicStyle.hxx:264
MWAWParser::getParserState
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
PowerPoint3ParserInternal::SlideContent::hasText
bool hasText() const
return true if the zone has text
Definition: PowerPoint3Parser.cxx:422
MWAWHeader.hxx
PowerPoint3Parser::readParagraph
bool readParagraph(MWAWParagraph &para, PowerPoint3ParserInternal::Ruler const &ruler, int schemeId)
try to read a paragraph
Definition: PowerPoint3Parser.cxx:2971
PowerPoint3ParserInternal::State::m_monoTypeFontId
int m_monoTypeFontId
the monotype font id
Definition: PowerPoint3Parser.cxx:532
PowerPoint3ParserInternal::TextZone::empty
bool empty() const
return true if the zone has no text
Definition: PowerPoint3Parser.cxx:385
MWAWEntry::end
long end() const
returns the end offset
Definition: MWAWEntry.hxx:88
MWAWFont::setSize
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:275
MWAWGraphicStyle::m_lineColor
MWAWColor m_lineColor
the line color
Definition: MWAWGraphicStyle.hxx:426
MWAWListLevel::m_bullet
librevenge::RVNGString m_bullet
the bullet if we have an bullet level
Definition: MWAWList.hxx:114
PowerPoint3ParserInternal::Polygon::m_vertices
std::vector< MWAWVec2f > m_vertices
the list of points
Definition: PowerPoint3Parser.cxx:325
PowerPoint3ParserInternal::Frame::m_angles
float m_angles[2]
the arc angles
Definition: PowerPoint3Parser.cxx:301
PowerPoint3ParserInternal::State::m_idToSlideContentMap
std::map< int, SlideContent > m_idToSlideContentMap
a map zoneId to slide content
Definition: PowerPoint3Parser.cxx:512
PowerPoint3Parser::checkHeader
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: PowerPoint3Parser.cxx:3836
MWAWBox2i
MWAWBox2< int > MWAWBox2i
MWAWBox2 of int.
Definition: libmwaw_internal.hxx:1191
PowerPoint3ParserInternal::FieldParser::parse
virtual bool parse(int id, MWAWInputStreamPtr &input, libmwaw::DebugFile &ascFile)=0
virtual function used to parse a field
MWAWBorder::Double
@ Double
Definition: libmwaw_internal.hxx:337
MWAWBox2::center
MWAWVec2< T > center() const
the box center
Definition: libmwaw_internal.hxx:1072
MWAWGraphicStyle.hxx
MWAWFont::italicBit
@ italicBit
Definition: MWAWFont.hxx:190
MWAWParagraph::m_marginsUnit
MWAWVariable< librevenge::RVNGUnit > m_marginsUnit
the margins INCH, ...
Definition: MWAWParagraph.hxx:150
PowerPoint3ParserInternal::SubDocument::m_textId
int m_textId
the text id
Definition: PowerPoint3Parser.cxx:752
PowerPoint3ParserInternal::FontNameFieldParser::m_numZones
int m_numZones
the number of zones
Definition: PowerPoint3Parser.cxx:173
PowerPoint3ParserInternal::SlideFormat::m_gradientOffset
int m_gradientOffset
the color gradient offset: -10 means black, 10 means white
Definition: PowerPoint3Parser.cxx:365
MWAWParser::getInput
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
PowerPoint3ParserInternal::State::getZoneEntry
const MWAWEntry & getZoneEntry(int id) const
try to return a zone
Definition: PowerPoint3Parser.cxx:484
PowerPoint3ParserInternal::swapBool8
int swapBool8(int v)
swap a list of 8 bool
Definition: PowerPoint3Parser.cxx:71
MWAWPresentationListener
This class contains code needed to write a presention document.
Definition: MWAWPresentationListener.hxx:59
PowerPoint3Parser::readSlideFormats
bool readSlideFormats(MWAWEntry const &entry, std::vector< PowerPoint3ParserInternal::SlideFormat > &formatList)
try to read the second child of slide content which contains some shadow offset...
Definition: PowerPoint3Parser.cxx:1783
PowerPoint3Parser::readPrintInfo
bool readPrintInfo(MWAWEntry const &entry)
try to read a print info zone
Definition: PowerPoint3Parser.cxx:1336
MWAWListLevel::BULLET
@ BULLET
Definition: MWAWList.hxx:46
PowerPoint3ParserInternal::Polygon::Polygon
Polygon()
constructor
Definition: PowerPoint3Parser.cxx:312
PowerPoint3Parser::sendSlides
void sendSlides()
try to send all slides
Definition: PowerPoint3Parser.cxx:3602
MWAWPosition::Page
@ Page
Definition: MWAWPosition.hxx:51
MWAWSubDocument::m_parser
MWAWParser * m_parser
the main zone parser
Definition: MWAWSubDocument.hxx:75
MWAWParagraph::JustificationFull
@ JustificationFull
Definition: MWAWParagraph.hxx:90
PowerPoint3ParserInternal::SubDocument::operator=
SubDocument & operator=(SubDocument const &)=delete
MWAWParagraph::JustificationRight
@ JustificationRight
Definition: MWAWParagraph.hxx:91
PowerPoint3ParserInternal::SlideContent
Internal: a slide of a PowerPoint3Parser.
Definition: PowerPoint3Parser.cxx:408
MWAWListLevel
small structure to keep information about a list level
Definition: MWAWList.hxx:44
libmwaw::DebugFile::addPos
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
MWAWGraphicStyle::m_lineDashWidth
std::vector< float > m_lineDashWidth
the dash array: a sequence of (fullsize, emptysize)
Definition: MWAWGraphicStyle.hxx:416
MWAWListLevel::m_type
Type m_type
the type of the level
Definition: MWAWList.hxx:101
PowerPoint3ParserInternal::SubDocument::~SubDocument
~SubDocument() final
destructor
Definition: PowerPoint3Parser.cxx:730
MWAWPageSpan::setMarginRight
void setMarginRight(const double marginRight)
set the page right margin
Definition: MWAWPageSpan.hxx:198
MWAWEntry::valid
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:99
PowerPoint3Parser::~PowerPoint3Parser
~PowerPoint3Parser() final
destructor
Definition: PowerPoint3Parser.cxx:794
PowerPoint3ParserInternal::TextZone::m_rulers
MWAWEntry m_rulers
the ruler entry
Definition: PowerPoint3Parser.cxx:398
MWAWGraphicStyle::m_gradientPercentCenter
MWAWVec2f m_gradientPercentCenter
the gradient center
Definition: MWAWGraphicStyle.hxx:451
PowerPoint3OLE.hxx
libmwaw::PrinterInfo::page
PrinterRect page() const
returns the page rectangle
Definition: MWAWPrinter.cxx:218
PowerPoint3ParserInternal::Frame::Frame
Frame()
constructor
Definition: PowerPoint3Parser.cxx:263
PowerPoint3OLE
the main class to read the ole stream in a Microsoft PowerPoint v4 files (MacOs and Windows)
Definition: PowerPoint3OLE.hxx:50
PowerPoint3Parser::readPicturesList
bool readPicturesList(std::map< int, int > const &pIdtoZIdMap)
try to read a picture list
Definition: PowerPoint3Parser.cxx:2633
PowerPoint3ParserInternal::Frame::m_textId
int m_textId
the textzone id
Definition: PowerPoint3Parser.cxx:297
PowerPoint3ParserInternal::State::m_slidesIdList
std::vector< int > m_slidesIdList
the main list of slides id
Definition: PowerPoint3Parser.cxx:508
MWAWBox2::size
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1067
PowerPoint3Parser::readSlideContent
bool readSlideContent(MWAWEntry const &entry, PowerPoint3ParserInternal::SlideContent &slide)
try to read the second/third child of slideMain: main, master ?
Definition: PowerPoint3Parser.cxx:1675
PowerPoint3Parser::sendText
bool sendText(PowerPoint3ParserInternal::SlideContent const &slide, int tId, bool placeHolder, bool master)
try to send a text zone
Definition: PowerPoint3Parser.cxx:3463
libmwaw::DebugFile
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:65
MWAWGraphicShape::scale
void scale(MWAWVec2f const &factor)
rescale all the coordinate
Definition: MWAWGraphicShape.cxx:368
MWAWFont::Script
a small struct to define the script position in MWAWFont
Definition: MWAWFont.hxx:106
PowerPoint3Parser::readRuler
bool readRuler(MWAWEntry const &entry, int id)
try to read some ruler
Definition: PowerPoint3Parser.cxx:3123
MWAWGraphicStyle::m_gradientAngle
float m_gradientAngle
the gradient angle
Definition: MWAWGraphicStyle.hxx:447
PowerPoint3ParserInternal::State::m_badEntry
MWAWEntry m_badEntry
an entry used by getZoneEntry if it does not find the zone
Definition: PowerPoint3Parser.cxx:534
MWAWInputStream.hxx
PowerPoint3ParserInternal::State::m_oleParser
std::shared_ptr< PowerPoint3OLE > m_oleParser
the ole parser
Definition: PowerPoint3Parser.cxx:502
PowerPoint3ParserInternal::TextZone::m_box
MWAWBox2i m_box
the bdbox
Definition: PowerPoint3Parser.cxx:392
PowerPoint3ParserInternal::Frame::m_style
MWAWGraphicStyle m_style
the style
Definition: PowerPoint3Parser.cxx:305
MWAWHeader::reset
void reset(MWAWDocument::Type type, int vers, Kind kind=MWAWDocument::MWAW_K_TEXT)
resets the data
Definition: MWAWHeader.hxx:84
MWAWListenerPtr
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
MWAWFont.hxx
MWAWPosition::m_anchorTo
AnchorTo m_anchorTo
anchor position
Definition: MWAWPosition.hxx:270
librevenge
Definition: MWAWDocument.hxx:56
PowerPoint3ParserInternal::State::m_idToFontIdMap
std::map< int, int > m_idToFontIdMap
a map between file id and font id
Definition: PowerPoint3Parser.cxx:524
PowerPoint3ParserInternal::TextZone::m_centered
bool m_centered
force horizontal centered
Definition: PowerPoint3Parser.cxx:400
PowerPoint3ParserInternal::Frame::m_customTransformation
int m_customTransformation
the custom transformation: 1:rot90, 2:rot180, 4:flipX
Definition: PowerPoint3Parser.cxx:291
PowerPoint3ParserInternal::Frame::m_mainTextBox
bool m_mainTextBox
flag to know if the textbox is a place holder
Definition: PowerPoint3Parser.cxx:299
MWAWTabStop::RIGHT
@ RIGHT
Definition: MWAWParagraph.hxx:48
MWAWBox2< int >
MWAWFont
Class to store font.
Definition: MWAWFont.hxx:43
PowerPoint3ParserInternal::FontNameFieldParser::m_idToNameMap
std::map< int, std::string > m_idToNameMap
map file id to font name
Definition: PowerPoint3Parser.cxx:175
MWAWParagraph::m_extra
std::string m_extra
a string to store some errors
Definition: MWAWParagraph.hxx:190
PowerPoint3ParserInternal::FieldParser::~FieldParser
virtual ~FieldParser()
destructor
Definition: PowerPoint3Parser.cxx:120
MWAWGraphicStyle::m_shadowOffset
MWAWVec2f m_shadowOffset
the shadow offset
Definition: MWAWGraphicStyle.hxx:437
MWAWGraphicShape::rectangle
static MWAWGraphicShape rectangle(MWAWBox2f const &box, MWAWVec2f const &corners=MWAWVec2f(0, 0))
static constructor to create a rectangle
Definition: MWAWGraphicShape.hxx:120
PowerPoint3ParserInternal::Frame::m_formatId
int m_formatId
the format id
Definition: PowerPoint3Parser.cxx:283
PowerPoint3ParserInternal::swapUInt8
int swapUInt8(int v)
swap an uint8_t by 4 offset
Definition: PowerPoint3Parser.cxx:66
PowerPoint3ParserInternal::FieldParser::m_name
std::string m_name
the debug name
Definition: PowerPoint3Parser.cxx:117
PowerPoint3Parser::readColors
bool readColors(MWAWEntry const &entry)
try to read a color list
Definition: PowerPoint3Parser.cxx:3233
MWAWBorder::m_color
MWAWColor m_color
the border color
Definition: libmwaw_internal.hxx:393
PowerPoint3ParserInternal::swapUInt4Bool4
int swapUInt4Bool4(int v)
swap a list of a int4 and 4bool
Definition: PowerPoint3Parser.cxx:91
PowerPoint3ParserInternal::Slide::m_contentIds
int m_contentIds[2]
the slide content ids: slide and not
Definition: PowerPoint3Parser.cxx:454
PowerPoint3ParserInternal::FieldParser::FieldParser
FieldParser(int fSize, std::string const &debugName)
the constructor
Definition: PowerPoint3Parser.cxx:105
PowerPoint3ParserInternal::Ruler::m_paragraph
MWAWParagraph m_paragraph
the paragraph
Definition: PowerPoint3Parser.cxx:256
MWAWParser::setPresentationListener
void setPresentationListener(MWAWPresentationListenerPtr &listener)
sets the presentation listener
Definition: MWAWParser.cxx:136
MWAWVec2i
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:838
PowerPoint3ParserInternal::FontNameFieldParser
Internal: a font name parser of a PowerPoint3Parser.
Definition: PowerPoint3Parser.cxx:161
libmwaw::DebugStream
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
MWAWParser.hxx
PowerPoint3Parser::parse
void parse(librevenge::RVNGPresentationInterface *documentInterface) final
virtual function used to parse the input
Definition: PowerPoint3Parser.cxx:818
MWAWFont::setUnderlineStyle
void setUnderlineStyle(Line::Style style=Line::None, bool doReset=true)
sets the underline style ( by default, we also reset the style)
Definition: MWAWFont.hxx:466
MWAWPageSpan
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:98
PowerPoint3ParserInternal::SubDocument::SubDocument
SubDocument(PowerPoint3Parser &pars, MWAWInputStreamPtr const &input, SlideContent const *slide, int tId, bool mainZone, bool master)
constructor for text
Definition: PowerPoint3Parser.cxx:711
PowerPoint3ParserInternal::Frame::m_customShapeId
int m_customShapeId
the custom shape id
Definition: PowerPoint3Parser.cxx:289
PowerPoint3ParserInternal::SlideContent::m_formatList
std::vector< SlideFormat > m_formatList
the format list
Definition: PowerPoint3Parser.cxx:440
MWAWGraphicStyle::G_Axial
@ G_Axial
Definition: MWAWGraphicStyle.hxx:55
PowerPoint3ParserInternal::State::m_pictIdToZoneIdMap
std::map< int, int > m_pictIdToZoneIdMap
a map pictId to picture zone
Definition: PowerPoint3Parser.cxx:516
MWAWFont::setFlags
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:325