From 9cc666630dafd3fc6cf65ec5b0048df58a3af5a2 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 19 Jan 2017 17:58:21 +0100 Subject: New loplugin:dynexcspec: Add @throws documentation, embeddedobj Change-Id: Icf9a507a2b1eec0ace22e727bdf7220bfe7096b8 --- embeddedobj/source/inc/docholder.hxx | 3 ++- embeddedobj/source/inc/oleembobj.hxx | 8 +++++++- embeddedobj/source/msole/olepersist.hxx | 2 ++ 3 files changed, 11 insertions(+), 2 deletions(-) (limited to 'embeddedobj') diff --git a/embeddedobj/source/inc/docholder.hxx b/embeddedobj/source/inc/docholder.hxx index 2fac504a68ce..7e8ca8f63ae1 100644 --- a/embeddedobj/source/inc/docholder.hxx +++ b/embeddedobj/source/inc/docholder.hxx @@ -98,12 +98,13 @@ private: const OUString& aContModuleName ); public: - + /// @throws css::uno::Exception static void FindConnectPoints( const css::uno::Reference< css::container::XIndexAccess >& xMenu, sal_Int32 nConnectPoints[2] ) throw ( css::uno::Exception ); + /// @throws css::uno::Exception static css::uno::Reference< css::container::XIndexAccess > MergeMenusForInplace( const css::uno::Reference< css::container::XIndexAccess >& xContMenu, const css::uno::Reference< css::frame::XDispatchProvider >& xContDisp, diff --git a/embeddedobj/source/inc/oleembobj.hxx b/embeddedobj/source/inc/oleembobj.hxx index f018d01c7ad6..628a4bcb2089 100644 --- a/embeddedobj/source/inc/oleembobj.hxx +++ b/embeddedobj/source/inc/oleembobj.hxx @@ -199,11 +199,13 @@ class OleEmbeddedObject : public ::cppu::WeakImplHelper css::uno::Reference< css::uno::XInterface > m_xParent; protected: - + /// @throws css::uno::Exception css::uno::Reference< css::io::XStream > TryToGetAcceptableFormat_Impl( const css::uno::Reference< css::io::XStream >& xStream ) throw ( css::uno::Exception ); + /// @throws css::io::IOException + /// @throws css::uno::RuntimeException css::uno::Reference< css::io::XStream > GetNewFilledTempStream_Impl( const css::uno::Reference< css::io::XInputStream >& xInStream ) throw( css::io::IOException, css::uno::RuntimeException ); @@ -235,6 +237,7 @@ protected: void GetRidOfComponent(); + /// @throws css::uno::Exception void StoreToLocation_Impl( const css::uno::Reference< css::embed::XStorage >& xStorage, const OUString& sEntName, @@ -245,17 +248,20 @@ protected: void StoreObjectToStream( css::uno::Reference< css::io::XOutputStream > const & xOutStream ) throw ( css::uno::Exception ); #endif + /// @throws css::uno::Exception void InsertVisualCache_Impl( const css::uno::Reference< css::io::XStream >& xTargetStream, const css::uno::Reference< css::io::XStream >& xCachedVisualRepresentation ) throw ( css::uno::Exception ); + /// @throws css::uno::Exception void RemoveVisualCache_Impl( const css::uno::Reference< css::io::XStream >& xTargetStream ) throw ( css::uno::Exception ); void SetVisReplInStream( bool bExists ); bool HasVisReplInStream(); + /// @throws css::uno::Exception css::embed::VisualRepresentation GetVisualRepresentationInNativeFormat_Impl( const css::uno::Reference< css::io::XStream >& xCachedVisRepr ) throw ( css::uno::Exception ); diff --git a/embeddedobj/source/msole/olepersist.hxx b/embeddedobj/source/msole/olepersist.hxx index 09975a61f4f5..51adb40d2843 100644 --- a/embeddedobj/source/msole/olepersist.hxx +++ b/embeddedobj/source/msole/olepersist.hxx @@ -34,6 +34,8 @@ namespace com { namespace sun { namespace star { OUString GetNewTempFileURL_Impl( const css::uno::Reference< css::lang::XMultiServiceFactory >& xFactory ); +/// @throws css::io::IOException +/// @throws css::uno::RuntimeException OUString GetNewFilledTempFile_Impl( css::uno::Reference const & xInStream, css::uno::Reference const & xFactory) -- cgit