PowerPoint7Graph.hxx Source File documentation

PowerPoint7Graph.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 /*
35 * Parser to PowerPoint 95 document ( graphic part )
36 *
37 */
38 #ifndef POWER_POINT7_GRAPH
39 # define POWER_POINT7_GRAPH
40
41 #include <set>
42 #include <string>
43 #include <vector>
44
45 #include <librevenge/librevenge.h>
46
47 #include "libmwaw_internal.hxx"
48
49 #include "MWAWDebug.hxx"
50 #include "MWAWInputStream.hxx"
51
52 namespace PowerPoint7GraphInternal
53 {
54 struct Frame;
55 struct Picture;
56
57 struct State;
58 class SubDocument;
59 }
60
61 namespace PowerPoint7Struct
62 {
63 struct SlideId;
64 }
65
66 class PowerPoint7Parser;
67
73 class PowerPoint7Graph
74 {
75 friend class PowerPoint7Parser;
76 friend class PowerPoint7GraphInternal::SubDocument;
77 public:
79 explicit PowerPoint7Graph(PowerPoint7Parser &parser);
81 virtual ~PowerPoint7Graph();
82
84 int version() const;
86 void setPageSize(MWAWVec2i &pageSize);
88 void setSlideId(PowerPoint7Struct::SlideId const &id);
90 void setColorList(std::vector<MWAWColor> const &colorList);
91 protected:
93 bool sendSlide(PowerPoint7Struct::SlideId const &id, bool sendBackground);
95 bool sendFrame(PowerPoint7GraphInternal::Frame const &frame, bool master);
97 bool sendText(int textId);
98
99 //
100 // Intermediate level
101 //
102
104 bool readBitmapContainer(int level, long endPos, PowerPoint7GraphInternal::Picture &picture);
106 bool readPictureList(int level, long endPos);
108 bool readBitmap(int level, long endPos, MWAWEmbeddedObject &object, MWAWBox2i &box);
110 bool readBitmapFlag(int level, long endPos);
111
113 bool readPictureContainer(int level, long endPos, PowerPoint7GraphInternal::Picture &picture);
115 bool readPictureIdContainer(int level, long endPos, int &id);
117 bool readPictureId(int level, long endPos, int &id);
118
120 bool readMetaFile(int level, long endPos, MWAWEmbeddedObject &object);
122 bool readMetaFileContainer(int level, long endPos, PowerPoint7GraphInternal::Picture &picture);
124 bool readMetaFileBox(int level, long endPos, MWAWBox2i &box);
125
127 bool readExternalOleObjectAtom(int level, long endPos);
129 bool readExternalOleEmbed(int level, long endPos, int &id);
131 bool readExternalOleEmbedAtom(int level, long endPos);
132
134 bool readGroup(int level, long endPos);
136 bool readGroupAtom(int level, long endPos);
138 bool readStyle(int level, long endPos);
140 bool readLineArrows(int level, long endPos);
142 bool readRect(int level, long endPos);
144 bool readRectAtom(int level, long endPos);
146 bool readPlaceholderContainer(int level, long endPos);
148 bool readPlaceholderAtom(int level, long endPos);
150 bool readLine(int level, long endPos);
152 bool readLineAtom(int level, long endPos);
154 bool readPolygon(int level, long endPos);
156 bool readPolygonAtom(int level, long endPos);
158 bool readArc(int level, long endPos);
160 bool readArcAtom(int level, long endPos);
161
163 bool readPointList(int level, long endPos, std::vector<MWAWVec2i> &points);
165 bool readZoneFlags(int level, long endPos);
166
168 bool readZone5000(int level, long endPos);
170 bool readZone5000Header(int level, long endPos);
172 bool readZone5000Data(int level, long endPos);
173
174 //
175 // low level
176 //
177
178 private:
179 PowerPoint7Graph(PowerPoint7Graph const &orig) = delete;
180 PowerPoint7Graph &operator=(PowerPoint7Graph const &orig) = delete;
181
182 protected:
183 //
184 // data
185 //
187 MWAWParserStatePtr m_parserState;
188
190 std::shared_ptr<PowerPoint7GraphInternal::State> m_state;
191
193 PowerPoint7Parser *m_mainParser;
194 };
195 #endif
196 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
MWAWEntry
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
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
PowerPoint7GraphInternal::Frame::m_type
enum Type m_type
the type:
Definition: PowerPoint7Graph.cxx:88
PowerPoint7GraphInternal::FramePlaceholder
Internal: a frame placeholder of a PowerPoint7Graph.
Definition: PowerPoint7Graph.cxx:206
PowerPoint7Graph::readBitmapFlag
bool readBitmapFlag(int level, long endPos)
try to read the bitmap type zone 3038
Definition: PowerPoint7Graph.cxx:2121
MWAWBorder::Triple
@ Triple
Definition: libmwaw_internal.hxx:337
PowerPoint7GraphInternal::Frame::m_textId
int m_textId
the text id(if positif)
Definition: PowerPoint7Graph.cxx:102
MWAWGraphicShape::getBdBox
MWAWBox2f getBdBox() const
returns the basic bdbox
Definition: MWAWGraphicShape.hxx:197
PowerPoint7Struct::SlideId::m_inNotes
bool m_inNotes
a flag to know if the content is in the notes part
Definition: PowerPoint7Struct.hxx:102
MWAW_DEBUG_MSG
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
PowerPoint7Graph::readZoneFlags
bool readZoneFlags(int level, long endPos)
try to read the graph zone flags zone 3036
Definition: PowerPoint7Graph.cxx:1857
MWAWVec2f
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
PowerPoint7GraphInternal::FrameArc
Internal: a frame rect of a PowerPoint7Graph.
Definition: PowerPoint7Graph.cxx:114
PowerPoint7GraphInternal::FramePolygon
Internal: a polygon of a PowerPoint7Graph.
Definition: PowerPoint7Graph.cxx:221
PowerPoint7GraphInternal::FrameGroup::~FrameGroup
~FrameGroup() final
destructor
Definition: PowerPoint7Graph.cxx:201
libmwaw::DebugFile::addDelimiter
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
PowerPoint7GraphInternal::Frame::m_dimension
MWAWBox2i m_dimension
the dimension
Definition: PowerPoint7Graph.cxx:92
MWAWBorder::m_type
Type m_type
the border repetition
Definition: libmwaw_internal.hxx:385
MWAWGraphicStyle::setSurfaceColor
void setSurfaceColor(MWAWColor const &col, float opacity=1)
set the surface color
Definition: MWAWGraphicStyle.hxx:415
MWAWGraphicStyle::setShadowColor
void setShadowColor(MWAWColor const &col, float opacity=1)
set the shadow color
Definition: MWAWGraphicStyle.hxx:458
PowerPoint7Parser::readZone4072
bool readZone4072(int level, long endPos)
try to read the zone 4072: child of Zone3008
Definition: PowerPoint7Parser.cxx:2632
PowerPoint7Graph::readExternalOleObjectAtom
bool readExternalOleObjectAtom(int level, long endPos)
try to read the external ole object atom zone: 4035
Definition: PowerPoint7Graph.cxx:2283
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
PowerPoint7GraphInternal::State::getCustomShape
static bool getCustomShape(int id, MWAWGraphicShape &shape)
returns a custom shape corresponding to an id
Definition: PowerPoint7Graph.cxx:437
PowerPoint7GraphInternal::SubDocument::SubDocument
SubDocument(SubDocument const &)=delete
PowerPoint7GraphInternal::FramePolygon::FramePolygon
FramePolygon()
constructor
Definition: PowerPoint7Graph.cxx:223
PowerPoint7GraphInternal::Frame::m_rotation
float m_rotation
the rotation
Definition: PowerPoint7Graph.cxx:94
PowerPoint7GraphInternal::SubDocument::parse
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: PowerPoint7Graph.cxx:619
MWAWColor::white
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:250
PowerPoint7Graph::readPictureId
bool readPictureId(int level, long endPos, int &id)
try to read the picture id 4036
Definition: PowerPoint7Graph.cxx:2452
PowerPoint7GraphInternal::Frame::m_subType
int m_subType
the sub type
Definition: PowerPoint7Graph.cxx:90
MWAWPosition::WBackground
@ WBackground
Definition: MWAWPosition.hxx:53
PowerPoint7GraphInternal
Internal: the structures of a PowerPoint7Graph.
Definition: PowerPoint7Graph.cxx:60
PowerPoint7Struct::Zone::m_type
int m_type
the type
Definition: PowerPoint7Struct.hxx:131
MWAWGraphicShape
a structure used to define a picture shape
Definition: MWAWGraphicShape.hxx:46
MWAWFontConverter.hxx
MWAWColor
the class to store a color
Definition: libmwaw_internal.hxx:192
PowerPoint7Struct::SlideId
a slide id
Definition: PowerPoint7Struct.hxx:50
MWAWEmbeddedObject
small class use to define a embedded object
Definition: libmwaw_internal.hxx:467
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
PowerPoint7GraphInternal::Frame::m_flip
bool m_flip[2]
the flip flags: horizontal and vertical
Definition: PowerPoint7Graph.cxx:96
PowerPoint7Parser::readContainerList
bool readContainerList(int level, long endPos)
try to read the container list zone 2000: child of Document
Definition: PowerPoint7Parser.cxx:1507
PowerPoint7GraphInternal::State::getPattern
bool getPattern(int id, MWAWGraphicStyle::Pattern &pattern) const
try to return a pattern
Definition: PowerPoint7Graph.cxx:387
PowerPoint7GraphInternal::State::setFrame
void setFrame(Frame *frame)
try to add a frame
Definition: PowerPoint7Graph.cxx:313
PowerPoint7GraphInternal::Frame::Polygon
@ Polygon
Definition: PowerPoint7Graph.cxx:64
PowerPoint7GraphInternal::Frame::Rect
@ Rect
Definition: PowerPoint7Graph.cxx:64
MWAWGraphicStyle::Gradient::G_Linear
@ G_Linear
Definition: MWAWGraphicStyle.hxx:177
PowerPoint7Graph::~PowerPoint7Graph
virtual ~PowerPoint7Graph()
destructor
Definition: PowerPoint7Graph.cxx:648
PowerPoint7Graph::readPointList
bool readPointList(int level, long endPos, std::vector< MWAWVec2i > &points)
try to read the list of point zone 3035
Definition: PowerPoint7Graph.cxx:1816
PowerPoint7GraphInternal::Frame::Type
Type
the frame type
Definition: PowerPoint7Graph.cxx:64
PowerPoint7Graph::sendText
bool sendText(int textId)
try to send the text content
Definition: PowerPoint7Graph.cxx:2822
MWAWBorder::m_width
double m_width
the border total width in point
Definition: libmwaw_internal.hxx:387
PowerPoint7Graph::readZone5000
bool readZone5000(int level, long endPos)
try to read the zone 5000: child of GraphRect (only found in 95 an 97 document)
Definition: PowerPoint7Graph.cxx:2531
PowerPoint7Graph::readGroupAtom
bool readGroupAtom(int level, long endPos)
try to read the zone 3002
Definition: PowerPoint7Graph.cxx:731
PowerPoint7Graph::readPictureIdContainer
bool readPictureIdContainer(int level, long endPos, int &id)
try to read the picture id container zone 4053
Definition: PowerPoint7Graph.cxx:2485
PowerPoint7Parser::readOutlineTextProps9Atom
bool readOutlineTextProps9Atom(int level, long endPos, int &pId, PowerPoint7Struct::SlideId &sId)
try to read the outline text props9 atom zone 4009
Definition: PowerPoint7Parser.cxx:2127
PowerPoint7Graph::setSlideId
void setSlideId(PowerPoint7Struct::SlideId const &id)
sets the slide id
Definition: PowerPoint7Graph.cxx:661
libmwaw::DebugFile::addNote
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
MWAWSubDocument
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:42
MWAWGraphicStyle
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:48
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:363
PowerPoint7Graph::readStyle
bool readStyle(int level, long endPos)
try to read the graphic style zone 3005
Definition: PowerPoint7Graph.cxx:764
PowerPoint7GraphInternal::State::m_arrowList
std::vector< MWAWGraphicStyle::Arrow > m_arrowList
the arrow list
Definition: PowerPoint7Graph.cxx:376
PowerPoint7GraphInternal::SubDocument::SubDocument
SubDocument(PowerPoint7Graph &parser, MWAWInputStreamPtr const &input, std::vector< int > const &listTextId)
constructor for a list text zone
Definition: PowerPoint7Graph.cxx:581
PowerPoint7GraphInternal::Frame::getTextZoneList
virtual void getTextZoneList(std::vector< int > &textIdList) const
try to update the list of text sub zone
Definition: PowerPoint7Graph.cxx:82
PowerPoint7GraphInternal::FrameRect
Internal: a frame rect of a PowerPoint7Graph.
Definition: PowerPoint7Graph.cxx:261
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
PowerPoint7GraphInternal::SubDocument::SubDocument
SubDocument(PowerPoint7Graph &parser, MWAWInputStreamPtr const &input, int tId)
constructor for a text zone
Definition: PowerPoint7Graph.cxx:573
MWAWGraphicStyle::Gradient::G_Rectangular
@ G_Rectangular
Definition: MWAWGraphicStyle.hxx:177
PowerPoint7GraphInternal::FrameArc::~FrameArc
~FrameArc() final
destructor
Definition: PowerPoint7Graph.cxx:129
PowerPoint7GraphInternal::SubDocument::m_powerpointParser
PowerPoint7Graph & m_powerpointParser
the parser
Definition: PowerPoint7Graph.cxx:609
MWAWPresentationListener.hxx
PowerPoint7GraphInternal::State::State
State()
constructor
Definition: PowerPoint7Graph.cxx:301
PowerPoint7GraphInternal::Frame::~Frame
virtual ~Frame()
destructor
Definition: PowerPoint7Graph.cxx:109
PowerPoint7Graph::readBitmap
bool readBitmap(int level, long endPos, MWAWEmbeddedObject &object, MWAWBox2i &box)
try to read a bitmap zone 2012
Definition: PowerPoint7Graph.cxx:2016
PowerPoint7Graph::readArcAtom
bool readArcAtom(int level, long endPos)
try to read the graph arc atom 3019
Definition: PowerPoint7Graph.cxx:1758
MWAWGraphicStyle::Pattern
a basic pattern used in a MWAWGraphicStyle:
Definition: MWAWGraphicStyle.hxx:277
MWAWSubDocument.hxx
PowerPoint7Parser::readZone
bool readZone(int level, long endPos)
try to read a zone
Definition: PowerPoint7Parser.cxx:2710
MWAWGraphicShape::Polygon
@ Polygon
Definition: MWAWGraphicShape.hxx:49
PowerPoint7GraphInternal::State::m_colorList
std::vector< MWAWColor > m_colorList
the current color list
Definition: PowerPoint7Graph.cxx:374
MWAWBox2::getUnion
MWAWBox2< T > getUnion(MWAWBox2< T > const &box) const
returns the union between this and box
Definition: libmwaw_internal.hxx:1129
libmwaw::SubDocumentType
SubDocumentType
Definition: libmwaw_internal.hxx:188
PowerPoint7Parser
the main class to read a Microsoft PowerPoint 95 files (Windows)
Definition: PowerPoint7Parser.hxx:62
PowerPoint7Struct::Zone
a zone header of a PowerPoint7Parser
Definition: PowerPoint7Struct.hxx:107
PowerPoint7GraphInternal::FrameGroup::m_child
std::vector< std::shared_ptr< Frame > > m_child
the child
Definition: PowerPoint7Graph.cxx:198
MWAWBorder::m_widthsList
std::vector< double > m_widthsList
the different length used for each line/sep (if defined)
Definition: libmwaw_internal.hxx:391
PowerPoint7GraphInternal::Frame::Unknown
@ Unknown
Definition: PowerPoint7Graph.cxx:64
PowerPoint7GraphInternal::FrameArc::m_angles
float m_angles[2]
the arc angles
Definition: PowerPoint7Graph.cxx:126
PowerPoint7GraphInternal::Picture
Internal: a picture of a PowerPoint7Graph.
Definition: PowerPoint7Graph.cxx:276
PowerPoint7Graph::readLineAtom
bool readLineAtom(int level, long endPos)
try to read the graph line atom zone 3015
Definition: PowerPoint7Graph.cxx:1565
libmwaw::DebugFile::skipZone
void skipZone(long beginPos, long endPos)
skips the file zone defined by beginPos-endPos
Definition: MWAWDebug.hxx:113
PowerPoint7Graph
the main class to read the graphic part of a PowerPoint 95 file
Definition: PowerPoint7Graph.hxx:74
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
PowerPoint7Graph::version
int version() const
returns the file version
Definition: PowerPoint7Graph.cxx:651
libmwaw_internal.hxx
MWAWGraphicStyle::m_lineWidth
float m_lineWidth
the linewidth
Definition: MWAWGraphicStyle.hxx:508
MWAWPosition.hxx
PowerPoint7GraphInternal::Frame::m_style
MWAWGraphicStyle m_style
the style
Definition: PowerPoint7Graph.cxx:98
PowerPoint7Graph::readArc
bool readArc(int level, long endPos)
try to read the graph arc zone 3018
Definition: PowerPoint7Graph.cxx:1705
PowerPoint7Graph::PowerPoint7Graph
PowerPoint7Graph(PowerPoint7Parser &parser)
constructor
Definition: PowerPoint7Graph.cxx:641
PowerPoint7GraphInternal::FramePolygon::m_vertices
std::vector< MWAWVec2i > m_vertices
the vertices
Definition: PowerPoint7Graph.cxx:233
PowerPoint7Graph::readGroup
bool readGroup(int level, long endPos)
try to read the group zone
Definition: PowerPoint7Graph.cxx:677
MWAWPosition
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
PowerPoint7GraphInternal::Frame::m_pictureId
int m_pictureId
the picture id(if positif)
Definition: PowerPoint7Graph.cxx:100
MWAWGraphicStyle::Gradient::Stop
a structure used to define the gradient limit in MWAWGraphicStyle
Definition: MWAWGraphicStyle.hxx:141
PowerPoint7Parser.hxx
PowerPoint7GraphInternal::FramePolygon::updateShape
bool updateShape(MWAWBox2f const &finalBox, MWAWGraphicShape &shape) const
update the shape
Definition: PowerPoint7Graph.cxx:240
PowerPoint7GraphInternal::Picture::m_object
MWAWEmbeddedObject m_object
the picture data
Definition: PowerPoint7Graph.cxx:290
MWAWBorder
a border
Definition: libmwaw_internal.hxx:333
PowerPoint7GraphInternal::SubDocument::m_textId
int m_textId
the text id
Definition: PowerPoint7Graph.cxx:611
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
PowerPoint7GraphInternal::FrameArc::FrameArc
FrameArc()
constructor
Definition: PowerPoint7Graph.cxx:116
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:358
MWAWPosition::m_wrapping
Wrapping m_wrapping
Wrapping.
Definition: MWAWPosition.hxx:278
PowerPoint7GraphInternal::State::m_decal
MWAWVec2i m_decal
the decal from file position to final position
Definition: PowerPoint7Graph.cxx:370
MWAWGraphicStyle::setBorders
void setBorders(int wh, MWAWBorder const &border)
sets the cell border: wh=libmwaw::LeftBit|...
Definition: MWAWGraphicStyle.cxx:232
PowerPoint7Graph::readZone5000Data
bool readZone5000Data(int level, long endPos)
try to read the zone 5000 data: 5002
Definition: PowerPoint7Graph.cxx:2611
MWAWGraphicShape::m_type
Type m_type
the type
Definition: MWAWGraphicShape.hxx:216
MWAWVec2< float >
PowerPoint7Graph.hxx
MWAWGraphicShape.hxx
MWAWDebug.hxx
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:553
MWAWGraphicStyle::setPattern
void setPattern(Pattern const &pat, float opacity=1)
set the pattern
Definition: MWAWGraphicStyle.hxx:426
PowerPoint7GraphInternal::FrameGroup
Internal: a group of a PowerPoint7Graph.
Definition: PowerPoint7Graph.cxx:180
PowerPoint7GraphInternal::Frame::m_isSent
bool m_isSent
flag to know if a frame is sent
Definition: PowerPoint7Graph.cxx:106
MWAWColor::black
static MWAWColor black()
return the back color
Definition: libmwaw_internal.hxx:245
PowerPoint7GraphInternal::State::m_idToPictureMap
std::map< int, Picture > m_idToPictureMap
a map id to picture
Definition: PowerPoint7Graph.cxx:384
PowerPoint7Graph::operator=
PowerPoint7Graph & operator=(PowerPoint7Graph const &orig)=delete
PowerPoint7Struct::Zone::read
bool read(MWAWInputStreamPtr stream, long endPos=-1)
try to read a zone header
Definition: PowerPoint7Struct.cxx:38
PowerPoint7GraphInternal::Picture::Picture
Picture()
constructor
Definition: PowerPoint7Graph.cxx:278
PowerPoint7Graph::setPageSize
void setPageSize(MWAWVec2i &pageSize)
sets the page size
Definition: PowerPoint7Graph.cxx:656
PowerPoint7Struct.hxx
PowerPoint7Graph::readPlaceholderContainer
bool readPlaceholderContainer(int level, long endPos)
try to read a place holder container 3010
Definition: PowerPoint7Graph.cxx:1410
PowerPoint7GraphInternal::SubDocument::~SubDocument
~SubDocument() final
destructor
Definition: PowerPoint7Graph.cxx:590
PowerPoint7Graph::readLineArrows
bool readLineArrows(int level, long endPos)
try to read the line arrow zone 3007
Definition: PowerPoint7Graph.cxx:1184
PowerPoint7GraphInternal::Frame::Line
@ Line
Definition: PowerPoint7Graph.cxx:64
PowerPoint7Graph::m_mainParser
PowerPoint7Parser * m_mainParser
the main parser;
Definition: PowerPoint7Graph.hxx:193
MWAWGraphicStyle::Gradient::G_Axial
@ G_Axial
Definition: MWAWGraphicStyle.hxx:177
MWAWGraphicStyle::Pattern::m_colors
MWAWColor m_colors[2]
the two indexed colors
Definition: MWAWGraphicStyle.hxx:361
PowerPoint7GraphInternal::SubDocument::operator=
SubDocument & operator=(SubDocument const &)=delete
PowerPoint7GraphInternal::Picture::m_box
MWAWBox2i m_box
the picture box
Definition: PowerPoint7Graph.cxx:292
PowerPoint7GraphInternal::FrameGroup::FrameGroup
FrameGroup()
constructor
Definition: PowerPoint7Graph.cxx:182
PowerPoint7GraphInternal::State::initArrows
void initArrows()
init the arrow list
Definition: PowerPoint7Graph.cxx:425
MWAWGraphicStyle::m_lineColor
MWAWColor m_lineColor
the line color
Definition: MWAWGraphicStyle.hxx:516
PowerPoint7Graph::readZone5000Header
bool readZone5000Header(int level, long endPos)
try to read the zone 5000 header: 5001
Definition: PowerPoint7Graph.cxx:2579
PowerPoint7Graph::m_state
std::shared_ptr< PowerPoint7GraphInternal::State > m_state
the state
Definition: PowerPoint7Graph.hxx:190
MWAWBox2i
MWAWBox2< int > MWAWBox2i
MWAWBox2 of int.
Definition: libmwaw_internal.hxx:1191
MWAWBorder::Double
@ Double
Definition: libmwaw_internal.hxx:337
PowerPoint7GraphInternal::State::m_actualSlideId
PowerPoint7Struct::SlideId m_actualSlideId
the actual slide id
Definition: PowerPoint7Graph.cxx:372
PowerPoint7Graph::readPlaceholderAtom
bool readPlaceholderAtom(int level, long endPos)
try to read the place holder atom zone 3011
Definition: PowerPoint7Graph.cxx:1479
PowerPoint7GraphInternal::FramePolygon::~FramePolygon
~FramePolygon()
destructor
Definition: PowerPoint7Graph.cxx:236
MWAWBox2::center
MWAWVec2< T > center() const
the box center
Definition: libmwaw_internal.hxx:1072
MWAWGraphicStyle.hxx
PowerPoint7GraphInternal::State
Internal: the state of a PowerPoint7Graph.
Definition: PowerPoint7Graph.cxx:299
PowerPoint7Graph::readPictureContainer
bool readPictureContainer(int level, long endPos, PowerPoint7GraphInternal::Picture &picture)
try to read the picture container 4028
Definition: PowerPoint7Graph.cxx:2407
PowerPoint7Graph::readExternalOleEmbedAtom
bool readExternalOleEmbedAtom(int level, long endPos)
try to read the external ole object atom zone: 4045
Definition: PowerPoint7Graph.cxx:2374
PowerPoint7Parser::readZone3000
bool readZone3000(int level, long endPos)
try to read the zone 3000: child of Handout/Notes/Slides/Zone3001
Definition: PowerPoint7Parser.cxx:1875
PowerPoint7Graph::readMetaFile
bool readMetaFile(int level, long endPos, MWAWEmbeddedObject &object)
try to read the meta file zone 4033
Definition: PowerPoint7Graph.cxx:2202
PowerPoint7Graph::setColorList
void setColorList(std::vector< MWAWColor > const &colorList)
sets the color list
Definition: PowerPoint7Graph.cxx:666
MWAWGraphicStyle::m_gradient
Gradient m_gradient
the gradient
Definition: MWAWGraphicStyle.hxx:533
PowerPoint7Parser::readZoneNoData
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:2682
PowerPoint7GraphInternal::State::m_actualFrame
std::shared_ptr< Frame > m_actualFrame
the actual frame
Definition: PowerPoint7Graph.cxx:378
PowerPoint7Graph::sendSlide
bool sendSlide(PowerPoint7Struct::SlideId const &id, bool sendBackground)
try to send the slide content
Definition: PowerPoint7Graph.cxx:2663
PowerPoint7Graph::m_parserState
MWAWParserStatePtr m_parserState
the parser state
Definition: PowerPoint7Graph.hxx:187
PowerPoint7Graph::PowerPoint7Graph
PowerPoint7Graph(PowerPoint7Graph const &orig)=delete
MWAWPosition::Page
@ Page
Definition: MWAWPosition.hxx:51
PowerPoint7Graph::readMetaFileBox
bool readMetaFileBox(int level, long endPos, MWAWBox2i &box)
try to read the meta file box zone 4038
Definition: PowerPoint7Graph.cxx:2243
PowerPoint7Parser::readStyleTextPropAtom
bool readStyleTextPropAtom(int level, long endPos, int &textId)
try to read the style text prop atom zone 4001
Definition: PowerPoint7Parser.cxx:2070
MWAWParserStatePtr
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
libmwaw::DebugFile::addPos
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
PowerPoint7Graph::sendFrame
bool sendFrame(PowerPoint7GraphInternal::Frame const &frame, bool master)
try to send a frame
Definition: PowerPoint7Graph.cxx:2701
MWAWGraphicStyle::m_lineDashWidth
std::vector< float > m_lineDashWidth
the dash array: a sequence of (fullsize, emptysize)
Definition: MWAWGraphicStyle.hxx:506
PowerPoint7GraphInternal::FramePlaceholder::FramePlaceholder
FramePlaceholder()
constructor
Definition: PowerPoint7Graph.cxx:208
PowerPoint7Graph::readMetaFileContainer
bool readMetaFileContainer(int level, long endPos, PowerPoint7GraphInternal::Picture &picture)
try to read the meta file container zone 4037
Definition: PowerPoint7Graph.cxx:2154
PowerPoint7GraphInternal::Frame::m_isBackground
bool m_isBackground
a flag to know if this is the slide's background
Definition: PowerPoint7Graph.cxx:104
MWAWBox2::size
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1067
PowerPoint7Graph::readRect
bool readRect(int level, long endPos)
try to read the graph rectangle zone 3008
Definition: PowerPoint7Graph.cxx:1222
PowerPoint7GraphInternal::SubDocument::operator!=
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: PowerPoint7Graph.cxx:593
PowerPoint7Graph::readBitmapContainer
bool readBitmapContainer(int level, long endPos, PowerPoint7GraphInternal::Picture &picture)
try to read the bitmap container zone 1027
Definition: PowerPoint7Graph.cxx:1963
PowerPoint7Graph::readPictureList
bool readPictureList(int level, long endPos)
try to read the font collection 10 zone 2006
Definition: PowerPoint7Graph.cxx:1896
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:66
PowerPoint7GraphInternal::Frame::Frame
Frame(Type type=Unknown)
constructor
Definition: PowerPoint7Graph.cxx:66
PowerPoint7Graph::readPolygonAtom
bool readPolygonAtom(int level, long endPos)
try to read the polygon atom zone 3017
Definition: PowerPoint7Graph.cxx:1660
MWAWGraphicShape::scale
void scale(MWAWVec2f const &factor)
rescale all the coordinate
Definition: MWAWGraphicShape.cxx:368
PowerPoint7GraphInternal::Frame
Internal: a frame of a PowerPoint7Graph.
Definition: PowerPoint7Graph.cxx:62
MWAWInputStream.hxx
PowerPoint7Parser::readString
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:2222
PowerPoint7Graph::readPolygon
bool readPolygon(int level, long endPos)
try to read the polygon zone 3016
Definition: PowerPoint7Graph.cxx:1603
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
PowerPoint7GraphInternal::Picture::m_name
std::string m_name
the picture name
Definition: PowerPoint7Graph.cxx:294
PowerPoint7GraphInternal::Picture::isEmpty
bool isEmpty() const
returns true if the picture is empty
Definition: PowerPoint7Graph.cxx:285
PowerPoint7GraphInternal::State::resetFrame
void resetFrame()
reset the actual frame
Definition: PowerPoint7Graph.cxx:348
MWAWBox2< int >
PowerPoint7GraphInternal::Frame::Group
@ Group
Definition: PowerPoint7Graph.cxx:64
PowerPoint7GraphInternal::FrameArc::updateShape
bool updateShape(MWAWBox2f const &finalBox, MWAWGraphicShape &shape) const
update the shape
Definition: PowerPoint7Graph.cxx:133
PowerPoint7GraphInternal::SubDocument
Internal: the subdocument of a PowerPoint7Graph.
Definition: PowerPoint7Graph.cxx:570
MWAWGraphicStyle::m_shadowOffset
MWAWVec2f m_shadowOffset
the shadow offset
Definition: MWAWGraphicStyle.hxx:527
MWAWGraphicShape::rectangle
static MWAWGraphicShape rectangle(MWAWBox2f const &box, MWAWVec2f const &corners=MWAWVec2f(0, 0))
static constructor to create a rectangle
Definition: MWAWGraphicShape.hxx:120
PowerPoint7GraphInternal::Frame::Placeholder
@ Placeholder
Definition: PowerPoint7Graph.cxx:64
PowerPoint7GraphInternal::Frame::Arc
@ Arc
Definition: PowerPoint7Graph.cxx:64
MWAWBorder::m_color
MWAWColor m_color
the border color
Definition: libmwaw_internal.hxx:393
PowerPoint7Parser::readIdentifier
bool readIdentifier(int level, long endPos, int &id, std::string const &wh)
try to read an identifier zone 2017
Definition: PowerPoint7Parser.cxx:1633
MWAWVec2i
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:838
PowerPoint7Graph::readExternalOleEmbed
bool readExternalOleEmbed(int level, long endPos, int &id)
try to read the external ole embed zone 4044
Definition: PowerPoint7Graph.cxx:2316
libmwaw::DebugStream
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
PowerPoint7Struct
namespace used to define basic struct of a Microsoft PowerPoint 95 files (Windows)
Definition: PowerPoint7Graph.hxx:62
MWAWParser.hxx
PowerPoint7Struct::Zone::m_dataSize
long m_dataSize
the data size
Definition: PowerPoint7Struct.hxx:133
PowerPoint7Parser::sendText
bool sendText(int textId)
try to send the text content
Definition: PowerPoint7Parser.cxx:189
PowerPoint7GraphInternal::State::getArrow
bool getArrow(int id, MWAWGraphicStyle::Arrow &arrow)
returns an arrow if possible
Definition: PowerPoint7Graph.cxx:355
MWAWGraphicStyle::Gradient::m_stopList
std::vector< Stop > m_stopList
the list of gradient limits
Definition: MWAWGraphicStyle.hxx:262
PowerPoint7Graph::readRectAtom
bool readRectAtom(int level, long endPos)
try to read the graph shape zone 3009
Definition: PowerPoint7Graph.cxx:1309
PowerPoint7GraphInternal::State::m_actualGroup
std::shared_ptr< FrameGroup > m_actualGroup
the actual group
Definition: PowerPoint7Graph.cxx:380
PowerPoint7GraphInternal::SubDocument::m_listTextId
std::vector< int > m_listTextId
a list of text id
Definition: PowerPoint7Graph.cxx:613
PowerPoint7Graph::readLine
bool readLine(int level, long endPos)
try to read the line graph zone 3014
Definition: PowerPoint7Graph.cxx:1512
PowerPoint7GraphInternal::State::m_idToFrameMap
std::map< PowerPoint7Struct::SlideId, std::vector< std::shared_ptr< Frame > > > m_idToFrameMap
a map slide id to the list of frame
Definition: PowerPoint7Graph.cxx:382
MWAWGraphicStyle::Arrow
a structure used to define an arrow
Definition: MWAWGraphicStyle.hxx:56
PowerPoint7GraphInternal::FrameRect::FrameRect
FrameRect()
constructor
Definition: PowerPoint7Graph.cxx:263