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

The "Validity" tab dialog. More...

#include <validate.hxx>

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

Public Types

enum  { SLOTID = SID_VALIDITY_REFERENCE }
 
- Public Types inherited from ScRefHdlrControllerImpl< SfxTabDialogController, false >
enum  
 
- Public Types inherited from ScRefHandlerHelper
typedef void(ScRefHandlerCaller::* PFUNCSETREFHDLTYPE) (const ScRange &, const ScDocument &)
 
typedef void(ScRefHandlerCaller::* PCOMMONHDLTYPE) ()
 
typedef void(ScRefHandlerCaller::* PINPUTSTARTDLTYPE) (formula::RefEdit *pEdit, const formula::RefButton *pButton)
 

Public Member Functions

 ScValidationDlg (weld::Window *pParent, const SfxItemSet *pArgSet, ScTabViewShell *pTabViewSh)
 
virtual ~ScValidationDlg () override
 
ScTabViewShellGetTabViewShell ()
 
bool SetupRefDlg ()
 
bool RemoveRefDlg (bool bRestoreModal)
 
void SetModal (bool bModal)
 
virtual void SetReference (const ScRange &rRef, ScDocument &rDoc) override
 
virtual void SetActive () override
 
bool IsRefInputting () const
 
weld::Containerget_refinput_shrink_parent ()
 
virtual void RefInputStart (formula::RefEdit *pEdit, formula::RefButton *pButton=nullptr) override
 
virtual void RefInputDone (bool bForced=false) override
 
bool IsChildFocus () const
 
virtual void Close () override
 
- Public Member Functions inherited from ScRefHdlrControllerImpl< SfxTabDialogController, false >
 ScRefHdlrControllerImpl (weld::Window *pParent, const OUString &rUIXMLDescription, const OString &rID, const SfxItemSet *pArg, SfxBindings *pB)
 
 ScRefHdlrControllerImpl (SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent, const OUString &rUIXMLDescription, const OString &rID)
 
- Public Member Functions inherited from SfxTabDialogController
 SfxTabDialogController (weld::Widget *pParent, const OUString &rUIXMLDescription, const OString &rID, const SfxItemSet *=nullptr, bool bEditFmt=false)
 
virtual ~SfxTabDialogController () override
 
void AddTabPage (const OString &rName, CreateTabPage pCreateFunc, GetTabPageRanges pRangesFunc)
 
void AddTabPage (const OString &rName, sal_uInt16 nPageCreateId)
 
void AddTabPage (const OString &rName, const OUString &rLabel, CreateTabPage pCreateFunc)
 
void AddTabPage (const OString &rName, const OUString &rLabel, sal_uInt16 nPageCreateId)
 
void RemoveTabPage (const OString &rName)
 
void SetCurPageId (const OString &rName)
 
void ShowPage (const OString &rName)
 
OString GetCurPageId () const
 
SfxTabPageGetCurTabPage () const
 
const sal_uInt16 * GetInputRanges (const SfxItemPool &)
 
void SetInputSet (const SfxItemSet *pInSet)
 
const SfxItemSetGetOutputItemSet () const
 
virtual weld::ButtonGetOKButton () const override
 
weld::ButtonGetCancelButton () const
 
weld::ButtonGetUserButton () const
 
void RemoveResetButton ()
 
void RemoveStandardButton ()
 
virtual short run () override
 
virtual const SfxItemSetGetExampleSet () const override
 
void SetApplyHandler (const Link< weld::Button &, void > &_rHdl)
 
bool Apply ()
 
void Applied ()
 
std::vector< OString > getAllPageUIXMLDescriptions () const
 
bool selectPageByUIXMLDescription (const OString &rUIXMLDescription)
 
BitmapEx createScreenshot () const
 
OString GetScreenshotId () const
 
- Public Member Functions inherited from SfxOkDialogController
 SfxOkDialogController (weld::Widget *pParent, const OUString &rUIXMLDescription, const OString &rID)
 
- Public Member Functions inherited from SfxDialogController
 SfxDialogController (weld::Widget *pParent, const OUString &rUIFile, const OString &rDialogId)
 
virtual void Activate ()
 
virtual void Deactivate ()
 
virtual void ChildWinDispose ()
 
virtual void EndDialog ()
 
