LibreOffice Module sc (master) 1
|
#include <simpref.hxx>
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 |
SfxBindings & | GetBindings () 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::Label > | m_xFtAssign |
std::unique_ptr< formula::RefEdit > | m_xEdAssign |
std::unique_ptr< formula::RefButton > | m_xRbAssign |
std::unique_ptr< weld::Button > | m_xBtnOk |
std::unique_ptr< weld::Button > | m_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) |
Definition at line 26 of file simpref.hxx.
ScSimpleRefDlg::ScSimpleRefDlg | ( | SfxBindings * | pB, |
SfxChildWindow * | pCW, | ||
weld::Window * | pParent | ||
) |
Definition at line 24 of file simpref.cxx.
References Init(), m_xEdAssign, m_xFtAssign, m_xRbAssign, and ScRefHandler::SetDispatcherLock().
|
overridevirtual |
Definition at line 44 of file simpref.cxx.
References ScRefHandler::SetDispatcherLock().
|
overridevirtual |
Reimplemented from SfxModelessDialogController.
Definition at line 103 of file simpref.cxx.
References m_xBtnCancel.
|
private |
|
private |
|
overridevirtual |
Reimplemented from SfxModelessDialogController.
Definition at line 49 of file simpref.cxx.
References bAutoReOpen, SfxChildWinInfo::bVisible, and SfxModelessDialogController::FillInfo().
|
private |
Definition at line 60 of file simpref.cxx.
References bCloseFlag, LINK, m_xBtnCancel, and m_xBtnOk.
Referenced by ScSimpleRefDlg().
|
overridevirtual |
Reimplemented from ScRefHandler.
Definition at line 119 of file simpref.cxx.
|
overrideprotectedvirtual |
Reimplemented from ScRefHandler.
Definition at line 157 of file simpref.cxx.
References bCloseFlag, bCloseOnButtonUp, m_xBtnOk, and ScRefHandler::RefInputDone().
Referenced by 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.
|
overridevirtual |
Implements ScRefHandler.
Definition at line 69 of file simpref.cxx.
References aChangeHdl, ADDR_ABS_3D, ScRange::aEnd, ScRange::aStart, bMultiSelection, bSingleCell, Link< typename Arg, typename Ret >::Call(), ScRange::Format(), ScAddress::Format(), ScDocument::GetAddressConvention(), Selection::Len(), m_xEdAssign, Selection::Min(), Selection::Normalize(), RANGE_ABS_3D, ScRefHandler::RefInputStart(), and theCurArea.
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.
|
private |
Definition at line 31 of file simpref.hxx.
Referenced by SetUnoLinks().
|
private |
Definition at line 32 of file simpref.hxx.
Referenced by SetReference(), and SetUnoLinks().
|
private |
Definition at line 29 of file simpref.hxx.
Referenced by SetCloseHdl().
|
private |
Definition at line 30 of file simpref.hxx.
Referenced by SetUnoLinks().
|
private |
Definition at line 36 of file simpref.hxx.
Referenced by FillInfo().
|
private |
Definition at line 35 of file simpref.hxx.
Referenced by Init(), RefInputDone(), and StartRefInput().
|
private |
Definition at line 37 of file simpref.hxx.
Referenced by RefInputDone(), and SetFlags().
|
private |
Definition at line 39 of file simpref.hxx.
Referenced by SetFlags(), SetReference(), and StartRefInput().
|
private |
Definition at line 38 of file simpref.hxx.
Referenced by SetFlags(), and SetReference().
|
private |
Definition at line 45 of file simpref.hxx.
|
private |
Definition at line 44 of file simpref.hxx.
Referenced by Init(), and RefInputDone().
|
private |
Definition at line 42 of file simpref.hxx.
Referenced by ScSimpleRefDlg(), SetActive(), SetReference(), SetRefString(), and StartRefInput().
|
private |
Definition at line 41 of file simpref.hxx.
Referenced by ScSimpleRefDlg().
|
private |
Definition at line 43 of file simpref.hxx.
Referenced by ScSimpleRefDlg(), and StartRefInput().
|
private |
Definition at line 34 of file simpref.hxx.
Referenced by SetReference().