User: kz Date: 05/01/21 09:21:33 Modified: /dba/dbaccess/source/ui/tabledesign/ FieldDescriptions.cxx
Log: INTEGRATION: CWS dba22 (1.14.50); FILE MERGED 2005/01/07 07:58:59 oj 1.14.50.2: RESYNC: (1.14-1.15); FILE MERGED 2005/01/03 12:51:34 oj 1.14.50.1: #i39146# renable DnD in beamer File Changes: Directory: /dba/dbaccess/source/ui/tabledesign/ =============================================== File [changed]: FieldDescriptions.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/tabledesign/FieldDescriptions.cxx?r1=1.15&r2=1.16 Delta lines: +49 -28 --------------------- --- FieldDescriptions.cxx 26 Nov 2004 18:19:52 -0000 1.15 +++ FieldDescriptions.cxx 21 Jan 2005 17:21:31 -0000 1.16 @@ -202,6 +202,8 @@ } else { + try + { Reference<XPropertySetInfo> xPropSetInfo = xAffectedCol->getPropertySetInfo(); if(xPropSetInfo->hasPropertyByName(PROPERTY_NAME)) SetName(::comphelper::getString(xAffectedCol->getPropertyValue(PROPERTY_NAME))); @@ -230,6 +232,11 @@ if(xPropSetInfo->hasPropertyByName(PROPERTY_ISAUTOINCREMENT)) SetAutoIncrement(::cppu::any2bool(xAffectedCol->getPropertyValue(PROPERTY_ISAUTOINCREMENT))); } + catch(Exception&) + { + OSL_ENSURE(0,"Exception catched while getting the props"); + } + } } } // ----------------------------------------------------------------------------- @@ -617,6 +624,20 @@ else return m_nIsNullable == ::com::sun::star::sdbc::ColumnValue::NULLABLE; } - - +// ----------------------------------------------------------------------------- +void OFieldDescription::SetTypeName(const ::rtl::OUString& _sTypeName) +{ + try + { + if ( m_xDest.is() && m_xDestInfo->hasPropertyByName(PROPERTY_TYPENAME) ) + m_xDest->setPropertyValue(PROPERTY_TYPENAME,makeAny(_sTypeName)); + else + m_sTypeName = _sTypeName; + } + catch(Exception) + { + OSL_ENSURE(0,"Exception catched while set a value!"); + } +} +// ----------------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
