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

#include <boxitem.hxx>

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

Public Member Functions

 SvxBoxInfoItem (const sal_uInt16 nId)
 
 SvxBoxInfoItem (const SvxBoxInfoItem &rCpy)
 
virtual ~SvxBoxInfoItem () override
 
virtual bool operator== (const SfxPoolItem &) const override
 
virtual bool GetPresentation (SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) 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 SvxBoxInfoItemClone (SfxItemPool *pPool=nullptr) const override
 
virtual void ScaleMetrics (tools::Long nMult, tools::Long nDiv) override
 
virtual bool HasMetrics () const override
 
const editeng::SvxBorderLineGetHori () const
 
const editeng::SvxBorderLineGetVert () const
 
void SetLine (const editeng::SvxBorderLine *pNew, SvxBoxInfoItemLine nLine)
 
bool IsTable () const
 
void SetTable (bool bNew)
 
bool IsHorEnabled () const
 
void EnableHor (bool bEnable)
 
bool IsVerEnabled () const
 
void EnableVer (bool bEnable)
 
bool IsDist () const
 
void SetDist (bool bNew)
 
bool IsMinDist () const
 
void SetMinDist (bool bNew)
 
sal_uInt16 GetDefDist () const
 
void SetDefDist (sal_uInt16 nNew)
 
bool IsValid (SvxBoxInfoItemValidFlags nValid) const
 
void SetValid (SvxBoxInfoItemValidFlags nValid, bool bValid=true)
 
void ResetFlags ()
 
virtual boost::property_tree::ptree dumpAsJSON () 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

std::unique_ptr< editeng::SvxBorderLinempHorizontalLine
 
std::unique_ptr< editeng::SvxBorderLinempVerticalLine
 
bool mbEnableHorizontalLine = false
 
bool mbEnableVerticalLine = false
 true = Enable inner horizontal line. More...
 
bool mbDistance:1
 true = Enable inner vertical line. More...
 
bool mbMinimumDistance:1
 
SvxBoxInfoItemValidFlags mnValidFlags
 
sal_uInt16 mnDefaultMinimumDistance = 0
 

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 196 of file boxitem.hxx.

Constructor & Destructor Documentation

◆ SvxBoxInfoItem() [1/2]

SvxBoxInfoItem::SvxBoxInfoItem ( const sal_uInt16  nId)
explicit

Definition at line 3258 of file frmitems.cxx.

References nId, and ResetFlags().

Referenced by Clone(), and CreateDefault().

◆ SvxBoxInfoItem() [2/2]

SvxBoxInfoItem::SvxBoxInfoItem ( const SvxBoxInfoItem rCpy)

Definition at line 3267 of file frmitems.cxx.

◆ ~SvxBoxInfoItem()

SvxBoxInfoItem::~SvxBoxInfoItem ( )
overridevirtual

Definition at line 3280 of file frmitems.cxx.

Member Function Documentation

◆ Clone()

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

Implements SfxPoolItem.

Definition at line 3335 of file frmitems.cxx.

References SvxBoxInfoItem().

◆ CreateDefault()

SfxPoolItem * SvxBoxInfoItem::CreateDefault ( )
static

Definition at line 97 of file frmitems.cxx.

References SvxBoxInfoItem().

◆ dumpAsJSON()

boost::property_tree::ptree SvxBoxInfoItem::dumpAsJSON ( ) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 3285 of file frmitems.cxx.

References GetHori(), and GetVert().

◆ EnableHor()

void SvxBoxInfoItem::EnableHor ( bool  bEnable)
inline

Definition at line 250 of file boxitem.hxx.

◆ EnableVer()

void SvxBoxInfoItem::EnableVer ( bool  bEnable)
inline

Definition at line 252 of file boxitem.hxx.

◆ GetDefDist()

sal_uInt16 SvxBoxInfoItem::GetDefDist ( ) const
inline

Definition at line 261 of file boxitem.hxx.

Referenced by QueryValue().

◆ GetHori()

const editeng::SvxBorderLine * SvxBoxInfoItem::GetHori ( ) const
inline

Definition at line 240 of file boxitem.hxx.

Referenced by dumpAsJSON(), and operator==().

◆ GetPresentation()

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

Reimplemented from SfxPoolItem.

Definition at line 3340 of file frmitems.cxx.

◆ GetVert()

const editeng::SvxBorderLine * SvxBoxInfoItem::GetVert ( ) const
inline

Definition at line 241 of file boxitem.hxx.

Referenced by dumpAsJSON(), and operator==().

◆ HasMetrics()

