LibreOffice Module sd (master) 1
Public Member Functions | Private Attributes | List of all members
sd::GraphicSizeViolation Class Referencefinal

Class responsible to check if a graphic object violates the size constraints and store the results. More...

#include <GraphicSizeCheck.hxx>

Collaboration diagram for sd::GraphicSizeViolation:
[legend]

Public Member Functions

 GraphicSizeViolation (sal_Int32 nDPI, SdrGrafObj *pGraphicObject)
 
bool check ()
 
const OUString & getGraphicName ()
 
SdrGrafObjgetObject () const
 
bool isDPITooLow ()
 
bool isDPITooHigh ()
 
sal_Int32 getDPIX ()
 
sal_Int32 getDPIY ()
 

Private Attributes

SdrGrafObjm_pGraphicObject
 
sal_Int32 m_nLowDPILimit = 0
 
sal_Int32 m_nHighDPILimit = 0
 
sal_Int32 m_nDPIX = 0
 
sal_Int32 m_nDPIY = 0
 

Detailed Description

Class responsible to check if a graphic object violates the size constraints and store the results.

Definition at line 24 of file GraphicSizeCheck.hxx.

Constructor & Destructor Documentation

◆ GraphicSizeViolation()

sd::GraphicSizeViolation::GraphicSizeViolation ( sal_Int32  nDPI,
SdrGrafObj pGraphicObject 
)

Definition at line 87 of file GraphicSizeCheck.cxx.

References m_nHighDPILimit, and m_nLowDPILimit.

Member Function Documentation

◆ check()

bool sd::GraphicSizeViolation::check ( )

◆ getDPIX()

sal_Int32 sd::GraphicSizeViolation::getDPIX ( )
inline

Definition at line 47 of file GraphicSizeCheck.hxx.

References m_nDPIX.

◆ getDPIY()

sal_Int32 sd::GraphicSizeViolation::getDPIY ( )
inline

Definition at line 49 of file GraphicSizeCheck.hxx.

References m_nDPIY.

◆ getGraphicName()

const OUString & sd::GraphicSizeViolation::getGraphicName ( )

Definition at line 114 of file GraphicSizeCheck.cxx.

References SdrObject::GetName(), and m_pGraphicObject.

◆ getObject()

SdrGrafObj * sd::GraphicSizeViolation::getObject ( ) const
inline

Definition at line 41 of file GraphicSizeCheck.hxx.

References m_pGraphicObject.

◆ isDPITooHigh()

bool sd::GraphicSizeViolation::isDPITooHigh ( )
inline

Definition at line 45 of file GraphicSizeCheck.hxx.

References m_nDPIX, m_nDPIY, and m_nHighDPILimit.

Referenced by check().

◆ isDPITooLow()

bool sd::GraphicSizeViolation::isDPITooLow ( )
inline

Definition at line 43 of file GraphicSizeCheck.hxx.

References m_nDPIX, m_nDPIY, and m_nLowDPILimit.

Referenced by check().

Member Data Documentation

◆ m_nDPIX

sal_Int32 sd::GraphicSizeViolation::m_nDPIX = 0
private

Definition at line 32 of file GraphicSizeCheck.hxx.

Referenced by check(), getDPIX(), isDPITooHigh(), and isDPITooLow().

◆ m_nDPIY

sal_Int32 sd::GraphicSizeViolation::m_nDPIY = 0
private

Definition at line 33 of file GraphicSizeCheck.hxx.

Referenced by check(), getDPIY(), isDPITooHigh(), and isDPITooLow().

◆ m_nHighDPILimit

sal_Int32 sd::GraphicSizeViolation::m_nHighDPILimit = 0
private

Definition at line 30 of file GraphicSizeCheck.hxx.

Referenced by GraphicSizeViolation(), and isDPITooHigh().

◆ m_nLowDPILimit

sal_Int32 sd::GraphicSizeViolation::m_nLowDPILimit = 0
private

Definition at line 29 of file GraphicSizeCheck.hxx.

Referenced by GraphicSizeViolation(), and isDPITooLow().

◆ m_pGraphicObject

SdrGrafObj* sd::GraphicSizeViolation::m_pGraphicObject
private

Definition at line 27 of file GraphicSizeCheck.hxx.

Referenced by check(), getGraphicName(), and getObject().


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