summaryrefslogtreecommitdiff
path: root/sd/workben
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@sun.com>2010-04-13 09:17:28 +0200
committerFrank Schoenheit [fs] <frank.schoenheit@sun.com>2010-04-13 09:17:28 +0200
commitf4773f56d7861bd5354ceb93d35ffda50276bcd7 (patch)
tree0e8e48e5a76d2347fd933bfa7e0f370423f12f6c /sd/workben
parent409b6bcfcc3c8baa285d1bcb16f8063682a952a9 (diff)
slidecopy: adjusted to new XToolPanel
Diffstat (limited to 'sd/workben')
-rw-r--r--sd/workben/custompanel/ctp_panel.cxx10
-rw-r--r--sd/workben/custompanel/ctp_panel.hxx1
2 files changed, 11 insertions, 0 deletions
diff --git a/sd/workben/custompanel/ctp_panel.cxx b/sd/workben/custompanel/ctp_panel.cxx
index 7fb8ed8aeabe..f36dd897736c 100644
--- a/sd/workben/custompanel/ctp_panel.cxx
+++ b/sd/workben/custompanel/ctp_panel.cxx
@@ -76,6 +76,7 @@ namespace sd { namespace colortoolpanel
using ::com::sun::star::lang::EventObject;
using ::com::sun::star::awt::XDevice;
using ::com::sun::star::awt::XGraphics;
+ using ::com::sun::star::accessibility::XAccessible;
/** === end UNO using === **/
namespace WindowAttribute = ::com::sun::star::awt::WindowAttribute;
namespace PosSize = ::com::sun::star::awt::PosSize;
@@ -171,6 +172,15 @@ namespace sd { namespace colortoolpanel
}
//------------------------------------------------------------------------------------------------------------------
+ Reference< XAccessible > SAL_CALL SingleColorPanel::createAccessible( const Reference< XAccessible >& i_rParentAccessible ) throw (RuntimeException)
+ {
+ (void)i_rParentAccessible;
+ return Reference< XAccessible >( m_xWindow, UNO_QUERY );
+ // TODO: this is, strictly, not correct, as we ignore i_ParentAccessible here. If you are not doing a sample
+ // extension only, you'll want to do this correctly ....
+ }
+
+ //------------------------------------------------------------------------------------------------------------------
Reference< XResourceId > SAL_CALL SingleColorPanel::getResourceId( ) throw (RuntimeException)
{
::osl::MutexGuard aGuard( m_aMutex );
diff --git a/sd/workben/custompanel/ctp_panel.hxx b/sd/workben/custompanel/ctp_panel.hxx
index b42f17e67aae..e82d33ea1b4d 100644
--- a/sd/workben/custompanel/ctp_panel.hxx
+++ b/sd/workben/custompanel/ctp_panel.hxx
@@ -65,6 +65,7 @@ namespace sd { namespace colortoolpanel
// XToolPanel
virtual ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > SAL_CALL getWindow( ) throw (::com::sun::star::uno::RuntimeException);
+ virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL createAccessible( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible >& ParentAccessible ) throw (::com::sun::star::uno::RuntimeException);
// XView
// (no methods)