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 (TypedWhichId< SvxGrfCrop >)
 
 SvxGrfCrop (sal_Int32 nLeft, sal_Int32 nRight, sal_Int32 nTop, sal_Int32 nBottom, TypedWhichId< SvxGrfCrop >)
 
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
 
T & StaticWhichCast (TypedWhichId< T > nId)
 
const T & StaticWhichCast (TypedWhichId< T > nId) const
 
T * DynamicWhichCast (TypedWhichId< T > nId)
 
const T * DynamicWhichCast (TypedWhichId< T > nId) const
 
virtual bool operator== (const SfxPoolItem &) const=0
 
bool operator!= (const SfxPoolItem &rItem) const
 
virtual bool operator< (const SfxPoolItem &) const
 
virtual bool IsSortable () const
 
virtual bool HasLookup () const
 
virtual lookup_iterator Lookup (lookup_iterator, lookup_iterator end) const
 
virtual bool GetPresentation (SfxItemPresentation ePresentation, MapUnit eCoreMetric, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &rIntlWrapper) const
 
virtual void ScaleMetrics (tools::Long lMult, tools::Long lDiv)
 
virtual bool HasMetrics () const
 
virtual bool QueryValue (css::uno::Any &rVal, sal_uInt8 nMemberId=0) const
 
virtual bool PutValue (const css::uno::Any &rVal, sal_uInt8 nMemberId)
 
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 boost::property_tree::ptree dumpAsJSON () const
 
virtual bool IsVoidItem () const
 

Private Attributes

sal_Int32 nLeft
 
sal_Int32 nRight
 
sal_Int32 nTop
 
sal_Int32 nBottom
 

Additional Inherited Members

- Public Types inherited from SfxPoolItem
typedef std::vector< SfxPoolItem * >::const_iterator lookup_iterator
 
- 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() [1/4]

SvxGrfCrop::SvxGrfCrop ( TypedWhichId< SvxGrfCrop nItemId)

Definition at line 28 of file grfitem.cxx.

◆ SvxGrfCrop() [2/4]

SvxGrfCrop::SvxGrfCrop ( sal_Int32  nLeft,
sal_Int32  nRight,
sal_Int32  nTop,
sal_Int32  nBottom,
TypedWhichId< SvxGrfCrop nItemId 
)

Definition at line 33 of file grfitem.cxx.

◆ ~SvxGrfCrop()

SvxGrfCrop::~SvxGrfCrop ( )
overridevirtual

Definition at line 39 of file grfitem.cxx.

◆ SvxGrfCrop() [3/4]

SvxGrfCrop::SvxGrfCrop ( SvxGrfCrop const &  )
default

◆ SvxGrfCrop() [4/4]

SvxGrfCrop::SvxGrfCrop ( SvxGrfCrop &&  )
default

Member Function Documentation

◆ GetBottom()

sal_Int32 SvxGrfCrop::GetBottom ( ) const
inline

Definition at line 64 of file grfcrop.hxx.

Referenced by GetPresentation(), and operator==().

◆ GetLeft()

sal_Int32 SvxGrfCrop::GetLeft ( ) const
inline

Definition at line 61 of file grfcrop.hxx.

Referenced by GetPresentation(), and operator==().

◆ GetPresentation()

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().

◆ GetRight()

sal_Int32 SvxGrfCrop::GetRight ( ) const
inline

Definition at line 62 of file grfcrop.hxx.

Referenced by GetPresentation(), and operator==().

◆ GetTop()

sal_Int32 SvxGrfCrop::GetTop ( ) const
inline

Definition at line 63 of file grfcrop.hxx.

Referenced by GetPresentation(), and operator==().

◆ operator=() [1/2]

SvxGrfCrop & SvxGrfCrop::operator= ( SvxGrfCrop &&  )
delete

◆ operator=() [2/2]

SvxGrfCrop & SvxGrfCrop::operator= ( SvxGrfCrop const &  )
delete

◆ operator==()

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.

◆ PutValue()

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, o3tl::mm100, nBottom, nLeft, nRight, nTop, and o3tl::toTwips().

◆ QueryValue()

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.

◆ SetBottom()

void SvxGrfCrop::SetBottom ( sal_Int32  nVal)
inline

Definition at line 59 of file grfcrop.hxx.

◆ SetLeft()

void SvxGrfCrop::SetLeft ( sal_Int32  nVal)
inline

Definition at line 56 of file grfcrop.hxx.

◆ SetRight()

void SvxGrfCrop::SetRight ( sal_Int32  nVal)
inline

Definition at line 57 of file grfcrop.hxx.

◆ SetTop()

void SvxGrfCrop::SetTop ( sal_Int32  nVal)
inline

Definition at line 58 of file grfcrop.hxx.

Member Data Documentation

◆ nBottom

sal_Int32 SvxGrfCrop::nBottom
private

Definition at line 31 of file grfcrop.hxx.

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

◆ nLeft

sal_Int32 SvxGrfCrop::nLeft
private

Definition at line 31 of file grfcrop.hxx.

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

◆ nRight

sal_Int32 SvxGrfCrop::nRight
private

Definition at line 31 of file grfcrop.hxx.

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

◆ nTop

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: