LibreOffice Module sd (master) 1
|
Class responsible to check if a graphic object violates the size constraints and store the results. More...
#include <GraphicSizeCheck.hxx>
Public Member Functions | |
GraphicSizeViolation (sal_Int32 nDPI, SdrGrafObj *pGraphicObject) | |
bool | check () |
const OUString & | getGraphicName () |
SdrGrafObj * | getObject () const |
bool | isDPITooLow () |
bool | isDPITooHigh () |
sal_Int32 | getDPIX () |
sal_Int32 | getDPIY () |
Private Attributes | |
SdrGrafObj * | m_pGraphicObject |
sal_Int32 | m_nLowDPILimit = 0 |
sal_Int32 | m_nHighDPILimit = 0 |
sal_Int32 | m_nDPIX = 0 |
sal_Int32 | m_nDPIY = 0 |
Class responsible to check if a graphic object violates the size constraints and store the results.
Definition at line 24 of file GraphicSizeCheck.hxx.
sd::GraphicSizeViolation::GraphicSizeViolation | ( | sal_Int32 | nDPI, |
SdrGrafObj * | pGraphicObject | ||
) |
Definition at line 87 of file GraphicSizeCheck.cxx.
References m_nHighDPILimit, and m_nLowDPILimit.
bool sd::GraphicSizeViolation::check | ( | ) |
Definition at line 97 of file GraphicSizeCheck.cxx.
References o3tl::convert(), SdrGrafObj::GetGraphic(), SdrTextObj::GetLogicRect(), tools::Rectangle::GetSize(), Graphic::GetSizePixel(), Size::Height(), o3tl::in, isDPITooHigh(), isDPITooLow(), m_nDPIX, m_nDPIY, m_pGraphicObject, o3tl::mm100, and Size::Width().
|
inline |
Definition at line 47 of file GraphicSizeCheck.hxx.
References m_nDPIX.
|
inline |
Definition at line 49 of file GraphicSizeCheck.hxx.
References m_nDPIY.
const OUString & sd::GraphicSizeViolation::getGraphicName | ( | ) |
Definition at line 114 of file GraphicSizeCheck.cxx.
References SdrObject::GetName(), and m_pGraphicObject.
|
inline |
Definition at line 41 of file GraphicSizeCheck.hxx.
References m_pGraphicObject.
|
inline |
Definition at line 45 of file GraphicSizeCheck.hxx.
References m_nDPIX, m_nDPIY, and m_nHighDPILimit.
Referenced by check().
|
inline |
Definition at line 43 of file GraphicSizeCheck.hxx.
References m_nDPIX, m_nDPIY, and m_nLowDPILimit.
Referenced by check().
|
private |
Definition at line 32 of file GraphicSizeCheck.hxx.
Referenced by check(), getDPIX(), isDPITooHigh(), and isDPITooLow().
|
private |
Definition at line 33 of file GraphicSizeCheck.hxx.
Referenced by check(), getDPIY(), isDPITooHigh(), and isDPITooLow().
|
private |
Definition at line 30 of file GraphicSizeCheck.hxx.
Referenced by GraphicSizeViolation(), and isDPITooHigh().
|
private |
Definition at line 29 of file GraphicSizeCheck.hxx.
Referenced by GraphicSizeViolation(), and isDPITooLow().
|
private |
Definition at line 27 of file GraphicSizeCheck.hxx.
Referenced by check(), getGraphicName(), and getObject().