summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat@free.fr>2012-11-30 17:39:51 +0100
committerCédric Bosdonnat <cedric.bosdonnat@free.fr>2012-11-30 22:15:38 +0100
commit316656755caabf4797391c46338c58945908837d (patch)
tree722d376aaf838cacd372e1f4a0f993274508df70 /sd
parentebb4150463ef97571d8f4ffc0b8189ff94d5cf1a (diff)
API CHANGE: Added XStyle::isHidden() and XStyle::setHidden()
Change-Id: I44770c05d51104b45d94145db8263187205daa84
Diffstat (limited to 'sd')
-rw-r--r--sd/inc/stlsheet.hxx2
-rw-r--r--sd/source/core/stlsheet.cxx16
2 files changed, 18 insertions, 0 deletions
diff --git a/sd/inc/stlsheet.hxx b/sd/inc/stlsheet.hxx
index 191bcf97b471..11942bb87f20 100644
--- a/sd/inc/stlsheet.hxx
+++ b/sd/inc/stlsheet.hxx
@@ -92,6 +92,8 @@ public:
virtual sal_Bool SAL_CALL isInUse( ) throw(::com::sun::star::uno::RuntimeException);
virtual ::rtl::OUString SAL_CALL getParentStyle( ) throw(::com::sun::star::uno::RuntimeException);
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);
// XPropertySet
virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() throw(::com::sun::star::uno::RuntimeException);
diff --git a/sd/source/core/stlsheet.cxx b/sd/source/core/stlsheet.cxx
index ef25721d52aa..13d1a5e2738d 100644
--- a/sd/source/core/stlsheet.cxx
+++ b/sd/source/core/stlsheet.cxx
@@ -1024,6 +1024,22 @@ void SAL_CALL SdStyleSheet::setParentStyle( const OUString& rParentName ) throw
}
}
+sal_Bool SAL_CALL SdStyleSheet::isHidden() throw(RuntimeException)
+{
+ SolarMutexGuard aGuard;
+ throwIfDisposed();
+
+ return IsHidden();
+}
+
+void SAL_CALL SdStyleSheet::setHidden( sal_Bool bHidden ) throw(RuntimeException)
+{
+ SolarMutexGuard aGuard;
+ throwIfDisposed();
+
+ return SetHidden( bHidden );
+}
+
// --------------------------------------------------------------------
// XPropertySet
// --------------------------------------------------------------------