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

#include <protitem.hxx>

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

Public Member Functions

 SvxProtectItem (const sal_uInt16 nId)
 
 SvxProtectItem (SvxProtectItem const &)=default
 
virtual bool operator== (const SfxPoolItem &) const override
 
virtual bool GetPresentation (SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
 
virtual SvxProtectItemClone (SfxItemPool *pPool=nullptr) const override
 
bool IsContentProtected () const
 
bool IsSizeProtected () const
 
bool IsPosProtected () const
 
void SetContentProtect (bool bNew)
 
void SetSizeProtect (bool bNew)
 
void SetPosProtect (bool bNew)
 
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
 
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

bool bCntnt:1
 
bool bSize:1
 
bool bPos:1
 

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 33 of file protitem.hxx.

Constructor & Destructor Documentation

◆ SvxProtectItem() [1/2]

SvxProtectItem::SvxProtectItem ( const sal_uInt16  nId)
inlineexplicit

Definition at line 68 of file protitem.hxx.

References bCntnt, bPos, bSize, and nId.

Referenced by Clone(), and CreateDefault().

◆ SvxProtectItem() [2/2]

SvxProtectItem::SvxProtectItem ( SvxProtectItem const &  )
default

Member Function Documentation

◆ Clone()

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

Implements SfxPoolItem.

Definition at line 1992 of file frmitems.cxx.

References SvxProtectItem().

◆ CreateDefault()

SfxPoolItem * SvxProtectItem::CreateDefault ( )
static

Definition at line 93 of file frmitems.cxx.

References SvxProtectItem().

◆ dumpAsXml()

void SvxProtectItem::dumpAsXml ( xmlTextWriterPtr  pWriter) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 2024 of file frmitems.cxx.

References bCntnt, bPos, bSize, and SfxPoolItem::Which().

◆ GetPresentation()

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

Reimplemented from SfxPoolItem.

Definition at line 1997 of file frmitems.cxx.

References bCntnt, bPos, bSize, cpDelim, and EditResId().

◆ IsContentProtected()

bool SvxProtectItem::IsContentProtected ( ) const
inline

Definition at line 56 of file protitem.hxx.

◆ IsPosProtected()

bool SvxProtectItem::IsPosProtected ( ) const
inline

Definition at line 58 of file protitem.hxx.

◆ IsSizeProtected()

bool SvxProtectItem::IsSizeProtected ( ) const
inline

Definition at line 57 of file protitem.hxx.

◆ operator==()

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

Implements SfxPoolItem.

Definition at line 1946 of file frmitems.cxx.

References bCntnt, bPos, and bSize.

◆ PutValue()

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

Reimplemented from SfxPoolItem.

Definition at line 1976 of file frmitems.cxx.

References Any2Bool(), bCntnt, bPos, bSize, MID_PROTECT_CONTENT, MID_PROTECT_POSITION, and MID_PROTECT_SIZE.

◆ QueryValue()

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

Reimplemented from SfxPoolItem.

Definition at line 1957 of file frmitems.cxx.

References bCntnt, bPos, bSize, MID_PROTECT_CONTENT, MID_PROTECT_POSITION, and MID_PROTECT_SIZE.

◆ SetContentProtect()

void SvxProtectItem::SetContentProtect ( bool  bNew)
inline

Definition at line 59 of file protitem.hxx.

◆ SetPosProtect()

void SvxProtectItem::SetPosProtect ( bool  bNew)
inline

Definition at line 61 of file protitem.hxx.

◆ SetSizeProtect()

void SvxProtectItem::SetSizeProtect ( bool  bNew)
inline

Definition at line 60 of file protitem.hxx.

Member Data Documentation

◆ bCntnt

bool SvxProtectItem::bCntnt
private

◆ bPos

bool SvxProtectItem::bPos
private

◆ bSize

bool SvxProtectItem::bSize
private

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