25 m_aOrigin( rStartRect )
40 const sal_uInt16 nPos,
bool &rDel )
44 (*this)[
nPos] = rRect;
66 sal_uInt16 nMax =
size();
67 for ( sal_uInt16
i = 0;
i < nMax; ++
i )
102 aTmp.
Width( nOldVal );
106 if ( aTmp.
Width() > 0 )
136 for( const_iterator it =
begin(); it !=
end(); ++it )
150 for (size_type
i = 0;
i <
size(); ++
i )
162 bool bRemoved =
false;
163 for (size_type
i = 0;
i <
size(); ++
i )
165 if( (*
this)[
i].IsEmpty())
171 const tools::Long yMax = (*this)[
i].Top() + (*this)[
i].Height() + nFuzzy
172 / std::max<tools::Long>( 1, (*
this)[
i].
Width());
173 for(size_type j =
i+1; j <
size(); ++j)
175 if( (*
this)[j].IsEmpty())
177 if( (*
this)[j].Top() > yMax )
181 else if ( (*
this)[
i].Contains( (*
this)[j] ) )
186 else if ( (*
this)[j].Contains( (*
this)[
i] ) )
188 (*this)[
i] = (*this)[j];
Of course Writer needs its own rectangles.
void Height(tools::Long nNew)
void Top(const tools::Long nTop)
void Bottom(const tools::Long nBottom)
SwRect GetUnion(const SwRect &rRect) const
SwRect & Intersection_(const SwRect &rRect)
SwRect GetIntersection(const SwRect &rRect) const
bool Overlaps(const SwRect &rRect) const
void Left(const tools::Long nLeft)
void Width(tools::Long nNew)
void operator-=(const SwRect &rRect)
Delete all overlaps of the Rects in array with the given <rRect>
void InsertRect(const SwRect &rRect, const sal_uInt16 nPos, bool &rDel)
void operator+=(const SwRect &rRect)
SwRegionRects(const SwRect &rStartRect, sal_uInt16 nInit=20)
void Compress(CompressType type)
void Invert()
invert current rectangle
void swap(cow_wrapper< T, P > &a, cow_wrapper< T, P > &b)
enumrange< T >::Iterator begin(enumrange< T >)
static SwTwips CalcArea(const SwRect &rRect)