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

#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=SwFrameSize::Variable, SwTwips nWidth=0, SwTwips nHeight=0)
 
virtual bool operator== (const SfxPoolItem &) const override
 
virtual SwFormatFrameSizeClone (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)
 
virtual bool operator== (const SfxPoolItem &) 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
 
virtual bool GetPresentation (SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
 
virtual SvxSizeItemClone (SfxItemPool *pPool=nullptr) const override
 
virtual void ScaleMetrics (tools::Long nMult, tools::Long nDiv) override
 
virtual bool HasMetrics () const override
 
const SizeGetSize () const
 
void SetSize (const Size &rSize)
 
tools::Long GetWidth () const
 
tools::Long GetHeight () const
 
void SetWidth (tools::Long n)
 
void SetHeight (tools::Long n)
 

Private Member Functions

void ScaleMetrics (tools::Long lMult, tools::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

◆ PercentFlags

Enumerator
SYNCED 

Definition at line 86 of file fmtfsize.hxx.

Constructor & Destructor Documentation

◆ SwFormatFrameSize()

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

Definition at line 234 of file atrfrm.cxx.

Referenced by Clone().

Member Function Documentation

◆ Clone()

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

Reimplemented from SvxSizeItem.

Definition at line 254 of file atrfrm.cxx.

References SwFormatFrameSize().

Referenced by CalculateFlySize(), and lcl_InsertLabel().

◆ dumpAsXml()

void SwFormatFrameSize::dumpAsXml ( xmlTextWriterPtr  pWriter) const
override

◆ GetHeightPercent()

sal_uInt8 SwFormatFrameSize::GetHeightPercent ( ) const
inline

◆ GetHeightPercentRelation()

sal_Int16 SwFormatFrameSize::GetHeightPercentRelation ( ) const
inline

◆ GetHeightSizeType()

SwFrameSize SwFormatFrameSize::GetHeightSizeType ( ) const
inline

◆ GetPresentation()

bool SwFormatFrameSize::GetPresentation ( SfxItemPresentation  ePres,
MapUnit  eCoreMetric,
MapUnit  ePresMetric,
OUString &  rText,
const IntlWrapper rIntl 
) const
overridevirtual

◆ GetWidthPercent()

sal_uInt8 SwFormatFrameSize::GetWidthPercent ( ) const
inline

◆ GetWidthPercentRelation()

sal_Int16 SwFormatFrameSize::GetWidthPercentRelation ( ) const
inline

◆ GetWidthSizeType()

SwFrameSize SwFormatFrameSize::GetWidthSizeType ( ) const
inline

◆ HasMetrics()

bool SwFormatFrameSize::HasMetrics ( ) const
overrideprivatevirtual

Reimplemented from SvxSizeItem.

Definition at line 226 of file atrfrm.cxx.

References SfxPoolItem::HasMetrics().

◆ operator==()

bool SwFormatFrameSize::operator== ( const SfxPoolItem rAttr) const
overridevirtual

◆ PutValue()

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

◆ QueryValue()

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

◆ ScaleMetrics()

void SwFormatFrameSize::ScaleMetrics ( tools::Long  lMult,
tools::Long  lDiv 
)
overrideprivatevirtual

Reimplemented from SvxSizeItem.

Definition at line 219 of file atrfrm.cxx.

References SfxPoolItem::ScaleMetrics().

◆ SetHeightPercent()

void SwFormatFrameSize::SetHeightPercent ( sal_uInt8  n)
inline

◆ SetHeightPercentRelation()

void SwFormatFrameSize::SetHeightPercentRelation ( sal_Int16  n)
inline

Definition at line 94 of file fmtfsize.hxx.

References n.

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

◆ SetHeightSizeType()

void SwFormatFrameSize::SetHeightSizeType ( SwFrameSize  eSize)
inline

◆ SetWidthPercent()

void SwFormatFrameSize::SetWidthPercent ( sal_uInt8  n)
inline

◆ SetWidthPercentRelation()

void SwFormatFrameSize::SetWidthPercentRelation ( sal_Int16  n)
inline

Definition at line 96 of file fmtfsize.hxx.

References n.

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

◆ SetWidthSizeType()

void SwFormatFrameSize::SetWidthSizeType ( SwFrameSize  eSize)
inline

Member Data Documentation

◆ m_eFrameHeightType

SwFrameSize SwFormatFrameSize::m_eFrameHeightType
private

Definition at line 45 of file fmtfsize.hxx.

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

◆ m_eFrameWidthType

SwFrameSize SwFormatFrameSize::m_eFrameWidthType
private

Definition at line 46 of file fmtfsize.hxx.

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

◆ m_eHeightPercentRelation

sal_Int16 SwFormatFrameSize::m_eHeightPercentRelation
private

Definition at line 50 of file fmtfsize.hxx.

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

◆ m_eWidthPercentRelation

sal_Int16 SwFormatFrameSize::m_eWidthPercentRelation
private

Definition at line 48 of file fmtfsize.hxx.

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

◆ m_nHeightPercent

sal_uInt8 SwFormatFrameSize::m_nHeightPercent
private

Definition at line 49 of file fmtfsize.hxx.

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

◆ m_nWidthPercent

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: