diff options
author | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-11-30 17:39:51 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-11-30 22:15:38 +0100 |
commit | 316656755caabf4797391c46338c58945908837d (patch) | |
tree | 722d376aaf838cacd372e1f4a0f993274508df70 /sc | |
parent | ebb4150463ef97571d8f4ffc0b8189ff94d5cf1a (diff) |
API CHANGE: Added XStyle::isHidden() and XStyle::setHidden()
Change-Id: I44770c05d51104b45d94145db8263187205daa84
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/styleuno.hxx | 2 | ||||
-rw-r--r-- | sc/source/ui/unoobj/styleuno.cxx | 17 |
2 files changed, 19 insertions, 0 deletions
diff --git a/sc/inc/styleuno.hxx b/sc/inc/styleuno.hxx index 166405299bd4..00b90f189c6e 100644 --- a/sc/inc/styleuno.hxx +++ b/sc/inc/styleuno.hxx @@ -256,6 +256,8 @@ public: virtual void SAL_CALL setParentStyle( const ::rtl::OUString& aParentStyle ) throw(::com::sun::star::container::NoSuchElementException, ::com::sun::star::uno::RuntimeException); + virtual sal_Bool SAL_CALL isHidden() throw(::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL setHidden( sal_Bool bHidden ) throw(::com::sun::star::uno::RuntimeException); // XNamed virtual ::rtl::OUString SAL_CALL getName() throw(::com::sun::star::uno::RuntimeException); diff --git a/sc/source/ui/unoobj/styleuno.cxx b/sc/source/ui/unoobj/styleuno.cxx index 360cb68b0c93..42bc2de6e187 100644 --- a/sc/source/ui/unoobj/styleuno.cxx +++ b/sc/source/ui/unoobj/styleuno.cxx @@ -1246,6 +1246,23 @@ void SAL_CALL ScStyleObj::setParentStyle( const rtl::OUString& rParentStyle ) } } +sal_Bool SAL_CALL ScStyleObj::isHidden( ) throw (uno::RuntimeException) +{ + SolarMutexGuard aGuard; + SfxStyleSheetBase* pStyle = GetStyle_Impl(); + if (pStyle) + return pStyle->IsHidden(); + return false; +} + +void SAL_CALL ScStyleObj::setHidden( sal_Bool bHidden ) throw (uno::RuntimeException) +{ + SolarMutexGuard aGuard; + SfxStyleSheetBase* pStyle = GetStyle_Impl(); + if (pStyle) + pStyle->SetHidden( bHidden ); +} + // container::XNamed rtl::OUString SAL_CALL ScStyleObj::getName() throw(uno::RuntimeException) |