RagTime5Graph Class Reference

the main class to read the graphic part of RagTime 56 file More...

#include <RagTime5Graph.hxx>

Public Member Functions

 RagTime5Graph (RagTime5Parser &parser)
 constructor More...
 
virtual ~RagTime5Graph ()
 destructor More...
 
int version () const
 returns the file version More...
 
int numPages () const
 returns the number of pages More...
 

Protected Member Functions

void flushExtra ()
 sends the data which have not yet been sent to the listener More...
 
bool sendTextZone (MWAWListenerPtr listener, int zId, int pId)
 ask to send a text zone More...
 
bool readPictureContainer (RagTime5Zone &zone)
 try to read a picture data zone More...
 
bool readPictureData (RagTime5Zone &zone)
 try to read a picture data zone: ie. the zone which contains jpeg, tiff, ... More...
 
bool readPictureData (RagTime5Zone &zone, librevenge::RVNGBinaryData &data, std::string &type)
 try to read a picture data zone: ie. the zone which contains jpeg, tiff and then returns the picture content... More...
 
bool readPictureList (RagTime5Zone &zone)
 try to read a picture list More...
 
bool readPictureRep (RagTime5Zone &zone)
 try to read a picture rep More...
 
bool readPictureMatch (RagTime5Zone &zone, bool color)
 try to read a picture match zone More...
 
bool readGraphicTypes (RagTime5ClusterManager::Link const &link)
 try to read a main graphic types More...
 
bool readColorPatternZone (RagTime5ClusterManager::Cluster &cluster)
 try to read a zone of color and pattern More...
 
shared_ptr< RagTime5ClusterManager::ClusterreadGraphicCluster (RagTime5Zone &zone, int zoneType)
 try to read a graphic zone More...
 
bool readGraphicUnknown (int typeId)
 try to read a graphic unknown zone in data More...
 
bool readGraphicShapes (RagTime5GraphInternal::ClusterGraphic &cluster)
 try to read the graphic shapes of a cluster More...
 
bool readGraphicShape (RagTime5GraphInternal::ClusterGraphic &cluster, RagTime5Zone &dataZone, long endPos, int n, librevenge::RVNGString const &dataName)
 try to read a graphic More...
 
bool readGraphicTransformations (RagTime5ClusterManager::Link const &link)
 try to read a graphic transformations zone More...
 
shared_ptr< RagTime5ClusterManager::ClusterreadPictureCluster (RagTime5Zone &zone, int zoneType)
 try to read a picture zone More...
 
void checkGraphicCluster (RagTime5GraphInternal::ClusterGraphic &cluster)
 check the graphic cluster data: check if there is no loop, ... More...
 
bool send (int zoneId, MWAWListenerPtr listener, MWAWPosition const &pos)
 try to send the cluster zone More...
 
bool send (RagTime5GraphInternal::ClusterGraphic &cluster, MWAWListenerPtr listener, MWAWPosition const &pos)
 try to send the shapes of cluster zone More...
 
bool send (RagTime5GraphInternal::Shape const &shape, RagTime5GraphInternal::ClusterGraphic const &cluster, MWAWListenerPtr listener, MWAWPosition const &pos)
 try to send a shape of cluster zone More...
 
bool send (RagTime5GraphInternal::ClusterPicture &cluster, MWAWListenerPtr listener, MWAWPosition const &pos)
 try to send the picture of cluster zone More...
 

Protected Attributes

RagTime5Parserm_mainParser
 the parser More...
 
shared_ptr< RagTime5StructManagerm_structManager
 the structure manager More...
 
shared_ptr< RagTime5StyleManagerm_styleManager
 the style manager More...
 
MWAWParserStatePtr m_parserState
 the parser state More...
 
shared_ptr< RagTime5GraphInternal::Statem_state
 the state More...
 

Private Member Functions

 RagTime5Graph (RagTime5Graph const &orig)
 
RagTime5Graphoperator= (RagTime5Graph const &orig)
 

Friends

class RagTime5GraphInternal::SubDocument
 
class RagTime5Parser
 

Detailed Description

the main class to read the graphic part of RagTime 56 file

Constructor & Destructor Documentation

◆ RagTime5Graph() [1/2]

RagTime5Graph::RagTime5Graph ( RagTime5Parser parser)
explicit

constructor

◆ ~RagTime5Graph()

RagTime5Graph::~RagTime5Graph ( )
virtual

destructor

◆ RagTime5Graph() [2/2]

RagTime5Graph::RagTime5Graph ( RagTime5Graph const &  orig)
private

Member Function Documentation

◆ checkGraphicCluster()

void RagTime5Graph::checkGraphicCluster ( RagTime5GraphInternal::ClusterGraphic cluster)
protected

check the graphic cluster data: check if there is no loop, ...

Referenced by readGraphicCluster().

◆ flushExtra()

void RagTime5Graph::flushExtra ( )
protected

sends the data which have not yet been sent to the listener

◆ numPages()

int RagTime5Graph::numPages ( ) const

returns the number of pages

◆ operator=()

RagTime5Graph& RagTime5Graph::operator= ( RagTime5Graph const &  orig)
private

