LibreOffice Module svx (master)  1
Public Member Functions | Private Attributes | List of all members
SvxGrfCrop Class Reference

#include <grfcrop.hxx>

Inheritance diagram for SvxGrfCrop:
[legend]
Collaboration diagram for SvxGrfCrop:
[legend]

Public Member Functions

 SvxGrfCrop (sal_uInt16)
 
 SvxGrfCrop (sal_Int32 nLeft, sal_Int32 nRight, sal_Int32 nTop, sal_Int32 nBottom, sal_uInt16)
 
virtual ~SvxGrfCrop () override
 
 SvxGrfCrop (SvxGrfCrop const &)=default
 
 SvxGrfCrop (SvxGrfCrop &&)=default
 
SvxGrfCropoperator= (SvxGrfCrop const &)=delete
 
SvxGrfCropoperator= (SvxGrfCrop &&)=delete
 
virtual bool operator== (const SfxPoolItem &) const override
 
virtual bool GetPresentation (SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &rIntl) const override
 
virtual bool QueryValue (css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
 
virtual bool PutValue (const css::uno::Any &rVal, sal_uInt8 nMemberId) override
 
void SetLeft (sal_Int32 nVal)
 
void SetRight (sal_Int32 nVal)
 
void SetTop (sal_Int32 nVal)
 
void SetBottom (sal_Int32 nVal)
 
sal_Int32 GetLeft () const
 
sal_Int32 GetRight () const
 
sal_Int32 GetTop () const
 
sal_Int32 GetBottom () const
 
- Public Member Functions inherited from SfxPoolItem
void AddRef (sal_uInt32 n=1) const
 
virtual ~SfxPoolItem ()
 
void SetWhich (sal_uInt16 nId)
 
sal_uInt16 Which () const
 
bool operator!= (const SfxPoolItem &rItem) const
 
virtual bool operator< (const SfxPoolItem &) const
 
virtual bool IsSortable () const
 
virtual void ScaleMetrics (long lMult, long lDiv)
 
virtual bool HasMetrics () const
 
virtual SfxPoolItemClone (SfxItemPool *pPool=nullptr) const =0
 
std::unique_ptr< SfxPoolItemCloneSetWhich (sal_uInt16 nNewWhich) const
 
std::unique_ptr< T > CloneSetWhich (TypedWhichId< T > nId) const
 
sal_uInt32 GetRefCount () const
 
SfxItemKind GetKind () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 
virtual bool IsVoidItem () const
 

Private Attributes

sal_Int32 nLeft
 
sal_Int32 nRight
 
sal_Int32 nTop
 
sal_Int32 nBottom
 

Additional Inherited Members

- Protected Member Functions inherited from SfxPoolItem
 SfxPoolItem (sal_uInt16 nWhich=0)
 
 SfxPoolItem (const SfxPoolItem &rCopy)
 

Detailed Description

Definition at line 29 of file grfcrop.hxx.

Constructor & Destructor Documentation

SvxGrfCrop::SvxGrfCrop ( sal_uInt16  nItemId)

Definition at line 28 of file grfitem.cxx.

SvxGrfCrop::SvxGrfCrop ( sal_Int32  nLeft,
sal_Int32  nRight,
sal_Int32  nTop,
sal_Int32  nBottom,
sal_uInt16  nItemId 
)

Definition at line 33 of file grfitem.cxx.

SvxGrfCrop::~SvxGrfCrop ( )
overridevirtual

Definition at line 39 of file grfitem.cxx.

SvxGrfCrop::SvxGrfCrop ( SvxGrfCrop const &  )
default
SvxGrfCrop::SvxGrfCrop ( SvxGrfCrop &&  )
default

Member Function Documentation

sal_Int32 SvxGrfCrop::GetBottom ( ) const
inline
sal_Int32 SvxGrfCrop::GetLeft ( ) const
inline
bool SvxGrfCrop::GetPresentation ( SfxItemPresentation  ePres,
MapUnit  eCoreMetric,
MapUnit  ePresMetric,
OUString &  rText,
const IntlWrapper rIntl 
) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 99 of file grfitem.cxx.

References GetBottom(), GetLeft(), GetRight(), and GetTop().

sal_Int32 SvxGrfCrop::GetRight ( ) const
inline
sal_Int32 SvxGrfCrop::GetTop ( ) const
inline
SvxGrfCrop& SvxGrfCrop::operator= ( SvxGrfCrop const &  )
delete
SvxGrfCrop& SvxGrfCrop::operator= ( SvxGrfCrop &&  )
delete
bool SvxGrfCrop::operator== ( const SfxPoolItem rAttr) const
overridevirtual

Implements SfxPoolItem.

Definition at line 43 of file grfitem.cxx.

References GetBottom(), GetLeft(), GetRight(), GetTop(), nBottom, nLeft, nRight, and nTop.

bool SvxGrfCrop::PutValue ( const css::uno::Any &  rVal,
sal_uInt8  nMemberId 
)
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 77 of file grfitem.cxx.

References CONVERT_TWIPS, convertMm100ToTwip(), nBottom, nLeft, nRight, and nTop.

bool SvxGrfCrop::QueryValue ( css::uno::Any &  rVal,
sal_uInt8  nMemberId = 0 
) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 55 of file grfitem.cxx.

References CONVERT_TWIPS, convertTwipToMm100(), nBottom, nLeft, nRight, and nTop.

void SvxGrfCrop::SetBottom ( sal_Int32  nVal)
inline

Definition at line 59 of file grfcrop.hxx.

void SvxGrfCrop::SetLeft ( sal_Int32  nVal)
inline

Definition at line 56 of file grfcrop.hxx.

void SvxGrfCrop::SetRight ( sal_Int32  nVal)
inline

Definition at line 57 of file grfcrop.hxx.

void SvxGrfCrop::SetTop ( sal_Int32  nVal)
inline

Definition at line 58 of file grfcrop.hxx.

Member Data Documentation

sal_Int32 SvxGrfCrop::nBottom
private

Definition at line 31 of file grfcrop.hxx.

Referenced by operator==(), PutValue(), and QueryValue().

sal_Int32 SvxGrfCrop::nLeft
private

Definition at line 31 of file grfcrop.hxx.

Referenced by operator==(), PutValue(), and QueryValue().

sal_Int32 SvxGrfCrop::nRight
private

Definition at line 31 of file grfcrop.hxx.

Referenced by operator==(), PutValue(), and QueryValue().

sal_Int32 SvxGrfCrop::nTop
private

Definition at line 31 of file grfcrop.hxx.

Referenced by operator==(), PutValue(), and QueryValue().


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