Go to the documentation of this file.
38 #ifndef RAGTIME5_GRAPH
39 # define RAGTIME5_GRAPH
45 #include <librevenge/librevenge.h>
59 struct ClusterGraphic;
60 struct ClusterPicture;
207 std::shared_ptr<RagTime5GraphInternal::State>
m_state;
std::map< int, std::shared_ptr< ClusterGraphic > > m_idGraphicMap
map data id to graphic zone
Definition: RagTime5Graph.cxx:497
std::vector< int > m_ids
the data ids
Definition: RagTime5ClusterManager.hxx:210
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
std::map< int, std::shared_ptr< Shape > > m_idToShapeMap
the shape list
Definition: RagTime5Graph.cxx:424
std::vector< int > m_dataList
the list of read int
Definition: RagTime5Graph.cxx:185
bool m_isParsed
a flag to know if the zone is parsed
Definition: RagTime5StructManager.hxx:152
PictCParser(PictCParser const &orig)=delete
copy constructor (not implemented)
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
bool readPositions(int posId, std::vector< long > &listPosition)
try to read a positions zone in data
Definition: RagTime5Document.cxx:923
std::vector< int > m_rootIdList
the root id list
Definition: RagTime5Graph.cxx:426
@ T_Unicode
Definition: RagTime5StructManager.hxx:245
int getNewZoneToParse() final
returns to new zone to parse.
Definition: RagTime5Graph.cxx:2545
std::string m_fieldName
the actual field name
Definition: RagTime5Graph.cxx:2910
int m_graphicId
the graphic id
Definition: RagTime5Graph.cxx:273
int m_id
the shape id
Definition: RagTime5Graph.cxx:253
~SubDocument() final
destructor
Definition: RagTime5Graph.cxx:557
bool parseHeaderZone(MWAWInputStreamPtr &input, long fSz, int N, int flag, libmwaw::DebugStream &f)
parse the header zone
Definition: RagTime5Graph.cxx:2793
@ L_ClusterLink
Definition: RagTime5ClusterManager.hxx:115
std::string m_extra
extra data
Definition: RagTime5Graph.cxx:277
int getNewZoneToParse() final
returns to new zone to parse.
Definition: RagTime5Graph.cxx:2970
std::map< int, int > m_expectedIdToType
the expected id
Definition: RagTime5Graph.cxx:2913
@ S_Spline
Definition: RagTime5Graph.cxx:226
MWAWBox2f getBdBox() const
returns the basic bdbox
Definition: MWAWGraphicShape.hxx:197
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
std::vector< RagTime5ClusterManager::Link > m_conditionFormulaLinks
the conditions formula links (unsure)
Definition: RagTime5Graph.cxx:3659
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
void endZone() final
end of a start zone call
Definition: RagTime5Graph.cxx:2979
Internal: the helper to read a int16 float.
Definition: RagTime5Graph.cxx:198
ClustListParser(RagTime5ClusterManager &clusterManager, std::string const &zoneName)
constructor
Definition: RagTime5Graph.cxx:67
~FloatParser() final
destructor
Definition: RagTime5Graph.cxx:219
~IntListParser() final
destructor
Definition: RagTime5Graph.cxx:193
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: RagTime5Graph.cxx:578
long m_defPosition
the position of the definition in the main zones
Definition: RagTime5StructManager.hxx:130
std::shared_ptr< ClusterGraphic > m_cluster
the current cluster
Definition: RagTime5Graph.cxx:3651
Cluster(Type type)
constructor
Definition: RagTime5ClusterManager.hxx:279
@ C_Pipeline
Definition: RagTime5ClusterManager.hxx:264
static MWAWGraphicShape pie(MWAWBox2f const &box, MWAWBox2f const &circleBox, MWAWVec2f const &angles)
static constructor to create a pie
Definition: MWAWGraphicShape.hxx:147
ClusterGraphic()
constructor
Definition: RagTime5Graph.cxx:396
Shape()
constructor
Definition: RagTime5Graph.cxx:228
bool isANameHeader(long N) const
return true if N correspond to a file/script name
Definition: RagTime5ClusterManager.hxx:439
static Arrow plain()
returns a basic plain arrow
Definition: MWAWGraphicStyle.hxx:74
Link m_link
the actual link
Definition: RagTime5ClusterManager.hxx:459
std::string m_kinds[2]
the zone types: normal and packing
Definition: RagTime5StructManager.hxx:132
@ S_Rect
Definition: RagTime5Graph.cxx:226
std::shared_ptr< ClusterGraphic > getGraphicCluster()
return the current graphic cluster
Definition: RagTime5Graph.cxx:2954
@ T_Unstructured
Definition: RagTime5StructManager.hxx:245
@ P_ScreenRep
Definition: RagTime5Graph.cxx:463
bool parseData(MWAWInputStreamPtr &input, long endPos, RagTime5Zone &, int, libmwaw::DebugStream &f) final
try to parse a data
Definition: RagTime5Graph.cxx:82
std::shared_ptr< RagTime5ClusterManager::Cluster > readPictureCluster(RagTime5Zone &zone, int zoneType)
try to read a picture zone
Definition: RagTime5Graph.cxx:3732
@ P_Pict
Definition: RagTime5Graph.cxx:463
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:250
@ L_UnicodeList
Definition: RagTime5ClusterManager.hxx:116
std::map< int, std::shared_ptr< ClusterButton > > m_idButtonMap
map data id to button zone
Definition: RagTime5Graph.cxx:495
libmwaw::DebugFile & ascii()
returns the current ascii file
Definition: RagTime5StructManager.hxx:109
std::map< int, std::shared_ptr< ClusterPicture > > m_idPictClusterMap
map data id to picture zone
Definition: RagTime5Graph.cxx:499
std::shared_ptr< RagTime5StyleManager > m_styleManager
the style manager
Definition: RagTime5Graph.hxx:202
@ S_Circle
Definition: RagTime5Graph.cxx:226
a structure used to define a picture shape
Definition: MWAWGraphicShape.hxx:46
the class to store a color
Definition: libmwaw_internal.hxx:192
small class use to define a embedded object
Definition: libmwaw_internal.hxx:467
a field of RagTime 5/6 structures
Definition: RagTime5StructManager.hxx:242
@ Presentation
Definition: MWAWListener.hxx:56
GraphicCParser(GraphicCParser const &orig)=delete
copy constructor (not implemented)
bool checkClusterList(std::vector< RagTime5StructManager::ZoneLink > const &list)
check a cluster list
Definition: RagTime5Document.cxx:1117
Shape::Type getShapeType(int id) const
try to return a set type
Definition: RagTime5Graph.cxx:504
bool readLinkHeader(MWAWInputStreamPtr &input, long fSz, Link &link, long(&values)[4], std::string &message)
try to read a link header
Definition: RagTime5ClusterManager.cxx:560
static MWAWGraphicShape line(MWAWVec2f const &orign, MWAWVec2f const &dest)
static constructor to create a line
Definition: MWAWGraphicShape.cxx:228
bool m_isSent
true if the cluster was send
Definition: RagTime5ClusterManager.hxx:322
@ P_Tiff
Definition: RagTime5Graph.cxx:463
void setUnit(librevenge::RVNGUnit newUnit)
sets the dimension unit
Definition: MWAWPosition.hxx:225
Internal: the shape of a RagTime5Graph.
Definition: RagTime5Graph.cxx:224
int m_partId
the link part id
Definition: RagTime5Graph.cxx:259
int m_linkId
the link id: 0: unicode, 1: condition, 2: clustLink, 3: clustLink[list], 4: clustLink[8],...
Definition: RagTime5Graph.cxx:3655
bool readLongList(RagTime5ClusterManager::Link const &link, std::vector< long > &list)
try to read/get the list of long of a L_LongList
Definition: RagTime5Document.cxx:914
FloatParser(std::string const &zoneName)
constructor
Definition: RagTime5Graph.cxx:200
bool parseData(MWAWInputStreamPtr &input, long endPos, RagTime5Zone &, int, libmwaw::DebugStream &f) final
try to parse a data
Definition: RagTime5Graph.cxx:164
virtual class use to parse the cluster data
Definition: RagTime5ClusterManager.hxx:381
@ S_Arc
Definition: RagTime5Graph.cxx:226
MWAWEntry m_entry
the zone entry
Definition: RagTime5StructManager.hxx:134
@ WDynamic
Definition: MWAWPosition.hxx:53
@ Graphic
Definition: MWAWListener.hxx:56
PictCParser(RagTime5ClusterManager &parser, int type)
constructor
Definition: RagTime5Graph.cxx:2515
virtual class use to parse the unstructured data
Definition: RagTime5StructManager.hxx:396
DataParser(std::string const &zoneName)
constructor
Definition: RagTime5StructManager.cxx:61
Internal: the structures of a RagTime5Graph.
Definition: RagTime5Graph.cxx:63
MWAWBox2f getBdBox() const
return the shape bdbox
Definition: RagTime5Graph.cxx:245
Internal: the subdocument of a RagTime5Graph.
Definition: RagTime5Graph.cxx:543
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
RagTime5Graph & operator=(RagTime5Graph const &orig)
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:42
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:48
@ T_FieldList
Definition: RagTime5StructManager.hxx:244
bool hasLine() const
returns true if the border is defined
Definition: MWAWGraphicStyle.hxx:410
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
@ C_PictureZone
Definition: RagTime5ClusterManager.hxx:268
bool parseHeaderZone(MWAWInputStreamPtr &input, long fSz, int N, int flag, libmwaw::DebugStream &f)
parse the header zone
Definition: RagTime5Graph.cxx:3530
bool readPictureRep(RagTime5Zone &zone)
try to read a picture rep
Definition: RagTime5Graph.cxx:1443
std::vector< RagTime5StructManager::ZoneLink > m_linkList
list of link to other zone
Definition: RagTime5Graph.cxx:428
void setOrder(int ord) const
set background/foward order
Definition: MWAWPosition.hxx:264
low level: parser of graph cluster
Definition: RagTime5Graph.cxx:2931
std::vector< int > m_childIdList
the child list (for group)
Definition: RagTime5Graph.cxx:267
basic class used to manage RagTime 5/6 zones
Definition: RagTime5ClusterManager.hxx:59
std::map< int, std::shared_ptr< RagTime5Zone > > m_childIdToZoneMap
the child zones
Definition: RagTime5StructManager.hxx:146
MWAWGraphicShape m_shape
the graphic shape
Definition: RagTime5Graph.cxx:265
static MWAWGraphicShape circle(MWAWBox2f const &box)
static constructor to create a circle
Definition: MWAWGraphicShape.hxx:129
int m_numPages
the number of pages
Definition: RagTime5Graph.cxx:476
basic class used to read/store RagTime 5/6 styles
Definition: RagTime5StyleManager.hxx:61
std::shared_ptr< ClusterPicture > m_cluster
the current cluster
Definition: RagTime5Graph.cxx:2904
@ S_TextBox
Definition: RagTime5Graph.cxx:226
@ S_Line
Definition: RagTime5Graph.cxx:226
bool readScriptComment(RagTime5Zone &zone)
try to read a script comment zone
Definition: RagTime5Document.cxx:1449
a basic pattern used in a MWAWGraphicStyle:
Definition: MWAWGraphicStyle.hxx:277
MWAWVec2f const & size() const
returns the frame size
Definition: MWAWPosition.hxx:135
std::shared_ptr< RagTime5GraphInternal::State > m_state
the state
Definition: RagTime5Graph.hxx:207
std::shared_ptr< RagTime5StructManager > m_structManager
the structure manager
Definition: RagTime5Graph.hxx:200
ClustListParser(ClustListParser &orig)
copy constructor, not implemented
int m_N[2]
number of graph shape(+1) and number of graph used
Definition: RagTime5Graph.cxx:411
std::stack< int > m_idStack
the id stack
Definition: RagTime5Graph.cxx:3664
@ L_LongList
Definition: RagTime5ClusterManager.hxx:116
bool readGraphicUsed(int typeId)
try to read the id zone => used
Definition: RagTime5Graph.cxx:1265
virtual class use to parse the field data
Definition: RagTime5StructManager.hxx:353
@ Polygon
Definition: MWAWGraphicShape.hxx:49
int m_N
the number of data ( or some flag if m_N & 0x8020)
Definition: RagTime5ClusterManager.hxx:212
a link to a name zone in RagTime 5/6 documents
Definition: RagTime5ClusterManager.hxx:222
MWAWBox2< T > getUnion(MWAWBox2< T > const &box) const
returns the union between this and box
Definition: libmwaw_internal.hxx:1129
int m_what
a index to know which field is parsed : 0: main, 1: list
Definition: RagTime5Graph.cxx:2906
the main class to read the graphic part of RagTime 56 file
Definition: RagTime5Graph.hxx:81
the main class to read a RagTime v5 file
Definition: RagTime5Document.hxx:77
int version() const
returns the file version
Definition: RagTime5Graph.cxx:624
SubDocumentType
Definition: libmwaw_internal.hxx:188
RagTime5Graph(RagTime5Document &doc)
constructor
Definition: RagTime5Graph.cxx:611
@ S_Unknown
Definition: RagTime5Graph.cxx:226
virtual ~RagTime5Graph()
destructor
Definition: RagTime5Graph.cxx:620
bool readGraphicShape(RagTime5GraphInternal::ClusterGraphic &cluster, RagTime5Zone &dataZone, long endPos, int n, librevenge::RVNGString const &dataName)
try to read a graphic
Definition: RagTime5Graph.cxx:938
State()
constructor
Definition: RagTime5Graph.cxx:466
std::map< int, std::shared_ptr< MWAWEmbeddedObject > > m_idPictureMap
map data id to picture
Definition: RagTime5Graph.cxx:501
static MWAWGraphicStyle emptyStyle()
returns an empty style.
Definition: MWAWGraphicStyle.hxx:401
friend std::ostream & operator<<(std::ostream &o, Shape const &shape)
operator<<
Definition: RagTime5Graph.cxx:280
bool parseDataZone(MWAWInputStreamPtr &input, long fSz, int N, int flag, libmwaw::DebugStream &f)
parse a data block
Definition: RagTime5Graph.cxx:3156
void skipZone(long beginPos, long endPos)
skips the file zone defined by beginPos-endPos
Definition: MWAWDebug.hxx:113
Type
the different shape
Definition: RagTime5Graph.cxx:226
bool empty() const
returns true if all link are empty
Definition: RagTime5ClusterManager.hxx:133
bool readPictureList(RagTime5Zone &zone)
try to read a picture list
Definition: RagTime5Graph.cxx:1385
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
ClusterPicture()
constructor
Definition: RagTime5Graph.cxx:438
int m_what
a index to know which field is parsed : 0: graphdata, 1: list, 2: clustLink, graph transform,...
Definition: RagTime5Graph.cxx:3653
float m_lineWidth
the linewidth
Definition: MWAWGraphicStyle.hxx:508
static std::string printType(unsigned long fileType)
debug: print a file type
Definition: RagTime5StructManager.cxx:94
int numPages() const
returns the number of pages
Definition: RagTime5Graph.cxx:629
void setSize(MWAWVec2f const &sz)
sets the frame size
Definition: MWAWPosition.hxx:215
@ P_Unknown
Definition: ClarisDrawText.cxx:60
@ P_Epsf
Definition: RagTime5Graph.cxx:463
uint32_t m_flags
the shape flag
Definition: RagTime5Graph.cxx:269
bool readStructZone(RagTime5ClusterManager::Link const &link, RagTime5StructManager::FieldParser &parser, int headerSz, RagTime5ClusterManager::NameLink *nameLink=nullptr)
try to read a structured zone
Definition: RagTime5Document.cxx:1722
int m_subId
the zone sub id
Definition: RagTime5Graph.cxx:571
bool readPictureData(RagTime5Zone &zone)
try to read a picture data zone: ie. the zone which contains jpeg, tiff, ...
Definition: RagTime5Graph.cxx:1541
std::string getKindLastPart(bool main=true) const
returns the main type
Definition: RagTime5StructManager.hxx:83
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
int m_dataId
the actual zone id
Definition: RagTime5ClusterManager.hxx:457
@ T_Long
Definition: RagTime5StructManager.hxx:244
@ C_GraphicZone
Definition: RagTime5ClusterManager.hxx:268
void setExpectedType(int id, int type)
set a data id type
Definition: RagTime5Graph.cxx:2539
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:67
static std::string printType(unsigned long fileType)
debug: print a file type
Definition: RagTime5ClusterManager.hxx:107
bool m_hiLoEndian
the cluster hiLo endian
Definition: RagTime5ClusterManager.hxx:302
int m_linkId
the link to a zone id
Definition: RagTime5Graph.cxx:257
main zone in a RagTime v5-v6 document
Definition: RagTime5StructManager.hxx:51
@ C_TextZone
Definition: RagTime5ClusterManager.hxx:268
int m_textboxZoneId
the main textbox zone id(if defined)
Definition: RagTime5Graph.cxx:413
MWAWVec2i m_dim
the dimension width x height
Definition: MWAWGraphicStyle.hxx:358
Wrapping m_wrapping
Wrapping.
Definition: MWAWPosition.hxx:278
bool send(int zoneId, MWAWListenerPtr listener, MWAWPosition const &pos)
try to send the cluster zone
Definition: RagTime5Graph.cxx:636
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:93
~ClustListParser() final
destructor
Definition: RagTime5Graph.cxx:144
@ Path
Definition: MWAWGraphicShape.hxx:49
Internal: the helper to read an integer list.
Definition: RagTime5Graph.cxx:149
MWAWBox2f m_dimension
the dimension
Definition: RagTime5Graph.cxx:263
MWAWInputStreamPtr getInput()
returns the current input
Definition: RagTime5StructManager.hxx:94
@ P_PNG
Definition: RagTime5Graph.cxx:463
bool readListZone(RagTime5ClusterManager::Link const &link)
try to read a list zone
Definition: RagTime5Document.cxx:1585
@ P_Unknown
Definition: RagTime5Graph.cxx:463
std::map< int, int > m_expectedIdToType
the expected id
Definition: RagTime5Graph.cxx:3662
void setOrigin(MWAWVec2f const &orig)
sets the frame origin
Definition: MWAWPosition.hxx:210
@ P_WMF
Definition: RagTime5Graph.cxx:463
PictCParser & operator=(PictCParser const &orig)=delete
copy operator (not implemented)
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:83
IntListParser(IntListParser &orig)=delete
copy constructor, not implemented
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:72
PictureType
enum used to defined list of classical pict
Definition: RagTime5Graph.cxx:463
bool parseZone(MWAWInputStreamPtr &input, long fSz, int N, int flag, libmwaw::DebugStream &f) final
parse a zone
Definition: RagTime5Graph.cxx:2580
Arrow m_arrows[2]
the two arrows corresponding to start and end extremity
Definition: MWAWGraphicStyle.hxx:553
std::vector< long > m_longList
a list of long used to store decal
Definition: RagTime5ClusterManager.hxx:218
std::vector< unsigned long > m_shapeTypeIdVector
the vector of shape type id
Definition: RagTime5Graph.cxx:493
bool readGraphicShapes(RagTime5GraphInternal::ClusterGraphic &cluster)
try to read the graphic shapes of a cluster
Definition: RagTime5Graph.cxx:836
static MWAWColor black()
return the back color
Definition: libmwaw_internal.hxx:245
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1193
bool sendTextZone(MWAWListenerPtr listener, int zId, int pId, double totalWidth=-1)
ask to send a text zone
Definition: RagTime5Graph.cxx:651
RagTime5ClusterManager::Cluster::Type getClusterType(int zId) const
returns the cluster type corresponding to zone id or C_Unknown (if the zone is not a cluster or was n...
Definition: RagTime5Document.cxx:472
GraphicCParser(RagTime5ClusterManager &parser, int type)
constructor
Definition: RagTime5Graph.cxx:2934
RagTime5Document & m_document
the parser
Definition: RagTime5Graph.hxx:197
@ C_ButtonZone
Definition: RagTime5ClusterManager.hxx:268
@ S_RegularPoly
Definition: RagTime5Graph.cxx:226
std::shared_ptr< RagTime5Zone > getDataZone(int dataId) const
returns the zone corresponding to a data id (or 0)
Definition: RagTime5Document.cxx:465
the shape cluster
Definition: RagTime5Graph.cxx:394
NameLink m_nameLink
the name link
Definition: RagTime5ClusterManager.hxx:312
std::string m_fieldName
the actual field name
Definition: RagTime5Graph.cxx:3657
Type m_type
the shape type
Definition: RagTime5Graph.cxx:261
bool parseField(RagTime5StructManager::Field const &field, int, libmwaw::DebugStream &f) final
parse a field
Definition: RagTime5Graph.cxx:2594
@ Char
Definition: MWAWPosition.hxx:51
std::vector< Link > m_linksList
the link list
Definition: RagTime5ClusterManager.hxx:318
the picture cluster
Definition: RagTime5Graph.cxx:436
double m_width
the zone width if known
Definition: RagTime5Graph.cxx:575
static MWAWGraphicShape arc(MWAWBox2f const &box, MWAWBox2f const &circleBox, MWAWVec2f const &angles)
static constructor to create a arc
Definition: MWAWGraphicShape.hxx:137
RagTime5Graph & m_ragtimeParser
the main parser
Definition: RagTime5Graph.cxx:567
bool parseField(RagTime5StructManager::Field const &field, int, libmwaw::DebugStream &f) final
parse a field
Definition: RagTime5Graph.cxx:3037
MWAWColor m_colors[2]
the two indexed colors
Definition: MWAWGraphicStyle.hxx:361
bool parseData(MWAWInputStreamPtr &input, long endPos, RagTime5Zone &, int, libmwaw::DebugStream &f) final
try to parse a data
Definition: RagTime5Graph.cxx:207
std::stack< int > m_idStack
the id stack
Definition: RagTime5Graph.cxx:2915
std::string m_name
the zone name ( mainly used for debugging)
Definition: RagTime5StructManager.hxx:136
bool isMainInput() const
returns true if the input correspond to the basic file
Definition: RagTime5StructManager.hxx:104
bool readPictureContainer(RagTime5Zone &zone)
try to read a picture data zone
Definition: RagTime5Graph.cxx:1468
Link m_dataLink
the main data link
Definition: RagTime5ClusterManager.hxx:310
long end() const
returns the end offset
Definition: MWAWEntry.hxx:88
bool parseZone(MWAWInputStreamPtr &input, long fSz, int N, int flag, libmwaw::DebugStream &f) final
parse a zone
Definition: RagTime5Graph.cxx:3023
bool sendButtonZoneAsText(MWAWListenerPtr listener, int zId)
ask to send the button content as text
Definition: RagTime5Graph.cxx:1833
bool readClusterLinkList(RagTime5Zone &zone, RagTime5ClusterManager::Link const &link, std::vector< RagTime5StructManager::ZoneLink > &listLinks)
try to read a cluster link zone
Definition: RagTime5Document.cxx:1217
@ L_List
Definition: RagTime5ClusterManager.hxx:117
IntListParser(int fieldSz, std::string const &zoneName)
constructor
Definition: RagTime5Graph.cxx:151
@ S_Pie
Definition: RagTime5Graph.cxx:226
bool empty() const
returns true if all link are empty
Definition: RagTime5ClusterManager.hxx:238
int m_zoneId
the zone id
Definition: RagTime5ClusterManager.hxx:300
int m_transformId
the transformation id
Definition: RagTime5Graph.cxx:275
std::shared_ptr< RagTime5ClusterManager::Cluster > readButtonCluster(RagTime5Zone &zone, int zoneType)
try to read a button zone
Definition: RagTime5Graph.cxx:3681
bool parseDataZone(MWAWInputStreamPtr &input, long fSz, int N, int flag, libmwaw::DebugStream &f)
parse a data block, find fSz=36, 36|36|28|28|32
Definition: RagTime5Graph.cxx:2654
static std::string printType(unsigned long fileType)
debug: print a file type
Definition: RagTime5Graph.hxx:183
MWAWParserStatePtr m_parserState
the parser state
Definition: RagTime5Graph.hxx:204
low level: parser of picture cluster
Definition: RagTime5Graph.cxx:2512
std::shared_ptr< RagTime5ClusterManager::Cluster > readGraphicCluster(RagTime5Zone &zone, int zoneType)
try to read a graphic zone
Definition: RagTime5Graph.cxx:3798
int m_parentId
the shape parent id
Definition: RagTime5Graph.cxx:255
@ T_LongList
Definition: RagTime5StructManager.hxx:244
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
bool readGraphicTypes(RagTime5ClusterManager::Link const &link)
try to read a main graphic types
Definition: RagTime5Graph.cxx:665
@ C_SpreadsheetZone
Definition: RagTime5ClusterManager.hxx:268
GraphicCParser & operator=(GraphicCParser const &orig)=delete
copy operator (not implemented)
int m_borderId
the border id
Definition: RagTime5Graph.cxx:271
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
std::string getClusterDebugName(int id)
returns "data"+id+"A" ( followed by the cluster type and name if know)
Definition: RagTime5ClusterManager.cxx:230
std::shared_ptr< RagTime5ClusterManager > getClusterManager()
returns the cluster manager
Definition: RagTime5Document.cxx:395
int m_id
the zone id
Definition: RagTime5Graph.cxx:569
@ S_Polygon
Definition: RagTime5Graph.cxx:226
unsigned long m_fileType[2]
the zone type in file
Definition: RagTime5ClusterManager.hxx:216
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:99
basic class used to store RagTime 5/6 structures
Definition: RagTime5StructManager.hxx:175
RagTime5Graph(RagTime5Graph const &orig)
int m_ids[3]
the zone id
Definition: RagTime5StructManager.hxx:140
void flushExtra(bool onlyCheck=false)
sends the data which have not yet been sent to the listener
Definition: RagTime5Graph.cxx:1799
a link to a small zone (or set of zones) in RagTime 5/6 documents
Definition: RagTime5ClusterManager.hxx:113
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1067
std::string getClusterDebugName(int id) const
returns a name with can be used for debugging
Definition: RagTime5Graph.cxx:76
bool readPictureMatch(RagTime5Zone &zone, bool color)
try to read a picture match zone
Definition: RagTime5Graph.cxx:1725
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
bool m_inButton
a flag to know if we need to send the button content
Definition: RagTime5Graph.cxx:573
the cluster data
Definition: RagTime5ClusterManager.hxx:261
IntListParser & operator=(IntListParser &orig)=delete
copy operator, not implemented
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: RagTime5Document.hxx:132
namespace used to regroup all libwpd functions, enumerations which we have redefined for internal usa...
Definition: libmwaw_internal.cxx:51
std::shared_ptr< ClusterPicture > getPictureCluster()
return the current cluster
Definition: RagTime5Graph.cxx:2534
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: RagTime5Graph.cxx:593
Type m_type
the link type
Definition: RagTime5ClusterManager.hxx:206
int m_type
the cluster type
Definition: RagTime5ClusterManager.hxx:451
Internal: the helper to read a clustList.
Definition: RagTime5Graph.cxx:65
std::ostream & operator<<(std::ostream &o, Shape const &shape)
Definition: RagTime5Graph.cxx:280
void checkGraphicCluster(RagTime5GraphInternal::ClusterGraphic &cluster)
check the graphic cluster data: check if there is no loop, ...
Definition: RagTime5Graph.cxx:3879
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
AnchorTo m_anchorTo
anchor position
Definition: MWAWPosition.hxx:270
Definition: MWAWDocument.hxx:57
@ S_Group
Definition: RagTime5Graph.cxx:226
ClustListParser & operator=(ClustListParser &orig)
copy operator, not implemented
RagTime5ClusterManager & m_clusterManager
the main zone manager
Definition: RagTime5Graph.cxx:137
a simple path component
Definition: MWAWGraphicShape.hxx:53
std::vector< int > m_clusterList
the list of read cluster
Definition: RagTime5Graph.cxx:134
void setExpectedType(int id, int type)
set a data id type
Definition: RagTime5Graph.cxx:2964
bool readUnicodeStringList(RagTime5ClusterManager::NameLink const &link, std::map< int, librevenge::RVNGString > &idToStringMap)
try to read a list of unicode string zone
Definition: RagTime5Document.cxx:843
@ WParallel
Definition: MWAWPosition.hxx:53
void endZone() final
end of a start zone call
Definition: RagTime5Graph.cxx:2554
static MWAWGraphicShape rectangle(MWAWBox2f const &box, MWAWVec2f const &corners=MWAWVec2f(0, 0))
static constructor to create a rectangle
Definition: MWAWGraphicShape.hxx:120
int m_fieldSize
the field size
Definition: RagTime5Graph.cxx:183
SubDocument(RagTime5Graph &parser, MWAWInputStreamPtr const &input, int zoneId, int partId, bool inButton=false, double width=-1)
Definition: RagTime5Graph.cxx:546
bool readColorPatternZone(RagTime5ClusterManager::Cluster &cluster)
try to read a zone of color and pattern
Definition: RagTime5Graph.cxx:755
bool readFixedSizeZone(RagTime5ClusterManager::Link const &link, std::string const &name)
try to read a fixed size zone
Definition: RagTime5Document.cxx:1658
Internal: the state of a RagTime5Graph.
Definition: RagTime5Graph.cxx:461
bool send(int zoneId, MWAWListenerPtr listener, MWAWPosition const &pos, int partId=0, int cellId=0, double totalWidth=-1)
try to send a cluster zone (mainly unimplemented)
Definition: RagTime5Document.cxx:2609
bool m_hiLoEndian
true if the endian is hilo
Definition: RagTime5StructManager.hxx:138
@ S_RectOval
Definition: RagTime5Graph.cxx:226
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:838
static PictureType getPictureType(std::string const &type)
returns the picture type corresponding to a name
Definition: RagTime5Graph.cxx:480
std::vector< RagTime5ClusterManager::Link > const & getConditionFormulaLinks() const
return the condition formula link (unsure)
Definition: RagTime5Graph.cxx:2959
static bool readDataIdList(MWAWInputStreamPtr input, int n, std::vector< int > &listIds)
try to read n data id
Definition: RagTime5StructManager.cxx:332
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
RagTime5ClusterManager::Cluster::Type getPipelineContainerType(int pipelineId) const
try to return the container's type corresponding to an id
Definition: RagTime5Document.cxx:477
bool readGraphicTransformations(RagTime5ClusterManager::Link const &link)
try to read a graphic transformations zone
Definition: RagTime5Graph.cxx:1324
int m_containerId
the picture container id
Definition: RagTime5Graph.cxx:450
std::string m_name
the link name
Definition: RagTime5ClusterManager.hxx:208
ClusterParser(RagTime5ClusterManager &parser, int type, std::string const &zoneName)
constructor
Definition: RagTime5ClusterManager.hxx:383
int m_linkId
the link id: 0: fieldSz=8 ?, data2: dataId+?
Definition: RagTime5Graph.cxx:2908
@ C_Unknown
Definition: RagTime5ClusterManager.hxx:276
int m_fieldSize
the field size
Definition: RagTime5ClusterManager.hxx:214
@ P_Jpeg
Definition: RagTime5Graph.cxx:463
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20