PowerPoint7Graph.hxx
Go to the documentation of this file.
/* -*- Mode: C++; c-default-style: "k&r"; indent-tabs-mode: nil; tab-width: 2; c-basic-offset: 2 -*- */
/* libmwaw
* Version: MPL 2.0 / LGPLv2+
*
* The contents of this file are subject to the Mozilla Public License Version
* 2.0 (the "License"); you may not use this file except in compliance with
* the License or as specified alternatively below. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* Major Contributor(s):
* Copyright (C) 2002 William Lachance (wrlach@gmail.com)
* Copyright (C) 2002,2004 Marc Maurer (uwog@uwog.net)
* Copyright (C) 2004-2006 Fridrich Strba (fridrich.strba@bluewin.ch)
* Copyright (C) 2006, 2007 Andrew Ziem
* Copyright (C) 2011, 2012 Alonso Laurent (alonso@loria.fr)
*
*
* All Rights Reserved.
*
* For minor contributions see the git repository.
*
* Alternatively, the contents of this file may be used under the terms of
* the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"),
* in which case the provisions of the LGPLv2+ are applicable
* instead of those above.
*/
/*
* Parser to PowerPoint 95 document ( graphic part )
*
*/
#ifndef POWER_POINT7_GRAPH
# define POWER_POINT7_GRAPH
#include <set>
#include <string>
#include <vector>
#include <librevenge/librevenge.h>
#include "libmwaw_internal.hxx"
#include "MWAWDebug.hxx"
#include "MWAWInputStream.hxx"
namespace PowerPoint7GraphInternal
{
struct Frame;
struct Picture;
struct State;
class SubDocument;
}
namespace PowerPoint7Struct
{
struct SlideId;
}
class PowerPoint7Parser;
class PowerPoint7Graph
{
friend class PowerPoint7Parser;
friend class PowerPoint7GraphInternal::SubDocument;
public:
explicit PowerPoint7Graph(PowerPoint7Parser &parser);
virtual ~PowerPoint7Graph();
int version() const;
void setPageSize(MWAWVec2i const &pageSize);
void setSlideId(PowerPoint7Struct::SlideId const &id);
void setColorList(std::vector<MWAWColor> const &colorList);
protected:
bool sendSlide(PowerPoint7Struct::SlideId const &id, bool sendBackground);
bool sendFrame(PowerPoint7GraphInternal::Frame const &frame, bool master);
bool sendText(int textId);
//
// Intermediate level
//
bool readBitmapContainer(int level, long endPos, PowerPoint7GraphInternal::Picture &picture);
bool readPictureList(int level, long endPos);
bool readBitmap(int level, long endPos, MWAWEmbeddedObject &object, MWAWBox2i &box);
bool readBitmapFlag(int level, long endPos);
bool readPictureContainer(int level, long endPos, PowerPoint7GraphInternal::Picture &picture);
bool readPictureIdContainer(int level, long endPos, int &id);
bool readPictureId(int level, long endPos, int &id);
bool readMetaFile(int level, long endPos, MWAWEmbeddedObject &object);
bool readMetaFileContainer(int level, long endPos, PowerPoint7GraphInternal::Picture &picture);
bool readMetaFileBox(int level, long endPos, MWAWBox2i &box);
bool readExternalOleObjectAtom(int level, long endPos);
bool readExternalOleEmbed(int level, long endPos, int &id);
bool readExternalOleEmbedAtom(int level, long endPos);
bool readGroup(int level, long endPos);
bool readGroupAtom(int level, long endPos);
bool readStyle(int level, long endPos);
bool readLineArrows(int level, long endPos);
bool readRect(int level, long endPos);
bool readRectAtom(int level, long endPos);
bool readPlaceholderContainer(int level, long endPos);
bool readPlaceholderAtom(int level, long endPos);
bool readLine(int level, long endPos);
bool readLineAtom(int level, long endPos);
bool readPolygon(int level, long endPos);
bool readPolygonAtom(int level, long endPos);
bool readArc(int level, long endPos);
bool readArcAtom(int level, long endPos);
bool readPointList(int level, long endPos, std::vector<MWAWVec2i> &points);
bool readZoneFlags(int level, long endPos);
bool readZone5000(int level, long endPos);
bool readZone5000Header(int level, long endPos);
bool readZone5000Data(int level, long endPos);
//
// low level
//
private:
PowerPoint7Graph(PowerPoint7Graph const &orig) = delete;
PowerPoint7Graph &operator=(PowerPoint7Graph const &orig) = delete;
protected:
//
// data
//
MWAWParserStatePtr m_parserState;
std::shared_ptr<PowerPoint7GraphInternal::State> m_state;
PowerPoint7Parser *m_mainParser;
};
#endif
// vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
MWAWDebug.hxx
MWAWInputStream.hxx
PowerPoint7GraphInternal::SubDocument
Internal: the subdocument of a PowerPoint7Graph.
Definition PowerPoint7Graph.cxx:572
PowerPoint7Graph::readPictureIdContainer
bool readPictureIdContainer(int level, long endPos, int &id)
try to read the picture id container zone 4053
Definition PowerPoint7Graph.cxx:2491
PowerPoint7Graph::m_mainParser
PowerPoint7Parser * m_mainParser
the main parser;
Definition PowerPoint7Graph.hxx:193
PowerPoint7Graph::readZone5000Data
bool readZone5000Data(int level, long endPos)
try to read the zone 5000 data: 5002
Definition PowerPoint7Graph.cxx:2617
PowerPoint7Graph::readZoneFlags
bool readZoneFlags(int level, long endPos)
try to read the graph zone flags zone 3036
Definition PowerPoint7Graph.cxx:1863
PowerPoint7Graph::setPageSize
void setPageSize(MWAWVec2i const &pageSize)
sets the page size
Definition PowerPoint7Graph.cxx:658
PowerPoint7Graph::readExternalOleObjectAtom
bool readExternalOleObjectAtom(int level, long endPos)
try to read the external ole object atom zone: 4035
Definition PowerPoint7Graph.cxx:2289
PowerPoint7Graph::m_parserState
MWAWParserStatePtr m_parserState
the parser state
Definition PowerPoint7Graph.hxx:187
PowerPoint7Graph::readBitmap
bool readBitmap(int level, long endPos, MWAWEmbeddedObject &object, MWAWBox2i &box)
try to read a bitmap zone 2012
Definition PowerPoint7Graph.cxx:2022
PowerPoint7Graph::readLineAtom
bool readLineAtom(int level, long endPos)
try to read the graph line atom zone 3015
Definition PowerPoint7Graph.cxx:1571
PowerPoint7Graph::readPlaceholderAtom
bool readPlaceholderAtom(int level, long endPos)
try to read the place holder atom zone 3011
Definition PowerPoint7Graph.cxx:1485
PowerPoint7Graph::sendText
bool sendText(int textId)
try to send the text content
Definition PowerPoint7Graph.cxx:2828
PowerPoint7Graph::readPictureContainer
bool readPictureContainer(int level, long endPos, PowerPoint7GraphInternal::Picture &picture)
try to read the picture container 4028
Definition PowerPoint7Graph.cxx:2413
PowerPoint7Graph::sendSlide
bool sendSlide(PowerPoint7Struct::SlideId const &id, bool sendBackground)
try to send the slide content
Definition PowerPoint7Graph.cxx:2669
PowerPoint7Graph::readPictureId
bool readPictureId(int level, long endPos, int &id)
try to read the picture id 4036
Definition PowerPoint7Graph.cxx:2458
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:2537
PowerPoint7Graph::readArc
bool readArc(int level, long endPos)
try to read the graph arc zone 3018
Definition PowerPoint7Graph.cxx:1711
PowerPoint7Graph::readPolygonAtom
bool readPolygonAtom(int level, long endPos)
try to read the polygon atom zone 3017
Definition PowerPoint7Graph.cxx:1666
PowerPoint7Graph::readPictureList
bool readPictureList(int level, long endPos)
try to read the font collection 10 zone 2006
Definition PowerPoint7Graph.cxx:1902
PowerPoint7Graph::readPlaceholderContainer
bool readPlaceholderContainer(int level, long endPos)
try to read a place holder container 3010
Definition PowerPoint7Graph.cxx:1416
PowerPoint7Graph::readLine
bool readLine(int level, long endPos)
try to read the line graph zone 3014
Definition PowerPoint7Graph.cxx:1518
PowerPoint7Graph::readPointList
bool readPointList(int level, long endPos, std::vector< MWAWVec2i > &points)
try to read the list of point zone 3035
Definition PowerPoint7Graph.cxx:1822
PowerPoint7Graph::readGroup
bool readGroup(int level, long endPos)
try to read the group zone
Definition PowerPoint7Graph.cxx:679
PowerPoint7Graph::setSlideId
void setSlideId(PowerPoint7Struct::SlideId const &id)
sets the slide id
Definition PowerPoint7Graph.cxx:663
PowerPoint7Graph::PowerPoint7Parser
friend class PowerPoint7Parser
Definition PowerPoint7Graph.hxx:75
PowerPoint7Graph::readExternalOleEmbed
bool readExternalOleEmbed(int level, long endPos, int &id)
try to read the external ole embed zone 4044
Definition PowerPoint7Graph.cxx:2322
PowerPoint7Graph::readGroupAtom
bool readGroupAtom(int level, long endPos)
try to read the zone 3002
Definition PowerPoint7Graph.cxx:737
PowerPoint7Graph::readMetaFile
bool readMetaFile(int level, long endPos, MWAWEmbeddedObject &object)
try to read the meta file zone 4033
Definition PowerPoint7Graph.cxx:2208
PowerPoint7Graph::operator=
PowerPoint7Graph & operator=(PowerPoint7Graph const &orig)=delete
PowerPoint7Graph::m_state
std::shared_ptr< PowerPoint7GraphInternal::State > m_state
the state
Definition PowerPoint7Graph.hxx:190
PowerPoint7Graph::readMetaFileBox
bool readMetaFileBox(int level, long endPos, MWAWBox2i &box)
try to read the meta file box zone 4038
Definition PowerPoint7Graph.cxx:2249
PowerPoint7Graph::setColorList
void setColorList(std::vector< MWAWColor > const &colorList)
sets the color list
Definition PowerPoint7Graph.cxx:668
PowerPoint7Graph::version
int version() const
returns the file version
Definition PowerPoint7Graph.cxx:653
PowerPoint7Graph::readLineArrows
bool readLineArrows(int level, long endPos)
try to read the line arrow zone 3007
Definition PowerPoint7Graph.cxx:1190
PowerPoint7Graph::PowerPoint7Graph
PowerPoint7Graph(PowerPoint7Parser &parser)
constructor
Definition PowerPoint7Graph.cxx:643
PowerPoint7Graph::PowerPoint7Graph
PowerPoint7Graph(PowerPoint7Graph const &orig)=delete
PowerPoint7Graph::readRect
bool readRect(int level, long endPos)
try to read the graph rectangle zone 3008
Definition PowerPoint7Graph.cxx:1228
PowerPoint7Graph::readPolygon
bool readPolygon(int level, long endPos)
try to read the polygon zone 3016
Definition PowerPoint7Graph.cxx:1609
PowerPoint7Graph::sendFrame
bool sendFrame(PowerPoint7GraphInternal::Frame const &frame, bool master)
try to send a frame
Definition PowerPoint7Graph.cxx:2707
PowerPoint7Graph::readExternalOleEmbedAtom
bool readExternalOleEmbedAtom(int level, long endPos)
try to read the external ole object atom zone: 4045
Definition PowerPoint7Graph.cxx:2380
PowerPoint7Graph::readZone5000Header
bool readZone5000Header(int level, long endPos)
try to read the zone 5000 header: 5001
Definition PowerPoint7Graph.cxx:2585
PowerPoint7Graph::readBitmapFlag
bool readBitmapFlag(int level, long endPos)
try to read the bitmap type zone 3038
Definition PowerPoint7Graph.cxx:2127
PowerPoint7Graph::readMetaFileContainer
bool readMetaFileContainer(int level, long endPos, PowerPoint7GraphInternal::Picture &picture)
try to read the meta file container zone 4037
Definition PowerPoint7Graph.cxx:2160
PowerPoint7Graph::readBitmapContainer
bool readBitmapContainer(int level, long endPos, PowerPoint7GraphInternal::Picture &picture)
try to read the bitmap container zone 1027
Definition PowerPoint7Graph.cxx:1969
PowerPoint7Graph::~PowerPoint7Graph
virtual ~PowerPoint7Graph()
destructor
Definition PowerPoint7Graph.cxx:650
PowerPoint7Graph::readArcAtom
bool readArcAtom(int level, long endPos)
try to read the graph arc atom 3019
Definition PowerPoint7Graph.cxx:1764
PowerPoint7Graph::readRectAtom
bool readRectAtom(int level, long endPos)
try to read the graph shape zone 3009
Definition PowerPoint7Graph.cxx:1315
PowerPoint7Graph::readStyle
bool readStyle(int level, long endPos)
try to read the graphic style zone 3005
Definition PowerPoint7Graph.cxx:770
PowerPoint7Parser
the main class to read a Microsoft PowerPoint 95 files (Windows)
Definition PowerPoint7Parser.hxx:62
libmwaw_internal.hxx
MWAWVec2i
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition libmwaw_internal.hxx:838
MWAWBox2i
MWAWBox2< int > MWAWBox2i
MWAWBox2 of int.
Definition libmwaw_internal.hxx:1191
MWAWParserStatePtr
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition libmwaw_internal.hxx:557
PowerPoint7GraphInternal
Internal: the structures of a PowerPoint7Graph.
Definition PowerPoint7Graph.cxx:60
PowerPoint7Struct
namespace used to define basic struct of a Microsoft PowerPoint 95 files (Windows)
Definition PowerPoint7Graph.hxx:62
MWAWEmbeddedObject
small class use to define a embedded object
Definition libmwaw_internal.hxx:467
PowerPoint7GraphInternal::Frame
Internal: a frame of a PowerPoint7Graph.
Definition PowerPoint7Graph.cxx:64
PowerPoint7GraphInternal::Picture
Internal: a picture of a PowerPoint7Graph.
Definition PowerPoint7Graph.cxx:278
PowerPoint7GraphInternal::State
Internal: the state of a PowerPoint7Graph.
Definition PowerPoint7Graph.cxx:301
PowerPoint7Struct::SlideId
a slide id
Definition PowerPoint7Struct.hxx:50