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

#include <attrib.hxx>

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

Public Member Functions

 ScProtectionAttr ()
 Protection. More...
 
 ScProtectionAttr (bool bProtect, bool bHFormula=false, bool bHCell=false, bool bHPrint=false)
 
 ScProtectionAttr (const ScProtectionAttr &)
 
virtual ~ScProtectionAttr () override
 
OUString GetValueText () const
 
virtual bool GetPresentation (SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &rIntl) const override
 
virtual bool operator== (const SfxPoolItem &) const override
 
virtual ScProtectionAttrClone (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
 
bool GetProtection () const
 
void SetProtection (bool bProtect)
 
bool GetHideFormula () const
 
void SetHideFormula (bool bHFormula)
 
bool GetHideCell () const
 
void SetHideCell (bool bHCell)
 
bool GetHidePrint () const
 
void SetHidePrint (bool bHPrint)
 
ScProtectionAttroperator= (const ScProtectionAttr &rProtection)
 
virtual 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 bProtection
 protect cell More...
 
bool bHideFormula
 hide formula More...
 
bool bHideCell
 hide cell More...
 
bool bHidePrint
 don't print cell More...
 

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 118 of file attrib.hxx.

Constructor & Destructor Documentation

◆ ScProtectionAttr() [1/3]

ScProtectionAttr::ScProtectionAttr ( )

Protection.

Definition at line 185 of file attrib.cxx.

Referenced by Clone(), and CreateDefault().

◆ ScProtectionAttr() [2/3]

ScProtectionAttr::ScProtectionAttr ( bool  bProtect,
bool  bHFormula = false,
bool  bHCell = false,
bool  bHPrint = false 
)

Definition at line 194 of file attrib.cxx.

◆ ScProtectionAttr() [3/3]

ScProtectionAttr::ScProtectionAttr ( const ScProtectionAttr rItem)

Definition at line 204 of file attrib.cxx.

References bHideCell, bHideFormula, bHidePrint, and bProtection.

◆ ~ScProtectionAttr()

ScProtectionAttr::~ScProtectionAttr ( )
overridevirtual

Definition at line 213 of file attrib.cxx.

Member Function Documentation

◆ Clone()

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

Implements SfxPoolItem.

Definition at line 356 of file attrib.cxx.

References ScProtectionAttr().

◆ CreateDefault()

SfxPoolItem * ScProtectionAttr::CreateDefault ( )
static

Definition at line 44 of file attrib.cxx.

References ScProtectionAttr().

◆ dumpAsXml()

void ScProtectionAttr::dumpAsXml ( xmlTextWriterPtr  pWriter) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 381 of file attrib.cxx.

References GetHideCell(), GetHideFormula(), GetHidePrint(), and GetProtection().

◆ GetHideCell()

bool ScProtectionAttr::GetHideCell ( ) const
inline

◆ GetHideFormula()

bool ScProtectionAttr::GetHideFormula ( ) const
inline

◆ GetHidePrint()

bool ScProtectionAttr::GetHidePrint ( ) const
inline

◆ GetPresentation()

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

Reimplemented from SfxPoolItem.

Definition at line 305 of file attrib.cxx.

References bHideCell, bHideFormula, bHidePrint, bProtection, GetValueText(), and ScResId().

◆ GetProtection()

bool ScProtectionAttr::GetProtection ( ) const
inline

◆ GetValueText()

OUString ScProtectionAttr::GetValueText ( ) const

Definition at line 287 of file attrib.cxx.

References bHideCell, bHideFormula, bHidePrint, bProtection, and ScResId().

Referenced by GetPresentation().

◆ operator=()

ScProtectionAttr & ScProtectionAttr::operator= ( const ScProtectionAttr rProtection)
inline

Definition at line 156 of file attrib.hxx.

References bHideCell, bHideFormula, bHidePrint, and bProtection.

◆ operator==()

bool ScProtectionAttr::operator== ( const SfxPoolItem rItem) const
overridevirtual

Implements SfxPoolItem.

Definition at line 347 of file attrib.cxx.

References bHideCell, bHideFormula, bHidePrint, bProtection, and SfxPoolItem::operator==().

◆ PutValue()

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

Reimplemented from SfxPoolItem.

Definition at line 248 of file attrib.cxx.

References bHideCell, bHideFormula, bHidePrint, bProtection, MID_1, MID_2, MID_3, and MID_4.

◆ QueryValue()

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

Reimplemented from SfxPoolItem.

Definition at line 217 of file attrib.cxx.

References bHideCell, bHideFormula, bHidePrint, bProtection, MID_1, MID_2, MID_3, and MID_4.

◆ SetHideCell()

void ScProtectionAttr::SetHideCell ( bool  bHCell)

Definition at line 371 of file attrib.cxx.

References bHideCell.

Referenced by ScTabPageProtection::FillItemSet().

◆ SetHideFormula()

void ScProtectionAttr::SetHideFormula ( bool  bHFormula)

Definition at line 366 of file attrib.cxx.

References bHideFormula.

Referenced by ScTabPageProtection::FillItemSet().

◆ SetHidePrint()

void ScProtectionAttr::SetHidePrint ( bool  bHPrint)

Definition at line 376 of file attrib.cxx.

References bHidePrint.

Referenced by ScTabPageProtection::FillItemSet().

◆ SetProtection()

void ScProtectionAttr::SetProtection ( bool  bProtect)

Definition at line 361 of file attrib.cxx.

References bProtection.

Referenced by ScTabPageProtection::FillItemSet(), and SetFormat().

Member Data Documentation

◆ bHideCell

bool ScProtectionAttr::bHideCell
private

◆ bHideFormula

bool ScProtectionAttr::bHideFormula
private

◆ bHidePrint

bool ScProtectionAttr::bHidePrint
private

don't print cell

Definition at line 123 of file attrib.hxx.

Referenced by GetPresentation(), GetValueText(), operator=(), operator==(), PutValue(), QueryValue(), ScProtectionAttr(), and SetHidePrint().

◆ bProtection

bool ScProtectionAttr::bProtection
private

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