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

#include <simpref.hxx>

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

Public Member Functions

 ScSimpleRefDlg (SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent)
 
virtual ~ScSimpleRefDlg () override
 
virtual void SetReference (const ScRange &rRef, ScDocument &rDoc) override
 
virtual bool IsRefInputMode () const override
 
virtual void SetActive () override
 
virtual void Close () override
 
void StartRefInput ()
 
void SetRefString (const OUString &rStr)
 
virtual void FillInfo (SfxChildWinInfo &) const override
 
void SetCloseHdl (const Link< const OUString *, void > &rLink)
 
void SetUnoLinks (const Link< const OUString &, void > &rDone, const Link< const OUString &, void > &rAbort, const Link< const OUString &, void > &rChange)
 
void SetFlags (bool bSetCloseOnButtonUp, bool bSetSingleCell, bool bSetMultiSelection)
 
- Public Member Functions inherited from ScAnyRefDlgController
 ScAnyRefDlgController (SfxBindings *rt1, SfxChildWindow *rt2, weld::Window *rt3, const OUString &rt4, const OString &rt5)
 
- Public Member Functions inherited from ScRefHdlrControllerImpl< SfxModelessDialogController >
 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 SfxModelessDialogController
virtual ~SfxModelessDialogController () override
 
void Initialize (SfxChildWinInfo const *pInfo)
 
bool IsClosing () const
 
virtual void EndDialog () override
 
virtual void Activate () override
 
virtual void Deactivate () override
 
virtual void ChildWinDispose () override
 
SfxBindingsGetBindings () const
 
- Public Member Functions inherited from SfxDialogController
 SfxDialogController (weld::Widget *pParent, const OUString &rUIFile, const OString &rDialogId)
 
- 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 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
 

Protected Member Functions

virtual void RefInputDone (bool bForced=false) override
 
- Protected Member Functions inherited from SfxModelessDialogController
 SfxModelessDialogController (SfxBindings *, SfxChildWindow *pChildWin, weld::Window *pParent, const OUString &rUIXMLDescription, const OString &rID)
 
- Protected Member Functions inherited from ScRefHandler
void disposeRefHandler ()
 
bool DoClose (sal_uInt16 nId)
 
void SetDispatcherLock (bool bLock)
 
virtual void RefInputStart (formula::RefEdit *pEdit, formula::RefButton *pButton=nullptr) override
 
bool ParseWithNames (ScRangeList &rRanges, const OUString &rStr, const ScDocument &pDoc)
 
- Protected Member Functions inherited from formula::IControlReferenceHandler
 ~IControlReferenceHandler ()
 

Private Member Functions

void Init ()
 
 DECL_LINK (CancelBtnHdl, weld::Button &, void)
 
 DECL_LINK (OkBtnHdl, weld::Button &, void)
 

Private Attributes

Link< const OUString *, voidaCloseHdl
 
Link< const OUString &, voidaDoneHdl
 
Link< const OUString &, voidaAbortedHdl
 
Link< const OUString &, voidaChangeHdl
 
ScRange theCurArea
 
bool bCloseFlag
 
bool bAutoReOpen
 
bool bCloseOnButtonUp
 
bool bSingleCell
 
bool bMultiSelection
 
std::unique_ptr< weld::Labelm_xFtAssign
 
std::unique_ptr< formula::RefEditm_xEdAssign
 
std::unique_ptr< formula::RefButtonm_xRbAssign
 
std::unique_ptr< weld::Buttonm_xBtnOk
 
std::unique_ptr< weld::Buttonm_xBtnCancel
 

Additional Inherited Members

- Public Types inherited from ScRefHdlrControllerImpl< SfxModelessDialogController >
enum  
 
- Static Public Member Functions inherited from ScRefHandler
static bool CanInputStart (const formula::RefEdit *pEdit)
 

Detailed Description

Definition at line 27 of file simpref.hxx.

Constructor & Destructor Documentation

ScSimpleRefDlg::ScSimpleRefDlg ( SfxBindings pB,
SfxChildWindow pCW,
weld::Window pParent 
)
ScSimpleRefDlg::~ScSimpleRefDlg ( )
overridevirtual

Definition at line 44 of file simpref.cxx.

References ScRefHandler::SetDispatcherLock().

Member Function Documentation

void ScSimpleRefDlg::Close ( )
overridevirtual

Reimplemented from SfxModelessDialogController.

Definition at line 103 of file simpref.cxx.

References m_xBtnCancel.

ScSimpleRefDlg::DECL_LINK ( CancelBtnHdl  ,
weld::Button ,
void   
)
private
ScSimpleRefDlg::DECL_LINK ( OkBtnHdl  ,
weld::Button ,
void   
)
private
void ScSimpleRefDlg::FillInfo ( SfxChildWinInfo rWinInfo) const
overridevirtual
void ScSimpleRefDlg::Init ( void  )
private

