diff options
Diffstat (limited to 'ucb/source/ucp/file/filinpstr.cxx')
-rw-r--r-- | ucb/source/ucp/file/filinpstr.cxx | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/ucb/source/ucp/file/filinpstr.cxx b/ucb/source/ucp/file/filinpstr.cxx index 8f91e249d5e7..0be04abf2253 100644 --- a/ucb/source/ucp/file/filinpstr.cxx +++ b/ucb/source/ucp/file/filinpstr.cxx @@ -69,6 +69,50 @@ sal_Int32 SAL_CALL XInputStream_impl::getMinorError() } +////////////////////////////////////////////////////////////////////////////////////////// +// XServiceInfo +////////////////////////////////////////////////////////////////////////////////////////// + +rtl::OUString SAL_CALL +XInputStream_impl::getImplementationName() + throw(uno::RuntimeException) +{ + return rtl::OUString(); +} + + + +sal_Bool SAL_CALL +XInputStream_impl::supportsService( const rtl::OUString& ServiceName ) + throw(uno::RuntimeException) +{ + return false; +} + + + +uno::Sequence< rtl::OUString > SAL_CALL +XInputStream_impl::getSupportedServiceNames() + throw( uno::RuntimeException ) +{ + uno::Sequence< rtl::OUString > ret( 0 ); + return ret; +} + + +////////////////////////////////////////////////////////////////////////////////////////// +// XTypeProvider +////////////////////////////////////////////////////////////////////////////////////////// + + +XTYPEPROVIDER_IMPL_4( XInputStream_impl, + lang::XTypeProvider, + lang::XServiceInfo, + io::XSeekable, + io::XInputStream ) + + + uno::Any SAL_CALL XInputStream_impl::queryInterface( const uno::Type& rType ) @@ -76,6 +120,8 @@ XInputStream_impl::queryInterface( { uno::Any aRet = cppu::queryInterface( rType, SAL_STATIC_CAST( io::XInputStream*,this ), + SAL_STATIC_CAST( lang::XTypeProvider*,this ), + SAL_STATIC_CAST( lang::XServiceInfo*,this ), SAL_STATIC_CAST( io::XSeekable*,this ) ); return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType ); } |