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
 
- 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
 
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

- 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 223 of file attrib.hxx.

Constructor & Destructor Documentation

ScPageScaleToItem::ScPageScaleToItem ( )
explicit

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

Definition at line 561 of file attrib.cxx.

References mnHeight, and mnWidth.

Referenced by Clone().

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

Definition at line 568 of file attrib.cxx.

References mnHeight, and mnWidth.

ScPageScaleToItem::~ScPageScaleToItem ( )
overridevirtual

Definition at line 575 of file attrib.cxx.

ScPageScaleToItem::ScPageScaleToItem ( ScPageScaleToItem const &  )
default
ScPageScaleToItem::ScPageScaleToItem ( ScPageScaleToItem &&  )
default

Member Function Documentation

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

Implements SfxPoolItem.

Definition at line 579 of file attrib.cxx.

References ScPageScaleToItem().

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

Reimplemented from SfxPoolItem.

Definition at line 605 of file attrib.cxx.

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

sal_uInt16 ScPageScaleToItem::GetWidth ( ) const
inline
bool ScPageScaleToItem::IsValid ( ) const
inline

Definition at line 243 of file attrib.hxx.

References mnHeight, and mnWidth.

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

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

Implements SfxPoolItem.

Definition at line 584 of file attrib.cxx.

References assert(), mnHeight, and mnWidth.

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

Reimplemented from SfxPoolItem.

Definition at line 650 of file attrib.cxx.

References mnHeight, mnWidth, SC_MID_PAGE_SCALETO_HEIGHT, and SC_MID_PAGE_SCALETO_WIDTH.

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

Reimplemented from SfxPoolItem.

Definition at line 636 of file attrib.cxx.

References mnHeight, mnWidth, SC_MID_PAGE_SCALETO_HEIGHT, and SC_MID_PAGE_SCALETO_WIDTH.

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

Definition at line 247 of file attrib.hxx.

References mnHeight, and mnWidth.

Referenced by lcl_PutScaleItem2().

void ScPageScaleToItem::SetHeight ( sal_uInt16  nHeight)
inline

Definition at line 246 of file attrib.hxx.

References mnHeight.

Referenced by ScStyleObj::setPropertyValue_Impl().

void ScPageScaleToItem::SetWidth ( sal_uInt16  nWidth)
inline

Definition at line 245 of file attrib.hxx.

References mnWidth.

Referenced by ScStyleObj::setPropertyValue_Impl().

Member Data Documentation

sal_uInt16 ScPageScaleToItem::mnHeight
private

Definition at line 260 of file attrib.hxx.

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

sal_uInt16 ScPageScaleToItem::mnWidth
private

Definition at line 259 of file attrib.hxx.

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


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