summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/tabvwshc.cxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-11-19 04:37:03 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-11-23 06:25:32 +0100
commitb3d22ae4ca7ad191f6f807c72660b78d3ac6e833 (patch)
treea650871e7329c5af11996d387c36ffcf2c965e3f /sc/source/ui/view/tabvwshc.cxx
parent1e6ad2af4bfd14f96926cd976fb2edb626de3d10 (diff)
ManageNames: make Define Name dialog work again
Diffstat (limited to 'sc/source/ui/view/tabvwshc.cxx')
-rw-r--r--sc/source/ui/view/tabvwshc.cxx21
1 files changed, 18 insertions, 3 deletions
diff --git a/sc/source/ui/view/tabvwshc.cxx b/sc/source/ui/view/tabvwshc.cxx
index b337a4269531..2dca9766a0ee 100644
--- a/sc/source/ui/view/tabvwshc.cxx
+++ b/sc/source/ui/view/tabvwshc.cxx
@@ -49,6 +49,7 @@
#include "uiitems.hxx"
#include "pivot.hxx"
#include "namedlg.hxx"
+#include "namedefdlg.hxx"
#include "solvrdlg.hxx"
#include "optsolver.hxx"
#include "tabopdlg.hxx"
@@ -70,6 +71,8 @@
#include "funcdesc.hxx"
#include "dpobject.hxx"
+#include <iostream>
+
//------------------------------------------------------------------
void ScTabViewShell::SetCurRefDlgId( sal_uInt16 nNew )
@@ -109,9 +112,21 @@ SfxModelessDialog* ScTabViewShell::CreateRefDialog(
{
case FID_DEFINE_NAME:
pResult = new ScNameDlg( pB, pCW, pParent, GetViewData(),
- ScAddress( GetViewData()->GetCurX(),
- GetViewData()->GetCurY(),
- GetViewData()->GetTabNo() ) );
+ ScAddress( GetViewData()->GetCurX(),
+ GetViewData()->GetCurY(),
+ GetViewData()->GetTabNo() ) );
+ break;
+
+ case FID_ADD_NAME:
+ {
+ std::cout << "tabvwsh" << std::endl;
+ std::map<rtl::OUString, ScRangeName*> aRangeMap;
+ pDoc->GetRangeNameMap(aRangeMap);
+ pResult = new ScNameDefDlg( pB, pCW, pParent, GetViewData()->GetDocument(), aRangeMap,
+ ScAddress( GetViewData()->GetCurX(),
+ GetViewData()->GetCurY(),
+ GetViewData()->GetTabNo() ), true );
+ }
break;
case SID_DEFINE_COLROWNAMERANGES: