summaryrefslogtreecommitdiffstats
path: root/forms/source/component/clickableimage.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2007-03-09 12:32:28 +0000
committerOliver Bolte <obo@openoffice.org>2007-03-09 12:32:28 +0000
commita6d6571c56724919840abeb62882e0cd693439cf (patch)
tree957ca7bae357ff0576d680aaeed1cf04365b786d /forms/source/component/clickableimage.cxx
parentINTEGRATION: CWS hb02 (1.13.80); FILE MERGED (diff)
downloadcore-a6d6571c56724919840abeb62882e0cd693439cf.tar.gz
core-a6d6571c56724919840abeb62882e0cd693439cf.zip
INTEGRATION: CWS hb02 (1.9.52); FILE MERGED
2007/01/31 13:55:23 fs 1.9.52.1: consolidated default handling during #i74051#
Diffstat (limited to 'forms/source/component/clickableimage.cxx')
-rw-r--r--forms/source/component/clickableimage.cxx40
1 files changed, 7 insertions, 33 deletions
diff --git a/forms/source/component/clickableimage.cxx b/forms/source/component/clickableimage.cxx
index 3a3b6d882e74..91e49c69f9b8 100644
--- a/forms/source/component/clickableimage.cxx
+++ b/forms/source/component/clickableimage.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: clickableimage.cxx,v $
*
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: obo $ $Date: 2006-09-16 23:53:12 $
+ * last change: $Author: obo $ $Date: 2007-03-09 13:32:28 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -958,42 +958,16 @@ namespace frm
::osl::MutexGuard aGuard(m_aMutex);
SetURL( getString(rEvt.NewValue) );
}
- // -----------------------------------------------------------------------------
- PropertyState OClickableImageBaseModel::getPropertyStateByHandle(sal_Int32 nHandle)
- {
- PropertyState eState;
- switch (nHandle)
- {
- case PROPERTY_ID_DISPATCHURLINTERNAL:
- if ( m_bDispatchUrlInternal )
- eState = PropertyState_DIRECT_VALUE;
- else
- eState = PropertyState_DEFAULT_VALUE;
- break;
- default:
- eState = OControlModel::getPropertyStateByHandle(nHandle);
- }
- return eState;
- }
- // -----------------------------------------------------------------------------
- void OClickableImageBaseModel::setPropertyToDefaultByHandle(sal_Int32 nHandle)
- {
- switch (nHandle)
- {
- case PROPERTY_ID_DISPATCHURLINTERNAL:
- setFastPropertyValue(nHandle, makeAny(sal_False));
- break;
- default:
- OControlModel::setPropertyToDefaultByHandle(nHandle);
- }
- }
+
// -----------------------------------------------------------------------------
Any OClickableImageBaseModel::getPropertyDefaultByHandle( sal_Int32 nHandle ) const
{
switch (nHandle)
{
- case PROPERTY_ID_DISPATCHURLINTERNAL:
- return makeAny(sal_False);
+ case PROPERTY_ID_BUTTONTYPE : return makeAny( FormButtonType_PUSH );
+ case PROPERTY_ID_TARGET_URL :
+ case PROPERTY_ID_TARGET_FRAME : return makeAny( ::rtl::OUString() );
+ case PROPERTY_ID_DISPATCHURLINTERNAL : return makeAny( sal_False );
default:
return OControlModel::getPropertyDefaultByHandle(nHandle);
}