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

The tab page "Criteria" from the Validation dialog. More...

#include <validate.hxx>

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

Public Member Functions

 ScTPValidationValue (weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rArgSet)
 
virtual ~ScTPValidationValue () override
 
virtual bool FillItemSet (SfxItemSet *rArgSet) override
 
virtual void Reset (const SfxItemSet *rArgSet) override
 
void SetupRefDlg ()
 
void RemoveRefDlg (bool bRestoreModal)
 
- Public Member Functions inherited from ScRefHandlerCaller
virtual ~ScRefHandlerCaller ()
 
- 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 &)
 
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
 
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 *rArgSet)
 
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)
 

Private Member Functions

void Init ()
 
OUString GetFirstFormula () const
 
OUString GetSecondFormula () const
 
void SetFirstFormula (const OUString &rFmlaStr)
 
void SetSecondFormula (const OUString &rFmlaStr)
 
 DECL_LINK (SelectHdl, weld::ComboBox &, void)
 
 DECL_LINK (CheckHdl, weld::Button &, void)
 
 DECL_LINK (EditSetFocusHdl, formula::RefEdit &, void)
 List separator in formulas. More...
 
 DECL_LINK (KillEditFocusHdl, formula::RefEdit &, void)
 
 DECL_LINK (KillButtonFocusHdl, formula::RefButton &, void)
 
 DECL_LINK (ClickHdl, formula::RefButton &, void)
 
void SetReferenceHdl (const ScRange &, const ScDocument &)
 
void SetActiveHdl ()
 
void RefInputStartPreHdl (formula::RefEdit *pEdit, const formula::RefButton *pButton)
 
void RefInputDonePostHdl ()
 
ScValidationDlgGetValidationDlg ()
 

Private Attributes

OUString maStrMin
 
OUString maStrMax
 
OUString maStrValue
 
OUString maStrFormula
 
OUString maStrRange
 
OUString maStrList
 
sal_Unicode mcFmlaSep
 
formula::RefEditm_pRefEdit
 
std::unique_ptr< weld::ComboBoxm_xLbAllow
 
std::unique_ptr< weld::CheckButtonm_xCbAllow
 
std::unique_ptr< weld::CheckButtonm_xCbShow
 Allow blank cells. More...
 
std::unique_ptr< weld::CheckButtonm_xCbSort
 Show selection list in cell. More...
 
std::unique_ptr< weld::Labelm_xFtValue
 Sort selection list in cell. More...
 
std::unique_ptr< weld::ComboBoxm_xLbValue
 
std::unique_ptr< weld::Labelm_xFtMin
 
std::unique_ptr< weld::Widgetm_xMinGrid
 
std::unique_ptr< formula::RefEditm_xEdMin
 
std::unique_ptr< weld::TextViewm_xEdList
 
std::unique_ptr< weld::Labelm_xFtMax
 Entries for explicit list. More...
 
std::unique_ptr< formula::RefEditm_xEdMax
 
std::unique_ptr< weld::Labelm_xFtHint
 
std::unique_ptr< formula::RefButtonm_xBtnRef
 Hint text for cell range validity. More...
 
std::unique_ptr< weld::Containerm_xRefGrid
 
weld::Containerm_pRefEditParent
 
weld::Containerm_pBtnRefParent
 

Static Private Attributes

static const sal_uInt16 pValueRanges []
 

Additional Inherited Members

- 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
 

Detailed Description

The tab page "Criteria" from the Validation dialog.

Definition at line 76 of file validate.hxx.

Constructor & Destructor Documentation

ScTPValidationValue::ScTPValidationValue ( weld::Container pPage,
weld::DialogController pController,
const SfxItemSet rArgSet 
)
explicit
ScTPValidationValue::~ScTPValidationValue ( )
overridevirtual

Definition at line 390 of file validate.cxx.

References m_xBtnRef, m_xEdMax, and m_xEdMin.

Member Function Documentation

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

Definition at line 419 of file validate.cxx.

Referenced by ScValidationDlg::ScValidationDlg().

ScTPValidationValue::DECL_LINK ( SelectHdl  ,
weld::ComboBox ,
void   
)
private
ScTPValidationValue::DECL_LINK ( CheckHdl  ,
weld::Button ,
void   
)
private
ScTPValidationValue::DECL_LINK ( EditSetFocusHdl  ,
formula::RefEdit ,
void   
)
private

List separator in formulas.

ScTPValidationValue::DECL_LINK ( KillEditFocusHdl  ,
formula::RefEdit ,
void   
)
private
ScTPValidationValue::DECL_LINK ( KillButtonFocusHdl  ,
formula::RefButton ,
void   
)
private
ScTPValidationValue::DECL_LINK ( ClickHdl  ,
formula::RefButton ,
void   
)
private
bool ScTPValidationValue::FillItemSet ( SfxItemSet rArgSet)
overridevirtual
OUString ScTPValidationValue::GetFirstFormula ( ) const
private

Definition at line 488 of file validate.cxx.

References m_xEdList, m_xEdMin, m_xLbAllow, mcFmlaSep, and SC_VALIDDLG_ALLOW_LIST.

Referenced by FillItemSet().

static const sal_uInt16* ScTPValidationValue::GetRanges ( )
inlinestatic

Definition at line 84 of file validate.hxx.

References pValueRanges.

Referenced by ScCellShell::ExecuteDB().

OUString ScTPValidationValue::GetSecondFormula ( ) const
private

Definition at line 498 of file validate.cxx.

References m_xEdMax.

Referenced by FillItemSet().