- Public Member Functions inherited from ScRefHandler
 ScRefHandler (SfxDialogController &rController, SfxBindings *pB, bool bBindRef)
 
virtual ~ScRefHandler () COVERITY_NOEXCEPT_FALSE override
 
virtual void AddRefEntry () override
 
virtual bool IsRefInputMode () const override
 
virtual bool IsTableLocked () const override
 
virtual bool IsDocAllowed (SfxObjectShell *pDocSh) const override
 
virtual void ShowReference (const OUString &rStr) override
 
virtual void HideReference (bool bDoneRefMode=true) override
 
virtual void ToggleCollapsed (formula::RefEdit *pEdit, formula::RefButton *pButton) override
 
virtual void ReleaseFocus (formula::RefEdit *pEdit) override
 
virtual void ViewShellChanged () override
 
void SwitchToDocument ()
 
bool EnterRefMode ()
 
bool LeaveRefMode ()
 
bool CanInputDone (bool bForced)
 
- Public Member Functions inherited from IAnyRefDialog
virtual ~IAnyRefDialog () COVERITY_NOEXCEPT_FALSE
 
- Public Member Functions inherited from ScRefHandlerHelper
void SetSetRefHdl (PFUNCSETREFHDLTYPE pNewHdl)
 
void SetSetActHdl (PCOMMONHDLTYPE pNewHdl)
 
void SetHandler (ScRefHandlerCaller *pNewHandler)
 
void SetRefInputStartPreHdl (PINPUTSTARTDLTYPE pNewHdl)
 
void SetRefInputDonePostHdl (void(ScRefHandlerCaller::*pNewHdl)())
 
 ScRefHandlerHelper ()
 

Static Public Member Functions

static std::shared_ptr< SfxDialogControllerFind1AliveObject (const weld::Window *pAncestor)
 
- Static Public Member Functions inherited from SfxTabDialogController
static bool runAsync (const std::shared_ptr< SfxTabDialogController > &rController, const std::function< void(sal_Int32)> &)
 
- Static Public Member Functions inherited from ScRefHandler
static bool CanInputStart (const formula::RefEdit *pEdit)
 

Private Types

typedef ScRefHdlrControllerImpl< SfxTabDialogController, false > ScValidationDlgBase
 

Private Member Functions

bool EnterRefStatus ()
 
bool LeaveRefStatus ()
 

Private Attributes

ScTabViewShellm_pTabVwSh
 
OString m_sValuePageId
 
bool m_bOwnRefHdlr:1
 
bool m_bRefInputting:1
 
std::unique_ptr< weld::Containerm_xHBox
 

Additional Inherited Members

- Protected Member Functions inherited from SfxTabDialogController
 DECL_LINK (OkHdl, weld::Button &, void)
 
 DECL_LINK (ResetHdl, weld::Button &, void)
 
 DECL_LINK (BaseFmtHdl, weld::Button &, void)
 
 DECL_LINK (UserHdl, weld::Button &, void)
 
 DECL_LINK (CancelHdl, weld::Button &, void)
 
virtual short Ok ()
 
virtual void RefreshInputSet ()
 
virtual SfxItemSetCreateInputItemSet (const OString &rName)
 
virtual void PageCreated (const OString &rName, SfxTabPage &rPage)
 
SfxItemSetGetInputSetImpl ()
 
SfxTabPageGetTabPage (const OString &rPageId) const
 
bool PrepareLeaveCurrentPage ()
 
void SavePosAndId ()
 
- Protected Member Functions inherited from ScRefHandler
void disposeRefHandler ()
 
bool DoClose (sal_uInt16 nId)
 
void SetDispatcherLock (bool bLock)
 
bool ParseWithNames (ScRangeList &rRanges, const OUString &rStr, const ScDocument &pDoc)
 
- Protected Member Functions inherited from formula::IControlReferenceHandler
 ~IControlReferenceHandler ()
 
- Protected Attributes inherited from SfxTabDialogController
std::unique_ptr< weld::Notebookm_xTabCtrl
 
std::unique_ptr< SfxItemSetm_xExampleSet
 
- Protected Attributes inherited from ScRefHandlerHelper
ScRefHandlerCallerm_pHandler
 
void(ScRefHandlerCaller::* m_pSetReferenceHdl )(const ScRange &, const ScDocument &)
 
