LibreOffice Module desktop (master)
1
|
Represents an invalidated rectangle inside a given document part. More...
#include <init.hxx>
Public Member Functions | |
RectangleAndPart () | |
RectangleAndPart (const tools::Rectangle *pRect, int nPart) | |
OString | toString () const |
bool | isInfinite () const |
Infinite Rectangle is both sides are equal or longer than SfxLokHelper::MaxTwips. More... | |
bool | isEmpty () const |
Empty Rectangle is when it has zero dimensions. More... | |
Static Public Member Functions | |
static RectangleAndPart | Create (const std::string &rPayload) |
static tools::Rectangle | SanitizedRectangle (tools::Long nLeft, tools::Long nTop, tools::Long nWidth, tools::Long nHeight) |
Makes sure a rectangle is valid (apparently some code does not like negative coordinates for example). More... | |
static tools::Rectangle | SanitizedRectangle (const tools::Rectangle &rect) |
Public Attributes | |
tools::Rectangle | m_aRectangle |
int | m_nPart |
Static Public Attributes | |
static constexpr tools::Rectangle | emptyAllRectangle = {0, 0, SfxLokHelper::MaxTwips, SfxLokHelper::MaxTwips} |
Represents an invalidated rectangle inside a given document part.
|
inline |
|
static |
Definition at line 412 of file init.cxx.
References end, comphelper::LibreOfficeKit::isPartInInvalidation(), m_aRectangle, m_nPart, SfxLokHelper::MaxTwips, and pos.
|
inline |
Empty Rectangle is when it has zero dimensions.
Definition at line 79 of file init.hxx.
References tools::Rectangle::IsEmpty().
Referenced by desktop::CallbackFlushHandler::processInvalidateTilesEvent().
|
inline |
Infinite Rectangle is both sides are equal or longer than SfxLokHelper::MaxTwips.
Definition at line 72 of file init.hxx.
References tools::Rectangle::GetHeight(), tools::Rectangle::GetWidth(), and SfxLokHelper::MaxTwips.
Referenced by desktop::CallbackFlushHandler::processInvalidateTilesEvent(), and toString().
|
static |
|
static |
Definition at line 483 of file init.cxx.
References tools::Rectangle::getHeight(), tools::Rectangle::getWidth(), tools::Rectangle::Left(), and tools::Rectangle::Top().
|
inline |
Definition at line 61 of file init.hxx.
References isInfinite(), and tools::Rectangle::toString().
Referenced by desktop::CallbackFlushHandler::processInvalidateTilesEvent().
|
static |
tools::Rectangle desktop::RectangleAndPart::m_aRectangle |
Definition at line 42 of file init.hxx.
Referenced by Create(), and desktop::CallbackFlushHandler::processInvalidateTilesEvent().
int desktop::RectangleAndPart::m_nPart |
Definition at line 43 of file init.hxx.
Referenced by Create(), and desktop::CallbackFlushHandler::processInvalidateTilesEvent().