LibreOffice Module sw (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, const SwGrfNode *pGraphicNode) | |
bool | check () |
const OUString & | getGraphicName () |
bool | isDPITooLow () |
bool | isDPITooHigh () |
sal_Int32 | getDPIX () |
sal_Int32 | getDPIY () |
Private Attributes | |
const SwGrfNode * | m_pGraphicNode |
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 22 of file GraphicSizeCheck.hxx.
sw::GraphicSizeViolation::GraphicSizeViolation | ( | sal_Int32 | nDPI, |
const SwGrfNode * | pGraphicNode | ||
) |
Definition at line 29 of file GraphicSizeCheck.cxx.
References m_nHighDPILimit, and m_nLowDPILimit.
bool sw::GraphicSizeViolation::check | ( | ) |
Definition at line 39 of file GraphicSizeCheck.cxx.
References o3tl::convert(), SwNode::GetFlyFormat(), SwNoTextNode::GetGraphic(), Graphic::GetSizePixel(), Size::Height(), o3tl::in, isDPITooHigh(), isDPITooLow(), m_nDPIX, m_nDPIY, m_pGraphicNode, o3tl::twip, and Size::Width().
|
inline |
Definition at line 43 of file GraphicSizeCheck.hxx.
References m_nDPIX.
|
inline |
Definition at line 45 of file GraphicSizeCheck.hxx.
References m_nDPIY.
const OUString & sw::GraphicSizeViolation::getGraphicName | ( | ) |
Definition at line 57 of file GraphicSizeCheck.cxx.
References SwNode::GetFlyFormat(), SwFormat::GetName(), and m_pGraphicNode.
|
inline |
Definition at line 41 of file GraphicSizeCheck.hxx.
References m_nDPIX, m_nDPIY, and m_nHighDPILimit.
Referenced by check().
|
inline |
Definition at line 39 of file GraphicSizeCheck.hxx.
References m_nDPIX, m_nDPIY, and m_nLowDPILimit.
Referenced by check().
|
private |
Definition at line 30 of file GraphicSizeCheck.hxx.
Referenced by check(), getDPIX(), isDPITooHigh(), and isDPITooLow().
|
private |
Definition at line 31 of file GraphicSizeCheck.hxx.
Referenced by check(), getDPIY(), isDPITooHigh(), and isDPITooLow().
|
private |
Definition at line 28 of file GraphicSizeCheck.hxx.
Referenced by GraphicSizeViolation(), and isDPITooHigh().
|
private |
Definition at line 27 of file GraphicSizeCheck.hxx.
Referenced by GraphicSizeViolation(), and isDPITooLow().
|
private |
Definition at line 25 of file GraphicSizeCheck.hxx.
Referenced by check(), and getGraphicName().