LibreOffice Module sc (master) 1
Public Member Functions | Private Attributes | List of all members
ScPageScaleToItem Class Referencefinal

Contains the "scale to width/height" attribute in page styles. More...

#include <attrib.hxx>

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

Public Member Functions

 ScPageScaleToItem ()
 Default c'tor sets the width and height to 0. More...
 
 ScPageScaleToItem (sal_uInt16 nWidth, sal_uInt16 nHeight)
 
virtual ~ScPageScaleToItem () override
 
 ScPageScaleToItem (ScPageScaleToItem const &)=default
 
 ScPageScaleToItem (ScPageScaleToItem &&)=default
 
ScPageScaleToItemoperator= (ScPageScaleToItem const &)=delete
 
ScPageScaleToItemoperator= (ScPageScaleToItem &&)=delete
 
virtual ScPageScaleToItemClone (SfxItemPool *=nullptr) const override
 
virtual bool operator== (const SfxPoolItem &rCmp) const override
 
sal_uInt16 GetWidth () const
 
sal_uInt16 GetHeight () const
 
bool IsValid () const
 
void SetWidth (sal_uInt16 nWidth)
 
void SetHeight (sal_uInt16 nHeight)
 
void Set (sal_uInt16 nWidth, sal_uInt16 nHeight)
 
virtual bool GetPresentation (SfxItemPresentation ePresentation, MapUnit, MapUnit, OUString &rText, const IntlWrapper &) const override
 
virtual bool QueryValue (css::uno::Any &rAny, sal_uInt8 nMemberId=0) const override
 
virtual bool PutValue (const css::uno::Any &rAny, sal_uInt8 nMemberId) override
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const override
 
- 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_uInt16 mnWidth
 
sal_uInt16 mnHeight
 

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

Contains the "scale to width/height" attribute in page styles.

Definition at line 229 of file attrib.hxx.

Constructor & Destructor Documentation

◆ ScPageScaleToItem() [1/4]

ScPageScaleToItem::ScPageScaleToItem ( )
explicit

Default c'tor sets the width and height to 0.

Definition at line 590 of file attrib.cxx.

References mnHeight, and mnWidth.

Referenced by Clone().

◆ ScPageScaleToItem() [2/4]

ScPageScaleToItem::ScPageScaleToItem ( sal_uInt16  nWidth,
sal_uInt16  nHeight 
)
explicit

Definition at line 597 of file attrib.cxx.

References mnHeight, and mnWidth.

◆ ~ScPageScaleToItem()

ScPageScaleToItem::~ScPageScaleToItem ( )
overridevirtual

Definition at line 604 of file attrib.cxx.

◆ ScPageScaleToItem() [3/4]

ScPageScaleToItem::ScPageScaleToItem ( ScPageScaleToItem const &  )
default

◆ ScPageScaleToItem() [4/4]

ScPageScaleToItem::ScPageScaleToItem ( ScPageScaleToItem &&  )
default

Member Function Documentation

◆ Clone()

ScPageScaleToItem * ScPageScaleToItem::Clone ( SfxItemPool = nullptr) const
overridevirtual

Implements SfxPoolItem.

Definition at line 608 of file attrib.cxx.

References ScPageScaleToItem().

◆ dumpAsXml()

void ScPageScaleToItem::dumpAsXml ( xmlTextWriterPtr  pWriter) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 689 of file attrib.cxx.

References GetHeight(), and GetWidth().

◆ GetHeight()

sal_uInt16 ScPageScaleToItem::GetHeight ( ) const
inline

◆ GetPresentation()

bool ScPageScaleToItem::GetPresentation ( SfxItemPresentation  ePresentation,
MapUnit  ,
MapUnit  ,
OUString &  rText,
const IntlWrapper  
) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 634 of file attrib.cxx.

References aName, IsValid(), mnHeight, mnWidth, and ScResId().

◆ GetWidth()

sal_uInt16 ScPageScaleToItem::GetWidth ( ) const
inline

◆ IsValid()

bool ScPageScaleToItem::IsValid ( ) const
inline

Definition at line 249 of file attrib.hxx.

References mnHeight, and mnWidth.

Referenced by GetPresentation(), ScPrintFunc::InitParam(), and XclExpPageSettings::XclExpPageSettings().

◆ operator=() [1/2]

ScPageScaleToItem & ScPageScaleToItem::operator= ( ScPageScaleToItem &&  )
delete

◆ operator=() [2/2]

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

◆ operator==()

bool ScPageScaleToItem::operator== ( const SfxPoolItem rCmp) const
overridevirtual

Implements SfxPoolItem.

Definition at line 613 of file attrib.cxx.

References mnHeight, and mnWidth.

◆ PutValue()

bool ScPageScaleToItem::PutValue ( const css::uno::Any &  rAny,
sal_uInt8  nMemberId 
)
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 677 of file attrib.cxx.

References mnHeight, mnWidth, SC_MID_PAGE_SCALETO_HEIGHT, and SC_MID_PAGE_SCALETO_WIDTH.

◆ QueryValue()

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

Reimplemented from SfxPoolItem.

Definition at line 663 of file attrib.cxx.

References mnHeight, mnWidth, SC_MID_PAGE_SCALETO_HEIGHT, and SC_MID_PAGE_SCALETO_WIDTH.

◆ Set()

void ScPageScaleToItem::Set ( sal_uInt16  nWidth,
sal_uInt16  nHeight 
)
inline

Definition at line 253 of file attrib.hxx.

References mnHeight, and mnWidth.

Referenced by lcl_PutScaleItem2().

◆ SetHeight()

void ScPageScaleToItem::SetHeight ( sal_uInt16  nHeight)
inline

Definition at line 252 of file attrib.hxx.

References mnHeight.

Referenced by ScStyleObj::setPropertyValue_Impl().

◆ SetWidth()

void ScPageScaleToItem::SetWidth ( sal_uInt16  nWidth)
inline

Definition at line 251 of file attrib.hxx.

References mnWidth.

Referenced by ScStyleObj::setPropertyValue_Impl().

Member Data Documentation

◆ mnHeight

sal_uInt16 ScPageScaleToItem::mnHeight
private

Definition at line 267 of file attrib.hxx.

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

◆ mnWidth

sal_uInt16 ScPageScaleToItem::mnWidth
private

Definition at line 266 of file attrib.hxx.

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


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