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, int nMode) | |
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 OString &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 |
int | m_nMode |
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 516 of file init.cxx.
References end, comphelper::LibreOfficeKit::isPartInInvalidation(), m_aRectangle, m_nMode, m_nPart, SfxLokHelper::MaxTwips, pos, SanitizedRectangle(), and o3tl::toInt32().
Referenced by desktop::CallbackFlushHandler::CallbackData::getRectangleAndPart().
|
inline |
Empty Rectangle is when it has zero dimensions.
Definition at line 84 of file init.hxx.
References tools::Rectangle::IsEmpty(), and m_aRectangle.
Referenced by desktop::CallbackFlushHandler::processInvalidateTilesEvent().
|
inline |
Infinite Rectangle is both sides are equal or longer than SfxLokHelper::MaxTwips.
Definition at line 77 of file init.hxx.
References tools::Rectangle::GetHeight(), tools::Rectangle::GetWidth(), m_aRectangle, and SfxLokHelper::MaxTwips.
Referenced by desktop::CallbackFlushHandler::processInvalidateTilesEvent(), and toString().
|
static |
Definition at line 612 of file init.cxx.
References tools::Rectangle::getOpenHeight(), tools::Rectangle::getOpenWidth(), tools::Rectangle::Left(), SanitizedRectangle(), and tools::Rectangle::Top().
|
static |
Makes sure a rectangle is valid (apparently some code does not like negative coordinates for example).
Definition at line 587 of file init.cxx.
Referenced by Create(), and SanitizedRectangle().
|
inline |
Definition at line 66 of file init.hxx.
References isInfinite(), m_aRectangle, m_nMode, m_nPart, and tools::Rectangle::toString().
Referenced by desktop::CallbackFlushHandler::CallbackData::getPayload(), and desktop::CallbackFlushHandler::processInvalidateTilesEvent().
|
staticconstexpr |
tools::Rectangle desktop::RectangleAndPart::m_aRectangle |
Definition at line 44 of file init.hxx.
Referenced by Create(), isEmpty(), isInfinite(), desktop::CallbackFlushHandler::processInvalidateTilesEvent(), and toString().
int desktop::RectangleAndPart::m_nMode |
Definition at line 46 of file init.hxx.
Referenced by Create(), desktop::CallbackFlushHandler::processInvalidateTilesEvent(), and toString().
int desktop::RectangleAndPart::m_nPart |
Definition at line 45 of file init.hxx.
Referenced by Create(), desktop::CallbackFlushHandler::processInvalidateTilesEvent(), and toString().