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
 
bool HasExchangeSupport () const
 
void SetExchangeSupport ()
 
virtual void ActivatePage (const SfxItemSet &)
 
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
 
OString GetHelpId () const
 
OString GetConfigId () const
 
bool IsVisible () const
 
weld::WindowGetFrameWeld () const
 

Static Public Member Functions

static std::unique_ptr< SfxTabPageCreate (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
 
static const sal_uInt16 * 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 OString &rID, const SfxItemSet *rAttrSet)
 
sal_uInt16 GetWhich (sal_uInt16 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::ToggleButton &, void)
 
 DECL_LINK (HideCellClickHdl, weld::ToggleButton &, void)
 
 DECL_LINK (HideFormulaClickHdl, weld::ToggleButton &, void)
 
 DECL_LINK (HidePrintClickHdl, weld::ToggleButton &, void)
 
void ButtonClick (weld::ToggleButton &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 sal_uInt16 pProtectionRanges []
 

Detailed Description

Definition at line 25 of file tabpages.hxx.

Constructor & Destructor Documentation

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

Definition at line 56 of file tabpages.cxx.

Member Function Documentation

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

Definition at line 60 of file tabpages.cxx.

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

DeactivateRC ScTabPageProtection::DeactivatePage ( SfxItemSet pSet)
overrideprotectedvirtual

Reimplemented from SfxTabPage.

Definition at line 136 of file tabpages.cxx.

References FillItemSet().

ScTabPageProtection::DECL_LINK ( ProtectClickHdl  ,
weld::ToggleButton ,
void   
)
private
ScTabPageProtection::DECL_LINK ( HideCellClickHdl  ,
weld::ToggleButton ,
void   
)
private
ScTabPageProtection::DECL_LINK ( HideFormulaClickHdl  ,
weld::ToggleButton ,
void   
)
private
ScTabPageProtection::DECL_LINK ( HidePrintClickHdl  ,
weld::ToggleButton ,
void   
)
private
bool ScTabPageProtection::FillItemSet ( SfxItemSet rCoreAttrs)
overridevirtual
static const sal_uInt16* ScTabPageProtection::GetRanges ( )
inlinestatic

Definition at line 34 of file tabpages.hxx.

References pProtectionRanges.

Referenced by ScStyleDlg::ScStyleDlg().

void ScTabPageProtection::Reset ( const SfxItemSet rCoreAttrs)
overridevirtual
void ScTabPageProtection::UpdateButtons ( )
private

Member Data Documentation

weld::TriStateEnabled ScTabPageProtection::aHideCellState
private

Definition at line 50 of file tabpages.hxx.

Referenced by Reset(), and UpdateButtons().

weld::TriStateEnabled ScTabPageProtection::aHideFormulaState
private

Definition at line 52 of file tabpages.hxx.

Referenced by Reset(), and UpdateButtons().

weld::TriStateEnabled ScTabPageProtection::aHidePrintState
private

Definition at line 53 of file tabpages.hxx.

Referenced by Reset(), and UpdateButtons().

weld::TriStateEnabled ScTabPageProtection::aProtectState
private

Definition at line 51 of file tabpages.hxx.

Referenced by Reset(), and UpdateButtons().

bool ScTabPageProtection::bDontCare
private

Definition at line 44 of file tabpages.hxx.

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

bool ScTabPageProtection::bHideCell
private

Definition at line 47 of file tabpages.hxx.

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

bool ScTabPageProtection::bHideForm
private

Definition at line 46 of file tabpages.hxx.

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

bool ScTabPageProtection::bHidePrint
private

Definition at line 48 of file tabpages.hxx.

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

bool ScTabPageProtection::bProtect
private

Definition at line 45 of file tabpages.hxx.

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

bool ScTabPageProtection::bTriEnabled
private

Definition at line 43 of file tabpages.hxx.

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

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

Definition at line 55 of file tabpages.hxx.

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

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

Definition at line 57 of file tabpages.hxx.

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

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

Definition at line 58 of file tabpages.hxx.

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

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

Definition at line 56 of file tabpages.hxx.

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

const sal_uInt16 ScTabPageProtection::pProtectionRanges
staticprivate
Initial value:
=
{
SID_SCATTR_PROTECTION,
SID_SCATTR_PROTECTION,
0
}

Definition at line 27 of file tabpages.hxx.

Referenced by GetRanges().


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