summaryrefslogtreecommitdiff
path: root/sc/source/ui/attrdlg
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-03 12:14:31 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-04 09:21:01 +0000
commit8f028bc6f184c7148d6b817864bfa9e533b6e813 (patch)
treed1a0af466407f82b02e32a963c26b32dfad9e7e7 /sc/source/ui/attrdlg
parentf79bfd0ac541e98ee32e089cdf94a18989ff83eb (diff)
convert select data source dialog to .ui
Change-Id: Iecca542c2c425a34184ba2c3ae0e34d093fa6a06
Diffstat (limited to 'sc/source/ui/attrdlg')
-rw-r--r--sc/source/ui/attrdlg/scdlgfact.cxx18
-rw-r--r--sc/source/ui/attrdlg/scdlgfact.hxx2
2 files changed, 4 insertions, 16 deletions
diff --git a/sc/source/ui/attrdlg/scdlgfact.cxx b/sc/source/ui/attrdlg/scdlgfact.cxx
index 84162cfbf7e2..f9e146c2bacc 100644
--- a/sc/source/ui/attrdlg/scdlgfact.cxx
+++ b/sc/source/ui/attrdlg/scdlgfact.cxx
@@ -681,22 +681,10 @@ AbstractScCondFormatManagerDlg* ScAbstractDialogFactory_Impl::CreateScCondFormat
return NULL;
}
-AbstractScDataPilotDatabaseDlg * ScAbstractDialogFactory_Impl::CreateScDataPilotDatabaseDlg (Window* pParent ,
- int nId )
+AbstractScDataPilotDatabaseDlg * ScAbstractDialogFactory_Impl::CreateScDataPilotDatabaseDlg(Window* pParent)
{
- ScDataPilotDatabaseDlg * pDlg=NULL;
- switch ( nId )
- {
- case RID_SCDLG_DAPIDATA :
- pDlg = new ScDataPilotDatabaseDlg( pParent );
- break;
- default:
- break;
- }
-
- if ( pDlg )
- return new AbstractScDataPilotDatabaseDlg_Impl( pDlg );
- return 0;
+ ScDataPilotDatabaseDlg * pDlg = new ScDataPilotDatabaseDlg( pParent );
+ return new AbstractScDataPilotDatabaseDlg_Impl( pDlg );
}
AbstractScDataPilotSourceTypeDlg* ScAbstractDialogFactory_Impl::CreateScDataPilotSourceTypeDlg(
diff --git a/sc/source/ui/attrdlg/scdlgfact.hxx b/sc/source/ui/attrdlg/scdlgfact.hxx
index f0176dd31765..c414cbe2274e 100644
--- a/sc/source/ui/attrdlg/scdlgfact.hxx
+++ b/sc/source/ui/attrdlg/scdlgfact.hxx
@@ -416,7 +416,7 @@ public:
virtual AbstractScCondFormatManagerDlg* CreateScCondFormatMgrDlg(Window* pParent, ScDocument* pDoc, const ScConditionalFormatList* pFormatList,
const ScAddress& rPos, int nId );
- virtual AbstractScDataPilotDatabaseDlg * CreateScDataPilotDatabaseDlg (Window* pParent ,int nId );
+ virtual AbstractScDataPilotDatabaseDlg * CreateScDataPilotDatabaseDlg(Window* pParent);
virtual AbstractScDataPilotSourceTypeDlg* CreateScDataPilotSourceTypeDlg(Window* pParent,
bool bEnableExternal);