LibreOffice Module sc (master) 1
|
#include <attrib.hxx>
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 ScProtectionAttr * | Clone (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) |
ScProtectionAttr & | operator= (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 SfxPoolItem * | Clone (SfxItemPool *pPool=nullptr) const=0 |
std::unique_ptr< SfxPoolItem > | CloneSetWhich (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 SfxPoolItem * | CreateDefault () |
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) | |
Definition at line 118 of file attrib.hxx.
ScProtectionAttr::ScProtectionAttr | ( | ) |
ScProtectionAttr::ScProtectionAttr | ( | bool | bProtect, |
bool | bHFormula = false , |
||
bool | bHCell = false , |
||
bool | bHPrint = false |
||
) |
Definition at line 194 of file attrib.cxx.
ScProtectionAttr::ScProtectionAttr | ( | const ScProtectionAttr & | rItem | ) |
Definition at line 204 of file attrib.cxx.
References bHideCell, bHideFormula, bHidePrint, and bProtection.
|
overridevirtual |
Definition at line 213 of file attrib.cxx.
|
overridevirtual |
|
static |
Definition at line 44 of file attrib.cxx.
References ScProtectionAttr().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 381 of file attrib.cxx.
References GetHideCell(), GetHideFormula(), GetHidePrint(), and GetProtection().
|
inline |
Definition at line 152 of file attrib.hxx.
Referenced by ScDocShell::AsciiSave(), ScOutputData::DrawBackground(), dumpAsXml(), XclExpCellProt::FillFromItemSet(), ScDocument::FillInfo(), ScAttrArray::HasAttrib_Impl(), ScOutputData::IsEmptyCellText(), FuSelection::IsNoteCaptionClicked(), lcl_UnLockComment(), ScColumn::RemoveProtected(), ScTabPageProtection::Reset(), and ScTabViewShell::UpdateInputHandler().
|
inline |
Definition at line 150 of file attrib.hxx.
Referenced by ScDocShell::AsciiSave(), dumpAsXml(), XclExpCellProt::FillFromItemSet(), ScDocument::FillInfo(), ScVbaFormat< Ifc >::getFormulaHidden(), ScOutputData::IsEmptyCellText(), ScColumn::RemoveProtected(), ScTabPageProtection::Reset(), and ScTabViewShell::UpdateInputHandler().
|
inline |
Definition at line 154 of file attrib.hxx.
Referenced by dumpAsXml(), ScOutputData::IsEmptyCellText(), and ScTabPageProtection::Reset().
|
overridevirtual |
Reimplemented from SfxPoolItem.
Definition at line 305 of file attrib.cxx.
References bHideCell, bHideFormula, bHidePrint, bProtection, GetValueText(), and ScResId().
|
inline |
Definition at line 148 of file attrib.hxx.
Referenced by ScOutputData::DrawBackground(), dumpAsXml(), XclExpCellProt::FillFromItemSet(), ScVbaFormat< Ifc >::getLocked(), ScAttrArray::HasAttrib_Impl(), ScAccessibleCell::IsEditable(), FuSelection::IsNoteCaptionClicked(), lcl_UnLockComment(), ScTabPageProtection::Reset(), and ScInterpreter::ScCell().
OUString ScProtectionAttr::GetValueText | ( | ) | const |
Definition at line 287 of file attrib.cxx.
References bHideCell, bHideFormula, bHidePrint, bProtection, and ScResId().
Referenced by GetPresentation().
|
inline |
Definition at line 156 of file attrib.hxx.
References bHideCell, bHideFormula, bHidePrint, and bProtection.
|
overridevirtual |
Implements SfxPoolItem.
Definition at line 347 of file attrib.cxx.
References bHideCell, bHideFormula, bHidePrint, bProtection, and SfxPoolItem::operator==().
|
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.
|
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.
void ScProtectionAttr::SetHideCell | ( | bool | bHCell | ) |
Definition at line 371 of file attrib.cxx.
References bHideCell.
Referenced by ScTabPageProtection::FillItemSet().
void ScProtectionAttr::SetHideFormula | ( | bool | bHFormula | ) |
Definition at line 366 of file attrib.cxx.
References bHideFormula.
Referenced by ScTabPageProtection::FillItemSet().
void ScProtectionAttr::SetHidePrint | ( | bool | bHPrint | ) |
Definition at line 376 of file attrib.cxx.
References bHidePrint.
Referenced by ScTabPageProtection::FillItemSet().
void ScProtectionAttr::SetProtection | ( | bool | bProtect | ) |
Definition at line 361 of file attrib.cxx.
References bProtection.
Referenced by ScTabPageProtection::FillItemSet(), and SetFormat().
|
private |
hide cell
Definition at line 122 of file attrib.hxx.
Referenced by GetPresentation(), GetValueText(), operator=(), operator==(), PutValue(), QueryValue(), ScProtectionAttr(), and SetHideCell().
|
private |
hide formula
Definition at line 121 of file attrib.hxx.
Referenced by GetPresentation(), GetValueText(), operator=(), operator==(), PutValue(), QueryValue(), ScProtectionAttr(), and SetHideFormula().
|
private |
don't print cell
Definition at line 123 of file attrib.hxx.
Referenced by GetPresentation(), GetValueText(), operator=(), operator==(), PutValue(), QueryValue(), ScProtectionAttr(), and SetHidePrint().
|
private |
protect cell
Definition at line 120 of file attrib.hxx.
Referenced by GetPresentation(), GetValueText(), operator=(), operator==(), PutValue(), QueryValue(), ScProtectionAttr(), and SetProtection().