38 #ifndef CLARIS_WKS_STRUCT
39 # define CLARIS_WKS_STRUCT
69 for (
int i = 0; i < 4; i++)
m_flags[i] = 0;
91 for (
int c=0; c<2; ++c) {
96 return Box2f(minPt,maxPt);
106 for (
size_t b=0; b <
m_childs.size(); b++) {
114 virtual void removeChild(
int cId,
bool normalChild);
125 friend std::ostream &
operator<<(std::ostream &o,
DSET const &doc);
183 Vec2f minPt(m_box[0][0], m_box[0][1]);
184 Vec2f maxPt(m_box[1][0], m_box[1][1]);
185 for (
int c=0; c<2; ++c) {
186 if (m_box.
size()[c]>=0)
continue;
187 minPt[c]=m_box[1][c];
188 maxPt[c]=m_box[0][c];
190 return Box2f(minPt,maxPt);
211 if (ch.
m_id != -1) o <<
"id=" << ch.
m_id <<
",";
215 o <<
"box=" << ch.
m_box <<
",";
int m_beginSelection
the begin of selection ( at least in text header)
Definition: ClarisWksStruct.hxx:154
Box2f getBdBox() const
return the zone bdbox
Definition: ClarisWksStruct.hxx:87
int m_endSelection
the end of selection ( at least in text header)
Definition: ClarisWksStruct.hxx:156
Definition: ClarisWksStruct.hxx:60
Box2f getBdBox() const
return the zone bdbox
Definition: ClarisWksStruct.hxx:181
bool isHeaderFooter() const
test if the zone is an header/footer
Definition: ClarisWksStruct.hxx:76
Box2f m_box
the bdbox
Definition: ClarisWksStruct.hxx:228
bool isSlide() const
test if the zone is a slide
Definition: ClarisWksStruct.hxx:82
Child()
constructor
Definition: ClarisWksStruct.hxx:177
virtual ~DSET()
virtual destructor
Definition: ClarisWksStruct.hxx:73
ChildType m_type
the type
Definition: ClarisWksStruct.hxx:220
std::set< int > m_fathersList
the list of fathers
Definition: ClarisWksStruct.hxx:151
structure used to define the child of a DSET structure
Definition: ClarisWksStruct.hxx:175
friend std::ostream & operator<<(std::ostream &o, Child const &ch)
operator<<
Definition: ClarisWksStruct.hxx:194
long m_size
the size of the DSET header
Definition: ClarisWksStruct.hxx:128
int m_page
the page (if known)
Definition: ClarisWksStruct.hxx:142
Definition: ClarisWksStruct.hxx:57
int m_flags[4]
some unknown flag
Definition: ClarisWksStruct.hxx:162
Definition: ClarisWksStruct.hxx:56
int m_internal
an internal variable used to do some computation
Definition: ClarisWksStruct.hxx:172
int getMaximumPage() const
returns the maximum page
Definition: ClarisWksStruct.hxx:99
Definition: ClarisWksStruct.hxx:55
long m_numData
the number of header
Definition: ClarisWksStruct.hxx:130
Box2< float > Box2f
Box2 of float.
Definition: libmwaw_internal.hxx:1072
int m_id
the zone identificator
Definition: ClarisWksStruct.hxx:149
int m_textType
the text type (header/footer,footnote, ...)
Definition: ClarisWksStruct.hxx:159
Definition: ClarisWksStruct.hxx:55
main structure which correspond to a document part
Definition: ClarisWksStruct.hxx:51
T y() const
second element
Definition: libmwaw_internal.hxx:546
Box2f m_box
the bounding box (if known)
Definition: ClarisWksStruct.hxx:144
std::vector< int > m_otherChilds
the list of other child
Definition: ClarisWksStruct.hxx:167
Definition: ClarisWksStruct.hxx:57
Definition: ClarisWksStruct.hxx:57
DSET()
constructor
Definition: ClarisWksStruct.hxx:63
bool m_parsed
a flag to know if the entry is sent or not to the listener
Definition: ClarisWksStruct.hxx:170
int m_page
the page if known
Definition: ClarisWksStruct.hxx:226
Definition: ClarisWksStruct.hxx:55
Box2i getUnionChildBox() const
returns the child box (ie. the union of the childs box)
Definition: ClarisWksStruct.cxx:51
T x() const
first element
Definition: libmwaw_internal.hxx:541
int m_fileType
the type ( 0: text, -1: graphic, ...)
Definition: ClarisWksStruct.hxx:139
friend std::ostream & operator<<(std::ostream &o, DSET const &doc)
operator<<
Definition: ClarisWksStruct.cxx:237
Definition: ClarisWksStruct.hxx:55
void updateChildPositions(Vec2f const &pageDim, float formLength, int numHorizontalPages=1)
try to update the child page and bounding box
Definition: ClarisWksStruct.cxx:94
void findForbiddenPagesBreaking(float pageDim, float formDim, int dim, std::set< int > &forbiddenPageBreak) const
find forbidden page break
Definition: ClarisWksStruct.cxx:196
Definition: ClarisWksStruct.hxx:60
Definition: ClarisWksStruct.hxx:57
Position
the zone position
Definition: ClarisWksStruct.hxx:55
Definition: ClarisWksStruct.hxx:60
Position m_position
the zone type
Definition: ClarisWksStruct.hxx:137
Definition: ClarisWksStruct.hxx:60
virtual void removeChild(int cId, bool normalChild)
virtual function to remove a child from a list
Definition: ClarisWksStruct.cxx:72
namespace to store the main structure which appears in a Claris Works file
Definition: ClarisWksStruct.cxx:46
long m_dataSz
the data size
Definition: ClarisWksStruct.hxx:132
std::vector< Child > m_childs
the list of child zone
Definition: ClarisWksStruct.hxx:165
Vec2f m_pageDimension
the page dimension (if know)
Definition: ClarisWksStruct.hxx:146
Vec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:937
ChildType
the different types of zone child
Definition: ClarisWksStruct.hxx:60
Definition: ClarisWksStruct.hxx:57
long m_posC
a position (used in text zone to store the character )
Definition: ClarisWksStruct.hxx:224
int m_id
the identificator
Definition: ClarisWksStruct.hxx:222
Definition: ClarisWksStruct.hxx:55
Definition: ClarisWksStruct.hxx:55
long m_headerSz
the header size
Definition: ClarisWksStruct.hxx:134