LibreOffice Module editeng (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
SvxFontHeightItem Class Referencefinal

#include <fhgtitem.hxx>

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

Public Member Functions

 SvxFontHeightItem (const sal_uInt32 nSz, const sal_uInt16 nPropHeight, const sal_uInt16 nId)
 
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 SvxFontHeightItemClone (SfxItemPool *pPool=nullptr) const override
 
virtual void ScaleMetrics (tools::Long nMult, tools::Long nDiv) override
 
virtual bool HasMetrics () const override
 
void SetHeight (sal_uInt32 nNewHeight, const sal_uInt16 nNewProp=100, MapUnit eUnit=MapUnit::MapRelative)
 
void SetHeight (sal_uInt32 nNewHeight, sal_uInt16 nNewProp, MapUnit eUnit, MapUnit eCoreUnit)
 
sal_uInt32 GetHeight () const
 
void SetProp (sal_uInt16 nNewProp, MapUnit eUnit)
 
sal_uInt16 GetProp () const
 
MapUnit GetPropUnit () const
 
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
 

Static Public Member Functions

static SfxPoolItemCreateDefault ()
 

Private Member Functions

void legacy_direct_set (sal_uInt32 nH, sal_uInt16 nP, MapUnit eP)
 

Private Attributes

sal_uInt32 nHeight
 
sal_uInt16 nProp
 
MapUnit ePropUnit
 

Friends

void Create_legacy_direct_set (SvxFontHeightItem &rItem, sal_uInt32 nH, sal_uInt16 nP, MapUnit eP)
 

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 38 of file fhgtitem.hxx.

Constructor & Destructor Documentation

◆ SvxFontHeightItem()

SvxFontHeightItem::SvxFontHeightItem ( const sal_uInt32  nSz,
const sal_uInt16  nPropHeight,
const sal_uInt16  nId 
)

Definition at line 612 of file textitem.cxx.

References nId, and SetHeight().

Referenced by Clone(), and CreateDefault().

Member Function Documentation

◆ Clone()

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

Implements SfxPoolItem.

Definition at line 620 of file textitem.cxx.

References SvxFontHeightItem().

◆ CreateDefault()

SfxPoolItem * SvxFontHeightItem::CreateDefault ( )
static

Definition at line 91 of file textitem.cxx.

References SvxFontHeightItem().

◆ dumpAsXml()

void SvxFontHeightItem::dumpAsXml ( xmlTextWriterPtr  pWriter) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 929 of file textitem.cxx.

References ePropUnit, nHeight, nProp, and SfxPoolItem::Which().

◆ GetHeight()

sal_uInt32 SvxFontHeightItem::GetHeight ( ) const
inline

◆ GetPresentation()

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

Reimplemented from SfxPoolItem.

Definition at line 855 of file textitem.cxx.

References EditResId(), ePropUnit, GetMetricId(), GetMetricText(), nHeight, and nProp.

◆ GetProp()

sal_uInt16 SvxFontHeightItem::GetProp ( ) const
inline

Definition at line 83 of file fhgtitem.hxx.

Referenced by operator==(), and legacy::SvxFontHeight::Store().

◆ GetPropUnit()

MapUnit SvxFontHeightItem::GetPropUnit ( ) const
inline

Definition at line 85 of file fhgtitem.hxx.

Referenced by operator==(), and legacy::SvxFontHeight::Store().

◆ HasMetrics()

bool SvxFontHeightItem::HasMetrics ( ) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 888 of file textitem.cxx.

◆ legacy_direct_set()

void SvxFontHeightItem::legacy_direct_set ( sal_uInt32  nH,
sal_uInt16  nP,
MapUnit  eP 
)
inlineprivate

Definition at line 46 of file fhgtitem.hxx.

◆ operator==()

bool SvxFontHeightItem::operator== ( const SfxPoolItem rItem) const
overridevirtual

Implements SfxPoolItem.

Definition at line 625 of file textitem.cxx.

References GetHeight(), GetProp(), and GetPropUnit().

◆ PutValue()

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

◆ QueryValue()

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

◆ ScaleMetrics()

void SvxFontHeightItem::ScaleMetrics ( tools::Long  nMult,
tools::Long  nDiv 
)
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 882 of file textitem.cxx.

References nHeight, and BigInt::Scale().

◆ SetHeight() [1/2]

void SvxFontHeightItem::SetHeight ( sal_uInt32  nNewHeight,
const sal_uInt16  nNewProp = 100,
MapUnit  eUnit = MapUnit::MapRelative 
)

◆ SetHeight() [2/2]

void SvxFontHeightItem::SetHeight ( sal_uInt32  nNewHeight,
sal_uInt16  nNewProp,
MapUnit  eUnit,
MapUnit  eCoreUnit 
)

Definition at line 910 of file textitem.cxx.

References DBG_ASSERT, ePropUnit, SfxPoolItem::GetRefCount(), nHeight, and nProp.

◆ SetProp()

void SvxFontHeightItem::SetProp ( sal_uInt16  nNewProp,
MapUnit  eUnit 
)
inline

Definition at line 76 of file fhgtitem.hxx.

References DBG_ASSERT, and SfxPoolItem::GetRefCount().

Referenced by EditRTFParser::SetAttrInDoc().

Friends And Related Function Documentation

◆ Create_legacy_direct_set

void Create_legacy_direct_set ( SvxFontHeightItem rItem,
sal_uInt32  nH,
sal_uInt16  nP,
MapUnit  eP 
)
friend

Definition at line 51 of file legacyitem.cxx.

Member Data Documentation

◆ ePropUnit

MapUnit SvxFontHeightItem::ePropUnit
private

Definition at line 42 of file fhgtitem.hxx.

Referenced by dumpAsXml(), GetPresentation(), PutValue(), QueryValue(), and SetHeight().

◆ nHeight

sal_uInt32 SvxFontHeightItem::nHeight
private

Definition at line 40 of file fhgtitem.hxx.

Referenced by dumpAsXml(), GetPresentation(), PutValue(), QueryValue(), ScaleMetrics(), and SetHeight().

◆ nProp

sal_uInt16 SvxFontHeightItem::nProp
private

Definition at line 41 of file fhgtitem.hxx.

Referenced by dumpAsXml(), GetPresentation(), PutValue(), QueryValue(), and SetHeight().


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