diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2024-08-04 08:52:32 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-08-04 16:58:39 +0200 |
commit | 3e05f32dbe8416ec95736174d036cab758f76c1f (patch) | |
tree | 32e0a0c9f4867166b3f66275d2a58a24278f0fb4 /sw/inc/unostyle.hxx | |
parent | f1b582772bb47fb421886fa268d469c1b5ba41bb (diff) |
use more concrete UNO type in writerfilter
Change-Id: If112eea759f828cb07a9a42bd3d86d43078b4bf7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171455
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc/unostyle.hxx')
-rw-r--r-- | sw/inc/unostyle.hxx | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/sw/inc/unostyle.hxx b/sw/inc/unostyle.hxx index b6f4d9abd96b..d4618570bd9e 100644 --- a/sw/inc/unostyle.hxx +++ b/sw/inc/unostyle.hxx @@ -36,6 +36,7 @@ #include "coreframestyle.hxx" #include "istyleaccess.hxx" +#include "unobasestyle.hxx" #include <memory> #include <map> @@ -235,10 +236,9 @@ public: typedef std::map<OUString, sal_Int32> CellStyleNameMap; /// A text table style is a UNO API wrapper for a SwTableAutoFormat -class SwXTextTableStyle final : public cppu::WeakImplHelper +class SwXTextTableStyle final : public cppu::ImplInheritanceHelper < - css::style::XStyle, - css::beans::XPropertySet, + SwXBaseStyle, css::container::XNameContainer, css::lang::XServiceInfo > @@ -328,10 +328,9 @@ public: }; /// A text cell style is a UNO API wrapper for a SwBoxAutoFormat core class -class SwXTextCellStyle final : public cppu::WeakImplHelper +class SwXTextCellStyle final : public cppu::ImplInheritanceHelper < - css::style::XStyle, - css::beans::XPropertySet, + SwXBaseStyle, css::beans::XPropertyState, css::lang::XServiceInfo > @@ -451,6 +450,12 @@ public: virtual OUString SAL_CALL getImplementationName() override; virtual sal_Bool SAL_CALL supportsService(const OUString& rServiceName) override; virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override; + + rtl::Reference<SwXBaseStyle> getStyleByName(const OUString& rName); + rtl::Reference<SwXPageStyle> getPageStyleByName(const OUString& rName); + void insertStyleByName(const OUString& Name, const rtl::Reference<SwXStyle>& Element); +private: + void insertStyleByNameImpl(const rtl::Reference<SwXStyle>& Element, const OUString& sStyleName); }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |