RagTime5Graph Class Reference

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

#include <RagTime5Graph.hxx>

Public Member Functions

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

Static Public Member Functions

static std::string printType (unsigned long fileType)
 debug: print a file type More...
 

Protected Member Functions

void flushExtra (bool onlyCheck=false)
 sends the data which have not yet been sent to the listener More...
 
bool sendTextZone (MWAWListenerPtr listener, int zId, int pId, double totalWidth=-1)
 ask to send a text zone More...
 
bool sendButtonZoneAsText (MWAWListenerPtr listener, int zId)
 ask to send the button content as text 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...
 
std::shared_ptr< RagTime5ClusterManager::ClusterreadButtonCluster (RagTime5Zone &zone, int zoneType)
 try to read a button zone More...
 
std::shared_ptr< RagTime5ClusterManager::ClusterreadGraphicCluster (RagTime5Zone &zone, int zoneType)
 try to read a graphic zone More...
 
bool readGraphicUsed (int typeId)
 try to read the id zone => used 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...
 
std::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::ClusterButton &cluster, MWAWListenerPtr listener, MWAWPosition const &pos, MWAWGraphicStyle const &style)
 try to send a button of 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

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

Private Member Functions

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

Friends

class RagTime5GraphInternal::SubDocument
 
class RagTime5Document
 

Detailed Description

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

Constructor & Destructor Documentation

◆ RagTime5Graph() [1/2]

RagTime5Graph::RagTime5Graph ( RagTime5Document doc)
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 ( bool  onlyCheck = false)
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

◆ printType()

◆ readButtonCluster()

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

try to read a button zone

◆ readColorPatternZone()

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

try to read a zone of color and pattern

◆ readGraphicCluster()

std::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

◆ readGraphicUsed()

bool RagTime5Graph::readGraphicUsed ( int  typeId)
protected

try to read the id zone => used

Referenced by readGraphicCluster().

◆ readPictureCluster()

std::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/5]

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

try to send the cluster zone

Referenced by flushExtra(), and send().

◆ send() [2/5]

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

try to send a button of cluster zone

◆ send() [3/5]

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

try to send the shapes of cluster zone

◆ send() [4/5]

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

try to send the picture of cluster zone

◆ send() [5/5]

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

◆ sendButtonZoneAsText()

bool RagTime5Graph::sendButtonZoneAsText ( MWAWListenerPtr  listener,
int  zId 
)
protected

ask to send the button content as text

◆ sendTextZone()

bool RagTime5Graph::sendTextZone ( MWAWListenerPtr  listener,
int  zId,
int  pId,
double  totalWidth = -1 
)
protected

ask to send a text zone

◆ version()

int RagTime5Graph::version ( ) const

returns the file version

Friends And Related Function Documentation

◆ RagTime5Document

friend class RagTime5Document
friend

◆ RagTime5GraphInternal::SubDocument

Member Data Documentation

◆ m_document

◆ m_parserState

MWAWParserStatePtr RagTime5Graph::m_parserState
protected

the parser state

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

◆ m_state

◆ m_structManager

std::shared_ptr<RagTime5StructManager> RagTime5Graph::m_structManager
protected

the structure manager

◆ m_styleManager

std::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 Fri Sep 18 2020 18:14:52 for libmwaw by doxygen 1.8.20