summaryrefslogtreecommitdiff
path: root/forms/source/component/EditBase.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2007-03-09 12:24:08 +0000
committerOliver Bolte <obo@openoffice.org>2007-03-09 12:24:08 +0000
commitebcd00045c1e531f3fd18463f90b654aafa3400d (patch)
treec6d329bf7703ebb9e00e4fd153a669b3d1573df9 /forms/source/component/EditBase.cxx
parent7cf4ddd80a5be276d8b9aba946392c82d872bc6b (diff)
INTEGRATION: CWS hb02 (1.15.44); FILE MERGED
2007/01/31 13:55:22 fs 1.15.44.1: consolidated default handling during #i74051#
Diffstat (limited to 'forms/source/component/EditBase.cxx')
-rw-r--r--forms/source/component/EditBase.cxx57
1 files changed, 2 insertions, 55 deletions
diff --git a/forms/source/component/EditBase.cxx b/forms/source/component/EditBase.cxx
index abb655dd4011..a891af88fefa 100644
--- a/forms/source/component/EditBase.cxx
+++ b/forms/source/component/EditBase.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: EditBase.cxx,v $
*
- * $Revision: 1.15 $
+ * $Revision: 1.16 $
*
- * last change: $Author: obo $ $Date: 2006-10-12 11:10:36 $
+ * last change: $Author: obo $ $Date: 2007-03-09 13:24:08 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -363,59 +363,6 @@ void OEditBaseModel::setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const
//XPropertyState
//------------------------------------------------------------------------------
-PropertyState OEditBaseModel::getPropertyStateByHandle(sal_Int32 nHandle)
-{
- PropertyState eState;
- switch (nHandle)
- {
- case PROPERTY_ID_DEFAULT_TEXT:
- if (!m_aDefaultText.getLength())
- eState = PropertyState_DEFAULT_VALUE;
- else
- eState = PropertyState_DIRECT_VALUE;
- break;
- case PROPERTY_ID_FILTERPROPOSAL:
- if (!m_bFilterProposal)
- eState = PropertyState_DEFAULT_VALUE;
- else
- eState = PropertyState_DIRECT_VALUE;
- break;
- case PROPERTY_ID_DEFAULT_VALUE:
- case PROPERTY_ID_DEFAULT_DATE:
- case PROPERTY_ID_DEFAULT_TIME:
- if (!m_aDefault.hasValue())
- eState = PropertyState_DEFAULT_VALUE;
- else
- eState = PropertyState_DIRECT_VALUE;
- break;
- default:
- eState = OBoundControlModel::getPropertyStateByHandle(nHandle);
- }
- return eState;
-}
-
-//------------------------------------------------------------------------------
-void OEditBaseModel::setPropertyToDefaultByHandle(sal_Int32 nHandle)
-{
- switch (nHandle)
- {
- case PROPERTY_ID_DEFAULT_TEXT:
- setFastPropertyValue(nHandle, makeAny(::rtl::OUString()));
- break;
- case PROPERTY_ID_FILTERPROPOSAL:
- setFastPropertyValue(nHandle, makeAny((sal_Bool)sal_False));
- break;
- case PROPERTY_ID_DEFAULT_VALUE:
- case PROPERTY_ID_DEFAULT_DATE:
- case PROPERTY_ID_DEFAULT_TIME:
- setFastPropertyValue(nHandle, Any());
- break;
- default:
- OBoundControlModel::setPropertyToDefaultByHandle(nHandle);
- }
-}
-
-//------------------------------------------------------------------------------
Any OEditBaseModel::getPropertyDefaultByHandle( sal_Int32 nHandle ) const
{
switch (nHandle)