Definition at line 60 of file simpref.cxx.

References bCloseFlag, LINK, m_xBtnCancel, and m_xBtnOk.

Referenced by ScSimpleRefDlg().

bool ScSimpleRefDlg::IsRefInputMode ( ) const
overridevirtual

Reimplemented from ScRefHandler.

Definition at line 119 of file simpref.cxx.

void ScSimpleRefDlg::RefInputDone ( bool  bForced = false)
overrideprotectedvirtual

Reimplemented from ScRefHandler.

Definition at line 157 of file simpref.cxx.

References bCloseFlag, bCloseOnButtonUp, m_xBtnOk, and ScRefHandler::RefInputDone().

Referenced by SetActive().

void ScSimpleRefDlg::SetActive ( )
overridevirtual

Implements ScRefHandler.

Definition at line 108 of file simpref.cxx.

References m_xEdAssign, and RefInputDone().

void ScSimpleRefDlg::SetCloseHdl ( const Link< const OUString *, void > &  rLink)

Definition at line 124 of file simpref.cxx.

References aCloseHdl.

void ScSimpleRefDlg::SetFlags ( bool  bSetCloseOnButtonUp,
bool  bSetSingleCell,
bool  bSetMultiSelection 
)

Definition at line 138 of file simpref.cxx.

References bCloseOnButtonUp, bMultiSelection, and bSingleCell.

void ScSimpleRefDlg::SetReference ( const ScRange rRef,
ScDocument rDoc 
)
overridevirtual
void ScSimpleRefDlg::SetRefString ( const OUString &  rStr)

Definition at line 55 of file simpref.cxx.

References m_xEdAssign.

void ScSimpleRefDlg::SetUnoLinks ( const Link< const OUString &, void > &  rDone,
const Link< const OUString &, void > &  rAbort,
const Link< const OUString &, void > &  rChange 
)

Definition at line 129 of file simpref.cxx.

References aAbortedHdl, aChangeHdl, and aDoneHdl.

void ScSimpleRefDlg::StartRefInput ( )

Definition at line 145 of file simpref.cxx.

References bCloseFlag, bMultiSelection, m_xEdAssign, and m_xRbAssign.

Member Data Documentation

Link<const OUString&,void> ScSimpleRefDlg::aAbortedHdl
private

Definition at line 32 of file simpref.hxx.

Referenced by SetUnoLinks().

Link<const OUString&,void> ScSimpleRefDlg::aChangeHdl
private

Definition at line 33 of file simpref.hxx.

Referenced by SetReference(), and SetUnoLinks().

Link<const OUString*,void> ScSimpleRefDlg::aCloseHdl
private

Definition at line 30 of file simpref.hxx.

Referenced by SetCloseHdl().

Link<const OUString&,void> ScSimpleRefDlg::aDoneHdl
private

Definition at line 31 of file simpref.hxx.

Referenced by SetUnoLinks().

bool ScSimpleRefDlg::bAutoReOpen
private

Definition at line 37 of file simpref.hxx.

Referenced by FillInfo().

bool ScSimpleRefDlg::bCloseFlag
private

Definition at line 36 of file simpref.hxx.

Referenced by Init(), RefInputDone(), and StartRefInput().

bool ScSimpleRefDlg::bCloseOnButtonUp
private

Definition at line 38 of file simpref.hxx.

Referenced by RefInputDone(), and SetFlags().

bool ScSimpleRefDlg::bMultiSelection
private

Definition at line 40 of file simpref.hxx.

Referenced by SetFlags(), SetReference(), and StartRefInput().

bool ScSimpleRefDlg::bSingleCell
private

Definition at line 39 of file simpref.hxx.

Referenced by SetFlags(), and SetReference().

std::unique_ptr<weld::Button> ScSimpleRefDlg::m_xBtnCancel
private

Definition at line 46 of file simpref.hxx.

Referenced by Close(), and Init().

std::unique_ptr<weld::Button> ScSimpleRefDlg::m_xBtnOk
private

Definition at line 45 of file simpref.hxx.

Referenced by Init(), and RefInputDone().

std::unique_ptr<formula::RefEdit> ScSimpleRefDlg::m_xEdAssign
private

Definition at line 43 of file simpref.hxx.

Referenced by ScSimpleRefDlg(), SetActive(), SetReference(), SetRefString(), and StartRefInput().

std::unique_ptr<weld::Label> ScSimpleRefDlg::m_xFtAssign
private

Definition at line 42 of file simpref.hxx.

Referenced by ScSimpleRefDlg().

std::unique_ptr<formula::RefButton> ScSimpleRefDlg::m_xRbAssign
private

Definition at line 44 of file simpref.hxx.

Referenced by ScSimpleRefDlg(), and StartRefInput().

ScRange ScSimpleRefDlg::theCurArea
private

Definition at line 35 of file simpref.hxx.

Referenced by SetReference().


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