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

#include <lineitem.hxx>

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

Public Member Functions

 SvxLineItem (const sal_uInt16 nId)
 
 SvxLineItem (const SvxLineItem &rCpy)
 
virtual ~SvxLineItem () 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 operator== (const SfxPoolItem &) const override
 
virtual bool GetPresentation (SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
 
virtual SvxLineItemClone (SfxItemPool *pPool=nullptr) const override
 
virtual void ScaleMetrics (tools::Long nMult, tools::Long nDiv) override
 
virtual bool HasMetrics () const override
 
const editeng::SvxBorderLineGetLine () const
 
void SetLine (const editeng::SvxBorderLine *pNew)
 
- 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

std::unique_ptr< editeng::SvxBorderLinepLine
 

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 39 of file lineitem.hxx.

Constructor & Destructor Documentation

◆ SvxLineItem() [1/2]

SvxLineItem::SvxLineItem ( const sal_uInt16  nId)
explicit

Definition at line 3849 of file frmitems.cxx.

References nId.

Referenced by Clone(), and CreateDefault().

◆ SvxLineItem() [2/2]

SvxLineItem::SvxLineItem ( const SvxLineItem rCpy)

Definition at line 3855 of file frmitems.cxx.

◆ ~SvxLineItem()

SvxLineItem::~SvxLineItem ( )
overridevirtual

Definition at line 3862 of file frmitems.cxx.

Member Function Documentation

◆ Clone()

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

Implements SfxPoolItem.

Definition at line 3874 of file frmitems.cxx.

References SvxLineItem().

◆ CreateDefault()

SfxPoolItem * SvxLineItem::CreateDefault ( )
static

Definition at line 100 of file frmitems.cxx.

References SvxLineItem().

◆ GetLine()

const editeng::SvxBorderLine * SvxLineItem::GetLine ( ) const
inline

Definition at line 61 of file lineitem.hxx.

Referenced by operator==(), and legacy::SvxLine::Store().

◆ GetPresentation()

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

Reimplemented from SfxPoolItem.

Definition at line 3947 of file frmitems.cxx.

References pLine.

◆ HasMetrics()

bool SvxLineItem::HasMetrics ( ) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 3970 of file frmitems.cxx.

◆ operator==()

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

Implements SfxPoolItem.

Definition at line 3867 of file frmitems.cxx.

References CompareBorderLine(), GetLine(), and pLine.

◆ PutValue()

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

Reimplemented from SfxPoolItem.

Definition at line 3906 of file frmitems.cxx.

References ColorTransparency, CONVERT_TWIPS, SvxBoxItem::LineToSvxLine(), MID_FG_COLOR, MID_LINE_STYLE, and pLine.

◆ QueryValue()

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

◆ ScaleMetrics()

void SvxLineItem::ScaleMetrics ( tools::Long  nMult,
tools::Long  nDiv 
)
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 3964 of file frmitems.cxx.

References pLine.

◆ SetLine()

void SvxLineItem::SetLine ( const editeng::SvxBorderLine pNew)

Definition at line 3976 of file frmitems.cxx.

References pLine.

Referenced by legacy::SvxLine::Create().

Member Data Documentation

◆ pLine

std::unique_ptr<editeng::SvxBorderLine> SvxLineItem::pLine
private

Definition at line 65 of file lineitem.hxx.

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


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