void(ScRefHandlerCaller::* m_pSetActiveHdl )()
 
void(ScRefHandlerCaller::* m_pRefInputStartPreHdl )(formula::RefEdit *pEdit, const formula::RefButton *pButton)
 
void(ScRefHandlerCaller::* m_pRefInputDonePostHdl )()
 

Detailed Description

The "Validity" tab dialog.

Definition at line 146 of file validate.hxx.

Member Typedef Documentation

Definition at line 150 of file validate.hxx.

Member Enumeration Documentation

anonymous enum
Enumerator
SLOTID 

Definition at line 219 of file validate.hxx.

Constructor & Destructor Documentation

ScValidationDlg::ScValidationDlg ( weld::Window pParent,
const SfxItemSet pArgSet,
ScTabViewShell pTabViewSh 
)
explicit
ScValidationDlg::~ScValidationDlg ( )
overridevirtual

Definition at line 109 of file validate.cxx.

References m_bOwnRefHdlr, and RemoveRefDlg().

Member Function Documentation

virtual void ScValidationDlg::Close ( )
inlineoverridevirtual
bool ScValidationDlg::EnterRefStatus ( )
private
static std::shared_ptr<SfxDialogController> ScValidationDlg::Find1AliveObject ( const weld::Window pAncestor)
inlinestatic

Definition at line 165 of file validate.hxx.

References SC_MOD, and SLOTID.

Referenced by ScValidityRefChildWin::ScValidityRefChildWin().

weld::Container* ScValidationDlg::get_refinput_shrink_parent ( )
inline

Definition at line 192 of file validate.hxx.

Referenced by ScTPValidationValue::RefInputStartPreHdl().

ScTabViewShell* ScValidationDlg::GetTabViewShell ( )
inline

Definition at line 169 of file validate.hxx.

References m_pTabVwSh.

Referenced by EnterRefStatus(), LeaveRefStatus(), and RemoveRefDlg().

bool ScValidationDlg::IsChildFocus ( ) const

Definition at line 928 of file validate.cxx.

References m_xDialog.

bool ScValidationDlg::IsRefInputting ( ) const
inline

Definition at line 191 of file validate.hxx.

References m_bRefInputting.

bool ScValidationDlg::LeaveRefStatus ( )
private
virtual void ScValidationDlg::RefInputDone ( bool  bForced = false)
inlineoverridevirtual
virtual void ScValidationDlg::RefInputStart ( formula::RefEdit pEdit,
formula::RefButton pButton = nullptr 
)
inlineoverridevirtual
bool ScValidationDlg::RemoveRefDlg ( bool  bRestoreModal)
virtual void ScValidationDlg::SetActive ( )
inlineoverridevirtual

Implements ScRefHandler.

Definition at line 185 of file validate.hxx.

References ScRefHandlerHelper::m_pSetActiveHdl.

void ScValidationDlg::SetModal ( bool  bModal)
inline

Definition at line 177 of file validate.hxx.

References m_xDialog.

Referenced by RemoveRefDlg(), and SetupRefDlg().

virtual void ScValidationDlg::SetReference ( const ScRange rRef,
ScDocument rDoc 
)
inlineoverridevirtual

Implements ScRefHandler.

Definition at line 179 of file validate.hxx.

References ScRefHandlerHelper::m_pSetReferenceHdl.

bool ScValidationDlg::SetupRefDlg ( )

Member Data Documentation

bool ScValidationDlg::m_bOwnRefHdlr
private

Definition at line 154 of file validate.hxx.

Referenced by Close(), RemoveRefDlg(), SetupRefDlg(), and ~ScValidationDlg().

bool ScValidationDlg::m_bRefInputting
private

Definition at line 155 of file validate.hxx.

Referenced by IsRefInputting(), RefInputDone(), and RefInputStart().

ScTabViewShell* ScValidationDlg::m_pTabVwSh
private

Definition at line 152 of file validate.hxx.

Referenced by GetTabViewShell().

OString ScValidationDlg::m_sValuePageId
private

Definition at line 153 of file validate.hxx.

Referenced by ScValidationDlg().

std::unique_ptr<weld::Container> ScValidationDlg::m_xHBox
private

Definition at line 157 of file validate.hxx.


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