34 #ifndef RAG_TIME_5_STRUCT_MANAGER
35 # define RAG_TIME_5_STRUCT_MANAGER
60 for (
int i=0; i<2; ++i)
m_kinds[i]=
"";
76 std::string res(
m_kinds[main ? 0 : 1]);
77 std::string::size_type pos = res.find_last_of(
':');
78 if (pos == std::string::npos)
return res;
79 return res.substr(pos+1);
171 Field &field,
long fSz=0);
205 o <<
":#type=" << tab.
m_type;
209 o <<
":leader=" << tab.
m_leader.cstr();
398 for (
int i=0; i<3; ++i) {
419 for (
int i=0; i<3; ++i) {
int m_cap
the line caps ( normal=1, round, square)
Definition: RagTime5StructManager.hxx:378
bool read(MWAWInputStreamPtr &input, Field const &field)
try to read a line style
Definition: RagTime5StructManager.cxx:1790
int m_parentId[2]
the parent id ( main and style ?)
Definition: RagTime5StructManager.hxx:430
a tabulation in RagTime 5/6 structures
Definition: RagTime5StructManager.hxx:180
Definition: RagTime5StructManager.hxx:223
std::string m_asciiName
the ascii file name ( used if we need to create a ascii file)
Definition: RagTime5StructManager.hxx:147
bool isHeaderZone() const
returns true if the zone is a header zone(header, list zone, ...)
Definition: RagTime5StructManager.hxx:68
libmwaw::DebugFile & ascii()
returns the current ascii file
Definition: RagTime5StructManager.hxx:101
shared_ptr< MWAWGraphicStyle::Pattern > m_pattern
the line pattern
Definition: RagTime5StructManager.hxx:368
librevenge::RVNGString m_leader
the leader char
Definition: RagTime5StructManager.hxx:217
Definition: RagTime5StructManager.hxx:52
Definition: RagTime5StructManager.hxx:222
FileType m_fileType
the zone file type
Definition: RagTime5StructManager.hxx:116
Definition: RagTime5StructManager.hxx:222
FieldParser(std::string const &zoneName)
constructor
Definition: RagTime5StructManager.hxx:270
long m_fileType
the file type
Definition: RagTime5StructManager.hxx:241
Definition: RagTime5StructManager.hxx:222
std::string m_name
the field name
Definition: RagTime5StructManager.hxx:325
virtual std::string getZoneName() const
return the debug name corresponding to a zone
Definition: RagTime5StructManager.hxx:274
friend std::ostream & operator<<(std::ostream &o, GraphicStyle const &style)
operator<<
Definition: RagTime5StructManager.cxx:1705
int m_language
the language
Definition: RagTime5StructManager.hxx:476
virtual ~FieldParser()
destructor
Definition: RagTime5StructManager.hxx:272
std::string getKindLastPart(bool main=true) const
returns the main type
Definition: RagTime5StructManager.hxx:74
TabStop()
constructor
Definition: RagTime5StructManager.hxx:182
friend std::ostream & operator<<(std::ostream &o, TextStyle const &style)
operator<<
Definition: RagTime5StructManager.cxx:2308
virtual std::string getZoneName(int n) const
return the debug name corresponding to a field
Definition: RagTime5StructManager.hxx:312
bool readTypeDefinitions(RagTime5Zone &zone)
try to read a list of type definition
Definition: RagTime5StructManager.cxx:74
bool isMainInput() const
returns true if the input correspond to the basic file
Definition: RagTime5StructManager.hxx:96
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:226
double m_letterSpacings[3]
the spacings in percent ( normal, minimum, maximum)
Definition: RagTime5StructManager.hxx:478
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:65
long m_longValue[2]
the long value
Definition: RagTime5StructManager.hxx:245
float m_limitPercent
the line limit
Definition: RagTime5StructManager.hxx:382
int m_mitter
the line mitter ( triangle=1, round, out)
Definition: RagTime5StructManager.hxx:380
int m_graphLineStyleId
the graphic line style id
Definition: RagTime5StructManager.hxx:438
float m_width
the line width (in point)
Definition: RagTime5StructManager.hxx:360
std::string m_extra
extra data
Definition: RagTime5StructManager.hxx:386
static MWAWColor black()
return the back color
Definition: libmwaw_internal.hxx:221
~RagTime5StructManager()
destructor
Definition: RagTime5StructManager.cxx:51
Definition: RagTime5StructManager.hxx:222
int m_dateStyleId
the date style id
Definition: RagTime5StructManager.hxx:434
MWAWVariable< float > m_scriptPosition
the font script position ( in percent)
Definition: RagTime5StructManager.hxx:468
double m_columnGap
the gap between columns
Definition: RagTime5StructManager.hxx:485
virtual ~TextStyle()
destructor
Definition: RagTime5StructManager.hxx:406
int m_idsFlag[3]
the zone flag
Definition: RagTime5StructManager.hxx:132
int m_variableD[2]
the content of the zone D if it exists
Definition: RagTime5StructManager.hxx:138
double m_margins[3]
the spacings in point ( left, right, first)
Definition: RagTime5StructManager.hxx:453
double m_doubleValue
the double value
Definition: RagTime5StructManager.hxx:247
libmwaw::DebugFile * m_asciiFile
the ascii file corresponding to an input
Definition: RagTime5StructManager.hxx:149
~Field()
destructor
Definition: RagTime5StructManager.hxx:233
virtual class use to parse the field data
Definition: RagTime5StructManager.hxx:268
int m_numColumns
the number of columns
Definition: RagTime5StructManager.hxx:483
int m_subType
the zone sub type
Definition: RagTime5StructManager.hxx:118
uint32_t m_fontFlags[2]
the font flags (add and remove )
Definition: RagTime5StructManager.hxx:466
shared_ptr< libmwaw::DebugFile > m_localAsciiFile
the local ascii file ( if we need to create a new input)
Definition: RagTime5StructManager.hxx:151
main zone in a RagTime v5-v6 document
Definition: RagTime5StructManager.hxx:48
the class to store a color
Definition: libmwaw_internal.hxx:177
MWAWColor m_colors[2]
the first and second color
Definition: RagTime5StructManager.hxx:362
virtual ~RagTime5Zone()
destructor
Definition: RagTime5StructManager.hxx:64
int m_type
the type
Definition: RagTime5StructManager.hxx:215
librevenge::RVNGString m_fontName
the font name
Definition: RagTime5StructManager.hxx:460
float m_fontScaling
the font script position ( in percent)
Definition: RagTime5StructManager.hxx:470
Definition: RagTime5StructManager.hxx:223
TextStyle()
constructor
Definition: RagTime5StructManager.hxx:391
std::vector< double > m_doubleList
the list of double value
Definition: RagTime5StructManager.hxx:255
virtual std::string getZoneName() const
return the debug name corresponding to a zone
Definition: RagTime5StructManager.hxx:307
MWAWVec2f m_gradientCenter
the rotation center(checkme)
Definition: RagTime5StructManager.hxx:374
Definition: RagTime5StructManager.hxx:52
virtual class use to parse the unstructured data
Definition: RagTime5StructManager.hxx:301
float m_fontSize
the font size
Definition: RagTime5StructManager.hxx:464
Type m_type
the field type
Definition: RagTime5StructManager.hxx:239
GraphicStyle()
constructor
Definition: RagTime5StructManager.hxx:333
friend std::ostream & operator<<(std::ostream &o, RagTime5Zone const &z)
operator<<
Definition: RagTime5StructManager.cxx:2547
int m_breakMethod
the break method 0: asIs, next container, next page, next even page, next odd page ...
Definition: RagTime5StructManager.hxx:451
std::string m_extra
extra data
Definition: RagTime5StructManager.hxx:488
static bool readDataIdList(MWAWInputStreamPtr input, int n, std::vector< int > &listIds)
try to read n data id
Definition: RagTime5StructManager.cxx:260
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:721
bool readField(MWAWInputStreamPtr input, long endPos, libmwaw::DebugFile &ascFile, Field &field, long fSz=0)
try to read a field
Definition: RagTime5StructManager.cxx:281
float m_gradientRotation
the gradient rotation(checkme)
Definition: RagTime5StructManager.hxx:372
Definition: RagTime5StructManager.hxx:222
bool read(MWAWInputStreamPtr &input, Field const &field)
try to read a line style
Definition: RagTime5StructManager.cxx:1439
Definition: RagTime5StructManager.hxx:223
bool m_isParsed
a flag to know if the zone is parsed
Definition: RagTime5StructManager.hxx:140
int m_underline
underline : none, single, double
Definition: RagTime5StructManager.hxx:472
long m_defPosition
the position of the definition in the main zones
Definition: RagTime5StructManager.hxx:120
static bool readUnicodeString(MWAWInputStreamPtr input, long endPos, librevenge::RVNGString &string)
try to read a unicode string
Definition: RagTime5StructManager.cxx:231
Definition: RagTime5StructManager.hxx:52
Definition: RagTime5StructManager.hxx:223
FieldParser & operator=(FieldParser const &orig)
void setAsciiFileName(std::string const &name)
defines the ascii name
Definition: RagTime5StructManager.hxx:108
Definition: RagTime5StructManager.hxx:223
std::string m_kinds[2]
the zone types: normal and packing
Definition: RagTime5StructManager.hxx:122
RagTime5StructManager operator=(RagTime5StructManager const &orig)
std::string m_name
the field type name
Definition: RagTime5StructManager.hxx:243
RagTime5Zone(MWAWInputStreamPtr input, libmwaw::DebugFile &asc)
constructor
Definition: RagTime5StructManager.hxx:54
a field of RagTime 5/6 structures
Definition: RagTime5StructManager.hxx:220
float m_colorsAlpha[2]
alpha of the first and second color
Definition: RagTime5StructManager.hxx:364
virtual std::string getZoneName(int n) const
return the debug name corresponding to a field
Definition: RagTime5StructManager.hxx:279
std::vector< long > m_longList
the list of long value
Definition: RagTime5StructManager.hxx:253
bool m_regroupFields
a flag use to decide if we output one debug message by field or not
Definition: RagTime5StructManager.hxx:292
void createAsciiFile()
creates the ascii file
Definition: RagTime5StructManager.cxx:2472
std::string getZoneName() const
returns the zone name
Definition: RagTime5StructManager.cxx:2486
Definition: RagTime5StructManager.hxx:222
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:439
std::vector< MWAWEntry > m_entriesList
the list of original entries
Definition: RagTime5StructManager.hxx:134
Field()
constructor
Definition: RagTime5StructManager.hxx:227
MWAWEntry m_entry
the zone entry
Definition: RagTime5StructManager.hxx:124
Definition: RagTime5StructManager.hxx:222
bool m_hidden
flag to know if we need to print the shape
Definition: RagTime5StructManager.hxx:384
long m_fontId
the font id
Definition: RagTime5StructManager.hxx:462
int m_position
the line position inside=1/normal/outside/round
Definition: RagTime5StructManager.hxx:376
std::vector< TabStop > m_tabList
the tabulations
Definition: RagTime5StructManager.hxx:455
std::string m_name
the field name
Definition: RagTime5StructManager.hxx:295
std::vector< TabStop > m_tabList
the list of tabStop
Definition: RagTime5StructManager.hxx:259
std::string m_name
the zone name ( mainly used for debugging)
Definition: RagTime5StructManager.hxx:126
Definition: RagTime5StructManager.hxx:222
MWAWColor m_color
the color
Definition: RagTime5StructManager.hxx:249
Definition: RagTime5StructManager.hxx:223
int m_graphStyleId
the graphic style id
Definition: RagTime5StructManager.hxx:436
void setInput(MWAWInputStreamPtr input)
reset the current input
Definition: RagTime5StructManager.hxx:90
Definition: RagTime5StructManager.hxx:223
std::string m_extra
extra data
Definition: RagTime5StructManager.hxx:265
virtual ~GraphicStyle()
destructor
Definition: RagTime5StructManager.hxx:341
the graphic style of a RagTime v5-v6 document
Definition: RagTime5StructManager.hxx:331
the text style of a RagTime v5-v6 document
Definition: RagTime5StructManager.hxx:389
float m_position
the position
Definition: RagTime5StructManager.hxx:213
std::vector< int > m_linkIdList
the link id list
Definition: RagTime5StructManager.hxx:432
Definition: RagTime5StructManager.hxx:52
int m_numLongByData
the number of long by data (in m_longList)
Definition: RagTime5StructManager.hxx:257
bool isDefault() const
returns true if the line style is default
Definition: RagTime5StructManager.hxx:345
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
Definition: RagTime5StructManager.hxx:223
Type
the different type
Definition: RagTime5StructManager.hxx:222
bool isWhite() const
return true if the color is white
Definition: libmwaw_internal.hxx:265
DataParser(std::string const &zoneName)
constructor
Definition: RagTime5StructManager.hxx:303
FileType
the zone file type
Definition: RagTime5StructManager.hxx:52
virtual ~DataParser()
destructor
Definition: RagTime5StructManager.hxx:305
double m_spacings[3]
the interline/before/after value
Definition: RagTime5StructManager.hxx:447
bool isBlack() const
return true if the color is black
Definition: libmwaw_internal.hxx:260
RagTime5StructManager()
constructor
Definition: RagTime5StructManager.cxx:47
RagTime5Zone & operator=(RagTime5Zone const &orig)
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
basic class used to store RagTime 5/6 structures
Definition: RagTime5StructManager.hxx:158
std::vector< long > m_dash
the line dash/...
Definition: RagTime5StructManager.hxx:366
friend std::ostream & operator<<(std::ostream &o, TabStop const &tab)
operator<<
Definition: RagTime5StructManager.hxx:186
MWAWVariable< bool > m_keepWithNext
the keep with next flag
Definition: RagTime5StructManager.hxx:443
bool m_hiLoEndian
true if the endian is hilo
Definition: RagTime5StructManager.hxx:128
bool m_defaultInput
a flag used to know if the input is or not the default input
Definition: RagTime5StructManager.hxx:145
int m_ids[3]
the zone id
Definition: RagTime5StructManager.hxx:130
int m_gradient
the gradient 0: none, normal, radial
Definition: RagTime5StructManager.hxx:370
DataParser & operator=(DataParser const &orig)
int m_spacingUnits[3]
the interline/before/after unit 0: line, 1:point
Definition: RagTime5StructManager.hxx:449
std::vector< Field > m_fieldList
the list of field
Definition: RagTime5StructManager.hxx:261
virtual bool parseField(Field &field, RagTime5Zone &, int, libmwaw::DebugStream &f)
parse a field
Definition: RagTime5StructManager.hxx:286
int m_parentId
the parent id
Definition: RagTime5StructManager.hxx:358
Definition: RagTime5StructManager.hxx:222
bool isSet() const
return true if the variable is set
Definition: libmwaw_internal.hxx:522
MWAWInputStreamPtr m_input
the main input
Definition: RagTime5StructManager.hxx:143
MWAWEntry m_entry
entry to defined the position of a String or Unstructured data
Definition: RagTime5StructManager.hxx:263
int m_justify
justify 0: left, 1:center, 2:right, 3:full, 4:full all
Definition: RagTime5StructManager.hxx:445
friend std::ostream & operator<<(std::ostream &o, Field const &field)
operator<<
Definition: RagTime5StructManager.cxx:1325
MWAWInputStreamPtr getInput()
returns the current input
Definition: RagTime5StructManager.hxx:85
std::string m_extra
extra data
Definition: RagTime5StructManager.hxx:136
Definition: RagTime5StructManager.hxx:223
virtual bool parseData(MWAWInputStreamPtr &, long, RagTime5Zone &, int, libmwaw::DebugStream &)
parse a data
Definition: RagTime5StructManager.hxx:319
static bool readCompressedLong(MWAWInputStreamPtr &input, long endPos, long &val)
try to read a compressed long
Definition: RagTime5StructManager.cxx:58
bool isDefault() const
returns true if the line style is default
Definition: RagTime5StructManager.hxx:410
int m_caps
caps : none, all caps, lower caps, inital caps + other lowers
Definition: RagTime5StructManager.hxx:474
librevenge::RVNGString m_string
small string use to store a string or a 4 char code
Definition: RagTime5StructManager.hxx:251