LibreOffice Module sw (master) 1
Public Member Functions | Private Attributes | List of all members
sw::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 sw::GraphicSizeViolation:
[legend]

Public Member Functions

 GraphicSizeViolation (sal_Int32 nDPI, const SwGrfNode *pGraphicNode)
 
bool check ()
 
const OUString & getGraphicName ()
 
bool isDPITooLow ()
 
bool isDPITooHigh ()
 
sal_Int32 getDPIX ()
 
sal_Int32 getDPIY ()
 

Private Attributes

const SwGrfNodem_pGraphicNode
 
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 22 of file GraphicSizeCheck.hxx.

Constructor & Destructor Documentation

◆ GraphicSizeViolation()

sw::GraphicSizeViolation::GraphicSizeViolation ( sal_Int32  nDPI,
const SwGrfNode pGraphicNode 
)

Definition at line 29 of file GraphicSizeCheck.cxx.

References m_nHighDPILimit, and m_nLowDPILimit.

Member Function Documentation

◆ check()

bool sw::GraphicSizeViolation::check ( )

◆ getDPIX()

sal_Int32 sw::GraphicSizeViolation::getDPIX ( )
inline

Definition at line 43 of file GraphicSizeCheck.hxx.

References m_nDPIX.

◆ getDPIY()

sal_Int32 sw::GraphicSizeViolation::getDPIY ( )
inline

Definition at line 45 of file GraphicSizeCheck.hxx.

References m_nDPIY.

◆ getGraphicName()

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

Definition at line 57 of file GraphicSizeCheck.cxx.

References SwNode::GetFlyFormat(), SwFormat::GetName(), and m_pGraphicNode.

◆ isDPITooHigh()

bool sw::GraphicSizeViolation::isDPITooHigh ( )
inline

Definition at line 41 of file GraphicSizeCheck.hxx.

References m_nDPIX, m_nDPIY, and m_nHighDPILimit.

Referenced by check().

◆ isDPITooLow()

bool sw::GraphicSizeViolation::isDPITooLow ( )
inline

Definition at line 39 of file GraphicSizeCheck.hxx.

References m_nDPIX, m_nDPIY, and m_nLowDPILimit.

Referenced by check().

Member Data Documentation

◆ m_nDPIX

sal_Int32 sw::GraphicSizeViolation::m_nDPIX = 0
private

Definition at line 30 of file GraphicSizeCheck.hxx.

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

◆ m_nDPIY

sal_Int32 sw::GraphicSizeViolation::m_nDPIY = 0
private

Definition at line 31 of file GraphicSizeCheck.hxx.

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

◆ m_nHighDPILimit

sal_Int32 sw::GraphicSizeViolation::m_nHighDPILimit = 0
private

Definition at line 28 of file GraphicSizeCheck.hxx.

Referenced by GraphicSizeViolation(), and isDPITooHigh().

◆ m_nLowDPILimit

sal_Int32 sw::GraphicSizeViolation::m_nLowDPILimit = 0
private

Definition at line 27 of file GraphicSizeCheck.hxx.

Referenced by GraphicSizeViolation(), and isDPITooLow().

◆ m_pGraphicNode

const SwGrfNode* sw::GraphicSizeViolation::m_pGraphicNode
private

Definition at line 25 of file GraphicSizeCheck.hxx.

Referenced by check(), and getGraphicName().


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