Tag: cws_src680_dba24d User: oj Date: 2007-11-21 12:37:27+0000 Modified: dba/dbaccess/source/filter/xml/xmlDataSourceSetting.cxx dba/dbaccess/source/filter/xml/xmlExport.cxx
Log: #i68854# impl TypeSettingInfo for Oracle File Changes: Directory: /dba/dbaccess/source/filter/xml/ =========================================== File [changed]: xmlDataSourceSetting.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/filter/xml/xmlDataSourceSetting.cxx?r1=1.11&r2=1.11.2.1 Delta lines: +4 -4 ------------------- --- xmlDataSourceSetting.cxx 2007-11-09 08:14:59+0000 1.11 +++ xmlDataSourceSetting.cxx 2007-11-21 12:37:25+0000 1.11.2.1 @@ -4,9 +4,9 @@ * * $RCSfile: xmlDataSourceSetting.cxx,v $ * - * $Revision: 1.11 $ + * $Revision: 1.11.2.1 $ * - * last change: $Author: rt $ $Date: 2007/11/09 08:14:59 $ + * last change: $Author: oj $ $Date: 2007/11/21 12:37:25 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -168,7 +168,7 @@ { if ( m_aSetting.Name.getLength() ) { - if ( m_bIsList && !m_aInfoSequence.getLength() ) + if ( m_bIsList && m_aInfoSequence.getLength() ) m_aSetting.Value <<= m_aInfoSequence; // if our property is of type string, but was empty, ensure that File [changed]: xmlExport.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/filter/xml/xmlExport.cxx?r1=1.16.68.1&r2=1.16.68.2 Delta lines: +14 -3 -------------------- --- xmlExport.cxx 2007-11-08 14:12:15+0000 1.16.68.1 +++ xmlExport.cxx 2007-11-21 12:37:25+0000 1.16.68.2 @@ -4,9 +4,9 @@ * * $RCSfile: xmlExport.cxx,v $ * - * $Revision: 1.16.68.1 $ + * $Revision: 1.16.68.2 $ * - * last change: $Author: fs $ $Date: 2007/11/08 14:12:15 $ + * last change: $Author: oj $ $Date: 2007/11/21 12:37:25 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -520,6 +520,14 @@ AddAttribute(XML_NAMESPACE_DB, XML_DATA_SOURCE_SETTING_IS_LIST,bIsSequence ? XML_TRUE : XML_FALSE); AddAttribute(XML_NAMESPACE_DB, XML_DATA_SOURCE_SETTING_NAME,aValue.Name); ::rtl::OUString sTypeName = lcl_implGetPropertyXMLType(aSimpleType); + if ( bIsSequence && aSimpleType.getTypeClass() == TypeClass_ANY ) + { + Sequence<Any> aSeq; + aValue.Value >>= aSeq; + if ( aSeq.getLength() ) + sTypeName = lcl_implGetPropertyXMLType(aSeq[0].getValueType()); + } + AddAttribute(XML_NAMESPACE_DB, XML_DATA_SOURCE_SETTING_TYPE,sTypeName); SvXMLElementExport aDataSourceSetting(*this,XML_NAMESPACE_DB, XML_DATA_SOURCE_SETTING, sal_True, sal_True); @@ -554,6 +562,9 @@ case TypeClass_LONG: pSequenceIterator.reset(new OSequenceIterator< sal_Int32 >(aValue.Value)); break; + case TypeClass_ANY: + pSequenceIterator.reset(new OSequenceIterator< Any >(aValue.Value)); + break; default: OSL_ENSURE(sal_False, "unsupported sequence type !"); break; --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
