fwk154: i114090: adapt listener code to reflect changes in config mgr, notification of change events

(transplanted from 7c0cad639e0b6d74f4be88f5877270f1a8b9fa53)
This commit is contained in:
Juergen Schmidt
2010-08-24 17:53:12 +02:00
parent fd6cf3d74c
commit 0da24e6676

View File

@@ -647,28 +647,10 @@ void SAL_CALL UniversalContentBroker::changesOccurred( const util::ChangesEvent&
sal_Int32 nCount = Event.Changes.getLength();
if ( nCount )
{
uno::Reference< container::XHierarchicalNameAccess > xHierNameAccess;
Event.Base >>= xHierNameAccess;
uno::Reference< lang::XMultiServiceFactory > xConfigProv(
m_xSMgr->createInstance(
rtl::OUString::createFromAscii(
"com.sun.star.configuration.ConfigurationProvider" ) ),
uno::UNO_QUERY_THROW );
uno::Sequence< uno::Any > aArguments( 1 );
beans::PropertyValue aProperty;
aProperty.Name
= rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "nodepath" ) );
aProperty.Value <<= Event.Base;
aArguments[ 0 ] <<= aProperty;
uno::Reference< uno::XInterface > xInterface(
xConfigProv->createInstanceWithArguments(
rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.configuration.ConfigurationAccess" ) ),
aArguments ) );
uno::Reference< container::XHierarchicalNameAccess >
xHierNameAccess( xInterface, uno::UNO_QUERY_THROW );
OSL_ASSERT( xHierNameAccess.is() );
const util::ElementChange* pElementChanges
= Event.Changes.getConstArray();