◆ readColorPatternZone()

bool RagTime5Graph::readColorPatternZone ( RagTime5ClusterManager::Cluster cluster)
protected

try to read a zone of color and pattern

◆ readGraphicCluster()

shared_ptr< RagTime5ClusterManager::Cluster > RagTime5Graph::readGraphicCluster ( RagTime5Zone zone,
int  zoneType 
)
protected

try to read a graphic zone

◆ readGraphicShape()

bool RagTime5Graph::readGraphicShape ( RagTime5GraphInternal::ClusterGraphic cluster,
RagTime5Zone dataZone,
long  endPos,
int  n,
librevenge::RVNGString const &  dataName 
)
protected

try to read a graphic

Referenced by readGraphicShapes().

◆ readGraphicShapes()

bool RagTime5Graph::readGraphicShapes ( RagTime5GraphInternal::ClusterGraphic cluster)
protected

try to read the graphic shapes of a cluster

Referenced by readGraphicCluster().

◆ readGraphicTransformations()

bool RagTime5Graph::readGraphicTransformations ( RagTime5ClusterManager::Link const &  link)
protected

try to read a graphic transformations zone

Referenced by readGraphicCluster().

◆ readGraphicTypes()

bool RagTime5Graph::readGraphicTypes ( RagTime5ClusterManager::Link const &  link)
protected

try to read a main graphic types

◆ readGraphicUnknown()

bool RagTime5Graph::readGraphicUnknown ( int  typeId)
protected

try to read a graphic unknown zone in data

Referenced by readGraphicCluster().

◆ readPictureCluster()

shared_ptr< RagTime5ClusterManager::Cluster > RagTime5Graph::readPictureCluster ( RagTime5Zone zone,
int  zoneType 
)
protected

try to read a picture zone

◆ readPictureContainer()

bool RagTime5Graph::readPictureContainer ( RagTime5Zone zone)
protected

try to read a picture data zone

Referenced by readPictureCluster().

◆ readPictureData() [1/2]

bool RagTime5Graph::readPictureData ( RagTime5Zone zone)
protected

try to read a picture data zone: ie. the zone which contains jpeg, tiff, ...

Referenced by readPictureContainer(), and readPictureRep().

◆ readPictureData() [2/2]

bool RagTime5Graph::readPictureData ( RagTime5Zone zone,
librevenge::RVNGBinaryData &  data,
std::string &  type 
)
protected

try to read a picture data zone: ie. the zone which contains jpeg, tiff and then returns the picture content...

◆ readPictureList()

bool RagTime5Graph::readPictureList ( RagTime5Zone zone)
protected

try to read a picture list

Referenced by readPictureContainer().

◆ readPictureMatch()

bool RagTime5Graph::readPictureMatch ( RagTime5Zone zone,
bool  color 
)
protected

try to read a picture match zone

Referenced by readPictureRep().

◆ readPictureRep()

bool RagTime5Graph::readPictureRep ( RagTime5Zone zone)
protected

try to read a picture rep

Referenced by readPictureList().

◆ send() [1/4]

bool RagTime5Graph::send ( int  zoneId,
MWAWListenerPtr  listener,
MWAWPosition const &  pos 
)
protected

try to send the cluster zone

Referenced by flushExtra(), and send().

◆ send() [2/4]

bool RagTime5Graph::send ( RagTime5GraphInternal::ClusterGraphic cluster,
MWAWListenerPtr  listener,
MWAWPosition const &  pos 
)
protected

try to send the shapes of cluster zone

◆ send() [3/4]

bool RagTime5Graph::send ( RagTime5GraphInternal::Shape const &  shape,
RagTime5GraphInternal::ClusterGraphic const &  cluster,
MWAWListenerPtr  listener,
MWAWPosition const &  pos 
)
protected

try to send a shape of cluster zone

◆ send() [4/4]

bool RagTime5Graph::send ( RagTime5GraphInternal::ClusterPicture cluster,
MWAWListenerPtr  listener,
MWAWPosition const &  pos 
)
protected

try to send the picture of cluster zone

◆ sendTextZone()

bool RagTime5Graph::sendTextZone ( MWAWListenerPtr  listener,
int  zId,
int  pId 
)
protected

ask to send a text zone

◆ version()

int RagTime5Graph::version ( ) const

returns the file version

Friends And Related Function Documentation

◆ RagTime5GraphInternal::SubDocument

◆ RagTime5Parser

friend class RagTime5Parser
friend

Member Data Documentation

◆ m_mainParser

◆ m_parserState

MWAWParserStatePtr RagTime5Graph::m_parserState
protected

the parser state

Referenced by flushExtra(), send(), and version().

◆ m_state

◆ m_structManager

shared_ptr<RagTime5StructManager> RagTime5Graph::m_structManager
protected

the structure manager

◆ m_styleManager

shared_ptr<RagTime5StyleManager> RagTime5Graph::m_styleManager
protected

the style manager

Referenced by send().


The documentation for this class was generated from the following files:

Generated on Mon Jul 17 2017 03:16:40 for libmwaw by doxygen 1.8.13