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)
 
- Public Member Functions inherited from SfxPoolItem
void AddRef (sal_uInt32 n=1) const
 
virtual ~SfxPoolItem ()
 
void SetWhich (sal_uInt16 nId)
 
sal_uInt16 Which () const
 
bool operator!= (const SfxPoolItem &rItem) const
 
virtual bool operator< (const SfxPoolItem &) const
 
virtual bool IsSortable () const
 
virtual void ScaleMetrics (long lMult, long lDiv)
 
virtual bool HasMetrics () const
 
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

- Protected Member Functions inherited from SfxPoolItem
 SfxPoolItem (sal_uInt16 nWhich=0)
 
 SfxPoolItem (const SfxPoolItem &rCopy)
 

Detailed Description

Definition at line 114 of file attrib.hxx.

Constructor & Destructor Documentation

ScProtectionAttr::ScProtectionAttr ( )

Protection.

Definition at line 173 of file attrib.cxx.

Referenced by Clone().

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

Definition at line 182 of file attrib.cxx.

ScProtectionAttr::ScProtectionAttr ( const ScProtectionAttr rItem)

Definition at line 192 of file attrib.cxx.

References bHideCell, bHideFormula, bHidePrint, and bProtection.

ScProtectionAttr::~ScProtectionAttr ( )
overridevirtual

Definition at line 201 of file attrib.cxx.

Member Function Documentation

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

Implements SfxPoolItem.

Definition at line 344 of file attrib.cxx.

References ScProtectionAttr().

SfxPoolItem * ScProtectionAttr::CreateDefault ( )
static

Definition at line 43 of file attrib.cxx.

bool ScProtectionAttr::GetHideCell ( ) const
inline
bool ScProtectionAttr::GetHideFormula ( ) const
inline
bool ScProtectionAttr::GetHidePrint ( ) const
inline

Definition at line 150 of file attrib.hxx.

Referenced by ScOutputData::IsEmptyCellText(), and ScTabPageProtection::Reset().

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

Reimplemented from SfxPoolItem.

Definition at line 294 of file attrib.cxx.

References ScResId().

bool ScProtectionAttr::GetProtection ( ) const
inline
OUString ScProtectionAttr::GetValueText ( ) const

Definition at line 275 of file attrib.cxx.

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

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

Definition at line 152 of file attrib.hxx.

References bHideCell, bHideFormula, bHidePrint, and bProtection.

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

Implements SfxPoolItem.

Definition at line 335 of file attrib.cxx.

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

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

Reimplemented from SfxPoolItem.

Definition at line 236 of file attrib.cxx.

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

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

Reimplemented from SfxPoolItem.

Definition at line 205 of file attrib.cxx.

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

void ScProtectionAttr::SetHideCell ( bool  bHCell)

Definition at line 359 of file attrib.cxx.

References bHideCell.

Referenced by ScTabPageProtection::FillItemSet().

void ScProtectionAttr::SetHideFormula ( bool  bHFormula)

Definition at line 354 of file attrib.cxx.

References bHideFormula.

Referenced by ScTabPageProtection::FillItemSet().

void ScProtectionAttr::SetHidePrint ( bool  bHPrint)

Definition at line 364 of file attrib.cxx.

References bHidePrint.

Referenced by ScTabPageProtection::FillItemSet().

void ScProtectionAttr::SetProtection ( bool  bProtect)

Definition at line 349 of file attrib.cxx.

References bProtection.

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

Member Data Documentation

bool ScProtectionAttr::bHideCell
private

hide cell

Definition at line 118 of file attrib.hxx.

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

bool ScProtectionAttr::bHideFormula
private

hide formula

Definition at line 117 of file attrib.hxx.

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

bool ScProtectionAttr::bHidePrint
private

don't print cell

Definition at line 119 of file attrib.hxx.

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

bool ScProtectionAttr::bProtection
private

protect cell

Definition at line 116 of file attrib.hxx.

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


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