summaryrefslogtreecommitdiff
path: root/toolkit/source/controls
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2003-12-11 10:59:15 +0000
committerKurt Zenker <kz@openoffice.org>2003-12-11 10:59:15 +0000
commit9e6ca19380b49cbd6fa13f892a28f7996f7ffb4c (patch)
treee08790da578817dc690e8c407abca9f8e3957e84 /toolkit/source/controls
parent1224d6f9ec0c6d6406457c5e83d1243f11a1d30f (diff)
INTEGRATION: CWS frmcontrols01 (1.32.98); FILE MERGED
2003/10/30 14:24:21 fs 1.32.98.3: #i21680# also provide default for Repeat 2003/10/27 11:23:33 fs 1.32.98.2: #i21605# spin control/model related property defaults 2003/10/22 13:41:43 fs 1.32.98.1: #i21277# added defaults for some new scrollbar properties
Diffstat (limited to 'toolkit/source/controls')
-rw-r--r--toolkit/source/controls/unocontrolmodel.cxx14
1 files changed, 12 insertions, 2 deletions
diff --git a/toolkit/source/controls/unocontrolmodel.cxx b/toolkit/source/controls/unocontrolmodel.cxx
index e19f0bd17dad..4d7841e074d4 100644
--- a/toolkit/source/controls/unocontrolmodel.cxx
+++ b/toolkit/source/controls/unocontrolmodel.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: unocontrolmodel.cxx,v $
*
- * $Revision: 1.32 $
+ * $Revision: 1.33 $
*
- * last change: $Author: hr $ $Date: 2003-03-27 17:03:22 $
+ * last change: $Author: kz $ $Date: 2003-12-11 11:59:15 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -329,6 +329,7 @@ void UnoControlModel::ImplPropertyChanged( sal_uInt16 nPropId )
{
switch ( nPropId )
{
+ case BASEPROPERTY_SYMBOL_COLOR:
case BASEPROPERTY_TABSTOP:
case BASEPROPERTY_TEXTCOLOR:
case BASEPROPERTY_TEXTLINECOLOR:
@@ -366,11 +367,18 @@ void UnoControlModel::ImplPropertyChanged( sal_uInt16 nPropId )
case BASEPROPERTY_PROGRESSVALUE_MAX: aDefault <<= (sal_Int32) 100; break;
case BASEPROPERTY_PROGRESSVALUE_MIN: aDefault <<= (sal_Int32) 0; break;
case BASEPROPERTY_SCROLLVALUE_MAX: aDefault <<= (sal_Int32) 100; break;
+ case BASEPROPERTY_SCROLLVALUE_MIN: aDefault <<= (sal_Int32) 0; break;
case BASEPROPERTY_LINEINCREMENT: aDefault <<= (sal_Int32) 1; break;
case BASEPROPERTY_BLOCKINCREMENT: aDefault <<= (sal_Int32) 10; break;
case BASEPROPERTY_ORIENTATION: aDefault <<= (sal_Int32) 0; break;
+ case BASEPROPERTY_SPINVALUE: aDefault <<= (sal_Int32) 0; break;
+ case BASEPROPERTY_SPININCREMENT: aDefault <<= (sal_Int32) 1; break;
+ case BASEPROPERTY_SPINVALUE_MIN: aDefault <<= (sal_Int32) 0; break;
+ case BASEPROPERTY_SPINVALUE_MAX: aDefault <<= (sal_Int32) 100; break;
+ case BASEPROPERTY_REPEAT_DELAY: aDefault <<= (sal_Int32) 50; break; // 50 milliseconds
case BASEPROPERTY_DEFAULTCONTROL: aDefault <<= ((UnoControlModel*)this)->getServiceName(); break;
+
case BASEPROPERTY_MOVEABLE:
case BASEPROPERTY_CLOSEABLE:
case BASEPROPERTY_SIZEABLE:
@@ -385,6 +393,7 @@ void UnoControlModel::ImplPropertyChanged( sal_uInt16 nPropId )
case BASEPROPERTY_VSCROLL:
case BASEPROPERTY_NUMSHOWTHOUSANDSEP:
case BASEPROPERTY_STRICTFORMAT:
+ case BASEPROPERTY_REPEAT:
case BASEPROPERTY_HARDLINEBREAKS: aDefault <<= (sal_Bool) sal_False; break;
case BASEPROPERTY_AUTOCOMPLETE:
@@ -474,6 +483,7 @@ void UnoControlModel::ImplPropertyChanged( sal_uInt16 nPropId )
aDefault <<= sCurrencySymbol;
}
break;
+
default: DBG_ERROR( "ImplGetDefaultValue - unknown Property" );
}
}