Go to the documentation of this file.
38 #ifndef RAGTIME5_PIPELINE
39 # define RAGTIME5_PIPELINE
46 #include <librevenge/librevenge.h>
59 struct ClusterPipeline;
136 std::shared_ptr<RagTime5PipelineInternal::State>
m_state;
std::vector< int > m_ids
the data ids
Definition: RagTime5ClusterManager.hxx:210
std::shared_ptr< RagTime5ClusterManager::Cluster > getCluster() final
return the current cluster
Definition: RagTime5Pipeline.cxx:321
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
RagTime5ClusterManager::Cluster::Type getContainerType(int pipelineId) const
try to return the container's type corresponding to an id
Definition: RagTime5Pipeline.cxx:138
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
RagTime5Document & m_document
the parser
Definition: RagTime5Pipeline.hxx:128
the pipeline cluster ( 4001 zone)
Definition: RagTime5Pipeline.cxx:65
Cluster(Type type)
constructor
Definition: RagTime5ClusterManager.hxx:279
@ C_Pipeline
Definition: RagTime5ClusterManager.hxx:264
static std::string printType(unsigned long fileType)
debug: print a file type
Definition: RagTime5Pipeline.hxx:114
Internal: the helper to read a unknown.
Definition: RagTime5Pipeline.cxx:266
Link m_link
the actual link
Definition: RagTime5ClusterManager.hxx:459
@ T_Unstructured
Definition: RagTime5StructManager.hxx:245
bool send(int pipelineId, MWAWListenerPtr listener, MWAWPosition const &pos, int partId=0, double totalWidth=-1)
try to send the container corresponding to pipelineId (mainly unimplemented)
Definition: RagTime5Pipeline.cxx:125
~ClusterPipeline() final
destructor
Definition: RagTime5Pipeline.cxx:87
std::string getClusterDebugName(int id)
returns "data"+id+"A" ( followed by the cluster type and name if know)
Definition: RagTime5ClusterManager.cxx:555
bool parseData(MWAWInputStreamPtr &input, long endPos, RagTime5Zone &, int, libmwaw::DebugStream &f) final
try to parse a data
Definition: RagTime5Pipeline.cxx:209
a field of RagTime 5/6 structures
Definition: RagTime5StructManager.hxx:242
bool checkClusterList(std::vector< RagTime5StructManager::ZoneLink > const &list)
check a cluster list
Definition: RagTime5Document.cxx:1117
RagTime5ClusterManager & m_clusterManager
the main zone manager
Definition: RagTime5Pipeline.cxx:254
State()
constructor
Definition: RagTime5Pipeline.cxx:95
virtual class use to parse the cluster data
Definition: RagTime5ClusterManager.hxx:381
int version() const
returns the file version
Definition: RagTime5Pipeline.cxx:120
std::string getClusterDebugName(int id) const
return the cluster name
Definition: RagTime5Pipeline.cxx:194
int m_dataId
the data id
Definition: RagTime5Pipeline.cxx:78
std::shared_ptr< RagTime5StructManager > m_structManager
the structure manager
Definition: RagTime5Pipeline.hxx:131
std::shared_ptr< ClusterPipeline > m_cluster
the current cluster
Definition: RagTime5Pipeline.cxx:462
ClustListParser(RagTime5ClusterManager &clusterManager, int fieldSize, std::string const &zoneName)
constructor
Definition: RagTime5Pipeline.cxx:180
virtual class use to parse the unstructured data
Definition: RagTime5StructManager.hxx:396
DataParser(std::string const &zoneName)
constructor
Definition: RagTime5StructManager.cxx:61
@ T_FieldList
Definition: RagTime5StructManager.hxx:244
basic class used to manage RagTime 5/6 zones
Definition: RagTime5ClusterManager.hxx:59
~ClustListParser() final
destructor
Definition: RagTime5Pipeline.cxx:261
RagTime5Pipeline & operator=(RagTime5Pipeline const &orig)=delete
int m_dataId
the data id (or 0)
Definition: RagTime5StructManager.hxx:344
int m_N
the number of data ( or some flag if m_N & 0x8020)
Definition: RagTime5ClusterManager.hxx:212
UnknownParser(UnknownParser &orig)=delete
copy constructor, not implemented
the main class to read a RagTime v5 file
Definition: RagTime5Document.hxx:77
Internal: the state of a RagTime5Pipeline.
Definition: RagTime5Pipeline.cxx:93
static std::string printType(unsigned long fileType)
debug: print a file type
Definition: RagTime5StructManager.cxx:94
std::shared_ptr< ClusterPipeline > getPipelineCluster()
return the pipeline cluster
Definition: RagTime5Pipeline.cxx:326
int m_fieldSize
the field size
Definition: RagTime5Pipeline.cxx:296
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
virtual ~RagTime5Pipeline()
destructor
Definition: RagTime5Pipeline.cxx:116
ClusterPipeline()
constructor
Definition: RagTime5Pipeline.cxx:67
main zone in a RagTime v5-v6 document
Definition: RagTime5StructManager.hxx:51
RagTime5Pipeline(RagTime5Pipeline const &orig)=delete
bool parseZone(MWAWInputStreamPtr &input, long fSz, int N, int flag, libmwaw::DebugStream &f) final
parse a zone
Definition: RagTime5Pipeline.cxx:352
Internal: the structures of a RagTime5Pipeline.
Definition: RagTime5Pipeline.cxx:63
UnknownParser(int fieldSize, std::string const &zoneName)
constructor
Definition: RagTime5Pipeline.cxx:268
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
try to read a pipeline cluster: 104,204,4104, 4204
Definition: RagTime5Pipeline.cxx:311
std::vector< RagTime5StructManager::ZoneLink > m_linkList
the list of read cluster
Definition: RagTime5Pipeline.cxx:251
the main class to read the text part of RagTime 56 file
Definition: RagTime5Pipeline.hxx:73
bool parseData(MWAWInputStreamPtr &input, long endPos, RagTime5Zone &, int, libmwaw::DebugStream &f) final
try to parse a data
Definition: RagTime5Pipeline.cxx:280
Type
the cluster type
Definition: RagTime5ClusterManager.hxx:263
MWAWParserStatePtr m_parserState
the parser state
Definition: RagTime5Pipeline.hxx:133
int m_layoutId
the layout id
Definition: RagTime5Pipeline.cxx:82
UnknownParser & operator=(UnknownParser &orig)=delete
copy operator, not implemented
std::shared_ptr< RagTime5ClusterManager::Cluster > readPipelineCluster(RagTime5Zone &zone, int zoneType)
try to read a pipeline cluster
Definition: RagTime5Pipeline.cxx:471
int m_masterId
the master id
Definition: RagTime5Pipeline.cxx:80
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
std::map< int, std::shared_ptr< ClusterPipeline > > m_idPipelineMap
map data id to text zone
Definition: RagTime5Pipeline.cxx:100
PipelineCParser(RagTime5ClusterManager &parser, int type)
constructor
Definition: RagTime5Pipeline.cxx:313
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
unsigned long m_fileType[2]
the zone type in file
Definition: RagTime5ClusterManager.hxx:216
basic class used to store RagTime 5/6 structures
Definition: RagTime5StructManager.hxx:175
ClustListParser(ClustListParser &orig)=delete
copy constructor, not implemented
int m_ids[3]
the zone id
Definition: RagTime5StructManager.hxx:140
std::shared_ptr< RagTime5PipelineInternal::State > m_state
the state
Definition: RagTime5Pipeline.hxx:136
~PipelineCParser() final
destructor
Definition: RagTime5Pipeline.cxx:465
ClustListParser & operator=(ClustListParser &orig)=delete
copy operator, not implemented
the cluster data
Definition: RagTime5ClusterManager.hxx:261
std::vector< int > getIdList() const
returns the not null list dataId list
Definition: RagTime5Pipeline.cxx:199
namespace used to regroup all libwpd functions, enumerations which we have redefined for internal usa...
Definition: libmwaw_internal.cxx:51
int m_type
the cluster type
Definition: RagTime5ClusterManager.hxx:451
RagTime5Pipeline(RagTime5Document &doc)
constructor
Definition: RagTime5Pipeline.cxx:108
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
Internal: the helper to read a clustList.
Definition: RagTime5Pipeline.cxx:178
RagTime5ClusterManager::Link m_data2Link
the second data link(rare)
Definition: RagTime5Pipeline.cxx:84
int m_fieldSize
the field size
Definition: RagTime5Pipeline.cxx:249
long m_subZoneId[2]
the sub id zones
Definition: RagTime5StructManager.hxx:346
bool parseField(RagTime5StructManager::Field const &field, int, libmwaw::DebugStream &f) final
parse a field
Definition: RagTime5Pipeline.cxx:331
bool readFixedSizeZone(RagTime5ClusterManager::Link const &link, std::string const &name)
try to read a fixed size zone
Definition: RagTime5Document.cxx:1658
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
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: RagTime5Pipeline.cxx:166
a zone link in RagTime 5/6 structures
Definition: RagTime5StructManager.hxx:303
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
ClusterParser(RagTime5ClusterManager &parser, int type, std::string const &zoneName)
constructor
Definition: RagTime5ClusterManager.hxx:383
@ C_Unknown
Definition: RagTime5ClusterManager.hxx:276
int m_fieldSize
the field size
Definition: RagTime5ClusterManager.hxx:214
~UnknownParser() final
destructor
Definition: RagTime5Pipeline.cxx:304
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20