LibreOffice Module sc (master) 1
|
Dialog to change input data range for a sparkline
More...
#include <SparklineDataRangeDialog.hxx>
Public Member Functions | |
SparklineDataRangeDialog (SfxBindings *pBindings, SfxChildWindow *pChildWindow, weld::Window *pWindow, ScViewData &rViewData) | |
virtual | ~SparklineDataRangeDialog () override |
void | SetReference (const ScRange &rRef, ScDocument &rDocument) override |
void | SetActive () override |
void | Close () override |
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) |
Private Member Functions | |
DECL_LINK (ButtonClicked, weld::Button &, void) | |
DECL_LINK (EditFocusHandler, formula::RefEdit &, void) | |
DECL_LINK (ButtonFocusHandler, formula::RefButton &, void) | |
DECL_LINK (LoseEditFocusHandler, formula::RefEdit &, void) | |
DECL_LINK (LoseButtonFocusHandler, formula::RefButton &, void) | |
DECL_LINK (RefInputModifyHandler, formula::RefEdit &, void) | |
void | setupValues () |
void | perform () |
bool | checkValidInputOutput () |
Private Attributes | |
ScViewData & | mrViewData |
ScDocument & | mrDocument |
std::shared_ptr< sc::Sparkline > | mpSparkline |
ScRange | maDataRange |
formula::RefEdit * | mpActiveEdit |
bool | mbDialogLostFocus |
std::unique_ptr< weld::Button > | mxButtonOk |
std::unique_ptr< weld::Button > | mxButtonCancel |
std::unique_ptr< weld::Label > | mxDataRangeLabel |
std::unique_ptr< formula::RefEdit > | mxDataRangeEdit |
std::unique_ptr< formula::RefButton > | mxDataRangeButton |
Additional Inherited Members | |
Public Types inherited from ScRefHdlrControllerImpl< SfxModelessDialogController > | |
enum | |
Static Public Member Functions inherited from ScRefHandler | |
static bool | CanInputStart (const formula::RefEdit *pEdit) |
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) |
Dialog to change input data range for a sparkline
Definition at line 24 of file SparklineDataRangeDialog.hxx.
sc::SparklineDataRangeDialog::SparklineDataRangeDialog | ( | SfxBindings * | pBindings, |
SfxChildWindow * | pChildWindow, | ||
weld::Window * | pWindow, | ||
ScViewData & | rViewData | ||
) |
Definition at line 17 of file SparklineDataRangeDialog.cxx.
References LINK, mxButtonCancel, mxButtonOk, mxDataRangeButton, mxDataRangeEdit, mxDataRangeLabel, setupValues(), and u.
|
overridevirtualdefault |
|
private |
|
overridevirtual |
Reimplemented from SfxModelessDialogController.
Definition at line 85 of file SparklineDataRangeDialog.cxx.
References ScRefHandler::DoClose(), and ChildControllerWrapper< SID_SPARKLINE_DATA_RANGE_DIALOG >::GetChildWindowId().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 192 of file SparklineDataRangeDialog.cxx.
References ScDocFunc::ChangeSparkline(), ScDocShell::GetDocFunc(), ScViewData::GetDocShell(), ScViewData::GetTabNo(), maDataRange, mpSparkline, and mrViewData.
|
overridevirtual |
Implements ScRefHandler.
Definition at line 90 of file SparklineDataRangeDialog.cxx.
References formula::RefEdit::GrabFocus(), m_xDialog, mbDialogLostFocus, mpActiveEdit, and ScRefHandler::RefInputDone().
|
overridevirtual |
Implements ScRefHandler.
Definition at line 105 of file SparklineDataRangeDialog.cxx.
References ScRange::aEnd, ScRange::aStart, ScRange::Format(), ScDocument::GetAddressConvention(), maDataRange, mpActiveEdit, mxDataRangeEdit, ScRefHandler::RefInputStart(), TAB_3D, and VALID.
|
private |
Definition at line 65 of file SparklineDataRangeDialog.cxx.
References ScRangeList::empty(), ScRange::Format(), ScDocument::GetAddressConvention(), ScViewData::GetCurPos(), ScDocument::GetSparkline(), maDataRange, mpSparkline, mrDocument, mrViewData, mxButtonOk, mxDataRangeEdit, TAB_3D, and VALID.
Referenced by SparklineDataRangeDialog().
|
private |
Definition at line 32 of file SparklineDataRangeDialog.hxx.
Referenced by perform(), SetReference(), and setupValues().
|
private |
Definition at line 35 of file SparklineDataRangeDialog.hxx.
Referenced by SetActive().
|
private |
Definition at line 34 of file SparklineDataRangeDialog.hxx.
Referenced by SetActive(), and SetReference().
|
private |
Definition at line 30 of file SparklineDataRangeDialog.hxx.
Referenced by perform(), and setupValues().
|
private |
Definition at line 28 of file SparklineDataRangeDialog.hxx.
Referenced by setupValues().
|
private |
Definition at line 27 of file SparklineDataRangeDialog.hxx.
Referenced by perform(), and setupValues().
|
private |
Definition at line 38 of file SparklineDataRangeDialog.hxx.
Referenced by SparklineDataRangeDialog().
|
private |
Definition at line 37 of file SparklineDataRangeDialog.hxx.
Referenced by setupValues(), and SparklineDataRangeDialog().
|
private |
Definition at line 42 of file SparklineDataRangeDialog.hxx.
Referenced by SparklineDataRangeDialog().
|
private |
Definition at line 41 of file SparklineDataRangeDialog.hxx.
Referenced by SetReference(), setupValues(), and SparklineDataRangeDialog().
|
private |
Definition at line 40 of file SparklineDataRangeDialog.hxx.
Referenced by SparklineDataRangeDialog().