LibreOffice Module sw (master) 1
|
#include <swregion.hxx>
Public Types | |
enum | CompressType { CompressExact , CompressFuzzy } |
Public Member Functions | |
SwRegionRects (const SwRect &rStartRect, sal_uInt16 nInit=20) | |
SwRegionRects (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 | LimitToOrigin () |
void | Compress (CompressType type) |
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 35 of file swregion.hxx.
Enumerator | |
---|---|
CompressExact | |
CompressFuzzy |
Definition at line 58 of file swregion.hxx.
|
explicit |
Definition at line 24 of file swregion.cxx.
References m_aOrigin.
|
explicit |
Definition at line 31 of file swregion.cxx.
|
inline |
Definition at line 63 of file swregion.hxx.
References m_aOrigin.
Referenced by SwLayAction::FormatLayout().
void SwRegionRects::Compress | ( | CompressType | type | ) |
Definition at line 155 of file swregion.cxx.
References begin, CalcArea(), CompressFuzzy, end, SwRect::GetIntersection(), SwRect::GetUnion(), i, SwRect::IsEmpty(), size, SwRect::Top(), type, Width, and SwRect::Width().
Referenced by SwViewShell::FlushPendingLOKInvalidateTiles().
|
inline |
Definition at line 62 of file swregion.hxx.
References m_aOrigin.
Referenced by SwRootFrame::CalcFrameRects(), DrawFillAttributes(), SwTextFly::DrawTextOpaque(), SwShellTableCursor::FillRects(), and Sub().
|
inlineprivate |
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 126 of file swregion.cxx.
References begin, end, m_aOrigin, size, and swap().
Referenced by SwRootFrame::CalcFrameRects(), and SwShellTableCursor::FillRects().
void SwRegionRects::LimitToOrigin | ( | ) |
Definition at line 148 of file swregion.cxx.
void SwRegionRects::operator+= | ( | const SwRect & | rRect | ) |
Definition at line 53 of file swregion.cxx.
void SwRegionRects::operator-= | ( | const SwRect & | rRect | ) |
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 64 of file swregion.cxx.
References begin, SwRect::Bottom(), SwRect::Height(), i, InsertRect(), SwRect::Intersection_(), SwRect::Left(), SwRect::Overlaps(), size, SwRect::Top(), and SwRect::Width().
|
private |
Definition at line 37 of file swregion.hxx.
Referenced by ChangeOrigin(), GetOrigin(), Invert(), LimitToOrigin(), and SwRegionRects().