Go to the documentation of this file.
39 # define RAGTIME5_TEXT
46 #include <librevenge/librevenge.h>
161 shared_ptr<RagTime5TextInternal::State>
m_state;
shared_ptr< RagTime5StyleManager > m_styleManager
the style manager
Definition: RagTime5Text.hxx:156
ClusterText()
constructor
Definition: RagTime5Text.cxx:137
std::vector< int > m_ids
the data ids
Definition: RagTime5ClusterManager.hxx:200
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
bool m_isParsed
a flag to know if the zone is parsed
Definition: RagTime5StructManager.hxx:134
bool parseField(RagTime5StructManager::Field const &field, int, libmwaw::DebugStream &f)
parse a field
Definition: RagTime5Text.cxx:1287
Block2ListParser & operator=(Block2ListParser &orig)
copy operator, not implemented
bool readFieldZones(RagTime5ClusterManager::Cluster &cluster, RagTime5ClusterManager::Link const &link, bool isDefinition)
try to read a list of field definition
Definition: RagTime5Text.cxx:281
bool parseData(MWAWInputStreamPtr &input, long endPos, RagTime5Zone &, int, libmwaw::DebugStream &f)
try to parse a data
Definition: RagTime5Text.cxx:1078
shared_ptr< ClusterText > getTextCluster()
return the text cluster
Definition: RagTime5Text.cxx:1201
@ L_ClusterLink
Definition: RagTime5ClusterManager.hxx:107
std::vector< PLC > m_PLCList
the PLC list
Definition: RagTime5Text.cxx:171
RagTime5ClusterManager::Link m_separatorLink
the word/separator link
Definition: RagTime5Text.cxx:156
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:785
int m_what
a index to know which field is parsed : 0: main, 1: list zones, 3: linkdef, 4: list,...
Definition: RagTime5Text.cxx:1970
Internal: the helper to read a clustList.
Definition: RagTime5Text.cxx:1063
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
a PLC of a RagTime5Text
Definition: RagTime5Text.cxx:65
RagTime5ClusterManager::Link m_block2ToPlcLink
the block2 to plc link
Definition: RagTime5Text.cxx:154
int m_numZones
the number of zones
Definition: RagTime5Text.cxx:1966
RagTime5ClusterManager::Link m_contentLink
the main content
Definition: RagTime5Text.cxx:144
Cluster(Type type)
constructor
Definition: RagTime5ClusterManager.hxx:232
bool parseDataZone(MWAWInputStreamPtr &input, long fSz, int N, int flag, libmwaw::DebugStream &f)
parse a data block
Definition: RagTime5Text.cxx:1434
a small struct use to define a block of a RagTime5Text
Definition: RagTime5Text.cxx:106
Link m_link
the actual link
Definition: RagTime5ClusterManager.hxx:398
std::string m_kinds[2]
the zone types: normal and packing
Definition: RagTime5StructManager.hxx:116
@ T_Unstructured
Definition: RagTime5StructManager.hxx:221
the main class to read a RagTime v5 file
Definition: RagTime5Parser.hxx:74
libmwaw::DebugFile & ascii()
returns the current ascii file
Definition: RagTime5StructManager.hxx:93
bool send(int zoneId, MWAWListenerPtr listener, int partId=0, int block2Id=0)
try to send the cluster zone
Definition: RagTime5Text.cxx:217
bool readListZone(RagTime5ClusterManager::Link const &link)
try to read a list zone
Definition: RagTime5Parser.cxx:1653
Block()
constructor
Definition: RagTime5Text.cxx:108
a field of RagTime 5/6 structures
Definition: RagTime5StructManager.hxx:218
RagTime5ClusterManager::Link m_plcToStyleLink
the plc to text style link
Definition: RagTime5Text.cxx:152
bool readLinkHeader(MWAWInputStreamPtr &input, long fSz, Link &link, long(&values)[4], std::string &message)
try to read a link header
Definition: RagTime5ClusterManager.cxx:547
bool m_isSent
true if the cluster was send
Definition: RagTime5ClusterManager.hxx:262
std::string getClusterName(int id)
returns "data"+id+"A" ( followed by the cluster type and name if know)
Definition: RagTime5ClusterManager.cxx:215
TextCParser(TextCParser const &orig)
copy constructor (not implemented)
virtual class use to parse the cluster data
Definition: RagTime5ClusterManager.hxx:325
int m_plcDefNumFree
the number of free block in the plc definition list
Definition: RagTime5Text.cxx:150
long m_fileType[2]
the zone type in file
Definition: RagTime5ClusterManager.hxx:206
ClustListParser(RagTime5ClusterManager &clusterManager, std::string const &zoneName)
constructor
Definition: RagTime5Text.cxx:1065
class to store the paragraph properties
Definition: MWAWParagraph.hxx:82
bool readTextSeparators(RagTime5Zone &zone, std::vector< int > &pos)
try to read the text separators
Definition: RagTime5Text.cxx:236
MWAWEntry m_entry
the zone entry
Definition: RagTime5StructManager.hxx:118
shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:509
friend std::ostream & operator<<(std::ostream &o, Block const &block)
operator<<
Definition: RagTime5Text.cxx:113
virtual class use to parse the unstructured data
Definition: RagTime5StructManager.hxx:347
int numPages() const
returns the number of pages
Definition: RagTime5Text.cxx:210
MWAWBox2f m_dimension
the block dimension
Definition: RagTime5Text.cxx:127
std::string getClusterName(int id)
returns "data"+id+"A" ( followed by the cluster type and name if know)
Definition: RagTime5ClusterManager.cxx:542
int m_id
the block id
Definition: RagTime5Text.cxx:123
DataParser(std::string const &zoneName)
constructor
Definition: RagTime5StructManager.hxx:349
bool readFixedSizeZone(RagTime5ClusterManager::Link const &link, std::string const &name)
try to read a fixed size zone
Definition: RagTime5Parser.cxx:1726
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
bool parseZoneBlock(MWAWInputStreamPtr &input, long fSz, int N, int flag, libmwaw::DebugStream &f)
parse a zone block
Definition: RagTime5Text.cxx:1887
Internal: the structures of a RagTime5Text.
Definition: RagTime5Text.cxx:63
@ T_FieldList
Definition: RagTime5StructManager.hxx:220
PLC()
constructor
Definition: RagTime5Text.cxx:67
bool readFieldPosition(RagTime5Zone &zone, long endPos, int n)
try to read a field position
Definition: RagTime5Text.cxx:485
basic class used to manage RagTime 5/6 zones
Definition: RagTime5ClusterManager.hxx:59
RagTime5ClusterManager::Link m_clusterLink[2]
cluster links 0: list of size 10(pipeline?) and 14(graphic?), 1: list of size 12(related to link)
Definition: RagTime5Text.cxx:158
MWAWParserStatePtr m_parserState
the parser state
Definition: RagTime5Text.hxx:158
basic class used to read/store RagTime 5/6 styles
Definition: RagTime5StyleManager.hxx:61
bool checkClusterList(std::vector< RagTime5StructManager::ZoneLink > const &list)
check a cluster list
Definition: RagTime5Parser.cxx:1131
std::multimap< int, int > m_posToStyleIdMap
position to plc map
Definition: RagTime5Text.cxx:173
shared_ptr< RagTime5ClusterManager::Cluster > getCluster()
return the current cluster
Definition: RagTime5Text.cxx:1196
int m_N
the number of data ( or some flag if m_N & 0x8020)
Definition: RagTime5ClusterManager.hxx:202
Internal: the state of a RagTime5Text.
Definition: RagTime5Text.cxx:182
int m_linkId
the link id: 0: linkdef, 1-2: cluster list, 3: text unknown, 4: unkA list, 5:unkn fixed fSz==14
Definition: RagTime5Text.cxx:1972
long m_fileType
the file type
Definition: RagTime5StructManager.hxx:239
bool empty() const
returns true if all link are empty
Definition: RagTime5ClusterManager.hxx:121
int m_actualZone
the actual zone
Definition: RagTime5Text.cxx:1964
ClustListParser & operator=(ClustListParser &orig)
copy operator, not implemented
ClustListParser(ClustListParser &orig)
copy constructor, not implemented
TextCParser & operator=(TextCParser const &orig)
copy operator (not implemented)
int m_plcDefFreeBegin
the plc first free block in the plc definition list
Definition: RagTime5Text.cxx:148
std::string getKindLastPart(bool main=true) const
returns the main type
Definition: RagTime5StructManager.hxx:66
int m_dataId
the actual zone id
Definition: RagTime5ClusterManager.hxx:396
@ T_Long
Definition: RagTime5StructManager.hxx:220
int m_position
the position in the text
Definition: RagTime5Text.cxx:98
bool m_hiLoEndian
the cluster hiLo endian
Definition: RagTime5ClusterManager.hxx:244
main zone in a RagTime v5-v6 document
Definition: RagTime5StructManager.hxx:49
std::vector< std::vector< Block > > m_blockList
list of block (defined in header)
Definition: RagTime5Text.cxx:167
bool readPLC(RagTime5TextInternal::ClusterText &cluster, int zoneId)
try to read a list of PLC
Definition: RagTime5Text.cxx:661
@ C_TextZone
Definition: RagTime5ClusterManager.hxx:223
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:82
bool readPositions(int posId, std::vector< long > &listPosition)
try to read a positions zone in data
Definition: RagTime5Parser.cxx:954
int m_fileType
the file type
Definition: RagTime5Text.cxx:100
bool parseZone(MWAWInputStreamPtr &input, long fSz, int N, int flag, libmwaw::DebugStream &f)
parse a zone
Definition: RagTime5Text.cxx:1264
shared_ptr< RagTime5StructManager > m_structManager
the structure manager
Definition: RagTime5Text.hxx:154
std::string m_extra
extra data
Definition: RagTime5StructManager.hxx:263
MWAWInputStreamPtr getInput()
returns the current input
Definition: RagTime5StructManager.hxx:77
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:72
int m_numPages
the number of pages
Definition: RagTime5Text.cxx:186
RagTime5Text(RagTime5Text const &orig)
virtual ~ClustListParser()
destructor
Definition: RagTime5Text.cxx:1123
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: RagTime5Text.cxx:822
std::vector< long > m_longList
a list of long used to store decal
Definition: RagTime5ClusterManager.hxx:208
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1134
bool parseData(MWAWInputStreamPtr &input, long endPos, RagTime5Zone &, int, libmwaw::DebugStream &f)
try to parse a data
Definition: RagTime5Text.cxx:1136
low level: the text cluster of a RagTime5Text
Definition: RagTime5Text.cxx:135
shared_ptr< RagTime5Zone > getDataZone(int dataId) const
returns the zone corresponding to a data id (or 0)
Definition: RagTime5Parser.cxx:400
int version() const
returns the file version
Definition: RagTime5Text.cxx:205
libmwaw::DebugFile & m_asciiFile
the ascii file
Definition: RagTime5Text.cxx:1976
Block2ListParser(Block2ListParser &orig)
copy constructor, not implemented
RagTime5ClusterManager::Link m_unknownLink[2]
list of unknown link: first with field of size 14, 2th with field of size 12
Definition: RagTime5Text.cxx:162
@ T_2Long
Definition: RagTime5StructManager.hxx:220
the main class to read the text part of RagTime 56 file
Definition: RagTime5Text.hxx:76
std::vector< int > m_clusterList
the list of read cluster
Definition: RagTime5Text.cxx:1113
RagTime5ClusterManager & m_clusterManager
the main zone manager
Definition: RagTime5Text.cxx:1116
std::vector< long > m_longList
the list of long value
Definition: RagTime5StructManager.hxx:251
std::string getClusterName(int id) const
returns a name which can be used to debugging
Definition: RagTime5Text.cxx:1072
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
void endZone()
end of a start zone call
Definition: RagTime5Text.cxx:1217
shared_ptr< RagTime5ClusterManager::Cluster > readTextCluster(RagTime5Zone &zone, int zoneType)
try to read a text cluster
Definition: RagTime5Text.cxx:1990
int m_value
an unknown value
Definition: RagTime5Text.cxx:102
long end() const
returns the end offset
Definition: MWAWEntry.hxx:77
bool readFieldDefinition(RagTime5Zone &zone, long endPos, int n)
try to read a field definition
Definition: RagTime5Text.cxx:352
@ L_List
Definition: RagTime5ClusterManager.hxx:110
shared_ptr< ClusterText > m_cluster
the current cluster
Definition: RagTime5Text.cxx:1960
virtual ~ClusterText()
destructor
Definition: RagTime5Text.cxx:176
std::map< int, size_t > m_NToBlockIdMap
the field pos to block map
Definition: RagTime5Text.cxx:1968
int m_zoneId
the zone id
Definition: RagTime5ClusterManager.hxx:242
int m_subId
the block sub id
Definition: RagTime5Text.cxx:125
std::string m_fieldName
the actual field name
Definition: RagTime5Text.cxx:1974
TextCParser(RagTime5ClusterManager &parser, int type, libmwaw::DebugFile &ascii)
constructor
Definition: RagTime5Text.cxx:1188
Internal: the helper to read a block 2 list.
Definition: RagTime5Text.cxx:1128
std::map< int, shared_ptr< ClusterText > > m_idTextMap
map data id to text zone
Definition: RagTime5Text.cxx:188
int m_id
the block id
Definition: RagTime5Text.cxx:1962
RagTime5Parser & m_mainParser
the parser
Definition: RagTime5Text.hxx:151
friend std::ostream & operator<<(std::ostream &o, PLC const &plc)
operator<<
Definition: RagTime5Text.cxx:71
@ T_LongList
Definition: RagTime5StructManager.hxx:220
bool parseHeaderZone(MWAWInputStreamPtr &input, long fSz, int N, int flag, libmwaw::DebugStream &f)
parse the header zone
Definition: RagTime5Text.cxx:1715
RagTime5Text(RagTime5Parser &parser)
constructor
Definition: RagTime5Text.cxx:196
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:88
basic class used to store RagTime 5/6 structures
Definition: RagTime5StructManager.hxx:157
virtual ~RagTime5Text()
destructor
Definition: RagTime5Text.cxx:202
int m_ids[3]
the zone id
Definition: RagTime5StructManager.hxx:124
virtual ~TextCParser()
destructor
Definition: RagTime5Text.cxx:1984
a link to a small zone (or set of zones) in RagTime 5/6 documents
Definition: RagTime5ClusterManager.hxx:105
virtual ~Block2ListParser()
destructor
Definition: RagTime5Text.cxx:1179
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
the cluster data
Definition: RagTime5ClusterManager.hxx:216
Type m_type
the link type
Definition: RagTime5ClusterManager.hxx:196
int m_type
the cluster type
Definition: RagTime5ClusterManager.hxx:390
shared_ptr< RagTime5ClusterManager > getClusterManager()
returns the cluster manager
Definition: RagTime5Parser.cxx:350
void startZone()
start a new zone
Definition: RagTime5Text.cxx:1206
Class to store font.
Definition: MWAWFont.hxx:44
std::string m_extra
extra data
Definition: RagTime5Text.cxx:131
bool readPLCToCharStyle(RagTime5TextInternal::ClusterText &cluster)
try to read a plc id to char style correspondance
Definition: RagTime5Text.cxx:740
std::vector< Block > m_blockList
the list of block
Definition: RagTime5Text.cxx:1171
bool readLinkZones(RagTime5ClusterManager::Cluster &cluster, RagTime5ClusterManager::Link const &link)
try to read a list of link/list definition
Definition: RagTime5Text.cxx:523
friend class RagTime5TextInternal::SubDocument
Definition: RagTime5Text.hxx:77
RagTime5ClusterManager::Link m_plcDefLink
the plc definition link
Definition: RagTime5Text.cxx:146
low level: parser of text cluster
Definition: RagTime5Text.cxx:1186
Block2ListParser()
constructor
Definition: RagTime5Text.cxx:1130
static bool readDataIdList(MWAWInputStreamPtr input, int n, std::vector< int > &listIds)
try to read n data id
Definition: RagTime5StructManager.cxx:269
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:505
Type m_type
the field type
Definition: RagTime5StructManager.hxx:237
std::vector< Field > m_fieldList
the list of field
Definition: RagTime5StructManager.hxx:259
RagTime5Text & operator=(RagTime5Text const &orig)
std::vector< RagTime5ClusterManager::Link > m_linkDefList
the list of link zone
Definition: RagTime5Text.cxx:160
int m_plc[2]
the list of zone plc (first-end)
Definition: RagTime5Text.cxx:129
std::string m_name
the link name
Definition: RagTime5ClusterManager.hxx:198
std::vector< Block > m_block2List
list of block (defined in block2 list)
Definition: RagTime5Text.cxx:169
ClusterParser(RagTime5ClusterManager &parser, int type, std::string const &zoneName)
constructor
Definition: RagTime5ClusterManager.hxx:327
int m_fieldSize
the field size
Definition: RagTime5ClusterManager.hxx:204
shared_ptr< RagTime5TextInternal::State > m_state
the state
Definition: RagTime5Text.hxx:161
State()
constructor
Definition: RagTime5Text.cxx:184
Generated on Wed Jun 17 2020 06:30:13 for libmwaw by
doxygen 1.8.18