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 OUString &rt5)
 
- Public Member Functions inherited from ScRefHdlrControllerImpl< SfxModelessDialogController >
 ScRefHdlrControllerImpl (weld::Window *pParent, const OUString &rUIXMLDescription, const OUString &rID, const SfxItemSet *pArg, SfxBindings *pB)
 
 ScRefHdlrControllerImpl (SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent, const OUString &rUIXMLDescription, const OUString &rID)
 
- Public Member Functions inherited from SfxModelessDialogController
virtual ~SfxModelessDialogController () override
 
void Initialize (SfxChildWinInfo const *pInfo)
 
bool IsClosing () const
 
virtual void Close () override
 
virtual void EndDialog (int nResponse) override
 
virtual void Activate () override
 
virtual void Deactivate () override
 
virtual void ChildWinDispose () override
 
virtual void FillInfo (SfxChildWinInfo &) const
 
SfxBindingsGetBindings () const
 
- Public Member Functions inherited from SfxDialogController
 SfxDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId)
 
virtual void Activate ()
 
virtual void Deactivate ()
 
virtual void ChildWinDispose ()
 
virtual void Close ()
 
virtual void EndDialog (int nResponse)
 
virtual bool CloseOnHide () const
 
- Public Member Functions inherited from ScRefHandler
 ScRefHandler (SfxDialogController &rController, SfxBindings *pB, bool bBindRef)
 
virtual ~ScRefHandler () COVERITY_NOEXCEPT_FALSE override
 
virtual void SetReference (const ScRange &rRef, ScDocument &rDoc) override=0
 
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 ()
 
virtual void SetActive () override=0
 
bool EnterRefMode ()
 
bool LeaveRefMode ()
 
bool CanInputDone (bool bForced)
 

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 OUString &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
 
virtual void RefInputDone (bool bForced=false) override
 
bool ParseWithNames (ScRangeList &rRanges, std::u16string_view rStr, const ScDocument &pDoc)
 

Private Member Functions

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

Private Attributes

Link< const OUString *, void > aCloseHdl
 
Link< const OUString &, void > aDoneHdl
 
Link< const OUString &, void > aAbortedHdl
 
Link< const OUString &, void > aChangeHdl
 
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 26 of file simpref.hxx.

Constructor & Destructor Documentation

◆ ScSimpleRefDlg()

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

◆ ~ScSimpleRefDlg()

ScSimpleRefDlg::~ScSimpleRefDlg ( )
overridevirtual

Definition at line 44 of file simpref.cxx.

References ScRefHandler::SetDispatcherLock().

Member Function Documentation

◆ Close()

void ScSimpleRefDlg::Close ( )
overridevirtual

Reimplemented from SfxModelessDialogController.

Definition at line 103 of file simpref.cxx.

References m_xBtnCancel.

◆ DECL_LINK() [1/2]

ScSimpleRefDlg::DECL_LINK ( CancelBtnHdl  ,
weld::Button ,
void   
)
private

◆ DECL_LINK() [2/2]

ScSimpleRefDlg::DECL_LINK ( OkBtnHdl  ,
weld::Button ,
void   
)
private

◆ FillInfo()

void ScSimpleRefDlg::FillInfo ( SfxChildWinInfo rWinInfo) const
overridevirtual

◆ Init()

void ScSimpleRefDlg::Init ( void  )
private

Definition at line 60 of file simpref.cxx.

References bCloseFlag, LINK, m_xBtnCancel, and m_xBtnOk.

Referenced by ScSimpleRefDlg().

◆ IsRefInputMode()

bool ScSimpleRefDlg::IsRefInputMode ( ) const
overridevirtual

Reimplemented from ScRefHandler.

Definition at line 119 of file simpref.cxx.

◆ RefInputDone()

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().

◆ SetActive()

void ScSimpleRefDlg::SetActive ( )
overridevirtual

Implements ScRefHandler.

Definition at line 108 of file simpref.cxx.

References m_xEdAssign, and RefInputDone().

◆ SetCloseHdl()

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

Definition at line 124 of file simpref.cxx.

References aCloseHdl.

◆ SetFlags()

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

Definition at line 138 of file simpref.cxx.

References bCloseOnButtonUp, bMultiSelection, and bSingleCell.

◆ SetReference()

void ScSimpleRefDlg::SetReference ( const ScRange rRef,
ScDocument rDoc 
)
overridevirtual

◆ SetRefString()

void ScSimpleRefDlg::SetRefString ( const OUString &  rStr)

Definition at line 55 of file simpref.cxx.

References m_xEdAssign.

◆ SetUnoLinks()

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.

◆ StartRefInput()

void ScSimpleRefDlg::StartRefInput ( )

Definition at line 145 of file simpref.cxx.

References bCloseFlag, bMultiSelection, m_xEdAssign, and m_xRbAssign.

Member Data Documentation

◆ aAbortedHdl

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

Definition at line 31 of file simpref.hxx.

Referenced by SetUnoLinks().

◆ aChangeHdl

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

Definition at line 32 of file simpref.hxx.

Referenced by SetReference(), and SetUnoLinks().

◆ aCloseHdl

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

Definition at line 29 of file simpref.hxx.

Referenced by SetCloseHdl().

◆ aDoneHdl

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

Definition at line 30 of file simpref.hxx.

Referenced by SetUnoLinks().

◆ bAutoReOpen

bool ScSimpleRefDlg::bAutoReOpen
private

Definition at line 36 of file simpref.hxx.

Referenced by FillInfo().

◆ bCloseFlag

bool ScSimpleRefDlg::bCloseFlag
private

Definition at line 35 of file simpref.hxx.

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

◆ bCloseOnButtonUp

bool ScSimpleRefDlg::bCloseOnButtonUp
private

Definition at line 37 of file simpref.hxx.

Referenced by RefInputDone(), and SetFlags().

◆ bMultiSelection

bool ScSimpleRefDlg::bMultiSelection
private

Definition at line 39 of file simpref.hxx.

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

◆ bSingleCell

bool ScSimpleRefDlg::bSingleCell
private

Definition at line 38 of file simpref.hxx.

Referenced by SetFlags(), and SetReference().

◆ m_xBtnCancel

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

Definition at line 45 of file simpref.hxx.

Referenced by Close(), and Init().

◆ m_xBtnOk

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

Definition at line 44 of file simpref.hxx.

Referenced by Init(), and RefInputDone().

◆ m_xEdAssign

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

Definition at line 42 of file simpref.hxx.

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

◆ m_xFtAssign

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

Definition at line 41 of file simpref.hxx.

Referenced by ScSimpleRefDlg().

◆ m_xRbAssign

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

Definition at line 43 of file simpref.hxx.

Referenced by ScSimpleRefDlg(), and StartRefInput().

◆ theCurArea

ScRange ScSimpleRefDlg::theCurArea
private

Definition at line 34 of file simpref.hxx.

Referenced by SetReference().


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