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

#include <tstpitem.hxx>

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

Public Member Functions

 SvxTabStopItem (sal_uInt16 nWhich)
 
 SvxTabStopItem (const sal_uInt16 nTabs, const sal_uInt16 nDist, const SvxTabAdjust eAdjst, sal_uInt16 nWhich)
 
sal_uInt16 GetPos (const SvxTabStop &rTab) const
 
sal_uInt16 GetPos (const sal_Int32 nPos) const
 
void SetDefaultDistance (sal_Int32 nDefaultDistancenDefTabSize)
 
sal_Int32 GetDefaultDistance () const
 
sal_uInt16 Count () const
 
bool Insert (const SvxTabStop &rTab)
 
void Insert (const SvxTabStopItem *pTabs)
 
void Remove (const sal_uInt16 nPos, const sal_uInt16 nLen=1)
 
const SvxTabStopoperator[] (const sal_uInt16 nPos) const
 
const SvxTabStopAt (const sal_uInt16 nPos) const
 
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 SvxTabStopItemClone (SfxItemPool *pPool=nullptr) const override
 
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

SvxTabStopArr maTabStops
 
sal_Int32 mnDefaultDistance = 0
 Defines default tab width for tabs without dedicated tab stop in the paragraph. More...
 

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 92 of file tstpitem.hxx.

Constructor & Destructor Documentation

◆ SvxTabStopItem() [1/2]

SvxTabStopItem::SvxTabStopItem ( sal_uInt16  nWhich)
explicit

◆ SvxTabStopItem() [2/2]

SvxTabStopItem::SvxTabStopItem ( const sal_uInt16  nTabs,
const sal_uInt16  nDist,
const SvxTabAdjust  eAdjst,
sal_uInt16  nWhich 
)

Member Function Documentation

◆ At()

const SvxTabStop & SvxTabStopItem::At ( const sal_uInt16  nPos) const
inline

Definition at line 131 of file tstpitem.hxx.

References nPos.

◆ Clone()

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

Implements SfxPoolItem.

Definition at line 1008 of file paraitem.cxx.

References SvxTabStopItem().

◆ Count()

sal_uInt16 SvxTabStopItem::Count ( ) const
inline

◆ CreateDefault()

SfxPoolItem * SvxTabStopItem::CreateDefault ( )
static

Definition at line 61 of file paraitem.cxx.

References SvxTabStopItem().

◆ dumpAsXml()

void SvxTabStopItem::dumpAsXml ( xmlTextWriterPtr  pWriter) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 1068 of file paraitem.cxx.

References maTabStops, and mnDefaultDistance.

◆ GetDefaultDistance()

sal_Int32 SvxTabStopItem::GetDefaultDistance ( ) const

Definition at line 829 of file paraitem.cxx.

References mnDefaultDistance.

Referenced by ConvertItem(), ContentAttribs::FindTabStop(), and operator==().

◆ GetPos() [1/2]

sal_uInt16 SvxTabStopItem::GetPos ( const sal_Int32  nPos) const

◆ GetPos() [2/2]

sal_uInt16 SvxTabStopItem::GetPos ( const SvxTabStop rTab) const

◆ GetPresentation()

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

Reimplemented from SfxPoolItem.

Definition at line 1013 of file paraitem.cxx.

References Count(), Default, EditResId(), GetMetricId(), GetMetricText(), and i.

◆ Insert() [1/2]

bool SvxTabStopItem::Insert ( const SvxTabStop rTab)

◆ Insert() [2/2]

void SvxTabStopItem::Insert ( const SvxTabStopItem pTabs)

◆ operator==()

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

Implements SfxPoolItem.

Definition at line 990 of file paraitem.cxx.

References Count(), GetDefaultDistance(), i, and mnDefaultDistance.

◆ operator[]()

const SvxTabStop & SvxTabStopItem::operator[] ( const sal_uInt16  nPos) const
inline

Definition at line 128 of file tstpitem.hxx.

References nPos.

◆ PutValue()

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

◆ QueryValue()

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

◆ Remove()

void SvxTabStopItem::Remove ( const sal_uInt16  nPos,
const sal_uInt16  nLen = 1 
)
inline

◆ SetDefaultDistance()

void SvxTabStopItem::SetDefaultDistance ( sal_Int32  nDefaultDistancenDefTabSize)

Definition at line 824 of file paraitem.cxx.

References mnDefaultDistance.

Referenced by ConvertItem().

Member Data Documentation

◆ maTabStops

SvxTabStopArr SvxTabStopItem::maTabStops
private

Definition at line 94 of file tstpitem.hxx.

Referenced by dumpAsXml(), GetPos(), Insert(), PutValue(), QueryValue(), and SvxTabStopItem().

◆ mnDefaultDistance

sal_Int32 SvxTabStopItem::mnDefaultDistance = 0
private

Defines default tab width for tabs without dedicated tab stop in the paragraph.

Definition at line 96 of file tstpitem.hxx.

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


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