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

This item stores a field (SvxFieldData). More...

#include <flditem.hxx>

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

Public Member Functions

 SvxFieldItem (std::unique_ptr< SvxFieldData > pField, const sal_uInt16 nId)
 
 SvxFieldItem (const SvxFieldData &rField, const sal_uInt16 nId)
 
 SvxFieldItem (const SvxFieldItem &rItem)
 
virtual ~SvxFieldItem () override
 
virtual bool operator== (const SfxPoolItem &) const override
 
virtual SvxFieldItemClone (SfxItemPool *pPool=nullptr) const override
 
const SvxFieldDataGetField () const
 
- 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
 

Private Attributes

std::unique_ptr< SvxFieldDatampField
 

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 stores a field (SvxFieldData).

The field is controlled by or belongs to the item. The field itself is determined by a derivation from SvxFieldData (RTTI)

Definition at line 69 of file flditem.hxx.

Constructor & Destructor Documentation

◆ SvxFieldItem() [1/3]

SvxFieldItem::SvxFieldItem ( std::unique_ptr< SvxFieldData pField,
const sal_uInt16  nId 
)

Definition at line 278 of file flditem.cxx.

References nId.

Referenced by Clone().

◆ SvxFieldItem() [2/3]

SvxFieldItem::SvxFieldItem ( const SvxFieldData rField,
const sal_uInt16  nId 
)

Definition at line 284 of file flditem.cxx.

References Clone(), and nId.

◆ SvxFieldItem() [3/3]

SvxFieldItem::SvxFieldItem ( const SvxFieldItem rItem)

Definition at line 291 of file flditem.cxx.

References Clone().

◆ ~SvxFieldItem()

SvxFieldItem::~SvxFieldItem ( )
overridevirtual

Definition at line 297 of file flditem.cxx.

Member Function Documentation

◆ Clone()

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

Implements SfxPoolItem.

Definition at line 301 of file flditem.cxx.

References SvxFieldItem().

◆ GetField()

const SvxFieldData * SvxFieldItem::GetField ( ) const
inline

◆ operator==()

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

Implements SfxPoolItem.

Definition at line 306 of file flditem.cxx.

References GetField(), and mpField.

Member Data Documentation

◆ mpField

std::unique_ptr<SvxFieldData> SvxFieldItem::mpField
private

Definition at line 71 of file flditem.hxx.

Referenced by operator==().


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