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

#include <twolinesitem.hxx>

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

Public Member Functions

 SvxTwoLinesItem (bool bOn, sal_Unicode nStartBracket, sal_Unicode nEndBracket, sal_uInt16 nId)
 
virtual ~SvxTwoLinesItem () override
 
 SvxTwoLinesItem (SvxTwoLinesItem const &)=default
 
 SvxTwoLinesItem (SvxTwoLinesItem &&)=default
 
SvxTwoLinesItemoperator= (SvxTwoLinesItem const &)=delete
 
SvxTwoLinesItemoperator= (SvxTwoLinesItem &&)=delete
 
virtual bool operator== (const SfxPoolItem &) const override
 
virtual SvxTwoLinesItemClone (SfxItemPool *pPool=nullptr) const override
 
virtual bool GetPresentation (SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &rIntl) 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
 
bool GetValue () const
 
sal_Unicode GetStartBracket () const
 
sal_Unicode GetEndBracket () 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

sal_Unicode cStartBracket
 
sal_Unicode cEndBracket
 
bool bOn
 

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 26 of file twolinesitem.hxx.

Constructor & Destructor Documentation

◆ SvxTwoLinesItem() [1/3]

SvxTwoLinesItem::SvxTwoLinesItem ( bool  bOn,
sal_Unicode  nStartBracket,
sal_Unicode  nEndBracket,
sal_uInt16  nId 
)

Definition at line 2199 of file textitem.cxx.

Referenced by Clone().

◆ ~SvxTwoLinesItem()

SvxTwoLinesItem::~SvxTwoLinesItem ( )
overridevirtual

Definition at line 2206 of file textitem.cxx.

◆ SvxTwoLinesItem() [2/3]

SvxTwoLinesItem::SvxTwoLinesItem ( SvxTwoLinesItem const &  )
default

◆ SvxTwoLinesItem() [3/3]

SvxTwoLinesItem::SvxTwoLinesItem ( SvxTwoLinesItem &&  )
default

Member Function Documentation

◆ Clone()

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

Implements SfxPoolItem.

Definition at line 2218 of file textitem.cxx.

References SvxTwoLinesItem().

◆ GetEndBracket()

sal_Unicode SvxTwoLinesItem::GetEndBracket ( ) const
inline

Definition at line 58 of file twolinesitem.hxx.

Referenced by GetPresentation().

◆ GetPresentation()

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

Reimplemented from SfxPoolItem.

Definition at line 2286 of file textitem.cxx.

References EditResId(), GetEndBracket(), GetStartBracket(), and GetValue().

◆ GetStartBracket()

sal_Unicode SvxTwoLinesItem::GetStartBracket ( ) const
inline

Definition at line 56 of file twolinesitem.hxx.

Referenced by GetPresentation().

◆ GetValue()

bool SvxTwoLinesItem::GetValue ( ) const
inline

Definition at line 54 of file twolinesitem.hxx.

Referenced by GetPresentation().

◆ operator=() [1/2]

SvxTwoLinesItem & SvxTwoLinesItem::operator= ( SvxTwoLinesItem &&  )
delete

◆ operator=() [2/2]

SvxTwoLinesItem & SvxTwoLinesItem::operator= ( SvxTwoLinesItem const &  )
delete

◆ operator==()

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

Implements SfxPoolItem.

Definition at line 2210 of file textitem.cxx.

References bOn, cEndBracket, and cStartBracket.

◆ PutValue()

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

Reimplemented from SfxPoolItem.

Definition at line 2256 of file textitem.cxx.

References Any2Bool(), bOn, cEndBracket, cStartBracket, MID_END_BRACKET, MID_START_BRACKET, and MID_TWOLINES.

◆ QueryValue()

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

Reimplemented from SfxPoolItem.

Definition at line 2223 of file textitem.cxx.

References bOn, cEndBracket, cStartBracket, MID_END_BRACKET, MID_START_BRACKET, and MID_TWOLINES.

Member Data Documentation

◆ bOn

bool SvxTwoLinesItem::bOn
private

Definition at line 29 of file twolinesitem.hxx.

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

◆ cEndBracket

sal_Unicode SvxTwoLinesItem::cEndBracket
private

Definition at line 28 of file twolinesitem.hxx.

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

◆ cStartBracket

sal_Unicode SvxTwoLinesItem::cStartBracket
private

Definition at line 28 of file twolinesitem.hxx.

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


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