diff options
Diffstat (limited to 'sw/inc/unostyle.hxx')
-rw-r--r-- | sw/inc/unostyle.hxx | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/sw/inc/unostyle.hxx b/sw/inc/unostyle.hxx index 72b6b04cc24e..9a56b5c409e2 100644 --- a/sw/inc/unostyle.hxx +++ b/sw/inc/unostyle.hxx @@ -246,6 +246,35 @@ protected: virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew) override; }; + +class SwTableAutoFormat; + +/// A text table style is a uno api wrapper for a SwTableAutoFormat +class SwXTextTableStyle : public cppu::WeakImplHelper<css::style::XStyle, css::lang::XServiceInfo> +{ + OUString m_sTableAutoFormatName; + SwDocShell* m_pDocShell; + + SwTableAutoFormat* GetTableAutoFormat(); +public: + SwXTextTableStyle(SwDocShell* pDocShell, const OUString& rTableAutoFormatName); + //XStyle + virtual sal_Bool SAL_CALL isUserDefined() throw (css::uno::RuntimeException, std::exception) override; + virtual sal_Bool SAL_CALL isInUse() throw (css::uno::RuntimeException, std::exception) override; + virtual OUString SAL_CALL getParentStyle() throw (css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL setParentStyle(const OUString& aParentStyle ) throw (css::container::NoSuchElementException, css::uno::RuntimeException, std::exception) override; + + //XNamed + virtual OUString SAL_CALL getName() throw(css::uno::RuntimeException, std::exception) override; + virtual void SAL_CALL setName(const OUString& rName) throw(css::uno::RuntimeException, std::exception) override; + + //XServiceInfo + virtual OUString SAL_CALL getImplementationName() throw(css::uno::RuntimeException, std::exception) override; + virtual sal_Bool SAL_CALL supportsService(const OUString& rServiceName) throw(css::uno::RuntimeException, std::exception) override; + virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() throw(css::uno::RuntimeException, std::exception) override; + + static css::uno::Reference<css::style::XStyle> CreateXTextTableStyle(SwDocShell* pDocShell, const OUString& rTableAutoFormatName); +}; #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |