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

#include <rulritem.hxx>

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

Public Member Functions

 SvxColumnItem (sal_uInt16 nAct=0)
 
 SvxColumnItem (sal_uInt16 nActCol, sal_uInt16 nLeft, sal_uInt16 nRight)
 
SvxColumnDescriptionoperator[] (sal_uInt16 index)
 
const SvxColumnDescriptionoperator[] (sal_uInt16 index) const
 
SvxColumnDescriptionAt (sal_uInt16 index)
 
SvxColumnDescriptionGetActiveColumnDescription ()
 
sal_uInt16 Count () const
 
void Append (const SvxColumnDescription &rDesc)
 
void SetLeft (tools::Long aLeft)
 
void SetRight (tools::Long aRight)
 
sal_uInt16 GetActColumn () const
 
bool IsFirstAct () const
 
bool IsLastAct () const
 
tools::Long GetLeft () const
 
tools::Long GetRight () const
 
bool IsTable () const
 
bool CalcOrtho () const
 
void SetOrtho (bool bVal)
 
bool IsConsistent () 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
 

Static Public Member Functions

static SfxPoolItemCreateDefault ()
 

Private Member Functions

virtual bool operator== (const SfxPoolItem &) const override
 
virtual bool GetPresentation (SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
 
virtual SvxColumnItemClone (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
 

Private Attributes

std::vector< SvxColumnDescriptionaColumns
 
tools::Long nLeft
 
tools::Long nRight
 
sal_uInt16 nActColumn
 
bool bTable
 
bool bOrtho
 

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 146 of file rulritem.hxx.

Constructor & Destructor Documentation

◆ SvxColumnItem() [1/2]

SvxColumnItem::SvxColumnItem ( sal_uInt16  nAct = 0)

Definition at line 406 of file rulritem.cxx.

Referenced by Clone(), and CreateDefault().

◆ SvxColumnItem() [2/2]

SvxColumnItem::SvxColumnItem ( sal_uInt16  nActCol,
sal_uInt16  nLeft,
sal_uInt16  nRight 
)

Definition at line 416 of file rulritem.cxx.

References left, and right.

Member Function Documentation

◆ Append()

void SvxColumnItem::Append ( const SvxColumnDescription rDesc)

Definition at line 551 of file rulritem.cxx.

References aColumns.

◆ At()

SvxColumnDescription & SvxColumnItem::At ( sal_uInt16  index)

Definition at line 531 of file rulritem.cxx.

References aColumns, and index.

◆ CalcOrtho()

bool SvxColumnItem::CalcOrtho ( ) const

! Wide divider

Definition at line 440 of file rulritem.cxx.

References Count(), DBG_ASSERT, i, and nCount.

◆ Clone()

SvxColumnItem * SvxColumnItem::Clone ( SfxItemPool pPool = nullptr) const
overrideprivatevirtual

Implements SfxPoolItem.

Definition at line 435 of file rulritem.cxx.

References SvxColumnItem().

◆ Count()

sal_uInt16 SvxColumnItem::Count ( ) const

Definition at line 526 of file rulritem.cxx.

References aColumns.

Referenced by CalcOrtho(), IsLastAct(), SvxRuler::MouseMove(), and operator==().

◆ CreateDefault()

SfxPoolItem * SvxColumnItem::CreateDefault ( )
static

Definition at line 35 of file rulritem.cxx.

References SvxColumnItem().

◆ GetActColumn()

sal_uInt16 SvxColumnItem::GetActColumn ( ) const
inline

Definition at line 185 of file rulritem.hxx.

Referenced by GetActiveColumnDescription().

◆ GetActiveColumnDescription()

SvxColumnDescription & SvxColumnItem::GetActiveColumnDescription ( )

Definition at line 536 of file rulritem.cxx.

References aColumns, and GetActColumn().

◆ GetLeft()

tools::Long SvxColumnItem::GetLeft ( ) const
inline

Definition at line 188 of file rulritem.hxx.

◆ GetPresentation()

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

Reimplemented from SfxPoolItem.

Definition at line 425 of file rulritem.cxx.

◆ GetRight()

tools::Long SvxColumnItem::GetRight ( ) const
inline

Definition at line 189 of file rulritem.hxx.

◆ IsConsistent()

bool SvxColumnItem::IsConsistent ( ) const

Definition at line 619 of file rulritem.cxx.

References aColumns, and nActColumn.

Referenced by SvxRulerItem::StateChangedAtToolBoxControl().

◆ IsFirstAct()

bool SvxColumnItem::IsFirstAct ( ) const

Definition at line 567 of file rulritem.cxx.

References nActColumn.

◆ IsLastAct()

bool SvxColumnItem::IsLastAct ( ) const

Definition at line 572 of file rulritem.cxx.

References Count(), and nActColumn.

◆ IsTable()

bool SvxColumnItem::IsTable ( ) const
inline

Definition at line 190 of file rulritem.hxx.

◆ operator==()

bool SvxColumnItem::operator== ( const SfxPoolItem rCmp) const
overrideprivatevirtual

Implements SfxPoolItem.

Definition at line 387 of file rulritem.cxx.

References bTable, Count(), i, nActColumn, nCount, nLeft, and nRight.

◆ operator[]() [1/2]

SvxColumnDescription & SvxColumnItem::operator[] ( sal_uInt16  index)

Definition at line 541 of file rulritem.cxx.

References aColumns, and index.

◆ operator[]() [2/2]

const SvxColumnDescription & SvxColumnItem::operator[] ( sal_uInt16  index) const

Definition at line 546 of file rulritem.cxx.

References aColumns, and index.

◆ PutValue()

bool SvxColumnItem::PutValue ( const css::uno::Any &  rVal,
sal_uInt8  nMemberId 
)
overrideprivatevirtual

Reimplemented from SfxPoolItem.

Definition at line 490 of file rulritem.cxx.

References bOrtho, bTable, MID_ACTUAL, MID_COLUMNARRAY, MID_LEFT, MID_ORTHO, MID_TABLE, nActColumn, nLeft, and nRight.

◆ QueryValue()

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

Reimplemented from SfxPoolItem.

Definition at line 456 of file rulritem.cxx.

References bOrtho, bTable, MID_ACTUAL, MID_COLUMNARRAY, MID_LEFT, MID_ORTHO, MID_TABLE, nActColumn, nLeft, nRight, SAL_INFO, and SAL_WARN.

◆ SetLeft()

void SvxColumnItem::SetLeft ( tools::Long  aLeft)

Definition at line 556 of file rulritem.cxx.

References left, and nLeft.

◆ SetOrtho()

void SvxColumnItem::SetOrtho ( bool  bVal)

Definition at line 614 of file rulritem.cxx.

References bOrtho.

◆ SetRight()

void SvxColumnItem::SetRight ( tools::Long  aRight)

Definition at line 561 of file rulritem.cxx.

References nRight, and right.

Member Data Documentation

◆ aColumns

std::vector<SvxColumnDescription> SvxColumnItem::aColumns
private

Definition at line 148 of file rulritem.hxx.

Referenced by Append(), At(), Count(), GetActiveColumnDescription(), IsConsistent(), and operator[]().

◆ bOrtho

bool SvxColumnItem::bOrtho
private

Definition at line 155 of file rulritem.hxx.

Referenced by PutValue(), QueryValue(), and SetOrtho().

◆ bTable

bool SvxColumnItem::bTable
private

Definition at line 154 of file rulritem.hxx.

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

◆ nActColumn

sal_uInt16 SvxColumnItem::nActColumn
private

Definition at line 153 of file rulritem.hxx.

Referenced by IsConsistent(), IsFirstAct(), IsLastAct(), operator==(), PutValue(), and QueryValue().

◆ nLeft

tools::Long SvxColumnItem::nLeft
private

Definition at line 150 of file rulritem.hxx.

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

◆ nRight

tools::Long SvxColumnItem::nRight
private

Definition at line 151 of file rulritem.hxx.

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


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