LibreOffice Module sc (master) 1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
ScTabPageProtection Class Reference

#include <tabpages.hxx>

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

Public Member Functions

 ScTabPageProtection (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rCoreAttrs)
 
virtual ~ScTabPageProtection () override
 
virtual bool FillItemSet (SfxItemSet *rCoreAttrs) override
 
virtual void Reset (const SfxItemSet *) override
 
- Public Member Functions inherited from SfxTabPage
void SetDialogController (SfxOkDialogController *pDialog)
 
virtual ~SfxTabPage () override
 
void set_visible (bool bVisible)
 
const SfxItemSetGetItemSet () const
 
virtual bool FillItemSet (SfxItemSet *)
 
virtual void Reset (const SfxItemSet *)
 
virtual bool DeferResetToFirstActivation ()
 
bool HasExchangeSupport () const
 
void SetExchangeSupport ()
 
virtual void ActivatePage (const SfxItemSet &)
 
virtual DeactivateRC DeactivatePage (SfxItemSet *pSet)
 
void SetUserData (const OUString &rString)
 
const OUString & GetUserData () const
 
virtual void FillUserData ()
 
virtual bool IsReadOnly () const
 
virtual void PageCreated (const SfxAllItemSet &aSet)
 
virtual void ChangesApplied ()
 
void SetFrame (const css::uno::Reference< css::frame::XFrame > &xFrame)
 
css::uno::Reference< css::frame::XFrame > GetFrame () const
 
const SfxItemSetGetDialogExampleSet () const
 
OUString GetHelpId () const
 
OUString GetConfigId () const
 
bool IsVisible () const
 
weld::WindowGetFrameWeld () const
 
std::unordered_map< OUString, css::uno::Any > & getAdditionalProperties ()
 

Static Public Member Functions

static std::unique_ptr< SfxTabPageCreate (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
 
static WhichRangesContainer GetRanges ()
 
- Static Public Member Functions inherited from SfxTabPage
static const SfxPoolItemGetItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true)
 
static const T * GetItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true)
 

Protected Member Functions

virtual DeactivateRC DeactivatePage (SfxItemSet *pSet) override
 
- Protected Member Functions inherited from SfxTabPage
 SfxTabPage (weld::Container *pPage, weld::DialogController *pController, const OUString &rUIXMLDescription, const OUString &rID, const SfxItemSet *rAttrSet)
 
sal_uInt16 GetWhich (sal_uInt16 nSlot, bool bDeep=true) const
 
TypedWhichId< T > GetWhich (TypedWhichId< T > nSlot, bool bDeep=true) const
 
const SfxPoolItemGetOldItem (const SfxItemSet &rSet, sal_uInt16 nSlot, bool bDeep=true)
 
const T * GetOldItem (const SfxItemSet &rSet, TypedWhichId< T > nSlot, bool bDeep=true)
 
SfxOkDialogControllerGetDialogController () const
 

Private Member Functions

 DECL_LINK (ProtectClickHdl, weld::Toggleable &, void)
 
 DECL_LINK (HideCellClickHdl, weld::Toggleable &, void)
 
 DECL_LINK (HideFormulaClickHdl, weld::Toggleable &, void)
 
 DECL_LINK (HidePrintClickHdl, weld::Toggleable &, void)
 
void ButtonClick (const weld::Toggleable &rBox)
 
void UpdateButtons ()
 

Private Attributes

bool bTriEnabled
 
bool bDontCare
 
bool bProtect
 
bool bHideForm
 
bool bHideCell
 
bool bHidePrint
 
weld::TriStateEnabled aHideCellState
 
weld::TriStateEnabled aProtectState
 
weld::TriStateEnabled aHideFormulaState
 
weld::TriStateEnabled aHidePrintState
 
std::unique_ptr< weld::CheckButtonm_xBtnHideCell
 
std::unique_ptr< weld::CheckButtonm_xBtnProtect
 
std::unique_ptr< weld::CheckButtonm_xBtnHideFormula
 
std::unique_ptr< weld::CheckButtonm_xBtnHidePrint
 

Static Private Attributes

static const WhichRangesContainer pProtectionRanges
 

Detailed Description

Definition at line 24 of file tabpages.hxx.

Constructor & Destructor Documentation

◆ ScTabPageProtection()

ScTabPageProtection::ScTabPageProtection ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet rCoreAttrs 
)

◆ ~ScTabPageProtection()

ScTabPageProtection::~ScTabPageProtection ( )
overridevirtual

Definition at line 52 of file tabpages.cxx.

Member Function Documentation

◆ ButtonClick()

void ScTabPageProtection::ButtonClick ( const weld::Toggleable rBox)
private

◆ Create()

std::unique_ptr< SfxTabPage > ScTabPageProtection::Create ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet rAttrSet 
)
static

Definition at line 56 of file tabpages.cxx.

Referenced by ScAttrDlg::ScAttrDlg(), and ScStyleDlg::ScStyleDlg().

