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

This item describes a Font. More...

#include <fontitem.hxx>

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

Public Member Functions

 SvxFontItem (const sal_uInt16 nId)
 
 SvxFontItem (const FontFamily eFam, OUString aFamilyName, OUString aStyleName, const FontPitch eFontPitch, const rtl_TextEncoding eFontTextEncoding, const sal_uInt16 nId)
 
virtual bool operator== (const SfxPoolItem &rItem) const override
 
bool operator< (const SfxPoolItem &rCmp) const override
 
virtual SvxFontItemClone (SfxItemPool *pPool=nullptr) 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
 
void SetFamilyName (const OUString &rFamilyName)
 
const OUString & GetFamilyName () const
 
void SetStyleName (const OUString &rStyleName)
 
const OUString & GetStyleName () const
 
void SetFamily (FontFamily _eFamily)
 
FontFamily GetFamily () const
 
void SetPitch (FontPitch _ePitch)
 
FontPitch GetPitch () const
 
void SetCharSet (rtl_TextEncoding _eEncoding)
 
rtl_TextEncoding GetCharSet () 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 Attributes

OUString aFamilyName
 
OUString aStyleName
 
FontFamily eFamily
 
FontPitch ePitch
 
rtl_TextEncoding eTextEncoding
 

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

This item describes a Font.

Definition at line 29 of file fontitem.hxx.

Constructor & Destructor Documentation

◆ SvxFontItem() [1/2]

SvxFontItem::SvxFontItem ( const sal_uInt16  nId)
explicit

Definition at line 179 of file textitem.cxx.

References eFamily, ePitch, eTextEncoding, FAMILY_SWISS, nId, and PITCH_VARIABLE.

Referenced by Clone(), and CreateDefault().

◆ SvxFontItem() [2/2]

SvxFontItem::SvxFontItem ( const FontFamily  eFam,
OUString  aFamilyName,
OUString  aStyleName,
const FontPitch  eFontPitch,
const rtl_TextEncoding  eFontTextEncoding,
const sal_uInt16  nId 
)

Definition at line 188 of file textitem.cxx.

References aName, eFamily, ePitch, eTextEncoding, and nId.

Member Function Documentation

◆ Clone()

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

Implements SfxPoolItem.

Definition at line 346 of file textitem.cxx.

References SvxFontItem().

◆ CreateDefault()

SfxPoolItem * SvxFontItem::CreateDefault ( )
static

Definition at line 88 of file textitem.cxx.

References SvxFontItem().

◆ dumpAsXml()

void SvxFontItem::dumpAsXml ( xmlTextWriterPtr  pWriter) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 364 of file textitem.cxx.

References aFamilyName, aStyleName, eFamily, ePitch, eTextEncoding, and SfxPoolItem::Which().

◆ GetCharSet()

rtl_TextEncoding SvxFontItem::GetCharSet ( ) const
inline

◆ GetFamily()

FontFamily SvxFontItem::GetFamily ( ) const
inline

◆ GetFamilyName()

const OUString & SvxFontItem::GetFamilyName ( ) const
inline

◆ GetPitch()

FontPitch SvxFontItem::GetPitch ( ) const
inline

◆ GetPresentation()

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

Reimplemented from SfxPoolItem.

Definition at line 351 of file textitem.cxx.

References aFamilyName.

◆ GetStyleName()

const OUString & SvxFontItem::GetStyleName ( ) const
inline

◆ operator<()

bool SvxFontItem::operator< ( const SfxPoolItem rCmp) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 316 of file textitem.cxx.

References GetCharSet(), GetFamily(), GetFamilyName(), GetPitch(), and GetStyleName().

◆ operator==()

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

Implements SfxPoolItem.

Definition at line 295 of file textitem.cxx.

References aFamilyName, aStyleName, eFamily, ePitch, eTextEncoding, and SAL_INFO.

◆ PutValue()

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

◆ QueryValue()

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

◆ SetCharSet()

void SvxFontItem::SetCharSet ( rtl_TextEncoding  _eEncoding)
inline

◆ SetFamily()

void SvxFontItem::SetFamily ( FontFamily  _eFamily)
inline

◆ SetFamilyName()

void SvxFontItem::SetFamilyName ( const OUString &  rFamilyName)
inline

◆ SetPitch()

void SvxFontItem::SetPitch ( FontPitch  _ePitch)
inline

◆ SetStyleName()

void SvxFontItem::SetStyleName ( const OUString &  rStyleName)
inline

Member Data Documentation

◆ aFamilyName

OUString SvxFontItem::aFamilyName
private

Definition at line 31 of file fontitem.hxx.

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

◆ aStyleName

OUString SvxFontItem::aStyleName
private

Definition at line 32 of file fontitem.hxx.

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

◆ eFamily

FontFamily SvxFontItem::eFamily
private

Definition at line 33 of file fontitem.hxx.

Referenced by dumpAsXml(), operator==(), PutValue(), QueryValue(), and SvxFontItem().

◆ ePitch

FontPitch SvxFontItem::ePitch
private

Definition at line 34 of file fontitem.hxx.

Referenced by dumpAsXml(), operator==(), PutValue(), QueryValue(), and SvxFontItem().

◆ eTextEncoding

rtl_TextEncoding SvxFontItem::eTextEncoding
private

Definition at line 35 of file fontitem.hxx.

Referenced by dumpAsXml(), operator==(), PutValue(), QueryValue(), and SvxFontItem().


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