com::sun::star->css in ucbhelper/

Change-Id: I01e3046caefdcfbf630f4a794f12e8890be6db40
Reviewed-on: https://gerrit.libreoffice.org/19902
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
This commit is contained in:
Noel Grandin
2015-11-11 10:14:35 +02:00
committed by Noel Grandin
parent e44119c580
commit ee74decafe
11 changed files with 141 additions and 156 deletions

View File

@@ -39,7 +39,7 @@ void InterceptedInteraction::setInterceptions(const ::std::vector< InterceptedRe
InterceptedInteraction::EInterceptionState InterceptedInteraction::intercepted( InterceptedInteraction::EInterceptionState InterceptedInteraction::intercepted(
const InterceptedRequest&, const InterceptedRequest&,
const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionRequest >&) const css::uno::Reference< css::task::XInteractionRequest >&)
{ {
// default behaviour! see impl_interceptRequest() for further information ... // default behaviour! see impl_interceptRequest() for further information ...
return E_NOT_INTERCEPTED; return E_NOT_INTERCEPTED;
@@ -69,7 +69,7 @@ void SAL_CALL InterceptedInteraction::handle(const css::uno::Reference< css::tas
impl_handleDefault(xRequest); impl_handleDefault(xRequest);
} }
void InterceptedInteraction::impl_handleDefault(const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionRequest >& xRequest) void InterceptedInteraction::impl_handleDefault(const css::uno::Reference< css::task::XInteractionRequest >& xRequest)
{ {
EInterceptionState eState = impl_interceptRequest(xRequest); EInterceptionState eState = impl_interceptRequest(xRequest);
@@ -98,7 +98,7 @@ void InterceptedInteraction::impl_handleDefault(const ::com::sun::star::uno::Ref
} }
} }
InterceptedInteraction::EInterceptionState InterceptedInteraction::impl_interceptRequest(const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionRequest >& xRequest) InterceptedInteraction::EInterceptionState InterceptedInteraction::impl_interceptRequest(const css::uno::Reference< css::task::XInteractionRequest >& xRequest)
{ {
css::uno::Any aRequest = xRequest->getRequest(); css::uno::Any aRequest = xRequest->getRequest();
css::uno::Type aRequestType = aRequest.getValueType(); css::uno::Type aRequestType = aRequest.getValueType();

View File

@@ -124,7 +124,7 @@ ContentImplHelper::ContentImplHelper(
const uno::Reference< uno::XComponentContext >& rxContext, const uno::Reference< uno::XComponentContext >& rxContext,
const rtl::Reference< ContentProviderImplHelper >& rxProvider, const rtl::Reference< ContentProviderImplHelper >& rxProvider,
const uno::Reference< const uno::Reference<
com::sun::star::ucb::XContentIdentifier >& Identifier ) css::ucb::XContentIdentifier >& Identifier )
: m_pImpl( new ContentImplHelper_Impl ), : m_pImpl( new ContentImplHelper_Impl ),
m_xContext( rxContext ), m_xContext( rxContext ),
m_xIdentifier( Identifier ), m_xIdentifier( Identifier ),
@@ -162,14 +162,14 @@ void SAL_CALL ContentImplHelper::release()
uno::Any SAL_CALL ContentImplHelper::queryInterface( const uno::Type & rType ) uno::Any SAL_CALL ContentImplHelper::queryInterface( const uno::Type & rType )
throw( uno::RuntimeException, std::exception ) throw( uno::RuntimeException, std::exception )
{ {
com::sun::star::uno::Any aRet = cppu::queryInterface( rType, css::uno::Any aRet = cppu::queryInterface( rType,
static_cast< lang::XTypeProvider * >(this), static_cast< lang::XTypeProvider * >(this),
static_cast< lang::XServiceInfo * >(this), static_cast< lang::XServiceInfo * >(this),
static_cast< lang::XComponent * >(this), static_cast< lang::XComponent * >(this),
static_cast< com::sun::star::ucb::XContent * >(this), static_cast< css::ucb::XContent * >(this),
static_cast< com::sun::star::ucb::XCommandProcessor * >(this), static_cast< css::ucb::XCommandProcessor * >(this),
static_cast< beans::XPropertiesChangeNotifier * >(this), static_cast< beans::XPropertiesChangeNotifier * >(this),
static_cast< com::sun::star::ucb::XCommandInfoChangeNotifier * >(this), static_cast< css::ucb::XCommandInfoChangeNotifier * >(this),
static_cast< beans::XPropertyContainer * >(this), static_cast< beans::XPropertyContainer * >(this),
static_cast< beans::XPropertySetInfoChangeNotifier * >(this), static_cast< beans::XPropertySetInfoChangeNotifier * >(this),
static_cast< container::XChild * >(this)); static_cast< container::XChild * >(this));
@@ -180,10 +180,10 @@ XTYPEPROVIDER_IMPL_10( ContentImplHelper,
lang::XTypeProvider, lang::XTypeProvider,
lang::XServiceInfo, lang::XServiceInfo,
lang::XComponent, lang::XComponent,
com::sun::star::ucb::XContent, css::ucb::XContent,
com::sun::star::ucb::XCommandProcessor, css::ucb::XCommandProcessor,
beans::XPropertiesChangeNotifier, beans::XPropertiesChangeNotifier,
com::sun::star::ucb::XCommandInfoChangeNotifier, css::ucb::XCommandInfoChangeNotifier,
beans::XPropertyContainer, beans::XPropertyContainer,
beans::XPropertySetInfoChangeNotifier, beans::XPropertySetInfoChangeNotifier,
container::XChild ); container::XChild );
@@ -214,7 +214,7 @@ void SAL_CALL ContentImplHelper::dispose()
m_pImpl->m_pContentEventListeners->getLength() ) m_pImpl->m_pContentEventListeners->getLength() )
{ {
lang::EventObject aEvt; lang::EventObject aEvt;
aEvt.Source = static_cast< com::sun::star::ucb::XContent * >( this ); aEvt.Source = static_cast< css::ucb::XContent * >( this );
m_pImpl->m_pContentEventListeners->disposeAndClear( aEvt ); m_pImpl->m_pContentEventListeners->disposeAndClear( aEvt );
} }
@@ -231,7 +231,7 @@ void SAL_CALL ContentImplHelper::dispose()
m_pImpl->m_pCommandChangeListeners->getLength() ) m_pImpl->m_pCommandChangeListeners->getLength() )
{ {
lang::EventObject aEvt; lang::EventObject aEvt;
aEvt.Source = static_cast< com::sun::star::ucb::XCommandInfoChangeNotifier * >( this ); aEvt.Source = static_cast< css::ucb::XCommandInfoChangeNotifier * >( this );
m_pImpl->m_pCommandChangeListeners->disposeAndClear( aEvt ); m_pImpl->m_pCommandChangeListeners->disposeAndClear( aEvt );
} }
@@ -270,7 +270,7 @@ void SAL_CALL ContentImplHelper::removeEventListener(
} }
// virtual // virtual
uno::Reference< com::sun::star::ucb::XContentIdentifier > SAL_CALL uno::Reference< css::ucb::XContentIdentifier > SAL_CALL
ContentImplHelper::getIdentifier() ContentImplHelper::getIdentifier()
throw( uno::RuntimeException, std::exception ) throw( uno::RuntimeException, std::exception )
{ {
@@ -279,7 +279,7 @@ ContentImplHelper::getIdentifier()
// virtual // virtual
void SAL_CALL ContentImplHelper::addContentEventListener( void SAL_CALL ContentImplHelper::addContentEventListener(
const uno::Reference< com::sun::star::ucb::XContentEventListener >& Listener ) const uno::Reference< css::ucb::XContentEventListener >& Listener )
throw( uno::RuntimeException, std::exception ) throw( uno::RuntimeException, std::exception )
{ {
osl::MutexGuard aGuard( m_aMutex ); osl::MutexGuard aGuard( m_aMutex );
@@ -293,7 +293,7 @@ void SAL_CALL ContentImplHelper::addContentEventListener(
// virtual // virtual
void SAL_CALL ContentImplHelper::removeContentEventListener( void SAL_CALL ContentImplHelper::removeContentEventListener(
const uno::Reference< com::sun::star::ucb::XContentEventListener >& Listener ) const uno::Reference< css::ucb::XContentEventListener >& Listener )
throw( uno::RuntimeException, std::exception ) throw( uno::RuntimeException, std::exception )
{ {
osl::MutexGuard aGuard( m_aMutex ); osl::MutexGuard aGuard( m_aMutex );
@@ -379,7 +379,7 @@ void SAL_CALL ContentImplHelper::removePropertiesChangeListener(
// virtual // virtual
void SAL_CALL ContentImplHelper::addCommandInfoChangeListener( void SAL_CALL ContentImplHelper::addCommandInfoChangeListener(
const uno::Reference< com::sun::star::ucb::XCommandInfoChangeListener >& Listener ) const uno::Reference< css::ucb::XCommandInfoChangeListener >& Listener )
throw( uno::RuntimeException, std::exception ) throw( uno::RuntimeException, std::exception )
{ {
osl::MutexGuard aGuard( m_aMutex ); osl::MutexGuard aGuard( m_aMutex );
@@ -393,7 +393,7 @@ void SAL_CALL ContentImplHelper::addCommandInfoChangeListener(
// virtual // virtual
void SAL_CALL ContentImplHelper::removeCommandInfoChangeListener( void SAL_CALL ContentImplHelper::removeCommandInfoChangeListener(
const uno::Reference< com::sun::star::ucb::XCommandInfoChangeListener >& Listener ) const uno::Reference< css::ucb::XCommandInfoChangeListener >& Listener )
throw( uno::RuntimeException, std::exception ) throw( uno::RuntimeException, std::exception )
{ {
osl::MutexGuard aGuard( m_aMutex ); osl::MutexGuard aGuard( m_aMutex );
@@ -420,7 +420,7 @@ void SAL_CALL ContentImplHelper::addProperty(
// @@@ Need real command environment here, but where to get it from? // @@@ Need real command environment here, but where to get it from?
// XPropertyContainer interface should be replaced by // XPropertyContainer interface should be replaced by
// XCommandProcessor commands! // XCommandProcessor commands!
uno::Reference< com::sun::star::ucb::XCommandEnvironment > xEnv; uno::Reference< css::ucb::XCommandEnvironment > xEnv;
if ( getPropertySetInfo( xEnv )->hasPropertyByName( Name ) ) if ( getPropertySetInfo( xEnv )->hasPropertyByName( Name ) )
{ {
@@ -430,7 +430,7 @@ void SAL_CALL ContentImplHelper::addProperty(
// Add a new dynamic property. // Add a new dynamic property.
// Open/create persistent property set. // Open/create persistent property set.
uno::Reference< com::sun::star::ucb::XPersistentPropertySet > xSet( uno::Reference< css::ucb::XPersistentPropertySet > xSet(
getAdditionalPropertySet( true ) ); getAdditionalPropertySet( true ) );
OSL_ENSURE( xSet.is(), OSL_ENSURE( xSet.is(),
@@ -506,7 +506,7 @@ void SAL_CALL ContentImplHelper::removeProperty( const OUString& Name )
// @@@ Need real command environment here, but where to get it from? // @@@ Need real command environment here, but where to get it from?
// XPropertyContainer interface should be replaced by // XPropertyContainer interface should be replaced by
// XCommandProcessor commands! // XCommandProcessor commands!
uno::Reference< com::sun::star::ucb::XCommandEnvironment > xEnv; uno::Reference< css::ucb::XCommandEnvironment > xEnv;
beans::Property aProp beans::Property aProp
= getPropertySetInfo( xEnv )->getPropertyByName( Name ); = getPropertySetInfo( xEnv )->getPropertyByName( Name );
@@ -525,7 +525,7 @@ void SAL_CALL ContentImplHelper::removeProperty( const OUString& Name )
// Try to remove property from dynamic property set. // Try to remove property from dynamic property set.
// Open persistent property set, if exists. // Open persistent property set, if exists.
uno::Reference< com::sun::star::ucb::XPersistentPropertySet > xSet( uno::Reference< css::ucb::XPersistentPropertySet > xSet(
getAdditionalPropertySet( false ) ); getAdditionalPropertySet( false ) );
if ( xSet.is() ) if ( xSet.is() )
{ {
@@ -561,7 +561,7 @@ void SAL_CALL ContentImplHelper::removeProperty( const OUString& Name )
if ( xSet->getPropertySetInfo()->getProperties().getLength() == 0 ) if ( xSet->getPropertySetInfo()->getProperties().getLength() == 0 )
{ {
// Remove empty propertyset from registry. // Remove empty propertyset from registry.
uno::Reference< com::sun::star::ucb::XPropertySetRegistry > uno::Reference< css::ucb::XPropertySetRegistry >
xReg = xSet->getRegistry(); xReg = xSet->getRegistry();
if ( xReg.is() ) if ( xReg.is() )
{ {
@@ -626,13 +626,13 @@ uno::Reference< uno::XInterface > SAL_CALL ContentImplHelper::getParent()
if ( !aURL.isEmpty() ) if ( !aURL.isEmpty() )
{ {
uno::Reference< com::sun::star::ucb::XContentIdentifier > xId( uno::Reference< css::ucb::XContentIdentifier > xId(
new ContentIdentifier( aURL ) ); new ContentIdentifier( aURL ) );
try try
{ {
xParent.set( m_xProvider->queryContent( xId ) ); xParent.set( m_xProvider->queryContent( xId ) );
} }
catch ( com::sun::star::ucb::IllegalIdentifierException const & ) catch ( css::ucb::IllegalIdentifierException const & )
{ {
} }
} }
@@ -648,7 +648,7 @@ void SAL_CALL ContentImplHelper::setParent(
throw lang::NoSupportException(); throw lang::NoSupportException();
} }
uno::Reference< com::sun::star::ucb::XPersistentPropertySet > uno::Reference< css::ucb::XPersistentPropertySet >
ContentImplHelper::getAdditionalPropertySet( bool bCreate ) ContentImplHelper::getAdditionalPropertySet( bool bCreate )
{ {
// Get propertyset from provider. // Get propertyset from provider.
@@ -784,7 +784,7 @@ void ContentImplHelper::notifyPropertySetInfoChange(
} }
void ContentImplHelper::notifyContentEvent( void ContentImplHelper::notifyContentEvent(
const com::sun::star::ucb::ContentEvent& evt ) const const css::ucb::ContentEvent& evt ) const
{ {
if ( !m_pImpl->m_pContentEventListeners ) if ( !m_pImpl->m_pContentEventListeners )
return; return;
@@ -795,7 +795,7 @@ void ContentImplHelper::notifyContentEvent(
{ {
// Propagate event. // Propagate event.
uno::Reference< uno::Reference<
com::sun::star::ucb::XContentEventListener > xListener( css::ucb::XContentEventListener > xListener(
aIter.next(), uno::UNO_QUERY ); aIter.next(), uno::UNO_QUERY );
if ( xListener.is() ) if ( xListener.is() )
xListener->contentEvent( evt ); xListener->contentEvent( evt );
@@ -815,9 +815,9 @@ void ContentImplHelper::inserted()
if ( xParent.is() ) if ( xParent.is() )
{ {
com::sun::star::ucb::ContentEvent aEvt( css::ucb::ContentEvent aEvt(
static_cast< cppu::OWeakObject * >( xParent.get() ), // Source static_cast< cppu::OWeakObject * >( xParent.get() ), // Source
com::sun::star::ucb::ContentAction::INSERTED, // Action css::ucb::ContentAction::INSERTED, // Action
this, // Content this, // Content
xParent->getIdentifier() ); // Id xParent->getIdentifier() ); // Id
xParent->notifyContentEvent( aEvt ); xParent->notifyContentEvent( aEvt );
@@ -826,7 +826,7 @@ void ContentImplHelper::inserted()
void ContentImplHelper::deleted() void ContentImplHelper::deleted()
{ {
uno::Reference< com::sun::star::ucb::XContent > xThis = this; uno::Reference< css::ucb::XContent > xThis = this;
rtl::Reference< ContentImplHelper > xParent rtl::Reference< ContentImplHelper > xParent
= m_xProvider->queryExistingContent( getParentURL() ); = m_xProvider->queryExistingContent( getParentURL() );
@@ -834,18 +834,18 @@ void ContentImplHelper::deleted()
if ( xParent.is() ) if ( xParent.is() )
{ {
// Let parent notify "REMOVED" event. // Let parent notify "REMOVED" event.
com::sun::star::ucb::ContentEvent aEvt( css::ucb::ContentEvent aEvt(
static_cast< cppu::OWeakObject * >( xParent.get() ), static_cast< cppu::OWeakObject * >( xParent.get() ),
com::sun::star::ucb::ContentAction::REMOVED, css::ucb::ContentAction::REMOVED,
this, this,
xParent->getIdentifier() ); xParent->getIdentifier() );
xParent->notifyContentEvent( aEvt ); xParent->notifyContentEvent( aEvt );
} }
// Notify "DELETED" event. // Notify "DELETED" event.
com::sun::star::ucb::ContentEvent aEvt1( css::ucb::ContentEvent aEvt1(
static_cast< cppu::OWeakObject * >( this ), static_cast< cppu::OWeakObject * >( this ),
com::sun::star::ucb::ContentAction::DELETED, css::ucb::ContentAction::DELETED,
this, this,
getIdentifier() ); getIdentifier() );
notifyContentEvent( aEvt1 ); notifyContentEvent( aEvt1 );
@@ -854,9 +854,9 @@ void ContentImplHelper::deleted()
} }
bool ContentImplHelper::exchange( bool ContentImplHelper::exchange(
const uno::Reference< com::sun::star::ucb::XContentIdentifier >& rNewId ) const uno::Reference< css::ucb::XContentIdentifier >& rNewId )
{ {
uno::Reference< com::sun::star::ucb::XContent > xThis = this; uno::Reference< css::ucb::XContent > xThis = this;
osl::ClearableMutexGuard aGuard( m_aMutex ); osl::ClearableMutexGuard aGuard( m_aMutex );
@@ -870,7 +870,7 @@ bool ContentImplHelper::exchange(
return false; return false;
} }
uno::Reference< com::sun::star::ucb::XContentIdentifier > xOldId uno::Reference< css::ucb::XContentIdentifier > xOldId
= getIdentifier(); = getIdentifier();
// Re-insert at provider. // Re-insert at provider.
@@ -881,18 +881,18 @@ bool ContentImplHelper::exchange(
aGuard.clear(); aGuard.clear();
// Notify "EXCHANGED" event. // Notify "EXCHANGED" event.
com::sun::star::ucb::ContentEvent aEvt( css::ucb::ContentEvent aEvt(
static_cast< cppu::OWeakObject * >( this ), static_cast< cppu::OWeakObject * >( this ),
com::sun::star::ucb::ContentAction::EXCHANGED, css::ucb::ContentAction::EXCHANGED,
this, this,
xOldId ); xOldId );
notifyContentEvent( aEvt ); notifyContentEvent( aEvt );
return true; return true;
} }
uno::Reference< com::sun::star::ucb::XCommandInfo > uno::Reference< css::ucb::XCommandInfo >
ContentImplHelper::getCommandInfo( ContentImplHelper::getCommandInfo(
const uno::Reference< com::sun::star::ucb::XCommandEnvironment > & xEnv, const uno::Reference< css::ucb::XCommandEnvironment > & xEnv,
bool bCache ) bool bCache )
{ {
osl::MutexGuard aGuard( m_aMutex ); osl::MutexGuard aGuard( m_aMutex );
@@ -903,13 +903,13 @@ ContentImplHelper::getCommandInfo(
else if ( !bCache ) else if ( !bCache )
m_pImpl->m_xCommandsInfo->reset(); m_pImpl->m_xCommandsInfo->reset();
return uno::Reference< com::sun::star::ucb::XCommandInfo >( return uno::Reference< css::ucb::XCommandInfo >(
m_pImpl->m_xCommandsInfo.get() ); m_pImpl->m_xCommandsInfo.get() );
} }
uno::Reference< beans::XPropertySetInfo > uno::Reference< beans::XPropertySetInfo >
ContentImplHelper::getPropertySetInfo( ContentImplHelper::getPropertySetInfo(
const uno::Reference< com::sun::star::ucb::XCommandEnvironment > & xEnv, const uno::Reference< css::ucb::XCommandEnvironment > & xEnv,
bool bCache ) bool bCache )
{ {
osl::MutexGuard aGuard( m_aMutex ); osl::MutexGuard aGuard( m_aMutex );

View File

@@ -142,7 +142,7 @@ ContentIdentifier::getImplementationId()
// virtual // virtual
Sequence< com::sun::star::uno::Type > SAL_CALL Sequence< css::uno::Type > SAL_CALL
ContentIdentifier::getTypes() ContentIdentifier::getTypes()
throw( RuntimeException, std::exception ) throw( RuntimeException, std::exception )
{ {

View File

@@ -43,7 +43,7 @@ using namespace com::sun::star;
namespace ucbhelper { namespace ucbhelper {
PropertySetInfo::PropertySetInfo( PropertySetInfo::PropertySetInfo(
const uno::Reference< com::sun::star::ucb::XCommandEnvironment >& rxEnv, const uno::Reference< css::ucb::XCommandEnvironment >& rxEnv,
ContentImplHelper* pContent ) ContentImplHelper* pContent )
: m_xEnv( rxEnv ), : m_xEnv( rxEnv ),
m_pProps( nullptr ), m_pProps( nullptr ),
@@ -126,7 +126,7 @@ uno::Sequence< beans::Property > SAL_CALL PropertySetInfo::getProperties()
// Get info for additional properties. // Get info for additional properties.
uno::Reference< com::sun::star::ucb::XPersistentPropertySet > uno::Reference< css::ucb::XPersistentPropertySet >
xSet ( m_pContent->getAdditionalPropertySet( false ) ); xSet ( m_pContent->getAdditionalPropertySet( false ) );
if ( xSet.is() ) if ( xSet.is() )
@@ -226,7 +226,7 @@ bool PropertySetInfo::queryProperty(
CommandProcessorInfo::CommandProcessorInfo( CommandProcessorInfo::CommandProcessorInfo(
const uno::Reference< com::sun::star::ucb::XCommandEnvironment >& rxEnv, const uno::Reference< css::ucb::XCommandEnvironment >& rxEnv,
ContentImplHelper* pContent ) ContentImplHelper* pContent )
: m_xEnv( rxEnv ), : m_xEnv( rxEnv ),
m_pCommands( nullptr ), m_pCommands( nullptr ),
@@ -274,7 +274,7 @@ css::uno::Any SAL_CALL CommandProcessorInfo::queryInterface( const css::uno::Typ
XTYPEPROVIDER_IMPL_2( CommandProcessorInfo, XTYPEPROVIDER_IMPL_2( CommandProcessorInfo,
lang::XTypeProvider, lang::XTypeProvider,
com::sun::star::ucb::XCommandInfo ); css::ucb::XCommandInfo );
@@ -283,7 +283,7 @@ XTYPEPROVIDER_IMPL_2( CommandProcessorInfo,
// virtual // virtual
uno::Sequence< com::sun::star::ucb::CommandInfo > SAL_CALL uno::Sequence< css::ucb::CommandInfo > SAL_CALL
CommandProcessorInfo::getCommands() CommandProcessorInfo::getCommands()
throw( uno::RuntimeException, std::exception ) throw( uno::RuntimeException, std::exception )
{ {
@@ -298,11 +298,9 @@ CommandProcessorInfo::getCommands()
try try
{ {
uno::Sequence< com::sun::star::ucb::CommandInfo > aCmds uno::Sequence< css::ucb::CommandInfo > aCmds
= m_pContent->getCommands( m_xEnv ); = m_pContent->getCommands( m_xEnv );
m_pCommands m_pCommands = new uno::Sequence< css::ucb::CommandInfo >( aCmds );
= new uno::Sequence< com::sun::star::ucb::CommandInfo >(
aCmds );
} }
catch ( uno::RuntimeException const & ) catch ( uno::RuntimeException const & )
{ {
@@ -310,9 +308,7 @@ CommandProcessorInfo::getCommands()
} }
catch ( uno::Exception const & ) catch ( uno::Exception const & )
{ {
m_pCommands m_pCommands = new uno::Sequence< css::ucb::CommandInfo >( 0 );
= new uno::Sequence< com::sun::star::ucb::CommandInfo >(
0 );
} }
} }
} }
@@ -321,31 +317,31 @@ CommandProcessorInfo::getCommands()
// virtual // virtual
com::sun::star::ucb::CommandInfo SAL_CALL css::ucb::CommandInfo SAL_CALL
CommandProcessorInfo::getCommandInfoByName( CommandProcessorInfo::getCommandInfoByName(
const OUString& Name ) const OUString& Name )
throw( com::sun::star::ucb::UnsupportedCommandException, throw( css::ucb::UnsupportedCommandException,
uno::RuntimeException, std::exception ) uno::RuntimeException, std::exception )
{ {
com::sun::star::ucb::CommandInfo aInfo; css::ucb::CommandInfo aInfo;
if ( queryCommand( Name, aInfo ) ) if ( queryCommand( Name, aInfo ) )
return aInfo; return aInfo;
throw com::sun::star::ucb::UnsupportedCommandException(); throw css::ucb::UnsupportedCommandException();
} }
// virtual // virtual
com::sun::star::ucb::CommandInfo SAL_CALL css::ucb::CommandInfo SAL_CALL
CommandProcessorInfo::getCommandInfoByHandle( sal_Int32 Handle ) CommandProcessorInfo::getCommandInfoByHandle( sal_Int32 Handle )
throw( com::sun::star::ucb::UnsupportedCommandException, throw( css::ucb::UnsupportedCommandException,
uno::RuntimeException, std::exception ) uno::RuntimeException, std::exception )
{ {
com::sun::star::ucb::CommandInfo aInfo; css::ucb::CommandInfo aInfo;
if ( queryCommand( Handle, aInfo ) ) if ( queryCommand( Handle, aInfo ) )
return aInfo; return aInfo;
throw com::sun::star::ucb::UnsupportedCommandException(); throw css::ucb::UnsupportedCommandException();
} }
@@ -354,7 +350,7 @@ sal_Bool SAL_CALL CommandProcessorInfo::hasCommandByName(
const OUString& Name ) const OUString& Name )
throw( uno::RuntimeException, std::exception ) throw( uno::RuntimeException, std::exception )
{ {
com::sun::star::ucb::CommandInfo aInfo; css::ucb::CommandInfo aInfo;
return queryCommand( Name, aInfo ); return queryCommand( Name, aInfo );
} }
@@ -363,7 +359,7 @@ sal_Bool SAL_CALL CommandProcessorInfo::hasCommandByName(
sal_Bool SAL_CALL CommandProcessorInfo::hasCommandByHandle( sal_Int32 Handle ) sal_Bool SAL_CALL CommandProcessorInfo::hasCommandByHandle( sal_Int32 Handle )
throw( uno::RuntimeException, std::exception ) throw( uno::RuntimeException, std::exception )
{ {
com::sun::star::ucb::CommandInfo aInfo; css::ucb::CommandInfo aInfo;
return queryCommand( Handle, aInfo ); return queryCommand( Handle, aInfo );
} }
@@ -384,18 +380,18 @@ void CommandProcessorInfo::reset()
bool CommandProcessorInfo::queryCommand( bool CommandProcessorInfo::queryCommand(
const OUString& rName, const OUString& rName,
com::sun::star::ucb::CommandInfo& rCommand ) css::ucb::CommandInfo& rCommand )
{ {
osl::MutexGuard aGuard( m_aMutex ); osl::MutexGuard aGuard( m_aMutex );
getCommands(); getCommands();
const com::sun::star::ucb::CommandInfo* pCommands const css::ucb::CommandInfo* pCommands
= m_pCommands->getConstArray(); = m_pCommands->getConstArray();
sal_Int32 nCount = m_pCommands->getLength(); sal_Int32 nCount = m_pCommands->getLength();
for ( sal_Int32 n = 0; n < nCount; ++n ) for ( sal_Int32 n = 0; n < nCount; ++n )
{ {
const com::sun::star::ucb::CommandInfo& rCurrCommand = pCommands[ n ]; const css::ucb::CommandInfo& rCurrCommand = pCommands[ n ];
if ( rCurrCommand.Name == rName ) if ( rCurrCommand.Name == rName )
{ {
rCommand = rCurrCommand; rCommand = rCurrCommand;
@@ -409,18 +405,17 @@ bool CommandProcessorInfo::queryCommand(
bool CommandProcessorInfo::queryCommand( bool CommandProcessorInfo::queryCommand(
sal_Int32 nHandle, sal_Int32 nHandle,
com::sun::star::ucb::CommandInfo& rCommand ) css::ucb::CommandInfo& rCommand )
{ {
osl::MutexGuard aGuard( m_aMutex ); osl::MutexGuard aGuard( m_aMutex );
getCommands(); getCommands();
const com::sun::star::ucb::CommandInfo* pCommands const css::ucb::CommandInfo* pCommands = m_pCommands->getConstArray();
= m_pCommands->getConstArray();
sal_Int32 nCount = m_pCommands->getLength(); sal_Int32 nCount = m_pCommands->getLength();
for ( sal_Int32 n = 0; n < nCount; ++n ) for ( sal_Int32 n = 0; n < nCount; ++n )
{ {
const com::sun::star::ucb::CommandInfo& rCurrCommand = pCommands[ n ]; const css::ucb::CommandInfo& rCurrCommand = pCommands[ n ];
if ( rCurrCommand.Handle == nHandle ) if ( rCurrCommand.Handle == nHandle )
{ {
rCommand = rCurrCommand; rCommand = rCurrCommand;

View File

@@ -47,10 +47,10 @@ namespace ucbhelper
struct InteractionRequest_Impl struct InteractionRequest_Impl
{ {
rtl::Reference< InteractionContinuation > m_xSelection; rtl::Reference< InteractionContinuation > m_xSelection;
com::sun::star::uno::Any m_aRequest; css::uno::Any m_aRequest;
com::sun::star::uno::Sequence< css::uno::Sequence<
com::sun::star::uno::Reference< css::uno::Reference<
com::sun::star::task::XInteractionContinuation > > m_aContinuations; css::task::XInteractionContinuation > > m_aContinuations;
InteractionRequest_Impl() {} InteractionRequest_Impl() {}
explicit InteractionRequest_Impl( const uno::Any & rRequest ) explicit InteractionRequest_Impl( const uno::Any & rRequest )

View File

@@ -697,16 +697,16 @@ void PropertyValueSet::appendPropertySet(
{ {
// Efficient: Get all prop values with one ( remote) call. // Efficient: Get all prop values with one ( remote) call.
Sequence< ::com::sun::star::beans::PropertyValue > aPropValues Sequence< css::beans::PropertyValue > aPropValues
= xPropertyAccess->getPropertyValues(); = xPropertyAccess->getPropertyValues();
const ::com::sun::star::beans::PropertyValue* pPropValues const css::beans::PropertyValue* pPropValues
= aPropValues.getConstArray(); = aPropValues.getConstArray();
sal_Int32 nValuesCount = aPropValues.getLength(); sal_Int32 nValuesCount = aPropValues.getLength();
for ( sal_Int32 n = 0; n < nValuesCount; ++n ) for ( sal_Int32 n = 0; n < nValuesCount; ++n )
{ {
const ::com::sun::star::beans::PropertyValue& rPropValue const css::beans::PropertyValue& rPropValue
= pPropValues[ n ]; = pPropValues[ n ];
// Find info for current property value. // Find info for current property value.

View File

@@ -49,10 +49,8 @@ Contents;
struct ContentProviderImplHelper_Impl struct ContentProviderImplHelper_Impl
{ {
uno::Reference< com::sun::star::ucb::XPropertySetRegistry > uno::Reference< css::ucb::XPropertySetRegistry > m_xPropertySetRegistry;
m_xPropertySetRegistry; Contents m_aContents;
Contents
m_aContents;
}; };
} // namespace ucbhelper_impl } // namespace ucbhelper_impl
@@ -99,7 +97,7 @@ css::uno::Any SAL_CALL ContentProviderImplHelper::queryInterface( const css::uno
XTYPEPROVIDER_IMPL_3( ContentProviderImplHelper, XTYPEPROVIDER_IMPL_3( ContentProviderImplHelper,
lang::XTypeProvider, lang::XTypeProvider,
lang::XServiceInfo, lang::XServiceInfo,
com::sun::star::ucb::XContentProvider ); css::ucb::XContentProvider );
// virtual // virtual
sal_Bool SAL_CALL ContentProviderImplHelper::supportsService( sal_Bool SAL_CALL ContentProviderImplHelper::supportsService(
@@ -111,8 +109,8 @@ sal_Bool SAL_CALL ContentProviderImplHelper::supportsService(
// virtual // virtual
sal_Int32 SAL_CALL ContentProviderImplHelper::compareContentIds( sal_Int32 SAL_CALL ContentProviderImplHelper::compareContentIds(
const uno::Reference< com::sun::star::ucb::XContentIdentifier >& Id1, const uno::Reference< css::ucb::XContentIdentifier >& Id1,
const uno::Reference< com::sun::star::ucb::XContentIdentifier >& Id2 ) const uno::Reference< css::ucb::XContentIdentifier >& Id2 )
throw( uno::RuntimeException, std::exception ) throw( uno::RuntimeException, std::exception )
{ {
// Simply do a string compare. // Simply do a string compare.
@@ -162,8 +160,7 @@ void ContentProviderImplHelper::removeContent( ContentImplHelper* pContent )
rtl::Reference< ContentImplHelper > rtl::Reference< ContentImplHelper >
ContentProviderImplHelper::queryExistingContent( ContentProviderImplHelper::queryExistingContent(
const uno::Reference< com::sun::star::ucb::XContentIdentifier >& const uno::Reference< css::ucb::XContentIdentifier >& Identifier )
Identifier )
{ {
return queryExistingContent( Identifier->getContentIdentifier() ); return queryExistingContent( Identifier->getContentIdentifier() );
} }
@@ -234,7 +231,7 @@ void ContentProviderImplHelper::registerNewContent(
} }
} }
uno::Reference< com::sun::star::ucb::XPropertySetRegistry > uno::Reference< css::ucb::XPropertySetRegistry >
ContentProviderImplHelper::getAdditionalPropertySetRegistry() ContentProviderImplHelper::getAdditionalPropertySetRegistry()
{ {
// Get propertyset registry. // Get propertyset registry.
@@ -243,8 +240,8 @@ ContentProviderImplHelper::getAdditionalPropertySetRegistry()
if ( !m_pImpl->m_xPropertySetRegistry.is() ) if ( !m_pImpl->m_xPropertySetRegistry.is() )
{ {
uno::Reference< com::sun::star::ucb::XPropertySetRegistryFactory > uno::Reference< css::ucb::XPropertySetRegistryFactory >
xRegFac = com::sun::star::ucb::Store::create( m_xContext ); xRegFac = css::ucb::Store::create( m_xContext );
// Open/create a registry. // Open/create a registry.
m_pImpl->m_xPropertySetRegistry m_pImpl->m_xPropertySetRegistry
@@ -258,7 +255,7 @@ ContentProviderImplHelper::getAdditionalPropertySetRegistry()
return m_pImpl->m_xPropertySetRegistry; return m_pImpl->m_xPropertySetRegistry;
} }
uno::Reference< com::sun::star::ucb::XPersistentPropertySet > uno::Reference< css::ucb::XPersistentPropertySet >
ContentProviderImplHelper::getAdditionalPropertySet( ContentProviderImplHelper::getAdditionalPropertySet(
const OUString& rKey, bool bCreate ) const OUString& rKey, bool bCreate )
{ {
@@ -268,12 +265,12 @@ ContentProviderImplHelper::getAdditionalPropertySet(
if ( m_pImpl->m_xPropertySetRegistry.is() ) if ( m_pImpl->m_xPropertySetRegistry.is() )
{ {
// Open/create persistent property set. // Open/create persistent property set.
return uno::Reference< com::sun::star::ucb::XPersistentPropertySet >( return uno::Reference< css::ucb::XPersistentPropertySet >(
m_pImpl->m_xPropertySetRegistry->openPropertySet( m_pImpl->m_xPropertySetRegistry->openPropertySet(
rKey, bCreate ) ); rKey, bCreate ) );
} }
return uno::Reference< com::sun::star::ucb::XPersistentPropertySet >(); return uno::Reference< css::ucb::XPersistentPropertySet >();
} }
bool ContentProviderImplHelper::renameAdditionalPropertySet( bool ContentProviderImplHelper::renameAdditionalPropertySet(
@@ -341,7 +338,7 @@ bool ContentProviderImplHelper::renameAdditionalPropertySet(
else else
{ {
// Get old property set, if exists. // Get old property set, if exists.
uno::Reference< com::sun::star::ucb::XPersistentPropertySet > xOldSet uno::Reference< css::ucb::XPersistentPropertySet > xOldSet
= getAdditionalPropertySet( rOldKey, false ); = getAdditionalPropertySet( rOldKey, false );
if ( xOldSet.is() ) if ( xOldSet.is() )
{ {
@@ -425,7 +422,7 @@ bool ContentProviderImplHelper::copyAdditionalPropertySet(
else else
{ {
// Get old property set, if exists. // Get old property set, if exists.
uno::Reference< com::sun::star::ucb::XPersistentPropertySet > uno::Reference< css::ucb::XPersistentPropertySet >
xOldPropSet = getAdditionalPropertySet( rSourceKey, false ); xOldPropSet = getAdditionalPropertySet( rSourceKey, false );
if ( !xOldPropSet.is() ) if ( !xOldPropSet.is() )
return false; return false;
@@ -451,7 +448,7 @@ bool ContentProviderImplHelper::copyAdditionalPropertySet(
if ( nCount ) if ( nCount )
{ {
// Fail, if property set with new key already exists. // Fail, if property set with new key already exists.
uno::Reference< com::sun::star::ucb::XPersistentPropertySet > uno::Reference< css::ucb::XPersistentPropertySet >
xNewPropSet xNewPropSet
= getAdditionalPropertySet( rTargetKey, false ); = getAdditionalPropertySet( rTargetKey, false );
if ( xNewPropSet.is() ) if ( xNewPropSet.is() )

View File

@@ -148,7 +148,7 @@ namespace ucbhelper
struct ResultSet_Impl struct ResultSet_Impl
{ {
uno::Reference< uno::XComponentContext > m_xContext; uno::Reference< uno::XComponentContext > m_xContext;
uno::Reference< com::sun::star::ucb::XCommandEnvironment > m_xEnv; uno::Reference< css::ucb::XCommandEnvironment > m_xEnv;
uno::Reference< beans::XPropertySetInfo > m_xPropSetInfo; uno::Reference< beans::XPropertySetInfo > m_xPropSetInfo;
uno::Reference< sdbc::XResultSetMetaData > m_xMetaData; uno::Reference< sdbc::XResultSetMetaData > m_xMetaData;
uno::Sequence< beans::Property > m_aProperties; uno::Sequence< beans::Property > m_aProperties;
@@ -164,8 +164,7 @@ struct ResultSet_Impl
const uno::Reference< uno::XComponentContext >& rxContext, const uno::Reference< uno::XComponentContext >& rxContext,
const uno::Sequence< beans::Property >& rProperties, const uno::Sequence< beans::Property >& rProperties,
const rtl::Reference< ResultSetDataSupplier >& rDataSupplier, const rtl::Reference< ResultSetDataSupplier >& rDataSupplier,
const uno::Reference< com::sun::star::ucb::XCommandEnvironment >& const uno::Reference< css::ucb::XCommandEnvironment >& rxEnv );
rxEnv );
inline ~ResultSet_Impl(); inline ~ResultSet_Impl();
}; };
@@ -173,7 +172,7 @@ inline ResultSet_Impl::ResultSet_Impl(
const uno::Reference< uno::XComponentContext >& rxContext, const uno::Reference< uno::XComponentContext >& rxContext,
const uno::Sequence< beans::Property >& rProperties, const uno::Sequence< beans::Property >& rProperties,
const rtl::Reference< ResultSetDataSupplier >& rDataSupplier, const rtl::Reference< ResultSetDataSupplier >& rDataSupplier,
const uno::Reference< com::sun::star::ucb::XCommandEnvironment >& rxEnv ) const uno::Reference< css::ucb::XCommandEnvironment >& rxEnv )
: m_xContext( rxContext ), : m_xContext( rxContext ),
m_xEnv( rxEnv ), m_xEnv( rxEnv ),
m_aProperties( rProperties ), m_aProperties( rProperties ),
@@ -209,7 +208,7 @@ ResultSet::ResultSet(
rxContext, rxContext,
rProperties, rProperties,
rDataSupplier, rDataSupplier,
uno::Reference< com::sun::star::ucb::XCommandEnvironment >() ) ) uno::Reference< css::ucb::XCommandEnvironment >() ) )
{ {
rDataSupplier->m_pResultSet = this; rDataSupplier->m_pResultSet = this;
} }
@@ -219,7 +218,7 @@ ResultSet::ResultSet(
const uno::Reference< uno::XComponentContext >& rxContext, const uno::Reference< uno::XComponentContext >& rxContext,
const uno::Sequence< beans::Property >& rProperties, const uno::Sequence< beans::Property >& rProperties,
const rtl::Reference< ResultSetDataSupplier >& rDataSupplier, const rtl::Reference< ResultSetDataSupplier >& rDataSupplier,
const uno::Reference< com::sun::star::ucb::XCommandEnvironment >& rxEnv ) const uno::Reference< css::ucb::XCommandEnvironment >& rxEnv )
: m_pImpl( new ResultSet_Impl( rxContext, rProperties, rDataSupplier, rxEnv ) ) : m_pImpl( new ResultSet_Impl( rxContext, rProperties, rDataSupplier, rxEnv ) )
{ {
rDataSupplier->m_pResultSet = this; rDataSupplier->m_pResultSet = this;
@@ -273,7 +272,7 @@ XTYPEPROVIDER_IMPL_9( ResultSet,
lang::XTypeProvider, lang::XTypeProvider,
lang::XServiceInfo, lang::XServiceInfo,
lang::XComponent, lang::XComponent,
com::sun::star::ucb::XContentAccess, css::ucb::XContentAccess,
sdbc::XResultSet, sdbc::XResultSet,
sdbc::XResultSetMetaDataSupplier, sdbc::XResultSetMetaDataSupplier,
sdbc::XRow, sdbc::XRow,
@@ -1278,7 +1277,7 @@ OUString SAL_CALL ResultSet::queryContentIdentifierString()
// virtual // virtual
uno::Reference< com::sun::star::ucb::XContentIdentifier > SAL_CALL uno::Reference< css::ucb::XContentIdentifier > SAL_CALL
ResultSet::queryContentIdentifier() ResultSet::queryContentIdentifier()
throw( uno::RuntimeException, std::exception ) throw( uno::RuntimeException, std::exception )
{ {
@@ -1286,19 +1285,19 @@ ResultSet::queryContentIdentifier()
return m_pImpl->m_xDataSupplier->queryContentIdentifier( return m_pImpl->m_xDataSupplier->queryContentIdentifier(
m_pImpl->m_nPos - 1 ); m_pImpl->m_nPos - 1 );
return uno::Reference< com::sun::star::ucb::XContentIdentifier >(); return uno::Reference< css::ucb::XContentIdentifier >();
} }
// virtual // virtual
uno::Reference< com::sun::star::ucb::XContent > SAL_CALL uno::Reference< css::ucb::XContent > SAL_CALL
ResultSet::queryContent() ResultSet::queryContent()
throw( uno::RuntimeException, std::exception ) throw( uno::RuntimeException, std::exception )
{ {
if ( m_pImpl->m_nPos && !m_pImpl->m_bAfterLast ) if ( m_pImpl->m_nPos && !m_pImpl->m_bAfterLast )
return m_pImpl->m_xDataSupplier->queryContent( m_pImpl->m_nPos - 1 ); return m_pImpl->m_xDataSupplier->queryContent( m_pImpl->m_nPos - 1 );
return uno::Reference< com::sun::star::ucb::XContent >(); return uno::Reference< css::ucb::XContent >();
} }
@@ -1535,7 +1534,7 @@ const uno::Sequence< beans::Property >& ResultSet::getProperties()
} }
const uno::Reference< com::sun::star::ucb::XCommandEnvironment >& const uno::Reference< css::ucb::XCommandEnvironment >&
ResultSet::getEnvironment() ResultSet::getEnvironment()
{ {
return m_pImpl->m_xEnv; return m_pImpl->m_xEnv;

View File

@@ -51,7 +51,7 @@ namespace ucbhelper {
ResultSetImplHelper::ResultSetImplHelper( ResultSetImplHelper::ResultSetImplHelper(
const uno::Reference< uno::XComponentContext >& rxContext, const uno::Reference< uno::XComponentContext >& rxContext,
const com::sun::star::ucb::OpenCommandArgument2& rCommand ) const css::ucb::OpenCommandArgument2& rCommand )
: m_pDisposeEventListeners( nullptr ), : m_pDisposeEventListeners( nullptr ),
m_bStatic( false ), m_bStatic( false ),
m_bInitDone( false ), m_bInitDone( false ),
@@ -101,7 +101,7 @@ css::uno::Any SAL_CALL ResultSetImplHelper::queryInterface( const css::uno::Type
XTYPEPROVIDER_IMPL_3( ResultSetImplHelper, XTYPEPROVIDER_IMPL_3( ResultSetImplHelper,
lang::XTypeProvider, lang::XTypeProvider,
lang::XServiceInfo, lang::XServiceInfo,
com::sun::star::ucb::XDynamicResultSet ); css::ucb::XDynamicResultSet );
@@ -170,13 +170,13 @@ void SAL_CALL ResultSetImplHelper::removeEventListener(
// virtual // virtual
uno::Reference< sdbc::XResultSet > SAL_CALL uno::Reference< sdbc::XResultSet > SAL_CALL
ResultSetImplHelper::getStaticResultSet() ResultSetImplHelper::getStaticResultSet()
throw( com::sun::star::ucb::ListenerAlreadySetException, throw( css::ucb::ListenerAlreadySetException,
uno::RuntimeException, std::exception ) uno::RuntimeException, std::exception )
{ {
osl::MutexGuard aGuard( m_aMutex ); osl::MutexGuard aGuard( m_aMutex );
if ( m_xListener.is() ) if ( m_xListener.is() )
throw com::sun::star::ucb::ListenerAlreadySetException(); throw css::ucb::ListenerAlreadySetException();
init( true ); init( true );
return m_xResultSet1; return m_xResultSet1;
@@ -185,15 +185,14 @@ ResultSetImplHelper::getStaticResultSet()
// virtual // virtual
void SAL_CALL ResultSetImplHelper::setListener( void SAL_CALL ResultSetImplHelper::setListener(
const uno::Reference< com::sun::star::ucb::XDynamicResultSetListener >& const uno::Reference< css::ucb::XDynamicResultSetListener >& Listener )
Listener ) throw( css::ucb::ListenerAlreadySetException,
throw( com::sun::star::ucb::ListenerAlreadySetException,
uno::RuntimeException, std::exception ) uno::RuntimeException, std::exception )
{ {
osl::ClearableMutexGuard aGuard( m_aMutex ); osl::ClearableMutexGuard aGuard( m_aMutex );
if ( m_bStatic || m_xListener.is() ) if ( m_bStatic || m_xListener.is() )
throw com::sun::star::ucb::ListenerAlreadySetException(); throw css::ucb::ListenerAlreadySetException();
m_xListener = Listener; m_xListener = Listener;
@@ -209,21 +208,20 @@ void SAL_CALL ResultSetImplHelper::setListener(
init( false ); init( false );
uno::Any aInfo; uno::Any aInfo;
aInfo <<= com::sun::star::ucb::WelcomeDynamicResultSetStruct( aInfo <<= css::ucb::WelcomeDynamicResultSetStruct(
m_xResultSet1 /* "old" */, m_xResultSet1 /* "old" */,
m_xResultSet2 /* "new" */ ); m_xResultSet2 /* "new" */ );
uno::Sequence< com::sun::star::ucb::ListAction > aActions( 1 ); uno::Sequence< css::ucb::ListAction > aActions {
aActions.getArray()[ 0 ] css::ucb::ListAction(
= com::sun::star::ucb::ListAction(
0, // Position; not used 0, // Position; not used
0, // Count; not used 0, // Count; not used
com::sun::star::ucb::ListActionType::WELCOME, css::ucb::ListActionType::WELCOME,
aInfo ); aInfo ) };
aGuard.clear(); aGuard.clear();
Listener->notify( Listener->notify(
com::sun::star::ucb::ListEvent( css::ucb::ListEvent(
static_cast< cppu::OWeakObject * >( this ), aActions ) ); static_cast< cppu::OWeakObject * >( this ), aActions ) );
} }
@@ -232,37 +230,33 @@ void SAL_CALL ResultSetImplHelper::setListener(
sal_Int16 SAL_CALL ResultSetImplHelper::getCapabilities() sal_Int16 SAL_CALL ResultSetImplHelper::getCapabilities()
throw( uno::RuntimeException, std::exception ) throw( uno::RuntimeException, std::exception )
{ {
// ! com::sun::star::ucb::ContentResultSetCapability::SORTED // ! css::ucb::ContentResultSetCapability::SORTED
return 0; return 0;
} }
// virtual // virtual
void SAL_CALL ResultSetImplHelper::connectToCache( void SAL_CALL ResultSetImplHelper::connectToCache(
const uno::Reference< com::sun::star::ucb::XDynamicResultSet > & const uno::Reference< css::ucb::XDynamicResultSet > & xCache )
xCache ) throw( css::ucb::ListenerAlreadySetException,
throw( com::sun::star::ucb::ListenerAlreadySetException, css::ucb::AlreadyInitializedException,
com::sun::star::ucb::AlreadyInitializedException, css::ucb::ServiceNotFoundException,
com::sun::star::ucb::ServiceNotFoundException,
uno::RuntimeException, std::exception ) uno::RuntimeException, std::exception )
{ {
if ( m_xListener.is() ) if ( m_xListener.is() )
throw com::sun::star::ucb::ListenerAlreadySetException(); throw css::ucb::ListenerAlreadySetException();
if ( m_bStatic ) if ( m_bStatic )
throw com::sun::star::ucb::ListenerAlreadySetException(); throw css::ucb::ListenerAlreadySetException();
uno::Reference< com::sun::star::ucb::XSourceInitialization > uno::Reference< css::ucb::XSourceInitialization > xTarget( xCache, uno::UNO_QUERY );
xTarget( xCache, uno::UNO_QUERY );
if ( xTarget.is() ) if ( xTarget.is() )
{ {
uno::Reference< uno::Reference< css::ucb::XCachedDynamicResultSetStubFactory > xStubFactory;
com::sun::star::ucb::XCachedDynamicResultSetStubFactory >
xStubFactory;
try try
{ {
xStubFactory xStubFactory
= com::sun::star::ucb::CachedDynamicResultSetStubFactory::create( = css::ucb::CachedDynamicResultSetStubFactory::create(
m_xContext ); m_xContext );
} }
catch ( uno::Exception const & ) catch ( uno::Exception const & )
@@ -276,7 +270,7 @@ void SAL_CALL ResultSetImplHelper::connectToCache(
return; return;
} }
} }
throw com::sun::star::ucb::ServiceNotFoundException(); throw css::ucb::ServiceNotFoundException();
} }

View File

@@ -25,7 +25,7 @@ using namespace ucbhelper;
SimpleCertificateValidationRequest::SimpleCertificateValidationRequest( const sal_Int32 & lCertificateValidity, SimpleCertificateValidationRequest::SimpleCertificateValidationRequest( const sal_Int32 & lCertificateValidity,
const com::sun::star::uno::Reference<com::sun::star::security::XCertificate>& certificate, const css::uno::Reference<css::security::XCertificate>& certificate,
const OUString & hostname) const OUString & hostname)
{ {
// Fill request... // Fill request...

View File

@@ -34,8 +34,8 @@ namespace ucbhelper {
* supply a new name. * supply a new name.
*/ */
class InteractionSupplyName : public InteractionContinuation, class InteractionSupplyName : public InteractionContinuation,
public com::sun::star::lang::XTypeProvider, public css::lang::XTypeProvider,
public com::sun::star::ucb::XInteractionSupplyName public css::ucb::XInteractionSupplyName
{ {
OUString m_aName; OUString m_aName;
@@ -44,29 +44,29 @@ public:
: InteractionContinuation( pRequest ) {} : InteractionContinuation( pRequest ) {}
// XInterface // XInterface
virtual com::sun::star::uno::Any SAL_CALL virtual css::uno::Any SAL_CALL
queryInterface( const com::sun::star::uno::Type & rType ) queryInterface( const css::uno::Type & rType )
throw( com::sun::star::uno::RuntimeException, std::exception ) override; throw( css::uno::RuntimeException, std::exception ) override;
virtual void SAL_CALL acquire() virtual void SAL_CALL acquire()
throw() override; throw() override;
virtual void SAL_CALL release() virtual void SAL_CALL release()
throw() override; throw() override;
// XTypeProvider // XTypeProvider
virtual com::sun::star::uno::Sequence< com::sun::star::uno::Type > SAL_CALL virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes() getTypes()
throw( com::sun::star::uno::RuntimeException, std::exception ) override; throw( css::uno::RuntimeException, std::exception ) override;
virtual com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL virtual css::uno::Sequence< sal_Int8 > SAL_CALL
getImplementationId() getImplementationId()
throw( com::sun::star::uno::RuntimeException, std::exception ) override; throw( css::uno::RuntimeException, std::exception ) override;
// XInteractionContinuation // XInteractionContinuation
virtual void SAL_CALL select() virtual void SAL_CALL select()
throw( com::sun::star::uno::RuntimeException, std::exception ) override; throw( css::uno::RuntimeException, std::exception ) override;
// XInteractionSupplyName // XInteractionSupplyName
virtual void SAL_CALL setName( const OUString& Name ) virtual void SAL_CALL setName( const OUString& Name )
throw ( com::sun::star::uno::RuntimeException, std::exception ) override; throw ( css::uno::RuntimeException, std::exception ) override;
// Non-interface methods. // Non-interface methods.