◆ DeactivatePage()

DeactivateRC ScTabPageProtection::DeactivatePage ( SfxItemSet pSet)
overrideprotectedvirtual

Reimplemented from SfxTabPage.

Definition at line 132 of file tabpages.cxx.

References FillItemSet().

◆ DECL_LINK() [1/4]

ScTabPageProtection::DECL_LINK ( HideCellClickHdl  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [2/4]

ScTabPageProtection::DECL_LINK ( HideFormulaClickHdl  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [3/4]

ScTabPageProtection::DECL_LINK ( HidePrintClickHdl  ,
weld::Toggleable ,
void   
)
private

◆ DECL_LINK() [4/4]

ScTabPageProtection::DECL_LINK ( ProtectClickHdl  ,
weld::Toggleable ,
void   
)
private

◆ FillItemSet()

bool ScTabPageProtection::FillItemSet ( SfxItemSet rCoreAttrs)
overridevirtual

◆ GetRanges()

static WhichRangesContainer ScTabPageProtection::GetRanges ( )
inlinestatic

Definition at line 33 of file tabpages.hxx.

References pProtectionRanges.

Referenced by ScStyleDlg::ScStyleDlg().

◆ Reset()

void ScTabPageProtection::Reset ( const SfxItemSet rCoreAttrs)
overridevirtual

◆ UpdateButtons()

void ScTabPageProtection::UpdateButtons ( )
private

Member Data Documentation

◆ aHideCellState

weld::TriStateEnabled ScTabPageProtection::aHideCellState
private

Definition at line 49 of file tabpages.hxx.

Referenced by Reset(), and UpdateButtons().

◆ aHideFormulaState

weld::TriStateEnabled ScTabPageProtection::aHideFormulaState
private

Definition at line 51 of file tabpages.hxx.

Referenced by Reset(), and UpdateButtons().

◆ aHidePrintState

weld::TriStateEnabled ScTabPageProtection::aHidePrintState
private

Definition at line 52 of file tabpages.hxx.

Referenced by Reset(), and UpdateButtons().

◆ aProtectState

weld::TriStateEnabled ScTabPageProtection::aProtectState
private

Definition at line 50 of file tabpages.hxx.

Referenced by Reset(), and UpdateButtons().

◆ bDontCare

bool ScTabPageProtection::bDontCare
private

Definition at line 43 of file tabpages.hxx.

Referenced by ButtonClick(), FillItemSet(), Reset(), ScTabPageProtection(), and UpdateButtons().

◆ bHideCell

bool ScTabPageProtection::bHideCell
private

Definition at line 46 of file tabpages.hxx.

Referenced by ButtonClick(), FillItemSet(), Reset(), ScTabPageProtection(), and UpdateButtons().

◆ bHideForm

bool ScTabPageProtection::bHideForm
private

Definition at line 45 of file tabpages.hxx.

Referenced by ButtonClick(), FillItemSet(), Reset(), ScTabPageProtection(), and UpdateButtons().

◆ bHidePrint

bool ScTabPageProtection::bHidePrint
private

Definition at line 47 of file tabpages.hxx.

Referenced by ButtonClick(), FillItemSet(), Reset(), ScTabPageProtection(), and UpdateButtons().

◆ bProtect

bool ScTabPageProtection::bProtect
private

Definition at line 44 of file tabpages.hxx.

Referenced by ButtonClick(), FillItemSet(), Reset(), ScTabPageProtection(), and UpdateButtons().

◆ bTriEnabled

bool ScTabPageProtection::bTriEnabled
private

Definition at line 42 of file tabpages.hxx.

Referenced by FillItemSet(), Reset(), and ScTabPageProtection().

◆ m_xBtnHideCell

std::unique_ptr<weld::CheckButton> ScTabPageProtection::m_xBtnHideCell
private

Definition at line 54 of file tabpages.hxx.

Referenced by ButtonClick(), ScTabPageProtection(), and UpdateButtons().

◆ m_xBtnHideFormula

std::unique_ptr<weld::CheckButton> ScTabPageProtection::m_xBtnHideFormula
private

Definition at line 56 of file tabpages.hxx.

Referenced by ButtonClick(), ScTabPageProtection(), and UpdateButtons().

◆ m_xBtnHidePrint

std::unique_ptr<weld::CheckButton> ScTabPageProtection::m_xBtnHidePrint
private

Definition at line 57 of file tabpages.hxx.

Referenced by ButtonClick(), ScTabPageProtection(), and UpdateButtons().

◆ m_xBtnProtect

std::unique_ptr<weld::CheckButton> ScTabPageProtection::m_xBtnProtect
private

Definition at line 55 of file tabpages.hxx.

Referenced by ButtonClick(), ScTabPageProtection(), and UpdateButtons().

◆ pProtectionRanges

const WhichRangesContainer ScTabPageProtection::pProtectionRanges
staticprivate

Definition at line 26 of file tabpages.hxx.

Referenced by GetRanges().


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