LibreOffice Module desktop (master)  1
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
desktop::RectangleAndPart Struct Reference

Represents an invalidated rectangle inside a given document part. More...

#include <init.hxx>

Collaboration diagram for desktop::RectangleAndPart:
[legend]

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}
 

Detailed Description

Represents an invalidated rectangle inside a given document part.

Definition at line 40 of file init.hxx.

Constructor & Destructor Documentation

desktop::RectangleAndPart::RectangleAndPart ( )
inline

Definition at line 50 of file init.hxx.

desktop::RectangleAndPart::RectangleAndPart ( const tools::Rectangle pRect,
int  nPart 
)
inline

Definition at line 55 of file init.hxx.

Member Function Documentation

RectangleAndPart desktop::RectangleAndPart::Create ( const std::string &  rPayload)
static
bool desktop::RectangleAndPart::isEmpty ( ) const
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().

bool desktop::RectangleAndPart::isInfinite ( ) const
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().

tools::Rectangle desktop::RectangleAndPart::SanitizedRectangle ( tools::Long  nLeft,
tools::Long  nTop,
tools::Long  nWidth,
tools::Long  nHeight 
)
static

Makes sure a rectangle is valid (apparently some code does not like negative coordinates for example).

Definition at line 458 of file init.cxx.

tools::Rectangle desktop::RectangleAndPart::SanitizedRectangle ( const tools::Rectangle rect)
static
OString desktop::RectangleAndPart::toString ( ) const
inline

Member Data Documentation

constexpr tools::Rectangle desktop::RectangleAndPart::emptyAllRectangle = {0, 0, SfxLokHelper::MaxTwips, SfxLokHelper::MaxTwips}
static

Definition at line 48 of file init.hxx.

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


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