LibreOffice Module sw (master)  1
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
SwFormatFrameSize Class Reference

#include <fmtfsize.hxx>

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

Public Types

enum  PercentFlags { SYNCED = 0xff }
 

Public Member Functions

 SwFormatFrameSize (SwFrameSize eSize=ATT_VAR_SIZE, SwTwips nWidth=0, SwTwips nHeight=0)
 
virtual bool operator== (const SfxPoolItem &) const override
 
virtual SfxPoolItemClone (SfxItemPool *pPool=nullptr) 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
 
SwFrameSize GetHeightSizeType () const
 
void SetHeightSizeType (SwFrameSize eSize)
 
SwFrameSize GetWidthSizeType () const
 
void SetWidthSizeType (SwFrameSize eSize)
 
sal_uInt8 GetHeightPercent () const
 
sal_Int16 GetHeightPercentRelation () const
 
sal_uInt8 GetWidthPercent () const
 
sal_Int16 GetWidthPercentRelation () const
 
void SetHeightPercent (sal_uInt8 n)
 
void SetHeightPercentRelation (sal_Int16 n)
 
void SetWidthPercent (sal_uInt8 n)
 
void SetWidthPercentRelation (sal_Int16 n)
 
void dumpAsXml (xmlTextWriterPtr pWriter) const override
 
- Public Member Functions inherited from SvxSizeItem
 SvxSizeItem (const sal_uInt16 nId)
 
 SvxSizeItem (const sal_uInt16 nId, const Size &rSize)
 
const SizeGetSize () const
 
void SetSize (const Size &rSize)
 
long GetWidth () const
 
long GetHeight () const
 
void SetWidth (long n)
 
void SetHeight (long n)
 

Private Member Functions

void ScaleMetrics (long lMult, long lDiv) override
 
bool HasMetrics () const override
 

Private Attributes

SwFrameSize m_eFrameHeightType
 
SwFrameSize m_eFrameWidthType
 
sal_uInt8 m_nWidthPercent
 
sal_Int16 m_eWidthPercentRelation
 
sal_uInt8 m_nHeightPercent
 
sal_Int16 m_eHeightPercentRelation
 

Additional Inherited Members

- Static Public Member Functions inherited from SvxSizeItem
static SfxPoolItemCreateDefault ()
 

Detailed Description

Definition at line 43 of file fmtfsize.hxx.

Member Enumeration Documentation

Enumerator
SYNCED 

Definition at line 86 of file fmtfsize.hxx.

Constructor & Destructor Documentation

SwFormatFrameSize::SwFormatFrameSize ( SwFrameSize  eSize = ATT_VAR_SIZE,
SwTwips  nWidth = 0,
SwTwips  nHeight = 0 
)

Definition at line 196 of file atrfrm.cxx.

Referenced by Clone().

Member Function Documentation

SfxPoolItem * SwFormatFrameSize::Clone ( SfxItemPool pPool = nullptr) const
overridevirtual

Reimplemented from SvxSizeItem.

Definition at line 216 of file atrfrm.cxx.

References SwFormatFrameSize().

Referenced by lcl_CopyBoxToDoc(), lcl_InsertLabel(), and SwXStyle::setAllPropertiesToDefault().

void SwFormatFrameSize::dumpAsXml ( xmlTextWriterPtr  pWriter) const
override
sal_uInt8 SwFormatFrameSize::GetHeightPercent ( ) const
inline
sal_Int16 SwFormatFrameSize::GetHeightPercentRelation ( ) const
inline
SwFrameSize SwFormatFrameSize::GetHeightSizeType ( ) const
inline
bool SwFormatFrameSize::GetPresentation ( SfxItemPresentation  ePres,
MapUnit  eCoreMetric,
MapUnit  ePresMetric,
OUString &  rText,
const IntlWrapper rIntl 
) const
overridevirtual
sal_uInt8 SwFormatFrameSize::GetWidthPercent ( ) const
inline
sal_Int16 SwFormatFrameSize::GetWidthPercentRelation ( ) const
inline
SwFrameSize SwFormatFrameSize::GetWidthSizeType ( ) const
inline
bool SwFormatFrameSize::HasMetrics ( ) const
overrideprivatevirtual

Reimplemented from SvxSizeItem.

Definition at line 188 of file atrfrm.cxx.

References SfxPoolItem::HasMetrics().

bool SwFormatFrameSize::operator== ( const SfxPoolItem rAttr) const
overridevirtual
bool SwFormatFrameSize::PutValue ( const css::uno::Any &  rVal,
sal_uInt8  nMemberId 
)
overridevirtual
bool SwFormatFrameSize::QueryValue ( css::uno::Any &  rVal,
sal_uInt8  nMemberId = 0 
) const
overridevirtual
void SwFormatFrameSize::ScaleMetrics ( long  lMult,
long  lDiv 
)
overrideprivatevirtual

Reimplemented from SvxSizeItem.

Definition at line 181 of file atrfrm.cxx.

References SfxPoolItem::ScaleMetrics().

void SwFormatFrameSize::SetHeightPercent ( sal_uInt8  n)
inline
void SwFormatFrameSize::SetHeightPercentRelation ( sal_Int16  n)
inline

Definition at line 94 of file fmtfsize.hxx.

Referenced by SwFramePage::FillItemSet(), and PutValue().

void SwFormatFrameSize::SetHeightSizeType ( SwFrameSize  eSize)
inline
void SwFormatFrameSize::SetWidthPercent ( sal_uInt8  n)
inline
void SwFormatFrameSize::SetWidthPercentRelation ( sal_Int16  n)
inline

Definition at line 96 of file fmtfsize.hxx.

Referenced by SwFramePage::FillItemSet(), and PutValue().

void SwFormatFrameSize::SetWidthSizeType ( SwFrameSize  eSize)
inline

Member Data Documentation

SwFrameSize SwFormatFrameSize::m_eFrameHeightType
private

Definition at line 45 of file fmtfsize.hxx.

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

SwFrameSize SwFormatFrameSize::m_eFrameWidthType
private

Definition at line 46 of file fmtfsize.hxx.

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

sal_Int16 SwFormatFrameSize::m_eHeightPercentRelation
private

Definition at line 50 of file fmtfsize.hxx.

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

sal_Int16 SwFormatFrameSize::m_eWidthPercentRelation
private

Definition at line 48 of file fmtfsize.hxx.

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

sal_uInt8 SwFormatFrameSize::m_nHeightPercent
private

Definition at line 49 of file fmtfsize.hxx.

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

sal_uInt8 SwFormatFrameSize::m_nWidthPercent
private

Definition at line 47 of file fmtfsize.hxx.

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


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