ScValidationDlg * ScTPValidationValue::GetValidationDlg ( )
private
void ScTPValidationValue::Init ( void  )
private
void ScTPValidationValue::RefInputDonePostHdl ( )
private
void ScTPValidationValue::RefInputStartPreHdl ( formula::RefEdit pEdit,
const formula::RefButton pButton 
)
private
void ScTPValidationValue::RemoveRefDlg ( bool  bRestoreModal)
void ScTPValidationValue::Reset ( const SfxItemSet rArgSet)
overridevirtual
void ScTPValidationValue::SetActiveHdl ( )
private

Definition at line 129 of file validate.cxx.

References GetValidationDlg(), formula::RefEdit::GrabFocus(), and m_pRefEdit.

Referenced by SetupRefDlg().

void ScTPValidationValue::SetFirstFormula ( const OUString &  rFmlaStr)
private
void ScTPValidationValue::SetReferenceHdl ( const ScRange rRange,
const ScDocument rDoc 
)
private
void ScTPValidationValue::SetSecondFormula ( const OUString &  rFmlaStr)
private

Definition at line 522 of file validate.cxx.

References m_xEdMax.

Referenced by Reset().

void ScTPValidationValue::SetupRefDlg ( )

Member Data Documentation

weld::Container* ScTPValidationValue::m_pBtnRefParent
private

Definition at line 133 of file validate.hxx.

Referenced by RefInputDonePostHdl(), and RefInputStartPreHdl().

formula::RefEdit* ScTPValidationValue::m_pRefEdit
private
weld::Container* ScTPValidationValue::m_pRefEditParent
private

Definition at line 132 of file validate.hxx.

Referenced by RefInputDonePostHdl(), and RefInputStartPreHdl().

std::unique_ptr<formula::RefButton> ScTPValidationValue::m_xBtnRef
private

Hint text for cell range validity.

Definition at line 129 of file validate.hxx.

Referenced by Init(), RefInputDonePostHdl(), RefInputStartPreHdl(), RemoveRefDlg(), ScTPValidationValue(), SetupRefDlg(), and ~ScTPValidationValue().

std::unique_ptr<weld::CheckButton> ScTPValidationValue::m_xCbAllow
private

Definition at line 117 of file validate.hxx.

Referenced by FillItemSet(), and Reset().

std::unique_ptr<weld::CheckButton> ScTPValidationValue::m_xCbShow
private

Allow blank cells.

Definition at line 118 of file validate.hxx.

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

std::unique_ptr<weld::CheckButton> ScTPValidationValue::m_xCbSort
private

Show selection list in cell.

Definition at line 119 of file validate.hxx.

Referenced by FillItemSet(), and Reset().

std::unique_ptr<weld::TextView> ScTPValidationValue::m_xEdList
private

Definition at line 125 of file validate.hxx.

Referenced by GetFirstFormula(), ScTPValidationValue(), and SetFirstFormula().

std::unique_ptr<formula::RefEdit> ScTPValidationValue::m_xEdMax
private
std::unique_ptr<formula::RefEdit> ScTPValidationValue::m_xEdMin
private
std::unique_ptr<weld::Label> ScTPValidationValue::m_xFtHint
private

Definition at line 128 of file validate.hxx.

std::unique_ptr<weld::Label> ScTPValidationValue::m_xFtMax
private

Entries for explicit list.

Definition at line 126 of file validate.hxx.

Referenced by ScTPValidationValue(), and SetupRefDlg().

std::unique_ptr<weld::Label> ScTPValidationValue::m_xFtMin
private

Definition at line 122 of file validate.hxx.

Referenced by ScTPValidationValue(), and SetupRefDlg().

std::unique_ptr<weld::Label> ScTPValidationValue::m_xFtValue
private

Sort selection list in cell.

Definition at line 120 of file validate.hxx.

std::unique_ptr<weld::ComboBox> ScTPValidationValue::m_xLbAllow
private

Definition at line 116 of file validate.hxx.

Referenced by FillItemSet(), GetFirstFormula(), Init(), Reset(), and SetFirstFormula().

std::unique_ptr<weld::ComboBox> ScTPValidationValue::m_xLbValue
private

Definition at line 121 of file validate.hxx.

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

std::unique_ptr<weld::Widget> ScTPValidationValue::m_xMinGrid
private

Definition at line 123 of file validate.hxx.

std::unique_ptr<weld::Container> ScTPValidationValue::m_xRefGrid
private

Definition at line 130 of file validate.hxx.

Referenced by RefInputDonePostHdl(), and RefInputStartPreHdl().

OUString ScTPValidationValue::maStrFormula
private

Definition at line 104 of file validate.hxx.

OUString ScTPValidationValue::maStrList
private

Definition at line 106 of file validate.hxx.

OUString ScTPValidationValue::maStrMax
private

Definition at line 102 of file validate.hxx.

OUString ScTPValidationValue::maStrMin
private

Definition at line 101 of file validate.hxx.

OUString ScTPValidationValue::maStrRange
private

Definition at line 105 of file validate.hxx.

OUString ScTPValidationValue::maStrValue
private

Definition at line 103 of file validate.hxx.

sal_Unicode ScTPValidationValue::mcFmlaSep
private

Definition at line 107 of file validate.hxx.

Referenced by GetFirstFormula(), ScTPValidationValue(), and SetFirstFormula().

const sal_uInt16 ScTPValidationValue::pValueRanges
staticprivate
Initial value:
=
{
FID_VALID_MODE, FID_VALID_ERRTEXT,
FID_VALID_LISTTYPE, FID_VALID_LISTTYPE,
0
}

Definition at line 78 of file validate.hxx.

Referenced by GetRanges().


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