summaryrefslogtreecommitdiff
path: root/sc/source/ui/attrdlg
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-12-20 09:50:57 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-12-20 10:18:34 +0000
commitcffabc3d8e73ce957cfc1b8015398564aba6e63f (patch)
tree2c51cd7ae9adf856919d0d50db3d42331061063d /sc/source/ui/attrdlg
parent842cb0da2ec72bafbd16fd50e5d780285227e452 (diff)
convert row/col height/width dialogs to .ui
Change-Id: Ie97b9fcdd5fb93d195ea1beb536d5a0ac7bf7cc4
Diffstat (limited to 'sc/source/ui/attrdlg')
-rw-r--r--sc/source/ui/attrdlg/scdlgfact.cxx23
-rw-r--r--sc/source/ui/attrdlg/scdlgfact.hxx5
2 files changed, 6 insertions, 22 deletions
diff --git a/sc/source/ui/attrdlg/scdlgfact.cxx b/sc/source/ui/attrdlg/scdlgfact.cxx
index 8df625b8be46..003d96babbfb 100644
--- a/sc/source/ui/attrdlg/scdlgfact.cxx
+++ b/sc/source/ui/attrdlg/scdlgfact.cxx
@@ -849,10 +849,9 @@ AbstractScLinkedAreaDlg * ScAbstractDialogFactory_Impl::CreateScLinkedAreaDlg(Wi
}
AbstractScMetricInputDlg * ScAbstractDialogFactory_Impl::CreateScMetricInputDlg ( Window* pParent,
- sal_uInt16 nResId, // Ableitung fuer jeden Dialog!
+ OString sDialogName,
long nCurrent,
long nDefault,
- int nId ,
FieldUnit eFUnit,
sal_uInt16 nDecimals,
long nMaximum ,
@@ -860,23 +859,9 @@ AbstractScMetricInputDlg * ScAbstractDialogFactory_Impl::CreateScMetricInputDlg
long nFirst,
long nLast )
{
- ScMetricInputDlg * pDlg=NULL;
- switch ( nId )
- {
- case RID_SCDLG_ROW_MAN :
- case RID_SCDLG_ROW_OPT :
- case RID_SCDLG_COL_MAN :
- case RID_SCDLG_COL_OPT :
- pDlg = new ScMetricInputDlg( pParent , nResId,nCurrent ,nDefault, eFUnit,
- nDecimals, nMaximum , nMinimum , nFirst, nLast);
- break;
- default:
- break;
- }
-
- if ( pDlg )
- return new AbstractScMetricInputDlg_Impl( pDlg );
- return 0;
+ ScMetricInputDlg * pDlg = new ScMetricInputDlg(pParent, sDialogName, nCurrent ,nDefault, eFUnit,
+ nDecimals, nMaximum , nMinimum , nFirst, nLast);
+ return new AbstractScMetricInputDlg_Impl( pDlg );
}
AbstractScMoveTableDlg * ScAbstractDialogFactory_Impl::CreateScMoveTableDlg(Window* pParent,
diff --git a/sc/source/ui/attrdlg/scdlgfact.hxx b/sc/source/ui/attrdlg/scdlgfact.hxx
index 682911464506..e00a5bbb1af6 100644
--- a/sc/source/ui/attrdlg/scdlgfact.hxx
+++ b/sc/source/ui/attrdlg/scdlgfact.hxx
@@ -470,16 +470,15 @@ public:
virtual AbstractScLinkedAreaDlg * CreateScLinkedAreaDlg(Window* pParent);
virtual AbstractScMetricInputDlg * CreateScMetricInputDlg ( Window* pParent,
- sal_uInt16 nResId, // Ableitung fuer jeden Dialog!
+ OString sDialogName,
long nCurrent,
long nDefault,
- int nId ,
FieldUnit eFUnit = FUNIT_MM,
sal_uInt16 nDecimals = 2,
long nMaximum = 1000,
long nMinimum = 0,
long nFirst = 1,
- long nLast = 100 );
+ long nLast = 100 );
virtual AbstractScMoveTableDlg * CreateScMoveTableDlg(Window * pParent,
const OUString& rDefault);