diff options
author | Kurt Zenker <kz@openoffice.org> | 2003-12-11 11:11:44 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2003-12-11 11:11:44 +0000 |
commit | bd7ae47d31331ca8e817d9dc79eb0a0f0270e2d3 (patch) | |
tree | 9b8eb7ce7a183573c1851d6db8a209c1c0bfbd69 /xmloff | |
parent | c2bdda5fff9f3c878460b0da9cedc368bbb591db (diff) |
INTEGRATION: CWS frmcontrols01 (1.5.102); FILE MERGED
2003/10/27 11:45:26 fs 1.5.102.2: #i21605# spin button handling
2003/10/22 13:17:46 fs 1.5.102.1: #21277# new implementations for exporting/importing scrollbar controls as form:value-range elements
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/forms/valueproperties.cxx | 38 |
1 files changed, 33 insertions, 5 deletions
diff --git a/xmloff/source/forms/valueproperties.cxx b/xmloff/source/forms/valueproperties.cxx index ff9345c6e2bb..c5cb611261bd 100644 --- a/xmloff/source/forms/valueproperties.cxx +++ b/xmloff/source/forms/valueproperties.cxx @@ -2,9 +2,9 @@ * * $RCSfile: valueproperties.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: hr $ $Date: 2003-03-27 18:20:27 $ + * last change: $Author: kz $ $Date: 2003-12-11 12:11:44 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -102,19 +102,23 @@ namespace xmloff _rpValuePropertyName = PROPERTY_DEFAULT_TEXT; } break; + case FormComponentType::DATEFIELD: _rpCurrentValuePropertyName = PROPERTY_DATE; _rpValuePropertyName = PROPERTY_DEFAULT_DATE; break; + case FormComponentType::TIMEFIELD: _rpCurrentValuePropertyName = PROPERTY_TIME; _rpValuePropertyName = PROPERTY_DEFAULT_TIME; break; + case FormComponentType::NUMERICFIELD: case FormComponentType::CURRENCYFIELD: _rpCurrentValuePropertyName = PROPERTY_VALUE; _rpValuePropertyName = PROPERTY_DEFAULT_VALUE; break; + case FormComponentType::PATTERNFIELD: case FormComponentType::FILECONTROL: case FormComponentType::COMBOBOX: @@ -123,13 +127,25 @@ namespace xmloff case FormComponentType::COMMANDBUTTON: _rpCurrentValuePropertyName = PROPERTY_TEXT; break; + case FormComponentType::CHECKBOX: case FormComponentType::RADIOBUTTON: _rpValuePropertyName = PROPERTY_REFVALUE; break; + case FormComponentType::HIDDENCONTROL: _rpValuePropertyName = PROPERTY_HIDDEN_VALUE; break; + + case FormComponentType::SCROLLBAR: + _rpCurrentValuePropertyName = PROPERTY_SCROLLVALUE; + _rpValuePropertyName = PROPERTY_SCROLLVALUE_DEFAULT; + break; + + case FormComponentType::SPINBUTTON: + _rpCurrentValuePropertyName = PROPERTY_SPINVALUE; + _rpValuePropertyName = PROPERTY_DEFAULT_SPINVALUE; + break; } } @@ -145,22 +161,32 @@ namespace xmloff _rpMinValuePropertyName = PROPERTY_DATE_MIN; _rpMaxValuePropertyName = PROPERTY_DATE_MAX; break; + case FormComponentType::TIMEFIELD: _rpMinValuePropertyName = PROPERTY_TIME_MIN; _rpMaxValuePropertyName = PROPERTY_TIME_MAX; break; + case FormComponentType::NUMERICFIELD: case FormComponentType::CURRENCYFIELD: _rpMinValuePropertyName = PROPERTY_VALUE_MIN; _rpMaxValuePropertyName = PROPERTY_VALUE_MAX; break; - case FormComponentType::PATTERNFIELD: - // no min/max value for the pattern field - break; + case FormComponentType::TEXTFIELD: _rpMinValuePropertyName = PROPERTY_EFFECTIVE_MIN; _rpMaxValuePropertyName = PROPERTY_EFFECTIVE_MAX; break; + + case FormComponentType::SCROLLBAR: + _rpMinValuePropertyName = PROPERTY_SCROLLVALUE_MIN; + _rpMaxValuePropertyName = PROPERTY_SCROLLVALUE_MAX; + break; + + case FormComponentType::SPINBUTTON: + _rpMinValuePropertyName = PROPERTY_SPINVALUE_MIN; + _rpMaxValuePropertyName = PROPERTY_SPINVALUE_MAX; + break; } } @@ -193,6 +219,8 @@ namespace xmloff case FormComponentType::PATTERNFIELD: case FormComponentType::FILECONTROL: case FormComponentType::COMBOBOX: + case FormComponentType::SCROLLBAR: + case FormComponentType::SPINBUTTON: // For these types, the runtime properties are the same as the ones which in the XML // stream are named "value properties" getValuePropertyNames( _eType, _nFormComponentType, _rpValuePropertyName, _rpDefaultValuePropertyName ); |