diff options
author | Jaskaran Singh <jvsg1303@gmail.com> | 2017-08-07 23:39:39 +0530 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-08-10 18:53:31 +0200 |
commit | 213a83ce46edf1b81f2285fd59f1d04935760caa (patch) | |
tree | 29355aa1f1242661d4055c8e561746473945931e /sc/source/ui/view/cellsh2.cxx | |
parent | 772686adb99137733db79b7d1ab6ebb21bf93b4a (diff) |
Add UI for the sc::dataprovider
Change-Id: I29acc8903d5694e46e7575133ee852bbaae6eeee
Reviewed-on: https://gerrit.libreoffice.org/40851
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc/source/ui/view/cellsh2.cxx')
-rw-r--r-- | sc/source/ui/view/cellsh2.cxx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sc/source/ui/view/cellsh2.cxx b/sc/source/ui/view/cellsh2.cxx index 6b3fd6245ba0..7866f7693e9f 100644 --- a/sc/source/ui/view/cellsh2.cxx +++ b/sc/source/ui/view/cellsh2.cxx @@ -62,6 +62,7 @@ #include "asciiopt.hxx" #include "datastream.hxx" #include "datastreamdlg.hxx" +#include "dataproviderdlg.hxx" #include "queryentry.hxx" #include "markdata.hxx" #include <documentlinkmgr.hxx> @@ -778,6 +779,20 @@ void ScCellShell::ExecuteDB( SfxRequest& rReq ) pStrm->StopImport(); } break; + case SID_DATA_PROVIDER: + { + ScopedVclPtrInstance< sc::DataProviderDlg > aDialog( GetViewData()->GetDocShell(), pTabViewShell->GetDialogParent() ); + //ScDocument *pDoc = GetViewData()->GetDocument(); + //sc::DocumentLinkManager& rMgr = pDoc->GetDocLinkManager(); + //sc::DataStream* pStrm = rMgr.getDataStream(); + //if (pStrm) + aDialog->Init(/**pStrm*/); + aDialog->Execute(); + + //if (aDialog->Execute() == RET_OK) + //aDialog->StartStream(); + } + break; case SID_MANAGE_XML_SOURCE: ExecuteXMLSourceDialog(); break; @@ -1184,6 +1199,8 @@ void ScCellShell::GetDBState( SfxItemSet& rSet ) } } break; + case SID_DATA_PROVIDER: + break; case SID_DATA_STREAMS: case SID_DATA_STREAMS_PLAY: case SID_DATA_STREAMS_STOP: |