summaryrefslogtreecommitdiff
path: root/svx/source/inc/AccessibleFrameSelector.hxx
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2008-07-07 12:03:45 +0000
committerRüdiger Timm <rt@openoffice.org>2008-07-07 12:03:45 +0000
commitf0ab13fdee79bfd55e129ccde57f26959142d0a0 (patch)
treeb461edb2a900f26bfdb45483074681c9db946e44 /svx/source/inc/AccessibleFrameSelector.hxx
parentf29682c7a691ba19ba8b60747ad949419024f1f2 (diff)
INTEGRATION: CWS tbe34 (1.5.116); FILE MERGED
2008/06/24 14:10:16 tbe 1.5.116.1: #i85353# AccessibleFrameSelector is incomplete
Diffstat (limited to 'svx/source/inc/AccessibleFrameSelector.hxx')
-rw-r--r--svx/source/inc/AccessibleFrameSelector.hxx27
1 files changed, 24 insertions, 3 deletions
diff --git a/svx/source/inc/AccessibleFrameSelector.hxx b/svx/source/inc/AccessibleFrameSelector.hxx
index e90a8c84ed5a..8dff4b33f567 100644
--- a/svx/source/inc/AccessibleFrameSelector.hxx
+++ b/svx/source/inc/AccessibleFrameSelector.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: AccessibleFrameSelector.hxx,v $
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
* This file is part of OpenOffice.org.
*
@@ -37,11 +37,16 @@
#include <com/sun/star/accessibility/XAccessible.hpp>
#include <com/sun/star/accessibility/XAccessibleContext.hpp>
#include <com/sun/star/accessibility/XAccessibleComponent.hpp>
+#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.hpp>
#include <tools/resary.hxx>
-#include <cppuhelper/implbase4.hxx>
+#include <cppuhelper/implbase5.hxx>
#include <cppuhelper/interfacecontainer.hxx>
+#include <comphelper/accessibleeventnotifier.hxx>
#include <svx/framebordertype.hxx>
+class VclSimpleEvent;
+class VclWindowEvent;
+
namespace svx {
class FrameSelector;
@@ -51,10 +56,11 @@ namespace a11y {
// ============================================================================
class AccFrameSelector :
- public ::cppu::WeakImplHelper4<
+ public ::cppu::WeakImplHelper5<
::com::sun::star::accessibility::XAccessible,
::com::sun::star::accessibility::XAccessibleContext,
::com::sun::star::accessibility::XAccessibleComponent,
+ ::com::sun::star::accessibility::XAccessibleEventBroadcaster,
::com::sun::star::lang::XServiceInfo
>,
public Resource
@@ -98,6 +104,10 @@ public:
virtual sal_Int32 SAL_CALL getForeground( ) throw (::com::sun::star::uno::RuntimeException);
virtual sal_Int32 SAL_CALL getBackground( ) throw (::com::sun::star::uno::RuntimeException);
+ // XAccessibleEventBroadcaster
+ virtual void SAL_CALL addEventListener ( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleEventListener >& xListener) throw (::com::sun::star::uno::RuntimeException);
+ virtual void SAL_CALL removeEventListener ( const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleEventListener >& xListener) throw (::com::sun::star::uno::RuntimeException);
+
//XServiceInfo
virtual ::rtl::OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException);
virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException);
@@ -106,6 +116,15 @@ public:
void Invalidate();
void NotifyFocusListeners(sal_Bool bGetFocus);
+protected:
+ DECL_LINK( WindowEventListener, VclSimpleEvent* );
+
+ virtual void ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent );
+
+ void NotifyAccessibleEvent( const sal_Int16 _nEventId,
+ const ::com::sun::star::uno::Any& _rOldValue,
+ const ::com::sun::star::uno::Any& _rNewValue );
+
private:
void IsValid() throw (::com::sun::star::uno::RuntimeException);
@@ -120,6 +139,8 @@ private:
ResStringArray maNames;
ResStringArray maDescriptions;
+
+ ::comphelper::AccessibleEventNotifier::TClientId mnClientId;
};
// ============================================================================