LibreOffice Module sw (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SwRegionRects Class Reference

#include <swregion.hxx>

Inheritance diagram for SwRegionRects:
Collaboration diagram for SwRegionRects:

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 SwRectGetOrigin () 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

Detailed Description

Definition at line 28 of file swregion.hxx.

Constructor & Destructor Documentation

SwRegionRects::SwRegionRects ( const SwRect rStartRect,
sal_uInt16  nInit = 20 

Definition at line 24 of file swregion.cxx.

References m_aOrigin.

Member Function Documentation

void SwRegionRects::ChangeOrigin ( const SwRect rRect)

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().

const SwRect& SwRegionRects::GetOrigin ( ) const
void SwRegionRects::InsertRect ( const SwRect rRect,
const sal_uInt16  nPos,
bool &  rDel 

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().

void SwRegionRects::operator+= ( const SwRect rRect)

Definition at line 48 of file swregion.cxx.

References f, and InsertRect().

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.

rRectrectangle 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().

Member Data Documentation

SwRect SwRegionRects::m_aOrigin

Definition at line 30 of file swregion.hxx.

Referenced by GetOrigin(), Invert(), and SwRegionRects().

The documentation for this class was generated from the following files: