diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-01-19 17:49:12 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-01-19 18:03:11 +0100 |
commit | 8a12673c1727381ce8ab729759c3d9cd2069342e (patch) | |
tree | 654b5c1814e85c21b819e1f3753f49103bc8a1aa /ucb/source/ucp/hierarchy | |
parent | 1aabba2778e3a634be00d8a6eb0388c4aaf07ccf (diff) |
New loplugin:dynexcspec: Add @throws documentation, ucb
Change-Id: I39a50e3f066776ac670a99120e12624af39fa83a
Diffstat (limited to 'ucb/source/ucp/hierarchy')
-rw-r--r-- | ucb/source/ucp/hierarchy/hierarchycontent.hxx | 4 | ||||
-rw-r--r-- | ucb/source/ucp/hierarchy/hierarchydatasource.cxx | 15 | ||||
-rw-r--r-- | ucb/source/ucp/hierarchy/hierarchydatasource.hxx | 1 | ||||
-rw-r--r-- | ucb/source/ucp/hierarchy/hierarchyprovider.cxx | 21 |
4 files changed, 35 insertions, 6 deletions
diff --git a/ucb/source/ucp/hierarchy/hierarchycontent.hxx b/ucb/source/ucp/hierarchy/hierarchycontent.hxx index f1570e82736f..7bcd7a397db4 100644 --- a/ucb/source/ucp/hierarchy/hierarchycontent.hxx +++ b/ucb/source/ucp/hierarchy/hierarchycontent.hxx @@ -163,20 +163,24 @@ private: css::uno::Reference< css::sdbc::XRow > getPropertyValues( const css::uno::Sequence< css::beans::Property >& rProperties ); + /// @throws css::uno::Exception css::uno::Sequence< css::uno::Any > setPropertyValues( const css::uno::Sequence< css::beans::PropertyValue >& rValues, const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) throw( css::uno::Exception, std::exception ); + /// @throws css::uno::Exception void insert( sal_Int32 nNameClashResolve, const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) throw( css::uno::Exception, std::exception ); + /// @throws css::uno::Exception void destroy( bool bDeletePhysical, const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) throw( css::uno::Exception, std::exception ); + /// @throws css::uno::Exception void transfer( const css::ucb::TransferInfo& rInfo, const css::uno::Reference< css::ucb::XCommandEnvironment > & xEnv ) throw( css::uno::Exception, std::exception ); diff --git a/ucb/source/ucp/hierarchy/hierarchydatasource.cxx b/ucb/source/ucp/hierarchy/hierarchydatasource.cxx index a43fd2cb15f9..7f261ed846d3 100644 --- a/ucb/source/ucp/hierarchy/hierarchydatasource.cxx +++ b/ucb/source/ucp/hierarchy/hierarchydatasource.cxx @@ -264,9 +264,20 @@ XTYPEPROVIDER_IMPL_4( HierarchyDataSource, // XServiceInfo methods. +XSERVICEINFO_COMMOM_IMPL( HierarchyDataSource, + OUString( "com.sun.star.comp.ucb.HierarchyDataSource" ) ) +/// @throws css::uno::Exception +static css::uno::Reference< css::uno::XInterface > SAL_CALL +HierarchyDataSource_CreateInstance( const css::uno::Reference< css::lang::XMultiServiceFactory> & rSMgr ) + throw( css::uno::Exception ) +{ + css::lang::XServiceInfo* pX = + static_cast<css::lang::XServiceInfo*>(new HierarchyDataSource( ucbhelper::getComponentContext(rSMgr) )); + return css::uno::Reference< css::uno::XInterface >::query( pX ); +} -XSERVICEINFO_IMPL_0_CTX( HierarchyDataSource, - OUString( "com.sun.star.comp.ucb.HierarchyDataSource" ) ) +css::uno::Sequence< OUString > +HierarchyDataSource::getSupportedServiceNames_Static() { uno::Sequence< OUString > aSNS( 2 ); aSNS[ 0 ] = "com.sun.star.ucb.DefaultHierarchyDataSource"; diff --git a/ucb/source/ucp/hierarchy/hierarchydatasource.hxx b/ucb/source/ucp/hierarchy/hierarchydatasource.hxx index 1ea2a3cdf068..a6b994f7e8df 100644 --- a/ucb/source/ucp/hierarchy/hierarchydatasource.hxx +++ b/ucb/source/ucp/hierarchy/hierarchydatasource.hxx @@ -100,6 +100,7 @@ public: // Non-Interface methods private: + /// @throws css::uno::Exception css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceWithArguments( const OUString & ServiceSpecifier, const css::uno::Sequence< css::uno::Any > & Arguments, diff --git a/ucb/source/ucp/hierarchy/hierarchyprovider.cxx b/ucb/source/ucp/hierarchy/hierarchyprovider.cxx index 66a0346744a0..3a7d3eb582f9 100644 --- a/ucb/source/ucp/hierarchy/hierarchyprovider.cxx +++ b/ucb/source/ucp/hierarchy/hierarchyprovider.cxx @@ -95,11 +95,24 @@ XTYPEPROVIDER_IMPL_4( HierarchyContentProvider, // XServiceInfo methods. +XSERVICEINFO_COMMOM_IMPL( HierarchyContentProvider, + OUString( "com.sun.star.comp.ucb.HierarchyContentProvider" ) ) +/// @throws css::uno::Exception +static css::uno::Reference< css::uno::XInterface > SAL_CALL +HierarchyContentProvider_CreateInstance( const css::uno::Reference< css::lang::XMultiServiceFactory> & rSMgr ) + throw( css::uno::Exception ) +{ + css::lang::XServiceInfo* pX = + static_cast<css::lang::XServiceInfo*>(new HierarchyContentProvider( ucbhelper::getComponentContext(rSMgr) )); + return css::uno::Reference< css::uno::XInterface >::query( pX ); +} -XSERVICEINFO_IMPL_1_CTX( HierarchyContentProvider, - OUString( "com.sun.star.comp.ucb.HierarchyContentProvider" ), - "com.sun.star.ucb.HierarchyContentProvider" ); - +css::uno::Sequence< OUString > +HierarchyContentProvider::getSupportedServiceNames_Static() +{ + css::uno::Sequence< OUString > aSNS { "com.sun.star.ucb.HierarchyContentProvider" }; + return aSNS; +} // Service factory implementation. |