summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/cellsh1.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-09-26 20:21:03 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-11-28 13:28:20 -0500
commit8fe987cc7cae234e66bba2c9ed98514bdc39b610 (patch)
tree33c83aa1488a473f02dc4be4adddf38462ec4272 /sc/source/ui/view/cellsh1.cxx
parent2cefc2f4c1ea641d84ecfda3824a9ca7afb5597d (diff)
Launch the dialog for real.
Change-Id: I974599f3bd30f5a70bad69d9fde727fef965933c
Diffstat (limited to 'sc/source/ui/view/cellsh1.cxx')
-rw-r--r--sc/source/ui/view/cellsh1.cxx17
1 files changed, 16 insertions, 1 deletions
diff --git a/sc/source/ui/view/cellsh1.cxx b/sc/source/ui/view/cellsh1.cxx
index 1c26ff7c5028..8660140b8a95 100644
--- a/sc/source/ui/view/cellsh1.cxx
+++ b/sc/source/ui/view/cellsh1.cxx
@@ -2395,7 +2395,22 @@ void ScCellShell::ExecuteDataPilotDialog()
void ScCellShell::ExecuteXMLSourceDialog()
{
- fprintf(stdout, "ScCellShell::ExecuteXMLSourceDialog: launch xml dialog\n");
+ ScAbstractDialogFactory* pFact = ScAbstractDialogFactory::Create();
+ if (!pFact)
+ return;
+
+ ScTabViewShell* pTabViewShell = GetViewData()->GetViewShell();
+ if (!pTabViewShell)
+ return;
+
+ boost::scoped_ptr<AbstractScXMLSourceDlg> pDlg(
+ pFact->CreateScXMLSourceDlg(
+ pTabViewShell->GetDialogParent(), RID_SCDLG_XML_SOURCE));
+
+ if (!pDlg)
+ return;
+
+ pDlg->Execute();
}
void ScCellShell::ExecuteSubtotals(SfxRequest& rReq)