diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-11-18 23:39:01 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-11-23 06:25:31 +0100 |
commit | 1e6ad2af4bfd14f96926cd976fb2edb626de3d10 (patch) | |
tree | 9d18cdf852b16df705409bdf417c8a4a975c5fef /sc/source/ui/view/cellsh1.cxx | |
parent | 3224ddaf1a2039e19f3acdb74cf61a973da343b1 (diff) |
ManageNames: restructure the code
move namepast.cxx to namedlg
namedefdlg is "modeless"(only in technical sense) and needs to be in sc
while namepast is modal and needs to be in scui
move the table implementation to an own file, we can reuse it for
namepast.cxx
Diffstat (limited to 'sc/source/ui/view/cellsh1.cxx')
-rw-r--r-- | sc/source/ui/view/cellsh1.cxx | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/sc/source/ui/view/cellsh1.cxx b/sc/source/ui/view/cellsh1.cxx index c5939759d069..ea4be5ef9659 100644 --- a/sc/source/ui/view/cellsh1.cxx +++ b/sc/source/ui/view/cellsh1.cxx @@ -1828,8 +1828,8 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq ) // "=" in KeyEvent, switches to input-mode pScMod->InputKeyEvent( KeyEvent('=',KeyCode()) ); - String aName = pDlg->GetSelectedName(); - pHdl->InsertFunction( aName, false ); // without "()" + std::vector<rtl::OUString> aNames = pDlg->GetSelectedNames(); + pHdl->InsertFunction( aNames.at(0), false ); // without "()" } } break; @@ -1838,21 +1838,6 @@ void ScCellShell::ExecuteEdit( SfxRequest& rReq ) } break; - case FID_ADD_NAME: - { - ScAbstractDialogFactory* pFact = ScAbstractDialogFactory::Create(); - - std::cout << "Create Dialog in cellsh1.cxx" << std::endl; - ScDocument* pDoc = GetViewData()->GetDocument(); - std::map<rtl::OUString, ScRangeName*> aRangeMap; - pDoc->GetRangeNameMap(aRangeMap); - ScAddress aPos( GetViewData()->GetCurX(), GetViewData()->GetCurY(), GetViewData()->GetTabNo() ); - AbstractScNameAddDlg* pDlg = pFact->CreateScNameAddDlg( pTabViewShell->GetDialogParent(), pDoc, aRangeMap, aPos, true, RID_SCDLG_NAMES_DEFINE ); - pDlg->Execute(); - delete pDlg; - } - break; - case SID_RANGE_NOTETEXT: if (pReqArgs) { |