diff options
-rw-r--r-- | sc/source/ui/inc/navipi.hxx | 8 | ||||
-rw-r--r-- | sc/source/ui/navipi/navipi.cxx | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/sc/source/ui/inc/navipi.hxx b/sc/source/ui/inc/navipi.hxx index 166e37af6616..a7991fa77358 100644 --- a/sc/source/ui/inc/navipi.hxx +++ b/sc/source/ui/inc/navipi.hxx @@ -112,6 +112,10 @@ class ColumnEdit : public SpinField public: ColumnEdit(Window* pParent, WinBits nWinBits); ~ColumnEdit() override; + void SetNavigatorDlg(ScNavigatorDlg *pNaviDlg) + { + xDlg = pNaviDlg; + } SCCOL GetCol() { return nCol; } void SetCol( SCCOL nColNo ); @@ -140,6 +144,10 @@ class RowEdit : public NumericField public: RowEdit(Window* pParent, WinBits nWinBits); ~RowEdit() override; + void SetNavigatorDlg(ScNavigatorDlg *pNaviDlg) + { + xDlg = pNaviDlg; + } SCROW GetRow() { return (SCROW)GetValue(); } void SetRow(SCROW nRow) { SetValue(nRow); } diff --git a/sc/source/ui/navipi/navipi.cxx b/sc/source/ui/navipi/navipi.cxx index 42187f8bda2e..e8e5745f9e7f 100644 --- a/sc/source/ui/navipi/navipi.cxx +++ b/sc/source/ui/navipi/navipi.cxx @@ -450,7 +450,9 @@ ScNavigatorDlg::ScNavigatorDlg(SfxBindings* pB, bool bSidebar, vcl::Window* pPar { get(aLbDocuments, "documents"); get(aEdCol, "column"); + aEdCol->SetNavigatorDlg(this); get(aEdRow, "row"); + aEdRow->SetNavigatorDlg(this); get(aTbxCmd, "toolbox"); aTbxCmd->SetSelectHdl(LINK(this, ScNavigatorDlg, ToolBoxSelectHdl)); aTbxCmd->SetDropdownClickHdl(LINK(this, ScNavigatorDlg, ToolBoxDropdownClickHdl)); |