Go to the documentation of this file.
38 #ifndef CLARIS_WKS_STRUCT
39 # define CLARIS_WKS_STRUCT
141 for (
int c=0; c<2; ++c) {
143 minPt[c]=
m_box[1][c];
144 maxPt[c]=
m_box[0][c];
156 for (
const auto &child :
m_childs) {
157 if (child.m_page > nPages)
164 virtual void removeChild(
int cId,
bool normalChild);
175 friend std::ostream &
operator<<(std::ostream &o,
DSET const &doc);
240 for (
int c=0; c<2; ++c) {
242 minPt[c]=
m_box[1][c];
243 maxPt[c]=
m_box[0][c];
263 #if !defined(__clang__)
268 if (ch.
m_id != -1) o <<
"id=" << ch.
m_id <<
",";
272 o <<
"box=" << ch.
m_box <<
",";
long m_size
the size of the DSET header
Definition: ClarisWksStruct.hxx:178
int m_id
the zone identificator
Definition: ClarisWksStruct.hxx:199
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
friend std::ostream & operator<<(std::ostream &o, Struct const &z)
operator<<
Definition: ClarisWksStruct.cxx:54
@ C_Unknown
Definition: ClarisWksStruct.hxx:96
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
long m_posC
a position (used in text zone to store the character )
Definition: ClarisWksStruct.hxx:281
@ P_Table
Definition: ClarisWksStruct.hxx:91
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
long m_headerSize
the header size
Definition: ClarisWksStruct.hxx:75
bool readStructZone(MWAWParserState &parserState, char const *zoneName, bool hasEntete)
try to read a structured zone with unknown content
Definition: ClarisWksStruct.cxx:162
Struct()
constructor
Definition: ClarisWksStruct.hxx:55
ChildType m_type
the type
Definition: ClarisWksStruct.hxx:277
DSET(DSET const &)=default
std::set< int > m_fathersList
the list of fathers
Definition: ClarisWksStruct.hxx:201
int m_id
the identificator
Definition: ClarisWksStruct.hxx:279
int m_textType
the text type (header/footer,footnote, ...)
Definition: ClarisWksStruct.hxx:209
structure used to define the child of a DSET structure
Definition: ClarisWksStruct.hxx:225
virtual ~DSET()
virtual destructor
Definition: ClarisWksStruct.hxx:123
int m_endSelection
the end of selection ( at least in text header)
Definition: ClarisWksStruct.hxx:206
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
namespace to store the main structure which appears in a ClarisDraw/ClarisWorks file
Definition: ClarisWksStruct.cxx:50
int m_flags[4]
some unknown flag
Definition: ClarisWksStruct.hxx:212
int m_beginSelection
the begin of selection ( at least in text header)
Definition: ClarisWksStruct.hxx:204
@ P_Frame
Definition: ClarisWksStruct.hxx:91
ChildType
the different types of zone child
Definition: ClarisWksStruct.hxx:96
bool isSet() const
return true if the variable is set
Definition: libmwaw_internal.hxx:635
MWAWBox2< T > getUnion(MWAWBox2< T > const &box) const
returns the union between this and box
Definition: libmwaw_internal.hxx:1129
int m_internal
an internal variable used to do some computation
Definition: ClarisWksStruct.hxx:222
MWAWBox2f getBdBox() const
return the zone bdbox
Definition: ClarisWksStruct.hxx:137
MWAWBox2f m_box
the bdbox
Definition: ClarisWksStruct.hxx:285
std::vector< int > m_otherChilds
the list of other child
Definition: ClarisWksStruct.hxx:217
bool m_parsed
a flag to know if the entry is sent or not to the listener
Definition: ClarisWksStruct.hxx:220
std::vector< Child > m_childs
the list of child zone
Definition: ClarisWksStruct.hxx:215
int m_page
the page if known
Definition: ClarisWksStruct.hxx:283
T y() const
second element
Definition: libmwaw_internal.hxx:673
@ P_Header
Definition: ClarisWksStruct.hxx:91
T x() const
first element
Definition: libmwaw_internal.hxx:668
virtual void removeChild(int cId, bool normalChild)
virtual function to remove a child from a list
Definition: ClarisWksStruct.cxx:239
std::ostream & operator<<(std::ostream &o, Struct const &z)
Definition: ClarisWksStruct.cxx:54
int m_fileType
the type ( 0: text, -1: graphic, ...)
Definition: ClarisWksStruct.hxx:189
@ C_SubText
Definition: ClarisWksStruct.hxx:96
bool readHeader(MWAWInputStreamPtr input, bool strict=false)
try to read the header
Definition: ClarisWksStruct.cxx:72
bool isHeaderFooter() const
test if the zone is an header/footer
Definition: ClarisWksStruct.hxx:126
@ C_Graphic
Definition: ClarisWksStruct.hxx:96
Position m_position
the zone type
Definition: ClarisWksStruct.hxx:187
@ P_GraphicMaster
Definition: ClarisWksStruct.hxx:92
int m_page
the page (if known)
Definition: ClarisWksStruct.hxx:192
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1193
main structure which correspond to a document part
Definition: ClarisWksStruct.hxx:87
MWAWBox2f m_box
the bounding box (if known)
Definition: ClarisWksStruct.hxx:194
friend std::ostream & operator<<(std::ostream &o, Child const &ch)
operator<<
Definition: ClarisWksStruct.hxx:249
bool readIntZone(MWAWParserState &parserState, char const *zoneName, bool hasEntete, int intSz, std::vector< int > &res)
try to read a int structured zone where fSz to the int size: 1(int8), 2(int16), 4(int32)
Definition: ClarisWksStruct.cxx:99
DSET()
constructor
Definition: ClarisWksStruct.hxx:99
MWAWBox2i getUnionChildBox() const
returns the child box (ie. the union of the childs box)
Definition: ClarisWksStruct.cxx:219
@ P_SlideNote
Definition: ClarisWksStruct.hxx:93
@ P_SlideThumbnail
Definition: ClarisWksStruct.hxx:93
MWAWBox2< int > MWAWBox2i
MWAWBox2 of int.
Definition: libmwaw_internal.hxx:1191
long m_size
the size of the DSET header
Definition: ClarisWksStruct.hxx:69
Position
the zone position
Definition: ClarisWksStruct.hxx:91
int getMaximumPage() const
returns the maximum page
Definition: ClarisWksStruct.hxx:149
static const int MAX_PAGES
Definition: ClarisWksStruct.cxx:52
a class to define the parser state
Definition: MWAWParser.hxx:50
@ P_Footer
Definition: ClarisWksStruct.hxx:91
void findForbiddenPagesBreaking(float pageDim, float formDim, int dim, MWAWVariable< int > &lastPage) const
find forbidden page break
Definition: ClarisWksStruct.cxx:363
long m_numData
the number of header
Definition: ClarisWksStruct.hxx:180
long m_dataSz
the data size
Definition: ClarisWksStruct.hxx:182
@ C_Zone
Definition: ClarisWksStruct.hxx:96
bool isSlide() const
test if the zone is a slide
Definition: ClarisWksStruct.hxx:132
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
long m_dataSize
the data size
Definition: ClarisWksStruct.hxx:73
@ P_Main
Definition: ClarisWksStruct.hxx:91
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1067
libmwaw::DebugFile m_asciiFile
the debug file
Definition: MWAWParser.hxx:91
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
@ P_Unknown
Definition: ClarisWksStruct.hxx:93
MWAWBox2f getBdBox() const
return the zone bdbox
Definition: ClarisWksStruct.hxx:236
Child()
constructor
Definition: ClarisWksStruct.hxx:227
a basic structure
Definition: ClarisWksStruct.hxx:53
MWAWVec2f m_pageDimension
the page dimension (if know)
Definition: ClarisWksStruct.hxx:196
@ P_SlideMaster
Definition: ClarisWksStruct.hxx:93
long m_headerSz
the header size
Definition: ClarisWksStruct.hxx:184
int m_type
the type
Definition: ClarisWksStruct.hxx:77
MWAWInputStreamPtr m_input
the input
Definition: MWAWParser.hxx:65
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
int m_values[2]
an unknown value
Definition: ClarisWksStruct.hxx:79
friend std::ostream & operator<<(std::ostream &o, DSET const &doc)
operator<<
Definition: ClarisWksStruct.cxx:396
@ P_Footnote
Definition: ClarisWksStruct.hxx:91
@ P_Slide
Definition: ClarisWksStruct.hxx:93
void updateChildPositions(MWAWVec2f const &pageDim, float formLength, int numHorizontalPages=1)
try to update the child page and bounding box
Definition: ClarisWksStruct.cxx:259
long m_numData
the number of header
Definition: ClarisWksStruct.hxx:71
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20