PowerPoint1Parser.hxx Source File documentation

PowerPoint1Parser.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_POINT1_PARSER
35 # define POWER_POINT1_PARSER
36
37 #include <vector>
38
39 #include "MWAWDebug.hxx"
40 #include "MWAWInputStream.hxx"
41
42 #include "MWAWParser.hxx"
43
44 namespace PowerPoint1ParserInternal
45 {
46 struct Frame;
47 struct Scheme;
48 struct Slide;
49 struct TextZone;
50
51 struct State;
52
53 class SubDocument;
54 }
55
60 class PowerPoint1Parser final : public MWAWPresentationParser
61 {
62 friend class PowerPoint1ParserInternal::SubDocument;
63 public:
65 PowerPoint1Parser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header);
67 ~PowerPoint1Parser() final;
68
70 bool checkHeader(MWAWHeader *header, bool strict=false) final;
71
72 // the main parse function
73 void parse(librevenge::RVNGPresentationInterface *documentInterface) final;
74
75 protected:
77 void createDocument(librevenge::RVNGPresentationInterface *documentInterface);
78
80 bool createZones();
82 void sendSlides();
83
85 bool readListZones(int &docInfoId);
86
87 //
88 // internal level
89 //
90
92 bool readFramesList(MWAWEntry const &entry, std::vector<PowerPoint1ParserInternal::Frame> &frame, int schemeId);
94 bool readZoneIdList(MWAWEntry const &entry, int zId);
96 bool readZoneIdList2(MWAWEntry const &entry, int zId);
97
99 bool readColors(MWAWEntry const &entry);
101 bool readColorZone(MWAWEntry const &entry);
103 bool readFonts(MWAWEntry const &entry);
105 bool readFontNames(MWAWEntry const &entry);
107 bool readPicture(MWAWEntry const &entry, MWAWEmbeddedObject &picture);
109 bool readPictureDefinition(MWAWEntry const &entry, size_t id);
111 bool readPrintInfo(MWAWEntry const &entry);
113 bool readRulers(MWAWEntry const &entry);
115 bool readRuler(MWAWEntry const &entry, size_t id);
117 bool readScheme(MWAWEntry const &entry, int id);
119 bool readSchemes();
121 bool readTextZone(MWAWEntry const &entry, PowerPoint1ParserInternal::TextZone &zone);
123 bool readSlide(MWAWEntry const &entry, std::vector<int> &slideIds);
125 bool readDocInfo(MWAWEntry const &entry);
127 bool readZone2(MWAWEntry const &entry);
128
129 //
130 // send data
131 //
132
134 bool sendSlide(PowerPoint1ParserInternal::Slide const &slide, bool master);
136 bool sendFrame(PowerPoint1ParserInternal::Frame const &frame, PowerPoint1ParserInternal::TextZone const &textZone);
138 bool sendPicture(MWAWPosition const &position, MWAWGraphicStyle const &style, int pId);
140 bool sendText(PowerPoint1ParserInternal::TextZone const &textZone, MWAWVec2i tId, int rulerId);
142 bool sendSlideNote(PowerPoint1ParserInternal::Slide const &slide);
143
144 //
145 // low level
146 //
147
149 bool getColor(int colorId, int schemeId, MWAWColor &color) const;
151 void checkForUnparsedZones();
152 protected:
153 //
154 // data
155 //
157 std::shared_ptr<PowerPoint1ParserInternal::State> m_state;
158 };
159 #endif
160 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
PowerPoint1ParserInternal::State::m_slidesIdList
std::vector< int > m_slidesIdList[2]
the list of slides ids: 0 (master, slide 1, slide 2, ...), 1 (handout slide)
Definition: PowerPoint1Parser.cxx:243
PowerPoint1ParserInternal::SubDocument::m_rulerId
int m_rulerId
the ruler id
Definition: PowerPoint1Parser.cxx:348
MWAWEntry
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
libmwaw::PrinterRect::size
MWAWVec2i size() const
returns the size
Definition: MWAWPrinter.hxx:56
MWAWField::Time
@ Time
Definition: libmwaw_internal.hxx:401
MWAWParagraph::m_justify
MWAWVariable< Justification > m_justify
the justification
Definition: MWAWParagraph.hxx:167
PowerPoint1ParserInternal::Frame::m_cornerSize
int m_cornerSize
the corner width
Definition: PowerPoint1Parser.cxx:162
MWAWInputStreamPtr
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
PowerPoint1ParserInternal::Slide::m_useMasterPage
bool m_useMasterPage
a flag to know if we need to use the master page
Definition: PowerPoint1Parser.cxx:185
PowerPoint1ParserInternal::Ruler::Outline
the outline
Definition: PowerPoint1Parser.cxx:66
MWAWTabStop::LEFT
@ LEFT
Definition: MWAWParagraph.hxx:48
MWAWParser::getFontConverter
MWAWFontConverterPtr & getFontConverter()
returns the font converter
Definition: MWAWParser.hxx:150
PowerPoint1Parser::readZoneIdList2
bool readZoneIdList2(MWAWEntry const &entry, int zId)
try to read a zone id list zone for v2 pc file
Definition: PowerPoint1Parser.cxx:1664
MWAWPageSpan::PORTRAIT
@ PORTRAIT
Definition: MWAWPageSpan.hxx:102
PowerPoint1Parser::readSlide
bool readSlide(MWAWEntry const &entry, std::vector< int > &slideIds)
try to read a slide zone, update the list of slide ids
Definition: PowerPoint1Parser.cxx:1143
PowerPoint1Parser::readSchemes
bool readSchemes()
try to read the schemes
Definition: PowerPoint1Parser.cxx:2182
MWAWBorder::Triple
@ Triple
Definition: libmwaw_internal.hxx:337
PowerPoint1ParserInternal::State::m_isMacFile
bool m_isMacFile
flag to know if the file is a mac file or a pc file
Definition: PowerPoint1Parser.cxx:225
PowerPoint1ParserInternal::Frame
Internal: a frame of a PowerPoint1Parser.
Definition: PowerPoint1Parser.cxx:145
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
PowerPoint1Parser::parse
void parse(librevenge::RVNGPresentationInterface *documentInterface) final
virtual function used to parse the input
Definition: PowerPoint1Parser.cxx:416
MWAWVec2f
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
PowerPoint1ParserInternal::Ruler::Outline::m_margins
int m_margins[2]
the first margin and left margin
Definition: PowerPoint1Parser.cxx:87
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
MWAWGraphicStyle::setSurfaceColor
void setSurfaceColor(MWAWColor const &col, float opacity=1)
set the surface color
Definition: MWAWGraphicStyle.hxx:415
PowerPoint1ParserInternal::Frame::m_dimension
MWAWBox2i m_dimension
the dimension
Definition: PowerPoint1Parser.cxx:160
PowerPoint1Parser
the main class to read a Mac Microsoft PowerPoint v1, v2 files
Definition: PowerPoint1Parser.hxx:61
MWAWGraphicStyle::setShadowColor
void setShadowColor(MWAWColor const &col, float opacity=1)
set the shadow color
Definition: MWAWGraphicStyle.hxx:458
PowerPoint1Parser::createDocument
void createDocument(librevenge::RVNGPresentationInterface *documentInterface)
creates the listener which will be associated to the document
Definition: PowerPoint1Parser.cxx:448
MWAWParagraph::m_tabs
MWAWVariable< std::vector< MWAWTabStop > > m_tabs
the tabulations
Definition: MWAWParagraph.hxx:162
PowerPoint1Parser::readFramesList
bool readFramesList(MWAWEntry const &entry, std::vector< PowerPoint1ParserInternal::Frame > &frame, int schemeId)
try to read a frame zone in a page
Definition: PowerPoint1Parser.cxx:725
MWAWEntry::isParsed
bool isParsed() const
a flag to know if the entry was parsed or not
Definition: MWAWEntry.hxx:121
PowerPoint1ParserInternal
Internal: the structures of a PowerPoint1Parser.
Definition: PowerPoint1Parser.cxx:57
PowerPoint1ParserInternal::Frame::m_style
MWAWGraphicStyle m_style
the style
Definition: PowerPoint1Parser.cxx:164
PowerPoint1Parser::readScheme
bool readScheme(MWAWEntry const &entry, int id)
try to read a scheme
Definition: PowerPoint1Parser.cxx:2191
PowerPoint1Parser::readColors
bool readColors(MWAWEntry const &entry)
try to read a color list
Definition: PowerPoint1Parser.cxx:1925
PowerPoint1Parser::sendSlide
bool sendSlide(PowerPoint1ParserInternal::Slide const &slide, bool master)
try to send a slide
Definition: PowerPoint1Parser.cxx:2271
MWAWGraphicStyle::Arrow::plain
static Arrow plain()
returns a basic plain arrow
Definition: MWAWGraphicStyle.hxx:74
MWAWFont::boldBit
@ boldBit
Definition: MWAWFont.hxx:190
PowerPoint1ParserInternal::SubDocument::operator!=
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: PowerPoint1Parser.cxx:325
libmwaw::PrinterInfo::paper
PrinterRect paper() const
returns the paper rectangle
Definition: MWAWPrinter.cxx:222
PowerPoint1Parser::readTextZone
bool readTextZone(MWAWEntry const &entry, PowerPoint1ParserInternal::TextZone &zone)
try to read a text zone
Definition: PowerPoint1Parser.cxx:989
MWAWColor::white
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:250
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
PowerPoint1ParserInternal::TextZone::Line::m_justify
MWAWParagraph::Justification m_justify
the justification
Definition: PowerPoint1Parser.cxx:127
MWAWEntry::id
int id() const
returns the id
Definition: MWAWEntry.hxx:164
MWAWPageSpan::setMarginBottom
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:208
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:46
MWAWFontConverter.hxx
MWAWColor
the class to store a color
Definition: libmwaw_internal.hxx:192
MWAWEmbeddedObject
small class use to define a embedded object
Definition: libmwaw_internal.hxx:467
PowerPoint1ParserInternal::TextZone::empty
bool empty() const
return true if the zone has no text
Definition: PowerPoint1Parser.cxx:132
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
PowerPoint1ParserInternal::Frame::Frame
Frame()
constructor
Definition: PowerPoint1Parser.cxx:147
PowerPoint1Parser::readColorZone
bool readColorZone(MWAWEntry const &entry)
try to read a color zone, probably used to define the menu, ...
Definition: PowerPoint1Parser.cxx:1984
PowerPoint1Parser::readPictureDefinition
bool readPictureDefinition(MWAWEntry const &entry, size_t id)
try to read the picture definition: windows v2
Definition: PowerPoint1Parser.cxx:1514
PowerPoint1ParserInternal::State::m_zoneIds
int m_zoneIds[10]
the sequential zones id: picture list, ...
Definition: PowerPoint1Parser.cxx:253
MWAWPrinter.hxx
PowerPoint1ParserInternal::Scheme
a scheme of a PowerPoint1Parser
Definition: PowerPoint1Parser.cxx:97
PowerPoint1ParserInternal::TextZone::TextZone
TextZone()
constructor
Definition: PowerPoint1Parser.cxx:104
PowerPoint1ParserInternal::TextZone::Line::Line
Line()
constructor
Definition: PowerPoint1Parser.cxx:112
MWAWParagraph
class to store the paragraph properties
Definition: MWAWParagraph.hxx:85
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
MWAWFont::Line::Simple
@ Simple
Definition: MWAWFont.hxx:49
PowerPoint1ParserInternal::State::m_schemesIdList
std::vector< int > m_schemesIdList
the list of scheme id
Definition: PowerPoint1Parser.cxx:247
MWAWBorder::m_width
double m_width
the border total width in point
Definition: libmwaw_internal.hxx:387
PowerPoint1ParserInternal::Ruler::Outline::m_interlines
int m_interlines[2]
the interline and paragraph spacing
Definition: PowerPoint1Parser.cxx:89
libmwaw::PrinterInfo
the AppleŠ printer information : TPrint
Definition: MWAWPrinter.hxx:82
PowerPoint1ParserInternal::State::m_unit
float m_unit
the data unit: 1 if the file is a mac file, 1/8 if the file is a windows file
Definition: PowerPoint1Parser.cxx:227
MWAWEntry::setParsed
void setParsed(bool ok=true) const
sets the flag m_parsed to true or false
Definition: MWAWEntry.hxx:126
PowerPoint1Parser::readDocInfo
bool readDocInfo(MWAWEntry const &entry)
try to read the document info zone
Definition: PowerPoint1Parser.cxx:1301
PowerPoint1ParserInternal::Slide::m_textZones
TextZone m_textZones[2]
the textzone: main's and note's zone
Definition: PowerPoint1Parser.cxx:181
PowerPoint1ParserInternal::TextZone::m_lineList
std::vector< Line > m_lineList
the line list
Definition: PowerPoint1Parser.cxx:140
libmwaw::DebugFile::addNote
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
PowerPoint1ParserInternal::SubDocument::SubDocument
SubDocument(PowerPoint1Parser &pars, MWAWInputStreamPtr const &input, TextZone const *textZone, MWAWVec2i const &tId, int rulerId)
constructor for text
Definition: PowerPoint1Parser.cxx:303
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
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:363
MWAWTabStop::DECIMAL
@ DECIMAL
Definition: MWAWParagraph.hxx:48
PowerPoint1Parser::readListZones
bool readListZones(int &docInfoId)
try to read the list of zones
Definition: PowerPoint1Parser.cxx:574
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
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
MWAWField::Date
@ Date
Definition: libmwaw_internal.hxx:401
PowerPoint1ParserInternal::Scheme::m_colors
MWAWColor m_colors[8]
the color: back, foreground, accents
Definition: PowerPoint1Parser.cxx:99
MWAWPresentationListener.hxx
MWAWGraphicStyle::resetBorders
void resetBorders()
reset the border
Definition: MWAWGraphicStyle.hxx:490
PowerPoint1ParserInternal::SubDocument
Internal: the subdocument of a PowerPointParser.
Definition: PowerPoint1Parser.cxx:300
MWAWParser::asciiName
std::string const & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
MWAWTabStop
class to store a tab use by MWAWParagraph
Definition: MWAWParagraph.hxx:46
MWAWGraphicStyle::Pattern
a basic pattern used in a MWAWGraphicStyle:
Definition: MWAWGraphicStyle.hxx:277
MWAWSubDocument.hxx
PowerPoint1ParserInternal::State::m_badEntry
MWAWEntry m_badEntry
an entry used by getZoneEntry if it does not find the zone
Definition: PowerPoint1Parser.cxx:255
MWAWPageSpan::setFormLength
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:178
PowerPoint1ParserInternal::State::m_picturesIdList
std::vector< int > m_picturesIdList
the list of pictures id
Definition: PowerPoint1Parser.cxx:245
MWAWPageSpan::setMasterPageName
void setMasterPageName(librevenge::RVNGString const &name)
set the page master name
Definition: MWAWPageSpan.hxx:243
MWAWDocument::MWAW_T_POWERPOINT
@ MWAW_T_POWERPOINT
PowerPoint: v1-v4 and pc v2-v4,95.
Definition: MWAWDocument.hxx:219
libmwaw::SubDocumentType
SubDocumentType
Definition: libmwaw_internal.hxx:188
PowerPoint1ParserInternal::SubDocument::m_slide
Slide const * m_slide
the slide
Definition: PowerPoint1Parser.cxx:342
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
libmwaw::DebugFile::reset
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:93
MWAWBorder::m_widthsList
std::vector< double > m_widthsList
the different length used for each line/sep (if defined)
Definition: libmwaw_internal.hxx:391
PowerPoint1ParserInternal::Ruler::m_outlines
Outline m_outlines[5]
the outline
Definition: PowerPoint1Parser.cxx:94
PowerPoint1Parser::readPicture
bool readPicture(MWAWEntry const &entry, MWAWEmbeddedObject &picture)
try to read a picture zone
Definition: PowerPoint1Parser.cxx:1579
MWAWParagraph::JustificationCenter
@ JustificationCenter
Definition: MWAWParagraph.hxx:90
MWAWGraphicStyle::emptyStyle
static MWAWGraphicStyle emptyStyle()
returns an empty style.
Definition: MWAWGraphicStyle.hxx:401
MWAWParagraph::Justification
Justification
an enum used to defined the paragraph justification: left, center, right, full ...
Definition: MWAWParagraph.hxx:90
MWAWFont::shadowBit
@ shadowBit
Definition: MWAWFont.hxx:191
MWAWParser::setAsciiName
void setAsciiName(char const *name)
Debugging: change the default ascii file.
Definition: MWAWParser.hxx:227
MWAWParagraph.hxx
PowerPoint1ParserInternal::Ruler::Outline::Outline
Outline()
constructor
Definition: PowerPoint1Parser.cxx:68
libmwaw::DebugFile::skipZone
void skipZone(long beginPos, long endPos)
skips the file zone defined by beginPos-endPos
Definition: MWAWDebug.hxx:113
PowerPoint1ParserInternal::State::getPattern
bool getPattern(int id, MWAWGraphicStyle::Pattern &pattern) const
try to return a pattern
Definition: PowerPoint1Parser.cxx:258
PowerPoint1Parser::checkForUnparsedZones
void checkForUnparsedZones()
check for unparsed zone
Definition: PowerPoint1Parser.cxx:692
PowerPoint1ParserInternal::State::State
State()
constructor
Definition: PowerPoint1Parser.cxx:194
MWAWVec2::y
T y() const
second element
Definition: libmwaw_internal.hxx:673
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:508
MWAWPageSpan::setFormWidth
void setFormWidth(const double formWidth)
set the total page width
Definition: MWAWPageSpan.hxx:183
MWAWPosition.hxx
PowerPoint1ParserInternal::Slide::m_schemeId
int m_schemeId
the scheme id
Definition: PowerPoint1Parser.cxx:187
MWAWVec2::x
T x() const
first element
Definition: libmwaw_internal.hxx:668
PowerPoint1ParserInternal::Frame::m_pictureId
int m_pictureId
the picture id
Definition: PowerPoint1Parser.cxx:168
MWAWPresentationParser
virtual class which defines the ancestor of all presentation zone parser
Definition: MWAWParser.hxx:267
MWAWPosition
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
MWAWBorder
a border
Definition: libmwaw_internal.hxx:333
MWAWEntry::setBegin
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:67
PowerPoint1ParserInternal::Slide::m_framesList
std::vector< Frame > m_framesList[2]
the list of frames: main's and note's list of frame
Definition: PowerPoint1Parser.cxx:183
MWAWColor::isBlack
bool isBlack() const
return true if the color is black
Definition: libmwaw_internal.hxx:284
PowerPoint1Parser::readZoneIdList
bool readZoneIdList(MWAWEntry const &entry, int zId)
try to read a zone id list zone
Definition: PowerPoint1Parser.cxx:1608
PowerPoint1ParserInternal::SubDocument::SubDocument
SubDocument(SubDocument const &)=delete
MWAWParser::setVersion
void setVersion(int vers)
sets the document's version
Definition: MWAWParser.hxx:206
MWAWGraphicStyle::Pattern::m_dim
MWAWVec2i m_dim
the dimension width x height
Definition: MWAWGraphicStyle.hxx:358
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
MWAWGraphicStyle::setBorders
void setBorders(int wh, MWAWBorder const &border)
sets the cell border: wh=libmwaw::LeftBit|...
Definition: MWAWGraphicStyle.cxx:232
MWAWListener::PageBreak
@ PageBreak
Definition: MWAWListener.hxx:58
PowerPoint1ParserInternal::State::m_rulersList
std::vector< Ruler > m_rulersList
the ruler
Definition: PowerPoint1Parser.cxx:235
libmwaw::DebugFile::setStream
void setStream(MWAWInputStreamPtr const &ip)
resets the input
Definition: MWAWDebug.hxx:81
MWAWVec2< int >
MWAWTabStop::m_alignment
Alignment m_alignment
the alignment ( left, center, ...)
Definition: MWAWParagraph.hxx:76
MWAWGraphicShape.hxx
libmwaw::ParseException
Definition: libmwaw_internal.hxx:144
MWAWDebug.hxx
PowerPoint1Parser::getColor
bool getColor(int colorId, int schemeId, MWAWColor &color) const
try to return a color corresponding to a scheme and color
Definition: PowerPoint1Parser.cxx:396
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:57
MWAWEntry::begin
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:83
MWAWEntry::setLength
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:72
MWAWParser::getPageSpan
MWAWPageSpan const & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
MWAWGraphicStyle::m_arrows
Arrow m_arrows[2]
the two arrows corresponding to start and end extremity
Definition: MWAWGraphicStyle.hxx:553
PowerPoint1Parser::readRulers
bool readRulers(MWAWEntry const &entry)
try to read the paragraph style
Definition: PowerPoint1Parser.cxx:1794
MWAWGraphicStyle::setPattern
void setPattern(Pattern const &pat, float opacity=1)
set the pattern
Definition: MWAWGraphicStyle.hxx:426
MWAWColor::black
static MWAWColor black()
return the back color
Definition: libmwaw_internal.hxx:245
PowerPoint1Parser::readZone2
bool readZone2(MWAWEntry const &entry)
try to read a unknown zone with size 22: related to scheme?
Definition: PowerPoint1Parser.cxx:2247
MWAWTabStop::m_position
double m_position
the tab position
Definition: MWAWParagraph.hxx:74
PowerPoint1Parser::PowerPoint1Parser
PowerPoint1Parser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: PowerPoint1Parser.cxx:385
MWAWFont::setId
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:264
MWAWParser::getPresentationListener
MWAWPresentationListenerPtr & getPresentationListener()
returns the presentation listener
Definition: MWAWParser.hxx:135
PowerPoint1ParserInternal::SubDocument::m_textZone
TextZone const * m_textZone
the text zone
Definition: PowerPoint1Parser.cxx:344
MWAWEntry::setId
void setId(int newId)
sets the id
Definition: MWAWEntry.hxx:169
PowerPoint1ParserInternal::TextZone::Line::m_text
MWAWEntry m_text
the text entry
Definition: PowerPoint1Parser.cxx:121
PowerPoint1ParserInternal::TextZone::m_schemeId
int m_schemeId
the scheme id (if v2)
Definition: PowerPoint1Parser.cxx:142
PowerPoint1Parser::createZones
bool createZones()
finds the different zones
Definition: PowerPoint1Parser.cxx:484
MWAWField
a field
Definition: libmwaw_internal.hxx:399
PowerPoint1ParserInternal::TextZone::Line::m_ruler
MWAWEntry m_ruler
the ruler entry (windows v2)
Definition: PowerPoint1Parser.cxx:125
MWAWField::PageNumber
@ PageNumber
Definition: libmwaw_internal.hxx:401
PowerPoint1Parser::checkHeader
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: PowerPoint1Parser.cxx:2594
PowerPoint1Parser::sendSlides
void sendSlides()
try to send all slides
Definition: PowerPoint1Parser.cxx:660
PowerPoint1ParserInternal::State::m_zoneListBegin
long m_zoneListBegin
the begin position of the list of zones
Definition: PowerPoint1Parser.cxx:229
MWAWPageSpan::setMarginTop
void setMarginTop(const double marginTop)
set the page top margin
Definition: MWAWPageSpan.hxx:203
MWAWParagraph::JustificationLeft
@ JustificationLeft
Definition: MWAWParagraph.hxx:90
libmwaw::PrinterInfo::read
bool read(MWAWInputStreamPtr input)
reads the struture in a file
Definition: MWAWPrinter.cxx:235
MWAWGraphicStyle::Pattern::m_colors
MWAWColor m_colors[2]
the two indexed colors
Definition: MWAWGraphicStyle.hxx:361
MWAWParser::getParserState
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
PowerPoint1ParserInternal::SubDocument::parse
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: PowerPoint1Parser.cxx:355
PowerPoint1ParserInternal::State::m_idToSlideMap
std::map< int, Slide > m_idToSlideMap
a map between zoneId and slide
Definition: PowerPoint1Parser.cxx:237
PowerPoint1ParserInternal::TextZone
Internal: a text zone of a PowerPoint1Parser.
Definition: PowerPoint1Parser.cxx:102
PowerPoint1ParserInternal::Ruler::Outline::operator<<
friend std::ostream & operator<<(std::ostream &o, Outline const &outline)
operator<<
Definition: PowerPoint1Parser.cxx:74
PowerPoint1Parser::readRuler
bool readRuler(MWAWEntry const &entry, size_t id)
try to read some ruler: windows v2
Definition: PowerPoint1Parser.cxx:1856
MWAWHeader.hxx
Defines MWAWHeader (document's type, version, kind)
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
PowerPoint1ParserInternal::State::m_slideIds
int m_slideIds[2]
the slide id
Definition: PowerPoint1Parser.cxx:249
MWAWGraphicStyle::m_lineColor
MWAWColor m_lineColor
the line color
Definition: MWAWGraphicStyle.hxx:516
PowerPoint1ParserInternal::Slide
Internal: a slide of a PowerPoint1Parser.
Definition: PowerPoint1Parser.cxx:173
PowerPoint1ParserInternal::Ruler::Ruler
Ruler()
constructor
Definition: PowerPoint1Parser.cxx:61
PowerPoint1ParserInternal::Frame::m_textId
MWAWVec2i m_textId
the text sub id: first and last id
Definition: PowerPoint1Parser.cxx:170
MWAWBox2i
MWAWBox2< int > MWAWBox2i
MWAWBox2 of int.
Definition: libmwaw_internal.hxx:1191
PowerPoint1ParserInternal::TextZone::Line
small structure used to store a line of text and its format
Definition: PowerPoint1Parser.cxx:110
MWAWBorder::Double
@ Double
Definition: libmwaw_internal.hxx:337
MWAWGraphicStyle.hxx
MWAWFont::italicBit
@ italicBit
Definition: MWAWFont.hxx:190
MWAWParagraph::m_marginsUnit
MWAWVariable< librevenge::RVNGUnit > m_marginsUnit
the margins INCH, ...
Definition: MWAWParagraph.hxx:150
PowerPoint1ParserInternal::SubDocument::SubDocument
SubDocument(PowerPoint1Parser &pars, MWAWInputStreamPtr const &input, Slide const *slide)
constructor for slide note
Definition: PowerPoint1Parser.cxx:312
PowerPoint1ParserInternal::State::m_idToSchemeMap
std::map< int, Scheme > m_idToSchemeMap
a map between schemeId and scheme
Definition: PowerPoint1Parser.cxx:239
MWAWParser::getInput
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
MWAWPresentationListener
This class contains code needed to write a presention document.
Definition: MWAWPresentationListener.hxx:60
PowerPoint1ParserInternal::Slide::Slide
Slide()
constructor
Definition: PowerPoint1Parser.cxx:175
PowerPoint1ParserInternal::TextZone::Line::m_outlineLevel
int m_outlineLevel
the outline level
Definition: PowerPoint1Parser.cxx:129
PowerPoint1ParserInternal::Ruler
Internal: a ruler.
Definition: PowerPoint1Parser.cxx:59
MWAWPosition::Page
@ Page
Definition: MWAWPosition.hxx:51
PowerPoint1ParserInternal::SubDocument::operator=
SubDocument & operator=(SubDocument const &)=delete
PowerPoint1ParserInternal::State::m_origin
MWAWVec2i m_origin
the origin
Definition: PowerPoint1Parser.cxx:233
MWAWSubDocument::m_parser
MWAWParser * m_parser
the main zone parser
Definition: MWAWSubDocument.hxx:75
MWAWParagraph::JustificationFull
@ JustificationFull
Definition: MWAWParagraph.hxx:90
PowerPoint1Parser::sendPicture
bool sendPicture(MWAWPosition const &position, MWAWGraphicStyle const &style, int pId)
try to send a picture
Definition: PowerPoint1Parser.cxx:2314
MWAWParagraph::JustificationRight
@ JustificationRight
Definition: MWAWParagraph.hxx:91
PowerPoint1ParserInternal::State::m_printInfoIds
int m_printInfoIds[2]
the printInfo id
Definition: PowerPoint1Parser.cxx:251
libmwaw::DebugFile::addPos
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
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
libmwaw::PrinterInfo::page
PrinterRect page() const
returns the page rectangle
Definition: MWAWPrinter.cxx:218
PowerPoint1Parser::readFonts
bool readFonts(MWAWEntry const &entry)
try to read a font style list
Definition: PowerPoint1Parser.cxx:2048
MWAWBox2::size
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1067
PowerPoint1Parser::m_state
std::shared_ptr< PowerPoint1ParserInternal::State > m_state
the state
Definition: PowerPoint1Parser.hxx:157
PowerPoint1Parser::sendFrame
bool sendFrame(PowerPoint1ParserInternal::Frame const &frame, PowerPoint1ParserInternal::TextZone const &textZone)
try to send a frame zone
Definition: PowerPoint1Parser.cxx:2545
PowerPoint1Parser::sendText
bool sendText(PowerPoint1ParserInternal::TextZone const &textZone, MWAWVec2i tId, int rulerId)
try to send a text zone
Definition: PowerPoint1Parser.cxx:2336
PowerPoint1ParserInternal::State::getZoneEntry
MWAWEntry const & getZoneEntry(int id) const
try to return a zone
Definition: PowerPoint1Parser.cxx:213
PowerPoint1Parser::sendSlideNote
bool sendSlideNote(PowerPoint1ParserInternal::Slide const &slide)
try to send the slide note text
Definition: PowerPoint1Parser.cxx:2291
PowerPoint1ParserInternal::Ruler::m_tabs
std::vector< MWAWTabStop > m_tabs
the tabs
Definition: PowerPoint1Parser.cxx:92
MWAWInputStream.hxx
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
PowerPoint1ParserInternal::TextZone::Line::m_format
MWAWEntry m_format
the format entry
Definition: PowerPoint1Parser.cxx:123
PowerPoint1ParserInternal::State::m_zonesList
std::vector< MWAWEntry > m_zonesList
the list of zone entries
Definition: PowerPoint1Parser.cxx:231
MWAWFont.hxx
MWAWPosition::m_anchorTo
AnchorTo m_anchorTo
anchor position
Definition: MWAWPosition.hxx:270
librevenge
Definition: MWAWDocument.hxx:57
PowerPoint1ParserInternal::State::m_idToUserColorMap
std::map< int, MWAWColor > m_idToUserColorMap
a map between colorId and user color map
Definition: PowerPoint1Parser.cxx:241
PowerPoint1ParserInternal::SubDocument::~SubDocument
~SubDocument() final
destructor
Definition: PowerPoint1Parser.cxx:322
MWAWTabStop::RIGHT
@ RIGHT
Definition: MWAWParagraph.hxx:48
MWAWBox2< int >
MWAWFont
Class to store font.
Definition: MWAWFont.hxx:44
PowerPoint1ParserInternal::State
Internal: the state of a PowerPoint1Parser.
Definition: PowerPoint1Parser.cxx:192
PowerPoint1ParserInternal::Frame::m_type
int m_type
the type: 0:line, 1:rect, 2: textbox, ...
Definition: PowerPoint1Parser.cxx:158
PowerPoint1ParserInternal::Frame::m_rulerId
int m_rulerId
the paragraph id
Definition: PowerPoint1Parser.cxx:166
PowerPoint1Parser::~PowerPoint1Parser
~PowerPoint1Parser() final
destructor
Definition: PowerPoint1Parser.cxx:392
MWAWGraphicStyle::m_shadowOffset
MWAWVec2f m_shadowOffset
the shadow offset
Definition: MWAWGraphicStyle.hxx:527
PowerPoint1Parser::readPrintInfo
bool readPrintInfo(MWAWEntry const &entry)
try to read a print info zone
Definition: PowerPoint1Parser.cxx:1764
PowerPoint1Parser::readFontNames
bool readFontNames(MWAWEntry const &entry)
try to read a font names list
Definition: PowerPoint1Parser.cxx:2105
MWAWGraphicShape::rectangle
static MWAWGraphicShape rectangle(MWAWBox2f const &box, MWAWVec2f const &corners=MWAWVec2f(0, 0))
static constructor to create a rectangle
Definition: MWAWGraphicShape.hxx:120
MWAWBorder::m_color
MWAWColor m_color
the border color
Definition: libmwaw_internal.hxx:393
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
libmwaw::DebugStream
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
MWAWParser.hxx
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:99
MWAWFont::setFlags
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:325
PowerPoint1ParserInternal::SubDocument::m_id
MWAWVec2i m_id
the text id in text zone
Definition: PowerPoint1Parser.cxx:346
PowerPoint1Parser.hxx