1*cdf0e10cSrcweir /************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove 29*cdf0e10cSrcweir #include "precompiled_forms.hxx" 30*cdf0e10cSrcweir #include "Time.hxx" 31*cdf0e10cSrcweir #include <tools/debug.hxx> 32*cdf0e10cSrcweir #include <tools/time.hxx> 33*cdf0e10cSrcweir #include <connectivity/dbconversion.hxx> 34*cdf0e10cSrcweir #include <com/sun/star/sdbc/DataType.hpp> 35*cdf0e10cSrcweir 36*cdf0e10cSrcweir using namespace dbtools; 37*cdf0e10cSrcweir 38*cdf0e10cSrcweir //......................................................................... 39*cdf0e10cSrcweir namespace frm 40*cdf0e10cSrcweir { 41*cdf0e10cSrcweir //......................................................................... 42*cdf0e10cSrcweir 43*cdf0e10cSrcweir using namespace ::com::sun::star; 44*cdf0e10cSrcweir using namespace ::com::sun::star::uno; 45*cdf0e10cSrcweir using namespace ::com::sun::star::sdb; 46*cdf0e10cSrcweir using namespace ::com::sun::star::sdbc; 47*cdf0e10cSrcweir using namespace ::com::sun::star::sdbcx; 48*cdf0e10cSrcweir using namespace ::com::sun::star::beans; 49*cdf0e10cSrcweir using namespace ::com::sun::star::container; 50*cdf0e10cSrcweir using namespace ::com::sun::star::form; 51*cdf0e10cSrcweir using namespace ::com::sun::star::util; 52*cdf0e10cSrcweir using namespace ::com::sun::star::awt; 53*cdf0e10cSrcweir using namespace ::com::sun::star::io; 54*cdf0e10cSrcweir using namespace ::com::sun::star::lang; 55*cdf0e10cSrcweir 56*cdf0e10cSrcweir //================================================================== 57*cdf0e10cSrcweir //= 58*cdf0e10cSrcweir //================================================================== 59*cdf0e10cSrcweir 60*cdf0e10cSrcweir //================================================================== 61*cdf0e10cSrcweir //= OTimeControl 62*cdf0e10cSrcweir //================================================================== 63*cdf0e10cSrcweir //------------------------------------------------------------------ 64*cdf0e10cSrcweir OTimeControl::OTimeControl(const Reference<XMultiServiceFactory>& _rxFactory) 65*cdf0e10cSrcweir :OBoundControl(_rxFactory, VCL_CONTROL_TIMEFIELD) 66*cdf0e10cSrcweir { 67*cdf0e10cSrcweir } 68*cdf0e10cSrcweir 69*cdf0e10cSrcweir //------------------------------------------------------------------ 70*cdf0e10cSrcweir InterfaceRef SAL_CALL OTimeControl_CreateInstance(const Reference<XMultiServiceFactory>& _rxFactory) 71*cdf0e10cSrcweir { 72*cdf0e10cSrcweir return *(new OTimeControl(_rxFactory)); 73*cdf0e10cSrcweir } 74*cdf0e10cSrcweir 75*cdf0e10cSrcweir //------------------------------------------------------------------------------ 76*cdf0e10cSrcweir Sequence<Type> OTimeControl::_getTypes() 77*cdf0e10cSrcweir { 78*cdf0e10cSrcweir return OBoundControl::_getTypes(); 79*cdf0e10cSrcweir } 80*cdf0e10cSrcweir 81*cdf0e10cSrcweir //------------------------------------------------------------------------------ 82*cdf0e10cSrcweir StringSequence SAL_CALL OTimeControl::getSupportedServiceNames() throw() 83*cdf0e10cSrcweir { 84*cdf0e10cSrcweir StringSequence aSupported = OBoundControl::getSupportedServiceNames(); 85*cdf0e10cSrcweir aSupported.realloc(aSupported.getLength() + 1); 86*cdf0e10cSrcweir 87*cdf0e10cSrcweir ::rtl::OUString*pArray = aSupported.getArray(); 88*cdf0e10cSrcweir pArray[aSupported.getLength()-1] = FRM_SUN_CONTROL_TIMEFIELD; 89*cdf0e10cSrcweir return aSupported; 90*cdf0e10cSrcweir } 91*cdf0e10cSrcweir 92*cdf0e10cSrcweir //================================================================== 93*cdf0e10cSrcweir //= OTimeModel 94*cdf0e10cSrcweir //================================================================== 95*cdf0e10cSrcweir //------------------------------------------------------------------ 96*cdf0e10cSrcweir InterfaceRef SAL_CALL OTimeModel_CreateInstance(const Reference<XMultiServiceFactory>& _rxFactory) 97*cdf0e10cSrcweir { 98*cdf0e10cSrcweir return *(new OTimeModel(_rxFactory)); 99*cdf0e10cSrcweir } 100*cdf0e10cSrcweir 101*cdf0e10cSrcweir // XServiceInfo 102*cdf0e10cSrcweir //------------------------------------------------------------------------------ 103*cdf0e10cSrcweir StringSequence SAL_CALL OTimeModel::getSupportedServiceNames() throw() 104*cdf0e10cSrcweir { 105*cdf0e10cSrcweir StringSequence aSupported = OBoundControlModel::getSupportedServiceNames(); 106*cdf0e10cSrcweir 107*cdf0e10cSrcweir sal_Int32 nOldLen = aSupported.getLength(); 108*cdf0e10cSrcweir aSupported.realloc( nOldLen + 8 ); 109*cdf0e10cSrcweir ::rtl::OUString* pStoreTo = aSupported.getArray() + nOldLen; 110*cdf0e10cSrcweir 111*cdf0e10cSrcweir *pStoreTo++ = BINDABLE_CONTROL_MODEL; 112*cdf0e10cSrcweir *pStoreTo++ = DATA_AWARE_CONTROL_MODEL; 113*cdf0e10cSrcweir *pStoreTo++ = VALIDATABLE_CONTROL_MODEL; 114*cdf0e10cSrcweir 115*cdf0e10cSrcweir *pStoreTo++ = BINDABLE_DATA_AWARE_CONTROL_MODEL; 116*cdf0e10cSrcweir *pStoreTo++ = VALIDATABLE_BINDABLE_CONTROL_MODEL; 117*cdf0e10cSrcweir 118*cdf0e10cSrcweir *pStoreTo++ = FRM_SUN_COMPONENT_TIMEFIELD; 119*cdf0e10cSrcweir *pStoreTo++ = FRM_SUN_COMPONENT_DATABASE_TIMEFIELD; 120*cdf0e10cSrcweir *pStoreTo++ = BINDABLE_DATABASE_TIME_FIELD; 121*cdf0e10cSrcweir 122*cdf0e10cSrcweir return aSupported; 123*cdf0e10cSrcweir } 124*cdf0e10cSrcweir 125*cdf0e10cSrcweir //------------------------------------------------------------------------------ 126*cdf0e10cSrcweir Sequence<Type> OTimeModel::_getTypes() 127*cdf0e10cSrcweir { 128*cdf0e10cSrcweir return OBoundControlModel::_getTypes(); 129*cdf0e10cSrcweir } 130*cdf0e10cSrcweir 131*cdf0e10cSrcweir //------------------------------------------------------------------ 132*cdf0e10cSrcweir DBG_NAME( OTimeModel ) 133*cdf0e10cSrcweir //------------------------------------------------------------------ 134*cdf0e10cSrcweir OTimeModel::OTimeModel(const Reference<XMultiServiceFactory>& _rxFactory) 135*cdf0e10cSrcweir :OEditBaseModel( _rxFactory, VCL_CONTROLMODEL_TIMEFIELD, FRM_SUN_CONTROL_TIMEFIELD, sal_True, sal_True ) 136*cdf0e10cSrcweir // use the old control name for compytibility reasons 137*cdf0e10cSrcweir ,OLimitedFormats(_rxFactory, FormComponentType::TIMEFIELD) 138*cdf0e10cSrcweir { 139*cdf0e10cSrcweir DBG_CTOR( OTimeModel, NULL ); 140*cdf0e10cSrcweir 141*cdf0e10cSrcweir m_nClassId = FormComponentType::TIMEFIELD; 142*cdf0e10cSrcweir initValueProperty( PROPERTY_TIME, PROPERTY_ID_TIME ); 143*cdf0e10cSrcweir 144*cdf0e10cSrcweir setAggregateSet(m_xAggregateFastSet, getOriginalHandle(PROPERTY_ID_TIMEFORMAT)); 145*cdf0e10cSrcweir } 146*cdf0e10cSrcweir 147*cdf0e10cSrcweir //------------------------------------------------------------------------------ 148*cdf0e10cSrcweir OTimeModel::OTimeModel( const OTimeModel* _pOriginal, const Reference<XMultiServiceFactory>& _rxFactory ) 149*cdf0e10cSrcweir :OEditBaseModel( _pOriginal, _rxFactory ) 150*cdf0e10cSrcweir ,OLimitedFormats( _rxFactory, FormComponentType::TIMEFIELD ) 151*cdf0e10cSrcweir { 152*cdf0e10cSrcweir DBG_CTOR( OTimeModel, NULL ); 153*cdf0e10cSrcweir 154*cdf0e10cSrcweir setAggregateSet( m_xAggregateFastSet, getOriginalHandle( PROPERTY_ID_TIMEFORMAT ) ); 155*cdf0e10cSrcweir } 156*cdf0e10cSrcweir 157*cdf0e10cSrcweir //------------------------------------------------------------------------------ 158*cdf0e10cSrcweir OTimeModel::~OTimeModel( ) 159*cdf0e10cSrcweir { 160*cdf0e10cSrcweir setAggregateSet(Reference< XFastPropertySet >(), -1); 161*cdf0e10cSrcweir DBG_DTOR( OTimeModel, NULL ); 162*cdf0e10cSrcweir } 163*cdf0e10cSrcweir 164*cdf0e10cSrcweir // XCloneable 165*cdf0e10cSrcweir //------------------------------------------------------------------------------ 166*cdf0e10cSrcweir IMPLEMENT_DEFAULT_CLONING( OTimeModel ) 167*cdf0e10cSrcweir 168*cdf0e10cSrcweir //------------------------------------------------------------------------------ 169*cdf0e10cSrcweir ::rtl::OUString SAL_CALL OTimeModel::getServiceName() throw ( ::com::sun::star::uno::RuntimeException) 170*cdf0e10cSrcweir { 171*cdf0e10cSrcweir return FRM_COMPONENT_TIMEFIELD; // old (non-sun) name for compatibility ! 172*cdf0e10cSrcweir } 173*cdf0e10cSrcweir 174*cdf0e10cSrcweir // XPropertySet 175*cdf0e10cSrcweir //------------------------------------------------------------------------------ 176*cdf0e10cSrcweir void OTimeModel::describeFixedProperties( Sequence< Property >& _rProps ) const 177*cdf0e10cSrcweir { 178*cdf0e10cSrcweir BEGIN_DESCRIBE_PROPERTIES( 4, OEditBaseModel ) 179*cdf0e10cSrcweir DECL_PROP3(DEFAULT_TIME, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID); 180*cdf0e10cSrcweir DECL_PROP1(TABINDEX, sal_Int16, BOUND); 181*cdf0e10cSrcweir DECL_PROP1(FORMATKEY, sal_Int32, TRANSIENT); 182*cdf0e10cSrcweir DECL_IFACE_PROP2(FORMATSSUPPLIER, XNumberFormatsSupplier, READONLY, TRANSIENT); 183*cdf0e10cSrcweir END_DESCRIBE_PROPERTIES(); 184*cdf0e10cSrcweir } 185*cdf0e10cSrcweir 186*cdf0e10cSrcweir //------------------------------------------------------------------------------ 187*cdf0e10cSrcweir void SAL_CALL OTimeModel::getFastPropertyValue(Any& _rValue, sal_Int32 _nHandle ) const 188*cdf0e10cSrcweir { 189*cdf0e10cSrcweir switch (_nHandle) 190*cdf0e10cSrcweir { 191*cdf0e10cSrcweir case PROPERTY_ID_FORMATKEY: 192*cdf0e10cSrcweir getFormatKeyPropertyValue(_rValue); 193*cdf0e10cSrcweir break; 194*cdf0e10cSrcweir case PROPERTY_ID_FORMATSSUPPLIER: 195*cdf0e10cSrcweir _rValue <<= getFormatsSupplier(); 196*cdf0e10cSrcweir break; 197*cdf0e10cSrcweir default: 198*cdf0e10cSrcweir OEditBaseModel::getFastPropertyValue(_rValue, _nHandle); 199*cdf0e10cSrcweir break; 200*cdf0e10cSrcweir } 201*cdf0e10cSrcweir } 202*cdf0e10cSrcweir 203*cdf0e10cSrcweir //------------------------------------------------------------------------------ 204*cdf0e10cSrcweir sal_Bool SAL_CALL OTimeModel::convertFastPropertyValue(Any& _rConvertedValue, Any& _rOldValue, 205*cdf0e10cSrcweir sal_Int32 _nHandle, const Any& _rValue ) throw(IllegalArgumentException) 206*cdf0e10cSrcweir { 207*cdf0e10cSrcweir if (PROPERTY_ID_FORMATKEY == _nHandle) 208*cdf0e10cSrcweir return convertFormatKeyPropertyValue(_rConvertedValue, _rOldValue, _rValue); 209*cdf0e10cSrcweir else 210*cdf0e10cSrcweir return OEditBaseModel::convertFastPropertyValue(_rConvertedValue, _rOldValue, _nHandle, _rValue ); 211*cdf0e10cSrcweir } 212*cdf0e10cSrcweir 213*cdf0e10cSrcweir //------------------------------------------------------------------------------ 214*cdf0e10cSrcweir void SAL_CALL OTimeModel::setFastPropertyValue_NoBroadcast(sal_Int32 _nHandle, const Any& _rValue) throw ( ::com::sun::star::uno::Exception) 215*cdf0e10cSrcweir { 216*cdf0e10cSrcweir if (PROPERTY_ID_FORMATKEY == _nHandle) 217*cdf0e10cSrcweir setFormatKeyPropertyValue(_rValue); 218*cdf0e10cSrcweir else 219*cdf0e10cSrcweir OEditBaseModel::setFastPropertyValue_NoBroadcast(_nHandle, _rValue); 220*cdf0e10cSrcweir } 221*cdf0e10cSrcweir 222*cdf0e10cSrcweir // XLoadListener 223*cdf0e10cSrcweir //------------------------------------------------------------------------------ 224*cdf0e10cSrcweir void OTimeModel::onConnectedDbColumn( const Reference< XInterface >& _rxForm ) 225*cdf0e10cSrcweir { 226*cdf0e10cSrcweir OBoundControlModel::onConnectedDbColumn( _rxForm ); 227*cdf0e10cSrcweir Reference<XPropertySet> xField = getField(); 228*cdf0e10cSrcweir if (xField.is()) 229*cdf0e10cSrcweir { 230*cdf0e10cSrcweir m_bDateTimeField = sal_False; 231*cdf0e10cSrcweir try 232*cdf0e10cSrcweir { 233*cdf0e10cSrcweir sal_Int32 nFieldType = 0; 234*cdf0e10cSrcweir xField->getPropertyValue(PROPERTY_FIELDTYPE) >>= nFieldType; 235*cdf0e10cSrcweir m_bDateTimeField = (nFieldType == DataType::TIMESTAMP); 236*cdf0e10cSrcweir } 237*cdf0e10cSrcweir catch(Exception&) 238*cdf0e10cSrcweir { 239*cdf0e10cSrcweir } 240*cdf0e10cSrcweir } 241*cdf0e10cSrcweir } 242*cdf0e10cSrcweir 243*cdf0e10cSrcweir //------------------------------------------------------------------------------ 244*cdf0e10cSrcweir sal_Bool OTimeModel::commitControlValueToDbColumn( bool /*_bPostReset*/ ) 245*cdf0e10cSrcweir { 246*cdf0e10cSrcweir Any aControlValue( m_xAggregateFastSet->getFastPropertyValue( getValuePropertyAggHandle() ) ); 247*cdf0e10cSrcweir if ( !compare( aControlValue, m_aSaveValue ) ) 248*cdf0e10cSrcweir { 249*cdf0e10cSrcweir if ( !aControlValue.hasValue() ) 250*cdf0e10cSrcweir m_xColumnUpdate->updateNull(); 251*cdf0e10cSrcweir else 252*cdf0e10cSrcweir { 253*cdf0e10cSrcweir try 254*cdf0e10cSrcweir { 255*cdf0e10cSrcweir util::Time aTime; 256*cdf0e10cSrcweir if ( !( aControlValue >>= aTime ) ) 257*cdf0e10cSrcweir { 258*cdf0e10cSrcweir sal_Int32 nAsInt(0); 259*cdf0e10cSrcweir aControlValue >>= nAsInt; 260*cdf0e10cSrcweir aTime = DBTypeConversion::toTime(nAsInt); 261*cdf0e10cSrcweir } 262*cdf0e10cSrcweir 263*cdf0e10cSrcweir if (!m_bDateTimeField) 264*cdf0e10cSrcweir m_xColumnUpdate->updateTime(aTime); 265*cdf0e10cSrcweir else 266*cdf0e10cSrcweir { 267*cdf0e10cSrcweir util::DateTime aDateTime = m_xColumn->getTimestamp(); 268*cdf0e10cSrcweir aDateTime.HundredthSeconds = aTime.HundredthSeconds; 269*cdf0e10cSrcweir aDateTime.Seconds = aTime.Seconds; 270*cdf0e10cSrcweir aDateTime.Minutes = aTime.Minutes; 271*cdf0e10cSrcweir aDateTime.Hours = aTime.Hours; 272*cdf0e10cSrcweir m_xColumnUpdate->updateTimestamp(aDateTime); 273*cdf0e10cSrcweir } 274*cdf0e10cSrcweir } 275*cdf0e10cSrcweir catch(Exception&) 276*cdf0e10cSrcweir { 277*cdf0e10cSrcweir return sal_False; 278*cdf0e10cSrcweir } 279*cdf0e10cSrcweir } 280*cdf0e10cSrcweir m_aSaveValue = aControlValue; 281*cdf0e10cSrcweir } 282*cdf0e10cSrcweir return sal_True; 283*cdf0e10cSrcweir } 284*cdf0e10cSrcweir 285*cdf0e10cSrcweir //------------------------------------------------------------------------------ 286*cdf0e10cSrcweir void OTimeModel::impl_translateControlValueToUNOTime( Any& _rUNOValue ) const 287*cdf0e10cSrcweir { 288*cdf0e10cSrcweir _rUNOValue = getControlValue(); 289*cdf0e10cSrcweir if ( _rUNOValue.hasValue() ) 290*cdf0e10cSrcweir { 291*cdf0e10cSrcweir sal_Int32 nTime = 0; 292*cdf0e10cSrcweir OSL_VERIFY( _rUNOValue >>= nTime ); 293*cdf0e10cSrcweir if ( nTime == ::Time( 99, 99, 99 ).GetTime() ) 294*cdf0e10cSrcweir // "invalid time" in VCL is different from "invalid time" in UNO 295*cdf0e10cSrcweir _rUNOValue.clear(); 296*cdf0e10cSrcweir else 297*cdf0e10cSrcweir _rUNOValue <<= DBTypeConversion::toTime( nTime ); 298*cdf0e10cSrcweir } 299*cdf0e10cSrcweir } 300*cdf0e10cSrcweir 301*cdf0e10cSrcweir //------------------------------------------------------------------------------ 302*cdf0e10cSrcweir Any OTimeModel::translateControlValueToExternalValue( ) const 303*cdf0e10cSrcweir { 304*cdf0e10cSrcweir Any aExternalValue; 305*cdf0e10cSrcweir impl_translateControlValueToUNOTime( aExternalValue ); 306*cdf0e10cSrcweir return aExternalValue; 307*cdf0e10cSrcweir } 308*cdf0e10cSrcweir 309*cdf0e10cSrcweir //------------------------------------------------------------------------------ 310*cdf0e10cSrcweir Any OTimeModel::translateExternalValueToControlValue( const Any& _rExternalValue ) const 311*cdf0e10cSrcweir { 312*cdf0e10cSrcweir Any aControlValue; 313*cdf0e10cSrcweir if ( _rExternalValue.hasValue() ) 314*cdf0e10cSrcweir { 315*cdf0e10cSrcweir util::Time aTime; 316*cdf0e10cSrcweir OSL_VERIFY( _rExternalValue >>= aTime ); 317*cdf0e10cSrcweir aControlValue <<= DBTypeConversion::toINT32( aTime ); 318*cdf0e10cSrcweir } 319*cdf0e10cSrcweir return aControlValue; 320*cdf0e10cSrcweir } 321*cdf0e10cSrcweir 322*cdf0e10cSrcweir //------------------------------------------------------------------------------ 323*cdf0e10cSrcweir Any OTimeModel::translateControlValueToValidatableValue( ) const 324*cdf0e10cSrcweir { 325*cdf0e10cSrcweir Any aValidatableValue; 326*cdf0e10cSrcweir impl_translateControlValueToUNOTime( aValidatableValue ); 327*cdf0e10cSrcweir return aValidatableValue; 328*cdf0e10cSrcweir } 329*cdf0e10cSrcweir 330*cdf0e10cSrcweir //------------------------------------------------------------------------------ 331*cdf0e10cSrcweir Any OTimeModel::translateDbColumnToControlValue() 332*cdf0e10cSrcweir { 333*cdf0e10cSrcweir util::Time aTime = m_xColumn->getTime(); 334*cdf0e10cSrcweir if ( m_xColumn->wasNull() ) 335*cdf0e10cSrcweir m_aSaveValue.clear(); 336*cdf0e10cSrcweir else 337*cdf0e10cSrcweir // the aggregated set expects an Int32 as value ... 338*cdf0e10cSrcweir m_aSaveValue <<= DBTypeConversion::toINT32( aTime ); 339*cdf0e10cSrcweir 340*cdf0e10cSrcweir return m_aSaveValue; 341*cdf0e10cSrcweir } 342*cdf0e10cSrcweir 343*cdf0e10cSrcweir //------------------------------------------------------------------------------ 344*cdf0e10cSrcweir Any OTimeModel::getDefaultForReset() const 345*cdf0e10cSrcweir { 346*cdf0e10cSrcweir return m_aDefault; 347*cdf0e10cSrcweir } 348*cdf0e10cSrcweir 349*cdf0e10cSrcweir //------------------------------------------------------------------------------ 350*cdf0e10cSrcweir void OTimeModel::resetNoBroadcast() 351*cdf0e10cSrcweir { 352*cdf0e10cSrcweir OEditBaseModel::resetNoBroadcast(); 353*cdf0e10cSrcweir m_aSaveValue.clear(); 354*cdf0e10cSrcweir } 355*cdf0e10cSrcweir 356*cdf0e10cSrcweir //------------------------------------------------------------------------------ 357*cdf0e10cSrcweir Sequence< Type > OTimeModel::getSupportedBindingTypes() 358*cdf0e10cSrcweir { 359*cdf0e10cSrcweir return Sequence< Type >( &::getCppuType( static_cast< util::Time* >( NULL ) ), 1 ); 360*cdf0e10cSrcweir } 361*cdf0e10cSrcweir 362*cdf0e10cSrcweir //......................................................................... 363*cdf0e10cSrcweir } // namespace frm 364*cdf0e10cSrcweir //......................................................................... 365*cdf0e10cSrcweir 366