diff options
author | Jakub Trzebiatowski <ubap.dev@gmail.com> | 2016-06-04 12:02:37 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-06-07 13:12:24 +0000 |
commit | 45a6fdad8101e4ba552ca4d4532d0b03b79dd15a (patch) | |
tree | 262cb8e027b6498bc0843382cdda9f7b0b55f141 /sw/inc/unostyle.hxx | |
parent | 934908168ebdb4a021e18e6bea57accc21d5ad86 (diff) |
sw UNO Cell Style family, SwXTextCellStyle
Cell Family :: getByName
Cell Family :: getElementNames
Cell Family :: getCount
Change-Id: I37d567ee284054f847c704d9fce370d174a0c48c
Reviewed-on: https://gerrit.libreoffice.org/25896
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'sw/inc/unostyle.hxx')
-rw-r--r-- | sw/inc/unostyle.hxx | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/sw/inc/unostyle.hxx b/sw/inc/unostyle.hxx index 43e438d2b71e..8b7401a448cc 100644 --- a/sw/inc/unostyle.hxx +++ b/sw/inc/unostyle.hxx @@ -312,12 +312,15 @@ class SwBoxAutoFormat; class SwXTextCellStyle : public cppu::WeakImplHelper < css::style::XStyle, - css::beans::XPropertySet + css::beans::XPropertySet, + css::lang::XServiceInfo > { + SwDocShell* m_pDocShell; SwBoxAutoFormat& m_rBoxAutoFormat; + OUString m_sParentStyle; public: - SwXTextCellStyle(SwBoxAutoFormat& rBoxAutoFormat); + SwXTextCellStyle(SwDocShell* pDocShell, SwBoxAutoFormat& rBoxAutoFormat, const OUString& sParentStyle); //XStyle virtual sal_Bool SAL_CALL isUserDefined() throw (css::uno::RuntimeException, std::exception) override; @@ -338,6 +341,12 @@ public: virtual void SAL_CALL addVetoableChangeListener(const OUString& PropertyName, const css::uno::Reference<css::beans::XVetoableChangeListener>& aListener) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override; virtual void SAL_CALL removeVetoableChangeListener(const OUString& PropertyName, const css::uno::Reference<css::beans::XVetoableChangeListener>& aListener) throw(css::beans::UnknownPropertyException, css::lang::WrappedTargetException, 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> CreateXTextCellStyle(SwDocShell* pDocShell, const OUString& sName); }; #endif |