From 6cf68af560b45b753836c4d3dc8b00aef1a34123 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 19 Jan 2017 17:47:22 +0100 Subject: New loplugin:dynexcspec: Add @throws documentation, writerfilter Change-Id: I7e84da00d943d2849e6d94011f349d064fb658cb --- writerfilter/source/dmapper/DomainMapper_Impl.hxx | 1 + writerfilter/source/dmapper/PropertyMap.hxx | 5 +++++ writerfilter/source/filter/WriterFilterDetection.cxx | 1 + writerfilter/source/ooxml/OOXMLFastContextHandler.hxx | 10 ++++++++++ 4 files changed, 17 insertions(+) (limited to 'writerfilter') diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.hxx b/writerfilter/source/dmapper/DomainMapper_Impl.hxx index d3cc079df9db..3185840dcb51 100644 --- a/writerfilter/source/dmapper/DomainMapper_Impl.hxx +++ b/writerfilter/source/dmapper/DomainMapper_Impl.hxx @@ -458,6 +458,7 @@ private: void GetCurrentLocale(css::lang::Locale& rLocale); void SetNumberFormat(const OUString& rCommand, css::uno::Reference const& xPropertySet, bool bDetectFormat = false); + /// @throws css::uno::Exception css::uno::Reference FindOrCreateFieldMaster(const sal_Char* pFieldMasterService, const OUString& rFieldMasterName) throw(css::uno::Exception); css::uno::Reference const & GetDocumentSettings(); diff --git a/writerfilter/source/dmapper/PropertyMap.hxx b/writerfilter/source/dmapper/PropertyMap.hxx index 9fe090273150..6ab6b4b8285c 100644 --- a/writerfilter/source/dmapper/PropertyMap.hxx +++ b/writerfilter/source/dmapper/PropertyMap.hxx @@ -289,6 +289,11 @@ public: bool bFirst); OUString const & GetPageStyleName( bool bFirstPage = false ) { return bFirstPage ? m_sFirstPageStyleName : m_sFollowPageStyleName; } + /// @throws css::beans::UnknownPropertyException + /// @throws css::beans::PropertyVetoException + /// @throws css::lang::IllegalArgumentException + /// @throws css::lang::WrappedTargetException + /// @throws css::uno::RuntimeException void InheritOrFinalizePageStyles( DomainMapper_Impl& rDM_Impl ) throw ( css::beans::UnknownPropertyException, css::beans::PropertyVetoException, diff --git a/writerfilter/source/filter/WriterFilterDetection.cxx b/writerfilter/source/filter/WriterFilterDetection.cxx index dccd82302d3c..3202721ded5a 100644 --- a/writerfilter/source/filter/WriterFilterDetection.cxx +++ b/writerfilter/source/filter/WriterFilterDetection.cxx @@ -45,6 +45,7 @@ public: uno::Sequence SAL_CALL getSupportedServiceNames() throw (uno::RuntimeException, std::exception) override; }; +/// @throws uno::RuntimeException uno::Sequence SAL_CALL WriterFilterDetection_getSupportedServiceNames() throw (uno::RuntimeException); WriterFilterDetection::WriterFilterDetection() = default; diff --git a/writerfilter/source/ooxml/OOXMLFastContextHandler.hxx b/writerfilter/source/ooxml/OOXMLFastContextHandler.hxx index d0df17fcb30d..f3b70b1fbe11 100644 --- a/writerfilter/source/ooxml/OOXMLFastContextHandler.hxx +++ b/writerfilter/source/ooxml/OOXMLFastContextHandler.hxx @@ -96,6 +96,8 @@ public: virtual ResourceEnum_t getResource() const { return STREAM; } + /// @throws css::uno::RuntimeException + /// @throws css::xml::sax::SAXException virtual void attributes(const css::uno::Reference< css::xml::sax::XFastAttributeList > & Attribs) throw (css::uno::RuntimeException, css::xml::sax::SAXException); virtual void newProperty(Id aId, const OOXMLValue::Pointer_t& pVal); @@ -207,15 +209,23 @@ protected: // the table depth of this context unsigned int mnTableDepth; + /// @throws css::uno::RuntimeException + /// @throws css::xml::sax::SAXException virtual void lcl_startFastElement(Token_t Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > & Attribs) throw (css::uno::RuntimeException, css::xml::sax::SAXException, std::exception); + /// @throws css::uno::RuntimeException + /// @throws css::xml::sax::SAXException virtual void lcl_endFastElement(Token_t Element) throw (css::uno::RuntimeException, css::xml::sax::SAXException, std::exception); + /// @throws css::uno::RuntimeException + /// @throws css::xml::sax::SAXException virtual css::uno::Reference< css::xml::sax::XFastContextHandler > lcl_createFastChildContext(Token_t Element, const css::uno::Reference< css::xml::sax::XFastAttributeList > & Attribs) throw (css::uno::RuntimeException, css::xml::sax::SAXException, std::exception); + /// @throws css::uno::RuntimeException + /// @throws css::xml::sax::SAXException virtual void lcl_characters(const OUString & aChars) throw (css::uno::RuntimeException, css::xml::sax::SAXException, std::exception); -- cgit