bool SvxBoxInfoItem::HasMetrics ( ) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 3363 of file frmitems.cxx.

◆ IsDist()

bool SvxBoxInfoItem::IsDist ( ) const
inline

Definition at line 254 of file boxitem.hxx.

Referenced by QueryValue().

◆ IsHorEnabled()

bool SvxBoxInfoItem::IsHorEnabled ( ) const
inline

Definition at line 249 of file boxitem.hxx.

◆ IsMinDist()

bool SvxBoxInfoItem::IsMinDist ( ) const
inline

Definition at line 259 of file boxitem.hxx.

Referenced by QueryValue().

◆ IsTable()

bool SvxBoxInfoItem::IsTable ( ) const
inline

Definition at line 246 of file boxitem.hxx.

Referenced by QueryValue().

◆ IsValid()

bool SvxBoxInfoItem::IsValid ( SvxBoxInfoItemValidFlags  nValid) const
inline

Definition at line 264 of file boxitem.hxx.

◆ IsVerEnabled()

bool SvxBoxInfoItem::IsVerEnabled ( ) const
inline

Definition at line 251 of file boxitem.hxx.

◆ operator==()

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

◆ PutValue()

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

◆ QueryValue()

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

◆ ResetFlags()

void SvxBoxInfoItem::ResetFlags ( )

Definition at line 3369 of file frmitems.cxx.

References mnValidFlags.

Referenced by SvxBoxInfoItem().

◆ ScaleMetrics()

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

Reimplemented from SfxPoolItem.

Definition at line 3353 of file frmitems.cxx.

References mnDefaultMinimumDistance, mpHorizontalLine, mpVerticalLine, and BigInt::Scale().

◆ SetDefDist()

void SvxBoxInfoItem::SetDefDist ( sal_uInt16  nNew)
inline

Definition at line 262 of file boxitem.hxx.

Referenced by PutValue().

◆ SetDist()

void SvxBoxInfoItem::SetDist ( bool  bNew)
inline

Definition at line 255 of file boxitem.hxx.

Referenced by PutValue().

◆ SetLine()

void SvxBoxInfoItem::SetLine ( const editeng::SvxBorderLine pNew,
SvxBoxInfoItemLine  nLine 
)

Definition at line 3317 of file frmitems.cxx.

References HORI, mpHorizontalLine, mpVerticalLine, and VERT.

Referenced by PutValue().

◆ SetMinDist()

void SvxBoxInfoItem::SetMinDist ( bool  bNew)
inline

Definition at line 260 of file boxitem.hxx.

Referenced by PutValue().

◆ SetTable()

void SvxBoxInfoItem::SetTable ( bool  bNew)
inline

Definition at line 247 of file boxitem.hxx.

Referenced by PutValue().

◆ SetValid()

void SvxBoxInfoItem::SetValid ( SvxBoxInfoItemValidFlags  nValid,
bool  bValid = true 
)
inline

Definition at line 268 of file boxitem.hxx.

Member Data Documentation

◆ mbDistance

bool SvxBoxInfoItem::mbDistance
private

true = Enable inner vertical line.

Definition at line 214 of file boxitem.hxx.

Referenced by operator==().

◆ mbEnableHorizontalLine

bool SvxBoxInfoItem::mbEnableHorizontalLine = false
private

Definition at line 201 of file boxitem.hxx.

Referenced by operator==().

◆ mbEnableVerticalLine

bool SvxBoxInfoItem::mbEnableVerticalLine = false
private

true = Enable inner horizontal line.

Definition at line 202 of file boxitem.hxx.

Referenced by operator==().

◆ mbMinimumDistance

bool SvxBoxInfoItem::mbMinimumDistance
private

Definition at line 215 of file boxitem.hxx.

Referenced by operator==().

◆ mnDefaultMinimumDistance

sal_uInt16 SvxBoxInfoItem::mnDefaultMinimumDistance = 0
private

Definition at line 218 of file boxitem.hxx.

Referenced by operator==(), and ScaleMetrics().

◆ mnValidFlags

SvxBoxInfoItemValidFlags SvxBoxInfoItem::mnValidFlags
private

Definition at line 217 of file boxitem.hxx.

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

◆ mpHorizontalLine

std::unique_ptr<editeng::SvxBorderLine> SvxBoxInfoItem::mpHorizontalLine
private

Definition at line 198 of file boxitem.hxx.

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

◆ mpVerticalLine

std::unique_ptr<editeng::SvxBorderLine> SvxBoxInfoItem::mpVerticalLine
private

Definition at line 199 of file boxitem.hxx.

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


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