summaryrefslogtreecommitdiffstats
path: root/dbaccess/source/ui/dlg/dlgsize.cxx
diff options
context:
space:
mode:
authorFrank Schönheit <fs@openoffice.org>2002-05-24 11:45:08 +0000
committerFrank Schönheit <fs@openoffice.org>2002-05-24 11:45:08 +0000
commit733e74964144fdb2e360d23fab7e8ed745392363 (patch)
treec46eaaa0ac891a601c3e031e72a148f6cd379e53 /dbaccess/source/ui/dlg/dlgsize.cxx
parent#99226# +m_bInSplitHandler (diff)
downloadcore-733e74964144fdb2e360d23fab7e8ed745392363.tar.gz
core-733e74964144fdb2e360d23fab7e8ed745392363.zip
#99226# new ctor param for a different standard value
Diffstat (limited to 'dbaccess/source/ui/dlg/dlgsize.cxx')
-rw-r--r--dbaccess/source/ui/dlg/dlgsize.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/dbaccess/source/ui/dlg/dlgsize.cxx b/dbaccess/source/ui/dlg/dlgsize.cxx
index 3c0bab737e97..1041b8169b3e 100644
--- a/dbaccess/source/ui/dlg/dlgsize.cxx
+++ b/dbaccess/source/ui/dlg/dlgsize.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: dlgsize.cxx,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: oj $ $Date: 2000-12-12 12:33:26 $
+ * last change: $Author: fs $ $Date: 2002-05-24 12:45:08 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -81,7 +81,7 @@ namespace dbaui
#define DEF_COL_WIDTH 227
//==================================================================
-DlgSize::DlgSize(Window * pParent, sal_Int32 nVal, sal_Bool bRow)
+DlgSize::DlgSize( Window* pParent, sal_Int32 nVal, sal_Bool bRow, sal_Int32 _nAlternativeStandard )
:ModalDialog( pParent, ModuleRes(bRow ? DLG_ROWHEIGHT : DLG_COLWIDTH))
,aFT_VALUE(this, ResId( FT_VALUE))
,aMF_VALUE(this, ResId( MF_VALUE))
@@ -92,6 +92,8 @@ DlgSize::DlgSize(Window * pParent, sal_Int32 nVal, sal_Bool bRow)
,m_nPrevValue(nVal)
,m_nStandard(bRow ? DEF_ROW_HEIGHT : DEF_COL_WIDTH)
{
+ if ( _nAlternativeStandard > 0 )
+ m_nStandard = _nAlternativeStandard;
aCB_STANDARD.SetClickHdl(LINK(this,DlgSize,CbClickHdl));
aMF_VALUE.EnableEmptyFieldValue(sal_True);