LibreOffice Module sw (master)
1
|
#include <swregion.hxx>
Public Member Functions | |
SwRegionRects (const SwRect &rStartRect, sal_uInt16 nInit=20) | |
void | operator-= (const SwRect &rRect) |
Delete all overlaps of the Rects in array with the given <rRect> More... | |
void | operator+= (const SwRect &rRect) |
void | Invert () |
invert current rectangle More... | |
void | Compress () |
const SwRect & | GetOrigin () const |
void | ChangeOrigin (const SwRect &rRect) |
Private Member Functions | |
void | InsertRect (const SwRect &rRect, const sal_uInt16 nPos, bool &rDel) |
Private Attributes | |
SwRect | m_aOrigin |
Definition at line 28 of file swregion.hxx.
SwRegionRects::SwRegionRects | ( | const SwRect & | rStartRect, |
sal_uInt16 | nInit = 20 |
||
) |
Definition at line 24 of file swregion.cxx.
References m_aOrigin.
Definition at line 48 of file swregion.hxx.
Referenced by SwLayAction::FormatLayout().
void SwRegionRects::Compress | ( | ) |
Definition at line 145 of file swregion.cxx.
References begin, CalcArea(), i, SwRect::Intersection(), size, and SwRect::Union().
Referenced by SwViewShell::CheckInvalidForPaint().
|
inline |
Definition at line 47 of file swregion.hxx.
References m_aOrigin.
Referenced by SwViewShell::CheckInvalidForPaint(), DrawFillAttributes(), SwTextFly::DrawTextOpaque(), SwShellTableCursor::FillRects(), and Sub().
|
inlineprivate |
Definition at line 34 of file swregion.cxx.
Referenced by operator+=(), and operator-=().
void SwRegionRects::Invert | ( | ) |
invert current rectangle
Change the shape, such that holes with be areas and areas are holes now.
Note: If no rects were removed, then the shape is identical to the original shape. As a result, it will be a NULL-SRectangle after inverting.
Definition at line 122 of file swregion.cxx.
References begin, end, m_aOrigin, size, and swap().
Referenced by SwViewShell::CheckInvalidForPaint(), and SwShellTableCursor::FillRects().
Definition at line 48 of file swregion.cxx.
References f, and InsertRect().
Delete all overlaps of the Rects in array with the given <rRect>
To do so, all existing rectangles have to be either split or deleted.
rRect | rectangle with the area that should be deleted |
Definition at line 60 of file swregion.cxx.
References begin, SwRect::Bottom(), SwRect::Height(), i, InsertRect(), SwRect::Intersection_(), SwRect::IsOver(), SwRect::Left(), size, SwRect::Top(), and SwRect::Width().
|
private |
Definition at line 30 of file swregion.hxx.
Referenced by GetOrigin(), Invert(), and SwRegionRects().