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 "Date.hxx" 31*cdf0e10cSrcweir #include <tools/debug.hxx> 32*cdf0e10cSrcweir #include <tools/date.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::util; 50*cdf0e10cSrcweir using namespace ::com::sun::star::container; 51*cdf0e10cSrcweir using namespace ::com::sun::star::form; 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 ODateControl::ODateControl(const Reference<XMultiServiceFactory>& _rxFactory) 58*cdf0e10cSrcweir :OBoundControl(_rxFactory, VCL_CONTROL_DATEFIELD) 59*cdf0e10cSrcweir { 60*cdf0e10cSrcweir } 61*cdf0e10cSrcweir 62*cdf0e10cSrcweir //------------------------------------------------------------------ 63*cdf0e10cSrcweir InterfaceRef SAL_CALL ODateControl_CreateInstance(const Reference<XMultiServiceFactory>& _rxFactory) 64*cdf0e10cSrcweir { 65*cdf0e10cSrcweir return *(new ODateControl(_rxFactory)); 66*cdf0e10cSrcweir } 67*cdf0e10cSrcweir 68*cdf0e10cSrcweir //------------------------------------------------------------------------------ 69*cdf0e10cSrcweir Sequence<Type> ODateControl::_getTypes() 70*cdf0e10cSrcweir { 71*cdf0e10cSrcweir return OBoundControl::_getTypes(); 72*cdf0e10cSrcweir } 73*cdf0e10cSrcweir 74*cdf0e10cSrcweir //------------------------------------------------------------------------------ 75*cdf0e10cSrcweir StringSequence SAL_CALL ODateControl::getSupportedServiceNames() throw() 76*cdf0e10cSrcweir { 77*cdf0e10cSrcweir StringSequence aSupported = OBoundControl::getSupportedServiceNames(); 78*cdf0e10cSrcweir aSupported.realloc(aSupported.getLength() + 1); 79*cdf0e10cSrcweir 80*cdf0e10cSrcweir ::rtl::OUString*pArray = aSupported.getArray(); 81*cdf0e10cSrcweir pArray[aSupported.getLength()-1] = FRM_SUN_CONTROL_DATEFIELD; 82*cdf0e10cSrcweir return aSupported; 83*cdf0e10cSrcweir } 84*cdf0e10cSrcweir 85*cdf0e10cSrcweir /*************************************************************************/ 86*cdf0e10cSrcweir //------------------------------------------------------------------ 87*cdf0e10cSrcweir InterfaceRef SAL_CALL ODateModel_CreateInstance(const Reference<XMultiServiceFactory>& _rxFactory) 88*cdf0e10cSrcweir { 89*cdf0e10cSrcweir return *(new ODateModel(_rxFactory)); 90*cdf0e10cSrcweir } 91*cdf0e10cSrcweir 92*cdf0e10cSrcweir //------------------------------------------------------------------------------ 93*cdf0e10cSrcweir Sequence<Type> ODateModel::_getTypes() 94*cdf0e10cSrcweir { 95*cdf0e10cSrcweir return OEditBaseModel::_getTypes(); 96*cdf0e10cSrcweir } 97*cdf0e10cSrcweir 98*cdf0e10cSrcweir //------------------------------------------------------------------ 99*cdf0e10cSrcweir DBG_NAME( ODateModel ) 100*cdf0e10cSrcweir //------------------------------------------------------------------ 101*cdf0e10cSrcweir ODateModel::ODateModel(const Reference<XMultiServiceFactory>& _rxFactory) 102*cdf0e10cSrcweir :OEditBaseModel( _rxFactory, VCL_CONTROLMODEL_DATEFIELD, FRM_SUN_CONTROL_DATEFIELD, sal_True, sal_True ) 103*cdf0e10cSrcweir // use the old control name for compytibility reasons 104*cdf0e10cSrcweir ,OLimitedFormats( _rxFactory, FormComponentType::DATEFIELD ) 105*cdf0e10cSrcweir { 106*cdf0e10cSrcweir DBG_CTOR( ODateModel, NULL ); 107*cdf0e10cSrcweir 108*cdf0e10cSrcweir m_nClassId = FormComponentType::DATEFIELD; 109*cdf0e10cSrcweir initValueProperty( PROPERTY_DATE, PROPERTY_ID_DATE ); 110*cdf0e10cSrcweir 111*cdf0e10cSrcweir setAggregateSet(m_xAggregateFastSet, getOriginalHandle(PROPERTY_ID_DATEFORMAT)); 112*cdf0e10cSrcweir 113*cdf0e10cSrcweir osl_incrementInterlockedCount( &m_refCount ); 114*cdf0e10cSrcweir try 115*cdf0e10cSrcweir { 116*cdf0e10cSrcweir if ( m_xAggregateSet.is() ) 117*cdf0e10cSrcweir m_xAggregateSet->setPropertyValue( PROPERTY_DATEMIN, makeAny( (sal_Int32)( ::Date( 1, 1, 1800 ).GetDate() ) ) ); 118*cdf0e10cSrcweir } 119*cdf0e10cSrcweir catch( const Exception& ) 120*cdf0e10cSrcweir { 121*cdf0e10cSrcweir OSL_ENSURE( sal_False, "ODateModel::ODateModel: caught an exception!" ); 122*cdf0e10cSrcweir } 123*cdf0e10cSrcweir osl_decrementInterlockedCount( &m_refCount ); 124*cdf0e10cSrcweir } 125*cdf0e10cSrcweir 126*cdf0e10cSrcweir //------------------------------------------------------------------------------ 127*cdf0e10cSrcweir ODateModel::ODateModel( const ODateModel* _pOriginal, const Reference<XMultiServiceFactory>& _rxFactory ) 128*cdf0e10cSrcweir :OEditBaseModel( _pOriginal, _rxFactory ) 129*cdf0e10cSrcweir ,OLimitedFormats( _rxFactory, FormComponentType::DATEFIELD ) 130*cdf0e10cSrcweir { 131*cdf0e10cSrcweir DBG_CTOR( ODateModel, NULL ); 132*cdf0e10cSrcweir 133*cdf0e10cSrcweir setAggregateSet( m_xAggregateFastSet, getOriginalHandle( PROPERTY_ID_DATEFORMAT ) ); 134*cdf0e10cSrcweir } 135*cdf0e10cSrcweir 136*cdf0e10cSrcweir //------------------------------------------------------------------------------ 137*cdf0e10cSrcweir ODateModel::~ODateModel( ) 138*cdf0e10cSrcweir { 139*cdf0e10cSrcweir setAggregateSet(Reference< XFastPropertySet >(), -1); 140*cdf0e10cSrcweir DBG_DTOR( ODateModel, NULL ); 141*cdf0e10cSrcweir } 142*cdf0e10cSrcweir 143*cdf0e10cSrcweir // XCloneable 144*cdf0e10cSrcweir //------------------------------------------------------------------------------ 145*cdf0e10cSrcweir IMPLEMENT_DEFAULT_CLONING( ODateModel ) 146*cdf0e10cSrcweir 147*cdf0e10cSrcweir // XServiceInfo 148*cdf0e10cSrcweir //------------------------------------------------------------------------------ 149*cdf0e10cSrcweir StringSequence SAL_CALL ODateModel::getSupportedServiceNames() throw() 150*cdf0e10cSrcweir { 151*cdf0e10cSrcweir StringSequence aSupported = OBoundControlModel::getSupportedServiceNames(); 152*cdf0e10cSrcweir 153*cdf0e10cSrcweir sal_Int32 nOldLen = aSupported.getLength(); 154*cdf0e10cSrcweir aSupported.realloc( nOldLen + 8 ); 155*cdf0e10cSrcweir ::rtl::OUString* pStoreTo = aSupported.getArray() + nOldLen; 156*cdf0e10cSrcweir 157*cdf0e10cSrcweir *pStoreTo++ = BINDABLE_CONTROL_MODEL; 158*cdf0e10cSrcweir *pStoreTo++ = DATA_AWARE_CONTROL_MODEL; 159*cdf0e10cSrcweir *pStoreTo++ = VALIDATABLE_CONTROL_MODEL; 160*cdf0e10cSrcweir 161*cdf0e10cSrcweir *pStoreTo++ = BINDABLE_DATA_AWARE_CONTROL_MODEL; 162*cdf0e10cSrcweir *pStoreTo++ = VALIDATABLE_BINDABLE_CONTROL_MODEL; 163*cdf0e10cSrcweir 164*cdf0e10cSrcweir *pStoreTo++ = FRM_SUN_COMPONENT_DATEFIELD; 165*cdf0e10cSrcweir *pStoreTo++ = FRM_SUN_COMPONENT_DATABASE_DATEFIELD; 166*cdf0e10cSrcweir *pStoreTo++ = BINDABLE_DATABASE_DATE_FIELD; 167*cdf0e10cSrcweir 168*cdf0e10cSrcweir return aSupported; 169*cdf0e10cSrcweir } 170*cdf0e10cSrcweir 171*cdf0e10cSrcweir //------------------------------------------------------------------------------ 172*cdf0e10cSrcweir ::rtl::OUString SAL_CALL ODateModel::getServiceName() throw ( ::com::sun::star::uno::RuntimeException) 173*cdf0e10cSrcweir { 174*cdf0e10cSrcweir return FRM_COMPONENT_DATEFIELD; // old (non-sun) name for compatibility ! 175*cdf0e10cSrcweir } 176*cdf0e10cSrcweir 177*cdf0e10cSrcweir // XPropertySet 178*cdf0e10cSrcweir //------------------------------------------------------------------------------ 179*cdf0e10cSrcweir void ODateModel::describeFixedProperties( Sequence< Property >& _rProps ) const 180*cdf0e10cSrcweir { 181*cdf0e10cSrcweir BEGIN_DESCRIBE_PROPERTIES( 4, OEditBaseModel ) 182*cdf0e10cSrcweir DECL_PROP3(DEFAULT_DATE, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID); 183*cdf0e10cSrcweir DECL_PROP1(TABINDEX, sal_Int16, BOUND); 184*cdf0e10cSrcweir DECL_PROP1(FORMATKEY, sal_Int32, TRANSIENT); 185*cdf0e10cSrcweir DECL_IFACE_PROP2(FORMATSSUPPLIER, XNumberFormatsSupplier, READONLY, TRANSIENT); 186*cdf0e10cSrcweir END_DESCRIBE_PROPERTIES(); 187*cdf0e10cSrcweir } 188*cdf0e10cSrcweir 189*cdf0e10cSrcweir //------------------------------------------------------------------------------ 190*cdf0e10cSrcweir void SAL_CALL ODateModel::getFastPropertyValue(Any& _rValue, sal_Int32 _nHandle ) const 191*cdf0e10cSrcweir { 192*cdf0e10cSrcweir switch (_nHandle) 193*cdf0e10cSrcweir { 194*cdf0e10cSrcweir case PROPERTY_ID_FORMATKEY: 195*cdf0e10cSrcweir getFormatKeyPropertyValue(_rValue); 196*cdf0e10cSrcweir break; 197*cdf0e10cSrcweir case PROPERTY_ID_FORMATSSUPPLIER: 198*cdf0e10cSrcweir _rValue <<= getFormatsSupplier(); 199*cdf0e10cSrcweir break; 200*cdf0e10cSrcweir default: 201*cdf0e10cSrcweir OEditBaseModel::getFastPropertyValue(_rValue, _nHandle); 202*cdf0e10cSrcweir break; 203*cdf0e10cSrcweir } 204*cdf0e10cSrcweir } 205*cdf0e10cSrcweir 206*cdf0e10cSrcweir //------------------------------------------------------------------------------ 207*cdf0e10cSrcweir sal_Bool SAL_CALL ODateModel::convertFastPropertyValue(Any& _rConvertedValue, Any& _rOldValue, 208*cdf0e10cSrcweir sal_Int32 _nHandle, const Any& _rValue ) throw(IllegalArgumentException) 209*cdf0e10cSrcweir { 210*cdf0e10cSrcweir if (PROPERTY_ID_FORMATKEY == _nHandle) 211*cdf0e10cSrcweir return convertFormatKeyPropertyValue(_rConvertedValue, _rOldValue, _rValue); 212*cdf0e10cSrcweir else 213*cdf0e10cSrcweir return OEditBaseModel::convertFastPropertyValue(_rConvertedValue, _rOldValue, _nHandle, _rValue ); 214*cdf0e10cSrcweir } 215*cdf0e10cSrcweir 216*cdf0e10cSrcweir //------------------------------------------------------------------------------ 217*cdf0e10cSrcweir void SAL_CALL ODateModel::setFastPropertyValue_NoBroadcast(sal_Int32 _nHandle, const Any& _rValue) throw ( ::com::sun::star::uno::Exception) 218*cdf0e10cSrcweir { 219*cdf0e10cSrcweir if (PROPERTY_ID_FORMATKEY == _nHandle) 220*cdf0e10cSrcweir setFormatKeyPropertyValue(_rValue); 221*cdf0e10cSrcweir else 222*cdf0e10cSrcweir OEditBaseModel::setFastPropertyValue_NoBroadcast(_nHandle, _rValue); 223*cdf0e10cSrcweir } 224*cdf0e10cSrcweir 225*cdf0e10cSrcweir // XLoadListener 226*cdf0e10cSrcweir //------------------------------------------------------------------------------ 227*cdf0e10cSrcweir void ODateModel::onConnectedDbColumn( const Reference< XInterface >& _rxForm ) 228*cdf0e10cSrcweir { 229*cdf0e10cSrcweir OBoundControlModel::onConnectedDbColumn( _rxForm ); 230*cdf0e10cSrcweir Reference<XPropertySet> xField = getField(); 231*cdf0e10cSrcweir if (xField.is()) 232*cdf0e10cSrcweir { 233*cdf0e10cSrcweir m_bDateTimeField = sal_False; 234*cdf0e10cSrcweir try 235*cdf0e10cSrcweir { 236*cdf0e10cSrcweir sal_Int32 nFieldType = 0; 237*cdf0e10cSrcweir xField->getPropertyValue(PROPERTY_FIELDTYPE) >>= nFieldType; 238*cdf0e10cSrcweir m_bDateTimeField = (nFieldType == DataType::TIMESTAMP); 239*cdf0e10cSrcweir } 240*cdf0e10cSrcweir catch(Exception&) 241*cdf0e10cSrcweir { 242*cdf0e10cSrcweir } 243*cdf0e10cSrcweir } 244*cdf0e10cSrcweir } 245*cdf0e10cSrcweir 246*cdf0e10cSrcweir //------------------------------------------------------------------------------ 247*cdf0e10cSrcweir sal_Bool ODateModel::commitControlValueToDbColumn( bool /*_bPostReset*/ ) 248*cdf0e10cSrcweir { 249*cdf0e10cSrcweir Any aControlValue( m_xAggregateFastSet->getFastPropertyValue( getValuePropertyAggHandle() ) ); 250*cdf0e10cSrcweir if ( !compare( aControlValue, m_aSaveValue ) ) 251*cdf0e10cSrcweir { 252*cdf0e10cSrcweir if ( !aControlValue.hasValue() ) 253*cdf0e10cSrcweir m_xColumnUpdate->updateNull(); 254*cdf0e10cSrcweir else 255*cdf0e10cSrcweir { 256*cdf0e10cSrcweir try 257*cdf0e10cSrcweir { 258*cdf0e10cSrcweir util::Date aDate; 259*cdf0e10cSrcweir if ( !( aControlValue >>= aDate ) ) 260*cdf0e10cSrcweir { 261*cdf0e10cSrcweir sal_Int32 nAsInt(0); 262*cdf0e10cSrcweir aControlValue >>= nAsInt; 263*cdf0e10cSrcweir aDate = DBTypeConversion::toDate(nAsInt); 264*cdf0e10cSrcweir } 265*cdf0e10cSrcweir 266*cdf0e10cSrcweir if ( !m_bDateTimeField ) 267*cdf0e10cSrcweir m_xColumnUpdate->updateDate( aDate ); 268*cdf0e10cSrcweir else 269*cdf0e10cSrcweir { 270*cdf0e10cSrcweir util::DateTime aDateTime = m_xColumn->getTimestamp(); 271*cdf0e10cSrcweir aDateTime.Day = aDate.Day; 272*cdf0e10cSrcweir aDateTime.Month = aDate.Month; 273*cdf0e10cSrcweir aDateTime.Year = aDate.Year; 274*cdf0e10cSrcweir m_xColumnUpdate->updateTimestamp( aDateTime ); 275*cdf0e10cSrcweir } 276*cdf0e10cSrcweir } 277*cdf0e10cSrcweir catch(Exception&) 278*cdf0e10cSrcweir { 279*cdf0e10cSrcweir return sal_False; 280*cdf0e10cSrcweir } 281*cdf0e10cSrcweir } 282*cdf0e10cSrcweir m_aSaveValue = aControlValue; 283*cdf0e10cSrcweir } 284*cdf0e10cSrcweir return sal_True; 285*cdf0e10cSrcweir } 286*cdf0e10cSrcweir 287*cdf0e10cSrcweir //------------------------------------------------------------------------------ 288*cdf0e10cSrcweir void ODateModel::impl_translateControlValueToUNODate( Any& _rUNOValue ) const 289*cdf0e10cSrcweir { 290*cdf0e10cSrcweir _rUNOValue = getControlValue(); 291*cdf0e10cSrcweir if ( _rUNOValue.hasValue() ) 292*cdf0e10cSrcweir { 293*cdf0e10cSrcweir sal_Int32 nDate = 0; 294*cdf0e10cSrcweir OSL_VERIFY( _rUNOValue >>= nDate ); 295*cdf0e10cSrcweir _rUNOValue <<= DBTypeConversion::toDate( nDate ); 296*cdf0e10cSrcweir } 297*cdf0e10cSrcweir } 298*cdf0e10cSrcweir 299*cdf0e10cSrcweir //------------------------------------------------------------------------------ 300*cdf0e10cSrcweir Any ODateModel::translateControlValueToExternalValue( ) const 301*cdf0e10cSrcweir { 302*cdf0e10cSrcweir Any aExternalValue; 303*cdf0e10cSrcweir impl_translateControlValueToUNODate( aExternalValue ); 304*cdf0e10cSrcweir return aExternalValue; 305*cdf0e10cSrcweir } 306*cdf0e10cSrcweir 307*cdf0e10cSrcweir //------------------------------------------------------------------------------ 308*cdf0e10cSrcweir Any ODateModel::translateExternalValueToControlValue( const Any& _rExternalValue ) const 309*cdf0e10cSrcweir { 310*cdf0e10cSrcweir Any aControlValue; 311*cdf0e10cSrcweir if ( _rExternalValue.hasValue() ) 312*cdf0e10cSrcweir { 313*cdf0e10cSrcweir util::Date aDate; 314*cdf0e10cSrcweir OSL_VERIFY( _rExternalValue >>= aDate ); 315*cdf0e10cSrcweir aControlValue <<= DBTypeConversion::toINT32( aDate ); 316*cdf0e10cSrcweir } 317*cdf0e10cSrcweir return aControlValue; 318*cdf0e10cSrcweir } 319*cdf0e10cSrcweir 320*cdf0e10cSrcweir //------------------------------------------------------------------------------ 321*cdf0e10cSrcweir Any ODateModel::translateControlValueToValidatableValue( ) const 322*cdf0e10cSrcweir { 323*cdf0e10cSrcweir Any aValidatableValue; 324*cdf0e10cSrcweir impl_translateControlValueToUNODate( aValidatableValue ); 325*cdf0e10cSrcweir return aValidatableValue; 326*cdf0e10cSrcweir } 327*cdf0e10cSrcweir 328*cdf0e10cSrcweir //------------------------------------------------------------------------------ 329*cdf0e10cSrcweir Any ODateModel::translateDbColumnToControlValue() 330*cdf0e10cSrcweir { 331*cdf0e10cSrcweir util::Date aDate = m_xColumn->getDate(); 332*cdf0e10cSrcweir if (m_xColumn->wasNull()) 333*cdf0e10cSrcweir m_aSaveValue.clear(); 334*cdf0e10cSrcweir else 335*cdf0e10cSrcweir // the aggregated set expects an Int32 as value ... 336*cdf0e10cSrcweir m_aSaveValue <<= DBTypeConversion::toINT32(aDate); 337*cdf0e10cSrcweir 338*cdf0e10cSrcweir return m_aSaveValue; 339*cdf0e10cSrcweir } 340*cdf0e10cSrcweir 341*cdf0e10cSrcweir //------------------------------------------------------------------------------ 342*cdf0e10cSrcweir Any ODateModel::getDefaultForReset() const 343*cdf0e10cSrcweir { 344*cdf0e10cSrcweir return m_aDefault; 345*cdf0e10cSrcweir } 346*cdf0e10cSrcweir 347*cdf0e10cSrcweir //------------------------------------------------------------------------------ 348*cdf0e10cSrcweir void ODateModel::resetNoBroadcast() 349*cdf0e10cSrcweir { 350*cdf0e10cSrcweir OEditBaseModel::resetNoBroadcast(); 351*cdf0e10cSrcweir m_aSaveValue.clear(); 352*cdf0e10cSrcweir } 353*cdf0e10cSrcweir 354*cdf0e10cSrcweir //------------------------------------------------------------------------------ 355*cdf0e10cSrcweir Sequence< Type > ODateModel::getSupportedBindingTypes() 356*cdf0e10cSrcweir { 357*cdf0e10cSrcweir return Sequence< Type >( &::getCppuType( static_cast< util::Date* >( NULL ) ), 1 ); 358*cdf0e10cSrcweir } 359*cdf0e10cSrcweir 360*cdf0e10cSrcweir //......................................................................... 361*cdf0e10cSrcweir } // namespace frm 362*cdf0e10cSrcweir //......................................................................... 363*cdf0e10cSrcweir 364