tdf#123936 Formatting files in module winaccessibility with clang-format
Change-Id: I9d5b9697cb241b306d0614fb563feb5594c19887 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105729 Tested-by: Jenkins Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
This commit is contained in:
committed by
Christian Lohmaier
parent
b9e9ac51a7
commit
65717f77c4
@@ -16953,42 +16953,22 @@ vcl/workben/ww6fuzzer.cxx
|
|||||||
vcl/workben/ww8fuzzer.cxx
|
vcl/workben/ww8fuzzer.cxx
|
||||||
vcl/workben/xbmfuzzer.cxx
|
vcl/workben/xbmfuzzer.cxx
|
||||||
vcl/workben/xpmfuzzer.cxx
|
vcl/workben/xpmfuzzer.cxx
|
||||||
winaccessibility/inc/AccComponentEventListener.hxx
|
|
||||||
winaccessibility/inc/AccContainerEventListener.hxx
|
winaccessibility/inc/AccContainerEventListener.hxx
|
||||||
winaccessibility/inc/AccDescendantManagerEventListener.hxx
|
winaccessibility/inc/AccDescendantManagerEventListener.hxx
|
||||||
winaccessibility/inc/AccDialogEventListener.hxx
|
|
||||||
winaccessibility/inc/AccEventListener.hxx
|
|
||||||
winaccessibility/inc/AccFrameEventListener.hxx
|
|
||||||
winaccessibility/inc/AccListEventListener.hxx
|
|
||||||
winaccessibility/inc/AccMenuEventListener.hxx
|
|
||||||
winaccessibility/inc/AccObject.hxx
|
winaccessibility/inc/AccObject.hxx
|
||||||
winaccessibility/inc/AccObjectContainerEventListener.hxx
|
winaccessibility/inc/AccObjectContainerEventListener.hxx
|
||||||
winaccessibility/inc/AccObjectManagerAgent.hxx
|
winaccessibility/inc/AccObjectManagerAgent.hxx
|
||||||
winaccessibility/inc/AccObjectWinManager.hxx
|
winaccessibility/inc/AccObjectWinManager.hxx
|
||||||
winaccessibility/inc/AccParagraphEventListener.hxx
|
|
||||||
winaccessibility/inc/AccTableEventListener.hxx
|
|
||||||
winaccessibility/inc/AccTextComponentEventListener.hxx
|
|
||||||
winaccessibility/inc/AccTopWindowListener.hxx
|
|
||||||
winaccessibility/inc/AccTreeEventListener.hxx
|
|
||||||
winaccessibility/inc/AccWindowEventListener.hxx
|
|
||||||
winaccessibility/inc/ResIDGenerator.hxx
|
|
||||||
winaccessibility/inc/accHelper.hxx
|
|
||||||
winaccessibility/inc/unomsaaevent.hxx
|
|
||||||
winaccessibility/source/UAccCOM/AccAction.cxx
|
winaccessibility/source/UAccCOM/AccAction.cxx
|
||||||
winaccessibility/source/UAccCOM/AccAction.h
|
winaccessibility/source/UAccCOM/AccAction.h
|
||||||
winaccessibility/source/UAccCOM/AccActionBase.cxx
|
winaccessibility/source/UAccCOM/AccActionBase.cxx
|
||||||
winaccessibility/source/UAccCOM/AccActionBase.h
|
|
||||||
winaccessibility/source/UAccCOM/AccComponent.cxx
|
|
||||||
winaccessibility/source/UAccCOM/AccComponent.h
|
winaccessibility/source/UAccCOM/AccComponent.h
|
||||||
winaccessibility/source/UAccCOM/AccComponentBase.cxx
|
|
||||||
winaccessibility/source/UAccCOM/AccComponentBase.h
|
|
||||||
winaccessibility/source/UAccCOM/AccEditableText.cxx
|
winaccessibility/source/UAccCOM/AccEditableText.cxx
|
||||||
winaccessibility/source/UAccCOM/AccEditableText.h
|
winaccessibility/source/UAccCOM/AccEditableText.h
|
||||||
winaccessibility/source/UAccCOM/AccHyperLink.cxx
|
winaccessibility/source/UAccCOM/AccHyperLink.cxx
|
||||||
winaccessibility/source/UAccCOM/AccHyperLink.h
|
winaccessibility/source/UAccCOM/AccHyperLink.h
|
||||||
winaccessibility/source/UAccCOM/AccHypertext.cxx
|
winaccessibility/source/UAccCOM/AccHypertext.cxx
|
||||||
winaccessibility/source/UAccCOM/AccHypertext.h
|
winaccessibility/source/UAccCOM/AccHypertext.h
|
||||||
winaccessibility/source/UAccCOM/AccImage.cxx
|
|
||||||
winaccessibility/source/UAccCOM/AccImage.h
|
winaccessibility/source/UAccCOM/AccImage.h
|
||||||
winaccessibility/source/UAccCOM/AccRelation.cxx
|
winaccessibility/source/UAccCOM/AccRelation.cxx
|
||||||
winaccessibility/source/UAccCOM/AccRelation.h
|
winaccessibility/source/UAccCOM/AccRelation.h
|
||||||
@@ -16997,30 +16977,22 @@ winaccessibility/source/UAccCOM/AccTable.h
|
|||||||
winaccessibility/source/UAccCOM/AccText.cxx
|
winaccessibility/source/UAccCOM/AccText.cxx
|
||||||
winaccessibility/source/UAccCOM/AccText.h
|
winaccessibility/source/UAccCOM/AccText.h
|
||||||
winaccessibility/source/UAccCOM/AccTextBase.cxx
|
winaccessibility/source/UAccCOM/AccTextBase.cxx
|
||||||
winaccessibility/source/UAccCOM/AccTextBase.h
|
|
||||||
winaccessibility/source/UAccCOM/AccValue.cxx
|
|
||||||
winaccessibility/source/UAccCOM/AccValue.h
|
winaccessibility/source/UAccCOM/AccValue.h
|
||||||
winaccessibility/source/UAccCOM/AccessibleKeyStroke.h
|
|
||||||
winaccessibility/source/UAccCOM/EnumVariant.cxx
|
winaccessibility/source/UAccCOM/EnumVariant.cxx
|
||||||
winaccessibility/source/UAccCOM/EnumVariant.h
|
winaccessibility/source/UAccCOM/EnumVariant.h
|
||||||
winaccessibility/source/UAccCOM/MAccessible.cxx
|
winaccessibility/source/UAccCOM/MAccessible.cxx
|
||||||
winaccessibility/source/UAccCOM/MAccessible.h
|
winaccessibility/source/UAccCOM/MAccessible.h
|
||||||
winaccessibility/source/UAccCOM/Resource.h
|
winaccessibility/source/UAccCOM/Resource.h
|
||||||
winaccessibility/source/UAccCOM/UAccCOM.cxx
|
|
||||||
winaccessibility/source/UAccCOM/UNOXWrapper.cxx
|
|
||||||
winaccessibility/source/UAccCOM/UNOXWrapper.h
|
|
||||||
winaccessibility/source/UAccCOM/acccommon.h
|
winaccessibility/source/UAccCOM/acccommon.h
|
||||||
winaccessibility/source/UAccCOM/stdafx.h
|
winaccessibility/source/UAccCOM/stdafx.h
|
||||||
winaccessibility/source/service/AccComponentEventListener.cxx
|
winaccessibility/source/service/AccComponentEventListener.cxx
|
||||||
winaccessibility/source/service/AccContainerEventListener.cxx
|
winaccessibility/source/service/AccContainerEventListener.cxx
|
||||||
winaccessibility/source/service/AccDescendantManagerEventListener.cxx
|
winaccessibility/source/service/AccDescendantManagerEventListener.cxx
|
||||||
winaccessibility/source/service/AccDialogEventListener.cxx
|
winaccessibility/source/service/AccDialogEventListener.cxx
|
||||||
winaccessibility/source/service/AccEventListener.cxx
|
|
||||||
winaccessibility/source/service/AccFrameEventListener.cxx
|
winaccessibility/source/service/AccFrameEventListener.cxx
|
||||||
winaccessibility/source/service/AccListEventListener.cxx
|
winaccessibility/source/service/AccListEventListener.cxx
|
||||||
winaccessibility/source/service/AccMenuEventListener.cxx
|
winaccessibility/source/service/AccMenuEventListener.cxx
|
||||||
winaccessibility/source/service/AccObject.cxx
|
winaccessibility/source/service/AccObject.cxx
|
||||||
winaccessibility/source/service/AccObjectContainerEventListener.cxx
|
|
||||||
winaccessibility/source/service/AccObjectManagerAgent.cxx
|
winaccessibility/source/service/AccObjectManagerAgent.cxx
|
||||||
winaccessibility/source/service/AccObjectWinManager.cxx
|
winaccessibility/source/service/AccObjectWinManager.cxx
|
||||||
winaccessibility/source/service/AccParagraphEventListener.cxx
|
winaccessibility/source/service/AccParagraphEventListener.cxx
|
||||||
@@ -17029,7 +17001,6 @@ winaccessibility/source/service/AccTextComponentEventListener.cxx
|
|||||||
winaccessibility/source/service/AccTopWindowListener.cxx
|
winaccessibility/source/service/AccTopWindowListener.cxx
|
||||||
winaccessibility/source/service/AccTreeEventListener.cxx
|
winaccessibility/source/service/AccTreeEventListener.cxx
|
||||||
winaccessibility/source/service/AccWindowEventListener.cxx
|
winaccessibility/source/service/AccWindowEventListener.cxx
|
||||||
winaccessibility/source/service/ResIDGenerator.cxx
|
|
||||||
winaccessibility/source/service/msaaservice_impl.cxx
|
winaccessibility/source/service/msaaservice_impl.cxx
|
||||||
writerfilter/inc/dmapper/resourcemodel.hxx
|
writerfilter/inc/dmapper/resourcemodel.hxx
|
||||||
writerfilter/inc/ooxml/OOXMLDocument.hxx
|
writerfilter/inc/ooxml/OOXMLDocument.hxx
|
||||||
|
@@ -25,7 +25,6 @@
|
|||||||
#include <com/sun/star/accessibility/XAccessibleEventListener.hpp>
|
#include <com/sun/star/accessibility/XAccessibleEventListener.hpp>
|
||||||
#include <com/sun/star/accessibility/XAccessible.hpp>
|
#include <com/sun/star/accessibility/XAccessible.hpp>
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AccComponentEventListener is inherited from AccEventListener. It handles the events
|
* AccComponentEventListener is inherited from AccEventListener. It handles the events
|
||||||
* generated by component controls. The accessible roles are: CHECK_BOX, ICON, LABEL,
|
* generated by component controls. The accessible roles are: CHECK_BOX, ICON, LABEL,
|
||||||
@@ -33,31 +32,29 @@
|
|||||||
* It defines the procedure of specific event handling related with components and provides
|
* It defines the procedure of specific event handling related with components and provides
|
||||||
* the detailed support for some related methods.
|
* the detailed support for some related methods.
|
||||||
*/
|
*/
|
||||||
class AccComponentEventListener: public AccEventListener
|
class AccComponentEventListener : public AccEventListener
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
static FILE *output, *output2, *output3, *outacc;//used for debugging
|
static FILE *output, *output2, *output3, *outacc; //used for debugging
|
||||||
public:
|
public:
|
||||||
AccComponentEventListener(css::accessibility::XAccessible* pAcc, AccObjectManagerAgent* Agent);
|
AccComponentEventListener(css::accessibility::XAccessible* pAcc, AccObjectManagerAgent* Agent);
|
||||||
virtual ~AccComponentEventListener() override;
|
virtual ~AccComponentEventListener() override;
|
||||||
|
|
||||||
// XAccessibleEventListener
|
// XAccessibleEventListener
|
||||||
virtual void SAL_CALL notifyEvent( const css::accessibility::AccessibleEventObject& aEvent ) override;
|
virtual void SAL_CALL
|
||||||
|
notifyEvent(const css::accessibility::AccessibleEventObject& aEvent) override;
|
||||||
|
|
||||||
//for value changed event
|
//for value changed event
|
||||||
virtual void HandleValueChangedEvent(
|
virtual void HandleValueChangedEvent(css::uno::Any oldValue, css::uno::Any newValue);
|
||||||
css::uno::Any oldValue, css::uno::Any newValue);
|
|
||||||
|
|
||||||
//for action changed event
|
//for action changed event
|
||||||
virtual void HandleActionChangedEvent();
|
virtual void HandleActionChangedEvent();
|
||||||
|
|
||||||
//for text changed event
|
//for text changed event
|
||||||
virtual void HandleTextChangedEvent(
|
virtual void HandleTextChangedEvent(css::uno::Any oldValue, css::uno::Any newValue);
|
||||||
css::uno::Any oldValue, css::uno::Any newValue);
|
|
||||||
|
|
||||||
//for caret changed event
|
//for caret changed event
|
||||||
virtual void HandleCaretChangedEvent(
|
virtual void HandleCaretChangedEvent(css::uno::Any oldValue, css::uno::Any newValue);
|
||||||
css::uno::Any oldValue, css::uno::Any newValue);
|
|
||||||
|
|
||||||
virtual void SetComponentState(short state, bool enable) override;
|
virtual void SetComponentState(short state, bool enable) override;
|
||||||
virtual void FireStatePropertyChange(short state, bool set) override;
|
virtual void FireStatePropertyChange(short state, bool set) override;
|
||||||
|
@@ -31,22 +31,21 @@
|
|||||||
* It defines the procedure of specific event handling related with dialogs and provides
|
* It defines the procedure of specific event handling related with dialogs and provides
|
||||||
* the detailed support for some related methods.
|
* the detailed support for some related methods.
|
||||||
*/
|
*/
|
||||||
class AccDialogEventListener: public AccEventListener
|
class AccDialogEventListener : public AccEventListener
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AccDialogEventListener(css::accessibility::XAccessible* pAcc, AccObjectManagerAgent* Agent);
|
AccDialogEventListener(css::accessibility::XAccessible* pAcc, AccObjectManagerAgent* Agent);
|
||||||
virtual ~AccDialogEventListener() override;
|
virtual ~AccDialogEventListener() override;
|
||||||
|
|
||||||
//AccessibleEventListener
|
//AccessibleEventListener
|
||||||
virtual void SAL_CALL notifyEvent( const css::accessibility::AccessibleEventObject& aEvent ) override;
|
virtual void SAL_CALL
|
||||||
|
notifyEvent(const css::accessibility::AccessibleEventObject& aEvent) override;
|
||||||
|
|
||||||
//for child changed event
|
//for child changed event
|
||||||
virtual void HandleChildChangedEvent(
|
virtual void HandleChildChangedEvent(css::uno::Any oldValue, css::uno::Any newValue);
|
||||||
css::uno::Any oldValue, css::uno::Any newValue);
|
|
||||||
|
|
||||||
//state changed
|
//state changed
|
||||||
virtual void SetComponentState(short state, bool enable) override;
|
virtual void SetComponentState(short state, bool enable) override;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // INCLUDED_WINACCESSIBILITY_INC_ACCDIALOGEVENTLISTENER_HXX
|
#endif // INCLUDED_WINACCESSIBILITY_INC_ACCDIALOGEVENTLISTENER_HXX
|
||||||
|
@@ -32,24 +32,24 @@ class AccObjectManagerAgent;
|
|||||||
* procedure of all the event handling and provides the basic support for some simple
|
* procedure of all the event handling and provides the basic support for some simple
|
||||||
* methods.
|
* methods.
|
||||||
*/
|
*/
|
||||||
class AccEventListener
|
class AccEventListener : public ::cppu::WeakImplHelper<css::accessibility::XAccessibleEventListener>
|
||||||
: public ::cppu::WeakImplHelper<
|
|
||||||
css::accessibility::XAccessibleEventListener>
|
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
//accessible owner's pointer
|
//accessible owner's pointer
|
||||||
css::uno::Reference<css::accessibility::XAccessible> m_xAccessible;
|
css::uno::Reference<css::accessibility::XAccessible> m_xAccessible;
|
||||||
//agent pointer for objects' manager
|
//agent pointer for objects' manager
|
||||||
AccObjectManagerAgent* pAgent;
|
AccObjectManagerAgent* pAgent;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
AccEventListener( css::accessibility::XAccessible* pAcc, AccObjectManagerAgent* Agent);
|
AccEventListener(css::accessibility::XAccessible* pAcc, AccObjectManagerAgent* Agent);
|
||||||
virtual ~AccEventListener() override;
|
virtual ~AccEventListener() override;
|
||||||
|
|
||||||
// XEventListener
|
// XEventListener
|
||||||
virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) override;
|
virtual void SAL_CALL disposing(const css::lang::EventObject& Source) override;
|
||||||
|
|
||||||
// XAccessibleEventListener
|
// XAccessibleEventListener
|
||||||
virtual void SAL_CALL notifyEvent( const css::accessibility::AccessibleEventObject& aEvent ) override;
|
virtual void SAL_CALL
|
||||||
|
notifyEvent(const css::accessibility::AccessibleEventObject& aEvent) override;
|
||||||
|
|
||||||
//for name changed event
|
//for name changed event
|
||||||
virtual void HandleNameChangedEvent(css::uno::Any name);
|
virtual void HandleNameChangedEvent(css::uno::Any name);
|
||||||
@@ -58,8 +58,7 @@ public:
|
|||||||
virtual void HandleDescriptionChangedEvent(css::uno::Any desc);
|
virtual void HandleDescriptionChangedEvent(css::uno::Any desc);
|
||||||
|
|
||||||
//for state changed event
|
//for state changed event
|
||||||
virtual void HandleStateChangedEvent(
|
virtual void HandleStateChangedEvent(css::uno::Any oldValue, css::uno::Any newValue);
|
||||||
css::uno::Any oldValue, css::uno::Any newValue);
|
|
||||||
virtual void SetComponentState(short state, bool enable);
|
virtual void SetComponentState(short state, bool enable);
|
||||||
virtual void FireStatePropertyChange(short state, bool set);
|
virtual void FireStatePropertyChange(short state, bool set);
|
||||||
virtual void FireStateFocusedChange(bool enable);
|
virtual void FireStateFocusedChange(bool enable);
|
||||||
|
@@ -25,29 +25,27 @@
|
|||||||
#include <com/sun/star/accessibility/XAccessibleEventListener.hpp>
|
#include <com/sun/star/accessibility/XAccessibleEventListener.hpp>
|
||||||
#include <com/sun/star/accessibility/XAccessible.hpp>
|
#include <com/sun/star/accessibility/XAccessible.hpp>
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AccFrameEventListener is inherited from AccEventListener. It handles the events
|
* AccFrameEventListener is inherited from AccEventListener. It handles the events
|
||||||
* generated by Dialogs. The accessible roles are: FRAME and ROOT_PANE.
|
* generated by Dialogs. The accessible roles are: FRAME and ROOT_PANE.
|
||||||
* It defines the procedure of specific event handling related with frames and provides
|
* It defines the procedure of specific event handling related with frames and provides
|
||||||
* the detailed support for some related methods.
|
* the detailed support for some related methods.
|
||||||
*/
|
*/
|
||||||
class AccFrameEventListener: public AccEventListener
|
class AccFrameEventListener : public AccEventListener
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AccFrameEventListener(css::accessibility::XAccessible* pAcc, AccObjectManagerAgent* Agent);
|
AccFrameEventListener(css::accessibility::XAccessible* pAcc, AccObjectManagerAgent* Agent);
|
||||||
virtual ~AccFrameEventListener() override;
|
virtual ~AccFrameEventListener() override;
|
||||||
|
|
||||||
// XAccessibleEventListener
|
// XAccessibleEventListener
|
||||||
virtual void SAL_CALL notifyEvent( const css::accessibility::AccessibleEventObject& aEvent ) override;
|
virtual void SAL_CALL
|
||||||
|
notifyEvent(const css::accessibility::AccessibleEventObject& aEvent) override;
|
||||||
|
|
||||||
//for child changed event
|
//for child changed event
|
||||||
virtual void HandleChildChangedEvent(
|
virtual void HandleChildChangedEvent(css::uno::Any oldValue, css::uno::Any newValue);
|
||||||
css::uno::Any oldValue, css::uno::Any newValue);
|
|
||||||
|
|
||||||
//state changed
|
//state changed
|
||||||
virtual void SetComponentState(short state, bool enable) override;
|
virtual void SetComponentState(short state, bool enable) override;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // INCLUDED_WINACCESSIBILITY_INC_ACCFRAMEEVENTLISTENER_HXX
|
#endif // INCLUDED_WINACCESSIBILITY_INC_ACCFRAMEEVENTLISTENER_HXX
|
||||||
|
@@ -25,28 +25,26 @@
|
|||||||
#include <com/sun/star/accessibility/XAccessibleEventListener.hpp>
|
#include <com/sun/star/accessibility/XAccessibleEventListener.hpp>
|
||||||
#include <com/sun/star/accessibility/XAccessible.hpp>
|
#include <com/sun/star/accessibility/XAccessible.hpp>
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AccListEventListener is inherited from AccDescendantManagerEventListener. It handles
|
* AccListEventListener is inherited from AccDescendantManagerEventListener. It handles
|
||||||
* the events generated by tree controls. The accessible role is: LIST.
|
* the events generated by tree controls. The accessible role is: LIST.
|
||||||
* It defines the procedure of specific event handling related with list components
|
* It defines the procedure of specific event handling related with list components
|
||||||
* and provides the detailed support for some related methods.
|
* and provides the detailed support for some related methods.
|
||||||
*/
|
*/
|
||||||
class AccListEventListener: public AccDescendantManagerEventListener
|
class AccListEventListener : public AccDescendantManagerEventListener
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AccListEventListener(css::accessibility::XAccessible* pAcc, AccObjectManagerAgent* Agent);
|
AccListEventListener(css::accessibility::XAccessible* pAcc, AccObjectManagerAgent* Agent);
|
||||||
virtual ~AccListEventListener() override;
|
virtual ~AccListEventListener() override;
|
||||||
|
|
||||||
// XAccessibleEventListener
|
// XAccessibleEventListener
|
||||||
virtual void SAL_CALL notifyEvent( const css::accessibility::AccessibleEventObject& aEvent ) override;
|
virtual void SAL_CALL
|
||||||
|
notifyEvent(const css::accessibility::AccessibleEventObject& aEvent) override;
|
||||||
|
|
||||||
//for active descendant changed event
|
//for active descendant changed event
|
||||||
virtual void HandleActiveDescendantChangedEvent(
|
virtual void HandleActiveDescendantChangedEvent(css::uno::Any oldValue, css::uno::Any newValue);
|
||||||
css::uno::Any oldValue, css::uno::Any newValue);
|
|
||||||
//for value changed event
|
//for value changed event
|
||||||
virtual void HandleValueChangedEvent(
|
virtual void HandleValueChangedEvent(css::uno::Any oldValue, css::uno::Any newValue) override;
|
||||||
css::uno::Any oldValue, css::uno::Any newValue) override;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // INCLUDED_WINACCESSIBILITY_INC_ACCLISTEVENTLISTENER_HXX
|
#endif // INCLUDED_WINACCESSIBILITY_INC_ACCLISTEVENTLISTENER_HXX
|
||||||
|
@@ -25,25 +25,24 @@
|
|||||||
#include <com/sun/star/accessibility/XAccessibleEventListener.hpp>
|
#include <com/sun/star/accessibility/XAccessibleEventListener.hpp>
|
||||||
#include <com/sun/star/accessibility/XAccessible.hpp>
|
#include <com/sun/star/accessibility/XAccessible.hpp>
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AccMenuEventListener is inherited from AccComponentEventListener. It handles the events
|
* AccMenuEventListener is inherited from AccComponentEventListener. It handles the events
|
||||||
* generated by container controls. The accessible role is: MENU
|
* generated by container controls. The accessible role is: MENU
|
||||||
* It defines the procedure of specific event handling related with menus and provides
|
* It defines the procedure of specific event handling related with menus and provides
|
||||||
* the detailed support for some related methods.
|
* the detailed support for some related methods.
|
||||||
*/
|
*/
|
||||||
class AccMenuEventListener: public AccComponentEventListener
|
class AccMenuEventListener : public AccComponentEventListener
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AccMenuEventListener(css::accessibility::XAccessible* pAcc, AccObjectManagerAgent* Agent);
|
AccMenuEventListener(css::accessibility::XAccessible* pAcc, AccObjectManagerAgent* Agent);
|
||||||
virtual ~AccMenuEventListener() override;
|
virtual ~AccMenuEventListener() override;
|
||||||
|
|
||||||
//AccessibleEventListener
|
//AccessibleEventListener
|
||||||
virtual void SAL_CALL notifyEvent( const css::accessibility::AccessibleEventObject& aEvent ) override;
|
virtual void SAL_CALL
|
||||||
|
notifyEvent(const css::accessibility::AccessibleEventObject& aEvent) override;
|
||||||
|
|
||||||
//for child changed event
|
//for child changed event
|
||||||
virtual void HandleChildChangedEvent(
|
virtual void HandleChildChangedEvent(css::uno::Any oldValue, css::uno::Any newValue);
|
||||||
css::uno::Any oldValue, css::uno::Any newValue);
|
|
||||||
|
|
||||||
//for selection changed event
|
//for selection changed event
|
||||||
virtual void HandleSelectionChangedEventNoArgs();
|
virtual void HandleSelectionChangedEventNoArgs();
|
||||||
|
@@ -25,25 +25,24 @@
|
|||||||
#include <com/sun/star/accessibility/XAccessibleEventListener.hpp>
|
#include <com/sun/star/accessibility/XAccessibleEventListener.hpp>
|
||||||
#include <com/sun/star/accessibility/XAccessible.hpp>
|
#include <com/sun/star/accessibility/XAccessible.hpp>
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AccParagraphEventListener is inherited from AccContainerEventListener. It handles the events
|
* AccParagraphEventListener is inherited from AccContainerEventListener. It handles the events
|
||||||
* generated by container controls. The accessible roles are: PARAGRAPH and HEADING.
|
* generated by container controls. The accessible roles are: PARAGRAPH and HEADING.
|
||||||
* It defines the procedure of specific event handling related with text containsers and provides
|
* It defines the procedure of specific event handling related with text containsers and provides
|
||||||
* the detailed support for some related methods.
|
* the detailed support for some related methods.
|
||||||
*/
|
*/
|
||||||
class AccParagraphEventListener: public AccContainerEventListener
|
class AccParagraphEventListener : public AccContainerEventListener
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AccParagraphEventListener(css::accessibility::XAccessible* pAcc, AccObjectManagerAgent* Agent);
|
AccParagraphEventListener(css::accessibility::XAccessible* pAcc, AccObjectManagerAgent* Agent);
|
||||||
virtual ~AccParagraphEventListener() override;
|
virtual ~AccParagraphEventListener() override;
|
||||||
|
|
||||||
//AccessibleEventListener
|
//AccessibleEventListener
|
||||||
virtual void SAL_CALL notifyEvent( const css::accessibility::AccessibleEventObject& aEvent ) override;
|
virtual void SAL_CALL
|
||||||
|
notifyEvent(const css::accessibility::AccessibleEventObject& aEvent) override;
|
||||||
|
|
||||||
//for caret changed event
|
//for caret changed event
|
||||||
virtual void HandleCaretChangedEvent(
|
virtual void HandleCaretChangedEvent(css::uno::Any oldValue, css::uno::Any newValue);
|
||||||
css::uno::Any oldValue, css::uno::Any newValue);
|
|
||||||
|
|
||||||
virtual void SetComponentState(short state, bool enable) override;
|
virtual void SetComponentState(short state, bool enable) override;
|
||||||
|
|
||||||
|
@@ -25,28 +25,26 @@
|
|||||||
#include <com/sun/star/accessibility/XAccessibleEventListener.hpp>
|
#include <com/sun/star/accessibility/XAccessibleEventListener.hpp>
|
||||||
#include <com/sun/star/accessibility/XAccessible.hpp>
|
#include <com/sun/star/accessibility/XAccessible.hpp>
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AccTableEventListener is inherited from AccDescendantManagerEventListener. It handles
|
* AccTableEventListener is inherited from AccDescendantManagerEventListener. It handles
|
||||||
* the events generated by tree controls. The accessible role is: TABLE.
|
* the events generated by tree controls. The accessible role is: TABLE.
|
||||||
* It defines the procedure of specific event handling related with table components
|
* It defines the procedure of specific event handling related with table components
|
||||||
* and provides the detailed support for some related methods.
|
* and provides the detailed support for some related methods.
|
||||||
*/
|
*/
|
||||||
class AccTableEventListener: public AccDescendantManagerEventListener
|
class AccTableEventListener : public AccDescendantManagerEventListener
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AccTableEventListener(css::accessibility::XAccessible* pAcc, AccObjectManagerAgent* Agent);
|
AccTableEventListener(css::accessibility::XAccessible* pAcc, AccObjectManagerAgent* Agent);
|
||||||
virtual ~AccTableEventListener() override;
|
virtual ~AccTableEventListener() override;
|
||||||
|
|
||||||
// XAccessibleEventListener
|
// XAccessibleEventListener
|
||||||
virtual void SAL_CALL notifyEvent( const css::accessibility::AccessibleEventObject& aEvent ) override;
|
virtual void SAL_CALL
|
||||||
|
notifyEvent(const css::accessibility::AccessibleEventObject& aEvent) override;
|
||||||
|
|
||||||
//for active descendant changed event
|
//for active descendant changed event
|
||||||
virtual void HandleActiveDescendantChangedEvent(
|
virtual void HandleActiveDescendantChangedEvent(css::uno::Any oldValue, css::uno::Any newValue);
|
||||||
css::uno::Any oldValue, css::uno::Any newValue);
|
|
||||||
|
|
||||||
void HandleTableModelChangeEvent(css::uno::Any newValue);
|
void HandleTableModelChangeEvent(css::uno::Any newValue);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // INCLUDED_WINACCESSIBILITY_INC_ACCTABLEEVENTLISTENER_HXX
|
#endif // INCLUDED_WINACCESSIBILITY_INC_ACCTABLEEVENTLISTENER_HXX
|
||||||
|
@@ -25,21 +25,20 @@
|
|||||||
#include <com/sun/star/accessibility/XAccessibleEventListener.hpp>
|
#include <com/sun/star/accessibility/XAccessibleEventListener.hpp>
|
||||||
#include <com/sun/star/accessibility/XAccessible.hpp>
|
#include <com/sun/star/accessibility/XAccessible.hpp>
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AccTextComponentEventListener is inherited from AccComponentEventListener. It handles the events
|
* AccTextComponentEventListener is inherited from AccComponentEventListener. It handles the events
|
||||||
* generated by container controls. The accessible role is: TEXT
|
* generated by container controls. The accessible role is: TEXT
|
||||||
* It defines the procedure of specific event handling related with text components and provides
|
* It defines the procedure of specific event handling related with text components and provides
|
||||||
* the detailed support for some related methods.
|
* the detailed support for some related methods.
|
||||||
*/
|
*/
|
||||||
class AccTextComponentEventListener: public AccComponentEventListener
|
class AccTextComponentEventListener : public AccComponentEventListener
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AccTextComponentEventListener(css::accessibility::XAccessible* pAcc, AccObjectManagerAgent* Agent);
|
AccTextComponentEventListener(css::accessibility::XAccessible* pAcc,
|
||||||
|
AccObjectManagerAgent* Agent);
|
||||||
virtual ~AccTextComponentEventListener() override;
|
virtual ~AccTextComponentEventListener() override;
|
||||||
|
|
||||||
virtual void SetComponentState(short state, bool enable) override;
|
virtual void SetComponentState(short state, bool enable) override;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // INCLUDED_WINACCESSIBILITY_INC_ACCTEXTCOMPONENTEVENTLISTENER_HXX
|
#endif // INCLUDED_WINACCESSIBILITY_INC_ACCTEXTCOMPONENTEVENTLISTENER_HXX
|
||||||
|
@@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
#include <cppuhelper/implbase.hxx>
|
#include <cppuhelper/implbase.hxx>
|
||||||
|
|
||||||
#include "AccObjectManagerAgent.hxx"
|
#include "AccObjectManagerAgent.hxx"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AccEventListener is the general event listener for all top windows. The top windows defined
|
* AccEventListener is the general event listener for all top windows. The top windows defined
|
||||||
@@ -35,30 +35,31 @@
|
|||||||
* In this method, all the accessible objects (including COM object and Uno objects) are created and
|
* In this method, all the accessible objects (including COM object and Uno objects) are created and
|
||||||
* cached into bridge managers, and they are monitored by listeners for later accessible event handling.
|
* cached into bridge managers, and they are monitored by listeners for later accessible event handling.
|
||||||
*/
|
*/
|
||||||
class AccTopWindowListener
|
class AccTopWindowListener : public ::cppu::WeakImplHelper<css::awt::XTopWindowListener>
|
||||||
: public ::cppu::WeakImplHelper<css::awt::XTopWindowListener>
|
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
AccObjectManagerAgent accManagerAgent;
|
AccObjectManagerAgent accManagerAgent;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
AccTopWindowListener();
|
AccTopWindowListener();
|
||||||
virtual ~AccTopWindowListener() override;
|
virtual ~AccTopWindowListener() override;
|
||||||
|
|
||||||
// XTopWindowListener
|
// XTopWindowListener
|
||||||
virtual void SAL_CALL windowOpened( const css::lang::EventObject& e ) override;
|
virtual void SAL_CALL windowOpened(const css::lang::EventObject& e) override;
|
||||||
virtual void SAL_CALL windowClosing( const css::lang::EventObject& e ) override;
|
virtual void SAL_CALL windowClosing(const css::lang::EventObject& e) override;
|
||||||
virtual void SAL_CALL windowClosed( const css::lang::EventObject& e ) override;
|
virtual void SAL_CALL windowClosed(const css::lang::EventObject& e) override;
|
||||||
virtual void SAL_CALL windowMinimized( const css::lang::EventObject& e ) override;
|
virtual void SAL_CALL windowMinimized(const css::lang::EventObject& e) override;
|
||||||
virtual void SAL_CALL windowNormalized( const css::lang::EventObject& e ) override;
|
virtual void SAL_CALL windowNormalized(const css::lang::EventObject& e) override;
|
||||||
virtual void SAL_CALL windowActivated( const css::lang::EventObject& e ) override;
|
virtual void SAL_CALL windowActivated(const css::lang::EventObject& e) override;
|
||||||
virtual void SAL_CALL windowDeactivated( const css::lang::EventObject& e ) override;
|
virtual void SAL_CALL windowDeactivated(const css::lang::EventObject& e) override;
|
||||||
|
|
||||||
// XEventListener
|
// XEventListener
|
||||||
virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) override;
|
virtual void SAL_CALL disposing(const css::lang::EventObject& Source) override;
|
||||||
|
|
||||||
virtual void AddAllListeners(css::accessibility::XAccessible* pAccessible,css::accessibility::XAccessible* pParentXAcc,HWND pWND );
|
virtual void AddAllListeners(css::accessibility::XAccessible* pAccessible,
|
||||||
|
css::accessibility::XAccessible* pParentXAcc, HWND pWND);
|
||||||
//for On-Demand load.
|
//for On-Demand load.
|
||||||
virtual void HandleWindowOpened( css::accessibility::XAccessible* pAccessible );
|
virtual void HandleWindowOpened(css::accessibility::XAccessible* pAccessible);
|
||||||
|
|
||||||
sal_Int64 GetMSComPtr(sal_Int64 hWnd, sal_Int64 lParam, sal_Int64 wParam);
|
sal_Int64 GetMSComPtr(sal_Int64 hWnd, sal_Int64 lParam, sal_Int64 wParam);
|
||||||
};
|
};
|
||||||
|
@@ -25,25 +25,24 @@
|
|||||||
#include <com/sun/star/accessibility/XAccessibleEventListener.hpp>
|
#include <com/sun/star/accessibility/XAccessibleEventListener.hpp>
|
||||||
#include <com/sun/star/accessibility/XAccessible.hpp>
|
#include <com/sun/star/accessibility/XAccessible.hpp>
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AccTreeEventListener is inherited from AccDescendantManagerEventListener. It handles
|
* AccTreeEventListener is inherited from AccDescendantManagerEventListener. It handles
|
||||||
* the events generated by tree controls. The accessible role is: TREE.
|
* the events generated by tree controls. The accessible role is: TREE.
|
||||||
* It defines the procedure of specific event handling related with tree components
|
* It defines the procedure of specific event handling related with tree components
|
||||||
* and provides the detailed support for some related methods.
|
* and provides the detailed support for some related methods.
|
||||||
*/
|
*/
|
||||||
class AccTreeEventListener: public AccDescendantManagerEventListener
|
class AccTreeEventListener : public AccDescendantManagerEventListener
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AccTreeEventListener(css::accessibility::XAccessible* pAcc, AccObjectManagerAgent* Agent);
|
AccTreeEventListener(css::accessibility::XAccessible* pAcc, AccObjectManagerAgent* Agent);
|
||||||
virtual ~AccTreeEventListener() override;
|
virtual ~AccTreeEventListener() override;
|
||||||
|
|
||||||
// XAccessibleEventListener
|
// XAccessibleEventListener
|
||||||
virtual void SAL_CALL notifyEvent( const css::accessibility::AccessibleEventObject& aEvent ) override;
|
virtual void SAL_CALL
|
||||||
|
notifyEvent(const css::accessibility::AccessibleEventObject& aEvent) override;
|
||||||
|
|
||||||
//for active descendant changed event
|
//for active descendant changed event
|
||||||
virtual void HandleActiveDescendantChangedEvent(
|
virtual void HandleActiveDescendantChangedEvent(css::uno::Any oldValue, css::uno::Any newValue);
|
||||||
css::uno::Any oldValue, css::uno::Any newValue);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // INCLUDED_WINACCESSIBILITY_INC_ACCTREEEVENTLISTENER_HXX
|
#endif // INCLUDED_WINACCESSIBILITY_INC_ACCTREEEVENTLISTENER_HXX
|
||||||
|
@@ -25,29 +25,27 @@
|
|||||||
#include <com/sun/star/accessibility/XAccessibleEventListener.hpp>
|
#include <com/sun/star/accessibility/XAccessibleEventListener.hpp>
|
||||||
#include <com/sun/star/accessibility/XAccessible.hpp>
|
#include <com/sun/star/accessibility/XAccessible.hpp>
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AccWindowEventListener is inherited from AccEventListener. It handles the events
|
* AccWindowEventListener is inherited from AccEventListener. It handles the events
|
||||||
* generated by Dialogs. The accessible role is: WINDOW.
|
* generated by Dialogs. The accessible role is: WINDOW.
|
||||||
* It defines the procedure of specific event handling related with windows and provides
|
* It defines the procedure of specific event handling related with windows and provides
|
||||||
* the detailed support for some related methods.
|
* the detailed support for some related methods.
|
||||||
*/
|
*/
|
||||||
class AccWindowEventListener: public AccEventListener
|
class AccWindowEventListener : public AccEventListener
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AccWindowEventListener(css::accessibility::XAccessible* pAcc, AccObjectManagerAgent* Agent);
|
AccWindowEventListener(css::accessibility::XAccessible* pAcc, AccObjectManagerAgent* Agent);
|
||||||
virtual ~AccWindowEventListener() override;
|
virtual ~AccWindowEventListener() override;
|
||||||
|
|
||||||
// XAccessibleEventListener
|
// XAccessibleEventListener
|
||||||
virtual void SAL_CALL notifyEvent( const css::accessibility::AccessibleEventObject& aEvent ) override;
|
virtual void SAL_CALL
|
||||||
|
notifyEvent(const css::accessibility::AccessibleEventObject& aEvent) override;
|
||||||
|
|
||||||
//for child changed event
|
//for child changed event
|
||||||
virtual void HandleChildChangedEvent(
|
virtual void HandleChildChangedEvent(css::uno::Any oldValue, css::uno::Any newValue);
|
||||||
css::uno::Any oldValue, css::uno::Any newValue);
|
|
||||||
|
|
||||||
//state changed
|
//state changed
|
||||||
virtual void SetComponentState(short state, bool enable) override;
|
virtual void SetComponentState(short state, bool enable) override;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // INCLUDED_WINACCESSIBILITY_INC_ACCWINDOWEVENTLISTENER_HXX
|
#endif // INCLUDED_WINACCESSIBILITY_INC_ACCWINDOWEVENTLISTENER_HXX
|
||||||
|
@@ -28,21 +28,17 @@
|
|||||||
class ResIDGenerator
|
class ResIDGenerator
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
|
|
||||||
long max;
|
long max;
|
||||||
std::deque<long> subList;
|
std::deque<long> subList;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
ResIDGenerator(long maxNum = PRIMARY_RESID)
|
ResIDGenerator(long maxNum = PRIMARY_RESID)
|
||||||
: max(maxNum) {}
|
: max(maxNum)
|
||||||
|
{
|
||||||
|
}
|
||||||
~ResIDGenerator();
|
~ResIDGenerator();
|
||||||
long GenerateNewResID();
|
long GenerateNewResID();
|
||||||
void SetSub(long number)
|
void SetSub(long number) { subList.push_back(number); };
|
||||||
{
|
|
||||||
subList.push_back(number);
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // INCLUDED_WINACCESSIBILITY_INC_RESIDGENERATOR_HXX
|
#endif // INCLUDED_WINACCESSIBILITY_INC_RESIDGENERATOR_HXX
|
||||||
|
@@ -24,16 +24,16 @@
|
|||||||
|
|
||||||
enum DIRECTION
|
enum DIRECTION
|
||||||
{
|
{
|
||||||
FIRST_CHILD=0,
|
FIRST_CHILD = 0,
|
||||||
LAST_CHILD=-1,
|
LAST_CHILD = -1,
|
||||||
BEFORE_CHILD=1 ,
|
BEFORE_CHILD = 1,
|
||||||
AFTER_CHILD=2
|
AFTER_CHILD = 2
|
||||||
};
|
};
|
||||||
|
|
||||||
#define UNO_MSAA_UNMAPPING 0x00000000
|
#define UNO_MSAA_UNMAPPING 0x00000000
|
||||||
|
|
||||||
struct IMAccessible;
|
struct IMAccessible;
|
||||||
UACCCOM_DLLPUBLIC IMAccessible * UAccCOMCreateInstance();
|
UACCCOM_DLLPUBLIC IMAccessible* UAccCOMCreateInstance();
|
||||||
|
|
||||||
#endif // INCLUDED_WINACCESSIBILITY_INC_ACCHELPER_HXX
|
#endif // INCLUDED_WINACCESSIBILITY_INC_ACCHELPER_HXX
|
||||||
|
|
||||||
|
@@ -21,64 +21,64 @@
|
|||||||
#define INCLUDED_WINACCESSIBILITY_INC_UNOMSAAEVENT_HXX
|
#define INCLUDED_WINACCESSIBILITY_INC_UNOMSAAEVENT_HXX
|
||||||
|
|
||||||
//STATE_CHANGED with get FOCUSED -> EVENT_OBJECT_FOCUS
|
//STATE_CHANGED with get FOCUSED -> EVENT_OBJECT_FOCUS
|
||||||
const short UM_EVENT_STATE_FOCUSED = 0 ;
|
const short UM_EVENT_STATE_FOCUSED = 0;
|
||||||
|
|
||||||
//STATE_CHANGED --> EVENT_OBJECT_STATECHANGE
|
//STATE_CHANGED --> EVENT_OBJECT_STATECHANGE
|
||||||
const short UM_EVENT_STATE_CHECKED = 1 ;
|
const short UM_EVENT_STATE_CHECKED = 1;
|
||||||
const short UM_EVENT_STATE_ARMED = 2 ;
|
const short UM_EVENT_STATE_ARMED = 2;
|
||||||
const short UM_EVENT_STATE_PRESSED = 3 ;
|
const short UM_EVENT_STATE_PRESSED = 3;
|
||||||
const short UM_EVENT_STATE_SELECTED = 4 ;
|
const short UM_EVENT_STATE_SELECTED = 4;
|
||||||
const short UM_EVENT_STATE_SHOWING = 5 ;
|
const short UM_EVENT_STATE_SHOWING = 5;
|
||||||
|
|
||||||
//if acc role is MENU_BAR, STATE_CHANGED with get FOCUSED -> EVENT_SYSTEM_MENUSTART
|
//if acc role is MENU_BAR, STATE_CHANGED with get FOCUSED -> EVENT_SYSTEM_MENUSTART
|
||||||
const short UM_EVENT_MENU_START = 6 ;
|
const short UM_EVENT_MENU_START = 6;
|
||||||
|
|
||||||
//if acc role is MENU_BAR, STATE_CHANGED with lose FOCUSED -> EVENT_SYSTEM_MENUEND
|
//if acc role is MENU_BAR, STATE_CHANGED with lose FOCUSED -> EVENT_SYSTEM_MENUEND
|
||||||
const short UM_EVENT_MENU_END = 7 ;
|
const short UM_EVENT_MENU_END = 7;
|
||||||
|
|
||||||
//if acc role is POPUP_MENU, STATE_CHANGED with get FOCUSED -> EVENT_SYSTEM_MENUPOPUPSTART
|
//if acc role is POPUP_MENU, STATE_CHANGED with get FOCUSED -> EVENT_SYSTEM_MENUPOPUPSTART
|
||||||
const short UM_EVENT_MENUPOPUPSTART = 8 ;
|
const short UM_EVENT_MENUPOPUPSTART = 8;
|
||||||
|
|
||||||
//if acc role is POPUP_MENU, STATE_CHANGED with lose FOCUSED -> EVENT_SYSTEM_MENUPOPUPEND
|
//if acc role is POPUP_MENU, STATE_CHANGED with lose FOCUSED -> EVENT_SYSTEM_MENUPOPUPEND
|
||||||
const short UM_EVENT_MENUPOPUPEND = 9 ;
|
const short UM_EVENT_MENUPOPUPEND = 9;
|
||||||
|
|
||||||
//SELECTION_CHANGED -> EVENT_OBJECT_SELECTION
|
//SELECTION_CHANGED -> EVENT_OBJECT_SELECTION
|
||||||
const short UM_EVENT_SELECTION_CHANGED = 10 ;
|
const short UM_EVENT_SELECTION_CHANGED = 10;
|
||||||
|
|
||||||
//INVALIDATE_ALL_CHILDREN --> EVENT_OBJECT_SHOW
|
//INVALIDATE_ALL_CHILDREN --> EVENT_OBJECT_SHOW
|
||||||
const short UM_EVENT_INVALIDATE_ALL_CHILDREN = 11 ;
|
const short UM_EVENT_INVALIDATE_ALL_CHILDREN = 11;
|
||||||
|
|
||||||
//VALUE_CHANGED --> EVENT_OBJECT_VALUECHANGE
|
//VALUE_CHANGED --> EVENT_OBJECT_VALUECHANGE
|
||||||
const short UM_EVENT_OBJECT_VALUECHANGE = 12 ;
|
const short UM_EVENT_OBJECT_VALUECHANGE = 12;
|
||||||
|
|
||||||
//NAME_CHANGED --> EVENT_OBJECT_NAMECHANGE
|
//NAME_CHANGED --> EVENT_OBJECT_NAMECHANGE
|
||||||
const short UM_EVENT_OBJECT_NAMECHANGE = 13 ;
|
const short UM_EVENT_OBJECT_NAMECHANGE = 13;
|
||||||
|
|
||||||
//DESCRIPTION_CHANGED --> EVENT_OBJECT_DESCRIPTIONCHANGE
|
//DESCRIPTION_CHANGED --> EVENT_OBJECT_DESCRIPTIONCHANGE
|
||||||
const short UM_EVENT_OBJECT_DESCRIPTIONCHANGE = 14 ;
|
const short UM_EVENT_OBJECT_DESCRIPTIONCHANGE = 14;
|
||||||
|
|
||||||
//ACTION_CHANGED --> EVENT_OBJECT_DEFACTIONCHANGE
|
//ACTION_CHANGED --> EVENT_OBJECT_DEFACTIONCHANGE
|
||||||
const short UM_EVENT_OBJECT_DEFACTIONCHANGE = 15 ;
|
const short UM_EVENT_OBJECT_DEFACTIONCHANGE = 15;
|
||||||
|
|
||||||
//CARET_CHANGED --> EVENT_OBJECT_LOCATIONCHANGED
|
//CARET_CHANGED --> EVENT_OBJECT_LOCATIONCHANGED
|
||||||
const short UM_EVENT_OBJECT_CARETCHANGE = 16 ;
|
const short UM_EVENT_OBJECT_CARETCHANGE = 16;
|
||||||
|
|
||||||
//TEXT_CHANGED --> EVENT_OBJECT_VALUECHANGE
|
//TEXT_CHANGED --> EVENT_OBJECT_VALUECHANGE
|
||||||
const short UM_EVENT_OBJECT_TEXTCHANGE = 17 ;
|
const short UM_EVENT_OBJECT_TEXTCHANGE = 17;
|
||||||
|
|
||||||
//ACTIVE_DESCENDANT_CHANGED --> EVENT_OBJECT_FOCUS
|
//ACTIVE_DESCENDANT_CHANGED --> EVENT_OBJECT_FOCUS
|
||||||
const short UM_EVENT_ACTIVE_DESCENDANT_CHANGED = 18 ;
|
const short UM_EVENT_ACTIVE_DESCENDANT_CHANGED = 18;
|
||||||
|
|
||||||
//BOUNDRECT_CHANGED --> EVENT_OBJECT_LOCATIONCHANGE
|
//BOUNDRECT_CHANGED --> EVENT_OBJECT_LOCATIONCHANGE
|
||||||
const short UM_EVENT_BOUNDRECT_CHANGED = 19 ;
|
const short UM_EVENT_BOUNDRECT_CHANGED = 19;
|
||||||
|
|
||||||
//VISIBLE_DATA_CHANGED --> EVENT_OBJECT_VALUECHANGE
|
//VISIBLE_DATA_CHANGED --> EVENT_OBJECT_VALUECHANGE
|
||||||
const short UM_EVENT_VISIBLE_DATA_CHANGED = 20 ;
|
const short UM_EVENT_VISIBLE_DATA_CHANGED = 20;
|
||||||
|
|
||||||
//to enable SHOW on dialogs, windows, frames
|
//to enable SHOW on dialogs, windows, frames
|
||||||
const short UM_EVENT_SHOW = 21 ;
|
const short UM_EVENT_SHOW = 21;
|
||||||
|
|
||||||
const short UM_EVENT_STATE_BUSY = 22 ;
|
const short UM_EVENT_STATE_BUSY = 22;
|
||||||
|
|
||||||
const short UM_EVENT_TABLE_CAPTION_CHANGED = 24;
|
const short UM_EVENT_TABLE_CAPTION_CHANGED = 24;
|
||||||
const short UM_EVENT_TABLE_COLUMN_DESCRIPTION_CHANGED = 25;
|
const short UM_EVENT_TABLE_COLUMN_DESCRIPTION_CHANGED = 25;
|
||||||
@@ -87,13 +87,13 @@ const short UM_EVENT_TABLE_MODEL_CHANGED = 27;
|
|||||||
const short UM_EVENT_TABLE_ROW_HEADER_CHANGED = 28;
|
const short UM_EVENT_TABLE_ROW_HEADER_CHANGED = 28;
|
||||||
const short UM_EVENT_TABLE_SUMMARY_CHANGED = 29;
|
const short UM_EVENT_TABLE_SUMMARY_CHANGED = 29;
|
||||||
const short UM_EVENT_OBJECT_REORDER = 30;
|
const short UM_EVENT_OBJECT_REORDER = 30;
|
||||||
const short UM_EVENT_PAGE_CHANGED =31;
|
const short UM_EVENT_PAGE_CHANGED = 31;
|
||||||
const short UM_EVENT_CHILD_ADDED =32;
|
const short UM_EVENT_CHILD_ADDED = 32;
|
||||||
const short UM_EVENT_CHILD_REMOVED =33;
|
const short UM_EVENT_CHILD_REMOVED = 33;
|
||||||
const short UM_EVENT_TABLE_ROW_DESCRIPTION_CHANGED = 34;
|
const short UM_EVENT_TABLE_ROW_DESCRIPTION_CHANGED = 34;
|
||||||
const short UM_EVENT_SELECTION_CHANGED_ADD = 35 ;
|
const short UM_EVENT_SELECTION_CHANGED_ADD = 35;
|
||||||
const short UM_EVENT_SELECTION_CHANGED_REMOVE = 36 ;
|
const short UM_EVENT_SELECTION_CHANGED_REMOVE = 36;
|
||||||
const short UM_EVENT_SELECTION_CHANGED_WITHIN = 37 ;
|
const short UM_EVENT_SELECTION_CHANGED_WITHIN = 37;
|
||||||
|
|
||||||
//support for PAGE_CHANGED event
|
//support for PAGE_CHANGED event
|
||||||
const short UM_EVENT_OBJECT_PAGECHANGED = 38;
|
const short UM_EVENT_OBJECT_PAGECHANGED = 38;
|
||||||
|
@@ -26,7 +26,7 @@
|
|||||||
#include <com/sun/star/accessibility/XAccessibleAction.hpp>
|
#include <com/sun/star/accessibility/XAccessibleAction.hpp>
|
||||||
#include "UNOXWrapper.h"
|
#include "UNOXWrapper.h"
|
||||||
|
|
||||||
class ATL_NO_VTABLE CAccActionBase : public CUNOXWrapper
|
class ATL_NO_VTABLE CAccActionBase : public CUNOXWrapper
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CAccActionBase();
|
CAccActionBase();
|
||||||
@@ -37,29 +37,30 @@ public:
|
|||||||
// IAccessibleAction
|
// IAccessibleAction
|
||||||
|
|
||||||
// Returns the number of action.
|
// Returns the number of action.
|
||||||
STDMETHOD(nActions)(/*[out,retval]*/long* nActions);
|
STDMETHOD(nActions)(/*[out,retval]*/ long* nActions);
|
||||||
|
|
||||||
// Performs specified action on the object.
|
// Performs specified action on the object.
|
||||||
STDMETHOD(doAction)(/* [in] */ long actionIndex);
|
STDMETHOD(doAction)(/* [in] */ long actionIndex);
|
||||||
|
|
||||||
// Gets description of specified action.
|
// Gets description of specified action.
|
||||||
STDMETHOD(get_description)(long actionIndex,BSTR __RPC_FAR *description);
|
STDMETHOD(get_description)(long actionIndex, BSTR __RPC_FAR* description);
|
||||||
|
|
||||||
// added , 2006/06/28, for driver 07/11
|
// added , 2006/06/28, for driver 07/11
|
||||||
// get the action name
|
// get the action name
|
||||||
STDMETHOD(get_name)( long actionIndex, BSTR __RPC_FAR *name);
|
STDMETHOD(get_name)(long actionIndex, BSTR __RPC_FAR* name);
|
||||||
|
|
||||||
// get the localized action Name
|
// get the localized action Name
|
||||||
STDMETHOD(get_localizedName)( long actionIndex, BSTR __RPC_FAR *localizedName);
|
STDMETHOD(get_localizedName)(long actionIndex, BSTR __RPC_FAR* localizedName);
|
||||||
|
|
||||||
// Returns key binding object (if any) associated with specified action
|
// Returns key binding object (if any) associated with specified action
|
||||||
// key binding is string.
|
// key binding is string.
|
||||||
// e.g. "alt+d" (like IAccessible::get_accKeyboardShortcut).
|
// e.g. "alt+d" (like IAccessible::get_accKeyboardShortcut).
|
||||||
STDMETHOD(get_keyBinding)(
|
STDMETHOD(get_keyBinding)
|
||||||
|
(
|
||||||
/* [in] */ long actionIndex,
|
/* [in] */ long actionIndex,
|
||||||
/* [in] */ long nMaxBinding,
|
/* [in] */ long nMaxBinding,
|
||||||
/* [length_is][length_is][size_is][size_is][out] */ BSTR __RPC_FAR *__RPC_FAR *keyBinding,
|
/* [length_is][length_is][size_is][size_is][out] */ BSTR __RPC_FAR* __RPC_FAR* keyBinding,
|
||||||
/* [retval][out] */ long __RPC_FAR *nBinding);
|
/* [retval][out] */ long __RPC_FAR* nBinding);
|
||||||
|
|
||||||
// Override of IUNOXWrapper.
|
// Override of IUNOXWrapper.
|
||||||
STDMETHOD(put_XInterface)(hyper pXInterface) override;
|
STDMETHOD(put_XInterface)(hyper pXInterface) override;
|
||||||
@@ -68,10 +69,7 @@ protected:
|
|||||||
css::uno::Reference<css::accessibility::XAccessibleAction> pRXAct;
|
css::uno::Reference<css::accessibility::XAccessibleAction> pRXAct;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
css::accessibility::XAccessibleAction* GetXInterface()
|
css::accessibility::XAccessibleAction* GetXInterface() { return pRXAct.get(); }
|
||||||
{
|
|
||||||
return pRXAct.get();
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // INCLUDED_WINACCESSIBILITY_SOURCE_UACCCOM_ACCACTIONBASE_H
|
#endif // INCLUDED_WINACCESSIBILITY_SOURCE_UACCCOM_ACCACTIONBASE_H
|
||||||
|
@@ -27,7 +27,7 @@
|
|||||||
#pragma clang diagnostic push
|
#pragma clang diagnostic push
|
||||||
#pragma clang diagnostic ignored "-Wnon-virtual-dtor"
|
#pragma clang diagnostic ignored "-Wnon-virtual-dtor"
|
||||||
#endif
|
#endif
|
||||||
#include <UAccCOM.h>
|
#include <UAccCOM.h>
|
||||||
#if defined __clang__
|
#if defined __clang__
|
||||||
#pragma clang diagnostic pop
|
#pragma clang diagnostic pop
|
||||||
#endif
|
#endif
|
||||||
@@ -38,10 +38,9 @@
|
|||||||
*
|
*
|
||||||
* @param Location the upper left corner of the object's bounding box.
|
* @param Location the upper left corner of the object's bounding box.
|
||||||
*/
|
*/
|
||||||
COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponent::get_locationInParent(long *x, long *y)
|
COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponent::get_locationInParent(long* x, long* y)
|
||||||
{
|
{
|
||||||
|
return CAccComponentBase::get_locationInParent(x, y);
|
||||||
return CAccComponentBase::get_locationInParent(x,y);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -49,9 +48,8 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponent::get_locationInParent(long *x, l
|
|||||||
*
|
*
|
||||||
* @param Color the color of foreground.
|
* @param Color the color of foreground.
|
||||||
*/
|
*/
|
||||||
COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponent::get_foreground(IA2Color * foreground)
|
COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponent::get_foreground(IA2Color* foreground)
|
||||||
{
|
{
|
||||||
|
|
||||||
return CAccComponentBase::get_foreground(foreground);
|
return CAccComponentBase::get_foreground(foreground);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -60,9 +58,8 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponent::get_foreground(IA2Color * foreg
|
|||||||
*
|
*
|
||||||
* @param Color the color of background.
|
* @param Color the color of background.
|
||||||
*/
|
*/
|
||||||
COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponent::get_background(IA2Color * background)
|
COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponent::get_background(IA2Color* background)
|
||||||
{
|
{
|
||||||
|
|
||||||
return CAccComponentBase::get_background(background);
|
return CAccComponentBase::get_background(background);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -27,16 +27,11 @@
|
|||||||
using namespace com::sun::star::accessibility;
|
using namespace com::sun::star::accessibility;
|
||||||
using namespace com::sun::star::uno;
|
using namespace com::sun::star::uno;
|
||||||
|
|
||||||
|
|
||||||
// Construction/Destruction
|
// Construction/Destruction
|
||||||
|
|
||||||
|
CAccComponentBase::CAccComponentBase() {}
|
||||||
|
|
||||||
CAccComponentBase::CAccComponentBase()
|
CAccComponentBase::~CAccComponentBase() {}
|
||||||
{}
|
|
||||||
|
|
||||||
CAccComponentBase::~CAccComponentBase()
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the location of the upper left corner of the object's bounding
|
* Returns the location of the upper left corner of the object's bounding
|
||||||
@@ -44,7 +39,7 @@ CAccComponentBase::~CAccComponentBase()
|
|||||||
*
|
*
|
||||||
* @param Location the upper left corner of the object's bounding box.
|
* @param Location the upper left corner of the object's bounding box.
|
||||||
*/
|
*/
|
||||||
COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::get_locationInParent(long *x, long *y)
|
COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::get_locationInParent(long* x, long* y)
|
||||||
{
|
{
|
||||||
SolarMutexGuard g;
|
SolarMutexGuard g;
|
||||||
|
|
||||||
@@ -53,7 +48,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::get_locationInParent(long *
|
|||||||
if (x == nullptr || y == nullptr)
|
if (x == nullptr || y == nullptr)
|
||||||
return E_INVALIDARG;
|
return E_INVALIDARG;
|
||||||
// #CHECK XInterface#
|
// #CHECK XInterface#
|
||||||
if(!pRXComp.is())
|
if (!pRXComp.is())
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|
||||||
const css::awt::Point& pt = GetXInterface()->getLocation();
|
const css::awt::Point& pt = GetXInterface()->getLocation();
|
||||||
@@ -61,7 +56,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::get_locationInParent(long *
|
|||||||
*y = pt.Y;
|
*y = pt.Y;
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
catch(...)
|
catch (...)
|
||||||
{
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
@@ -74,7 +69,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::get_locationInParent(long *
|
|||||||
* @param Location the upper left corner of the object's bounding
|
* @param Location the upper left corner of the object's bounding
|
||||||
* box in screen coordinates.
|
* box in screen coordinates.
|
||||||
*/
|
*/
|
||||||
COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::get_locationOnScreen(long *x, long *y)
|
COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::get_locationOnScreen(long* x, long* y)
|
||||||
{
|
{
|
||||||
SolarMutexGuard g;
|
SolarMutexGuard g;
|
||||||
|
|
||||||
@@ -83,16 +78,15 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::get_locationOnScreen(long *
|
|||||||
if (x == nullptr || y == nullptr)
|
if (x == nullptr || y == nullptr)
|
||||||
return E_INVALIDARG;
|
return E_INVALIDARG;
|
||||||
// #CHECK XInterface#
|
// #CHECK XInterface#
|
||||||
if(!pRXComp.is())
|
if (!pRXComp.is())
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|
||||||
const css::awt::Point& pt = GetXInterface()->getLocationOnScreen();
|
const css::awt::Point& pt = GetXInterface()->getLocationOnScreen();
|
||||||
*x = pt.X;
|
*x = pt.X;
|
||||||
*y = pt.Y;
|
*y = pt.Y;
|
||||||
return S_OK;
|
return S_OK;
|
||||||
|
|
||||||
}
|
}
|
||||||
catch(...)
|
catch (...)
|
||||||
{
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
@@ -103,7 +97,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::get_locationOnScreen(long *
|
|||||||
*
|
*
|
||||||
* @param success the boolean result to be returned.
|
* @param success the boolean result to be returned.
|
||||||
*/
|
*/
|
||||||
COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::grabFocus(boolean * success)
|
COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::grabFocus(boolean* success)
|
||||||
{
|
{
|
||||||
SolarMutexGuard g;
|
SolarMutexGuard g;
|
||||||
|
|
||||||
@@ -112,7 +106,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::grabFocus(boolean * success
|
|||||||
if (success == nullptr)
|
if (success == nullptr)
|
||||||
return E_INVALIDARG;
|
return E_INVALIDARG;
|
||||||
// #CHECK XInterface#
|
// #CHECK XInterface#
|
||||||
if(!pRXComp.is())
|
if (!pRXComp.is())
|
||||||
{
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
@@ -129,7 +123,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::grabFocus(boolean * success
|
|||||||
*
|
*
|
||||||
* @param Color the color of foreground.
|
* @param Color the color of foreground.
|
||||||
*/
|
*/
|
||||||
COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::get_foreground(IA2Color * foreground)
|
COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::get_foreground(IA2Color* foreground)
|
||||||
{
|
{
|
||||||
SolarMutexGuard g;
|
SolarMutexGuard g;
|
||||||
|
|
||||||
@@ -138,7 +132,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::get_foreground(IA2Color * f
|
|||||||
if (foreground == nullptr)
|
if (foreground == nullptr)
|
||||||
return E_INVALIDARG;
|
return E_INVALIDARG;
|
||||||
// #CHECK XInterface#
|
// #CHECK XInterface#
|
||||||
if(!pRXComp.is())
|
if (!pRXComp.is())
|
||||||
{
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
@@ -154,7 +148,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::get_foreground(IA2Color * f
|
|||||||
*
|
*
|
||||||
* @param Color the color of background.
|
* @param Color the color of background.
|
||||||
*/
|
*/
|
||||||
COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::get_background(IA2Color * background)
|
COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::get_background(IA2Color* background)
|
||||||
{
|
{
|
||||||
SolarMutexGuard g;
|
SolarMutexGuard g;
|
||||||
|
|
||||||
@@ -163,7 +157,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::get_background(IA2Color * b
|
|||||||
if (background == nullptr)
|
if (background == nullptr)
|
||||||
return E_INVALIDARG;
|
return E_INVALIDARG;
|
||||||
// #CHECK XInterface#
|
// #CHECK XInterface#
|
||||||
if(!pRXComp.is())
|
if (!pRXComp.is())
|
||||||
{
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
@@ -187,15 +181,15 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::put_XInterface(hyper pXInte
|
|||||||
|
|
||||||
CUNOXWrapper::put_XInterface(pXInterface);
|
CUNOXWrapper::put_XInterface(pXInterface);
|
||||||
//special query.
|
//special query.
|
||||||
if(pUNOInterface == nullptr)
|
if (pUNOInterface == nullptr)
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
Reference<XAccessibleContext> pRContext = pUNOInterface->getAccessibleContext();
|
Reference<XAccessibleContext> pRContext = pUNOInterface->getAccessibleContext();
|
||||||
if( !pRContext.is() )
|
if (!pRContext.is())
|
||||||
{
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
Reference<XAccessibleComponent> pRXI(pRContext,UNO_QUERY);
|
Reference<XAccessibleComponent> pRXI(pRContext, UNO_QUERY);
|
||||||
if( !pRXI.is() )
|
if (!pRXI.is())
|
||||||
pRXComp = nullptr;
|
pRXComp = nullptr;
|
||||||
else
|
else
|
||||||
pRXComp = pRXI.get();
|
pRXComp = pRXI.get();
|
||||||
|
@@ -37,32 +37,28 @@ public:
|
|||||||
|
|
||||||
// Returns the location of the upper left corner of the object's bounding
|
// Returns the location of the upper left corner of the object's bounding
|
||||||
// box relative to the parent.
|
// box relative to the parent.
|
||||||
STDMETHOD(get_locationInParent)(long *x, long *y);
|
STDMETHOD(get_locationInParent)(long* x, long* y);
|
||||||
|
|
||||||
// Returns the location of the upper left corner of the object's bounding
|
// Returns the location of the upper left corner of the object's bounding
|
||||||
// box in screen.
|
// box in screen.
|
||||||
STDMETHOD(get_locationOnScreen)(long *x, long *y);
|
STDMETHOD(get_locationOnScreen)(long* x, long* y);
|
||||||
|
|
||||||
// Grabs the focus to this object.
|
// Grabs the focus to this object.
|
||||||
STDMETHOD(grabFocus)(boolean * success);
|
STDMETHOD(grabFocus)(boolean* success);
|
||||||
|
|
||||||
// Returns the foreground color of this object.
|
// Returns the foreground color of this object.
|
||||||
STDMETHOD(get_foreground)(IA2Color * foreground);
|
STDMETHOD(get_foreground)(IA2Color* foreground);
|
||||||
|
|
||||||
// Returns the background color of this object.
|
// Returns the background color of this object.
|
||||||
STDMETHOD(get_background)(IA2Color * background);
|
STDMETHOD(get_background)(IA2Color* background);
|
||||||
|
|
||||||
// Override of IUNOXWrapper.
|
// Override of IUNOXWrapper.
|
||||||
STDMETHOD(put_XInterface)(hyper pXInterface) override;
|
STDMETHOD(put_XInterface)(hyper pXInterface) override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
css::uno::Reference<css::accessibility::XAccessibleComponent> pRXComp;
|
css::uno::Reference<css::accessibility::XAccessibleComponent> pRXComp;
|
||||||
|
|
||||||
css::accessibility::XAccessibleComponent* GetXInterface()
|
css::accessibility::XAccessibleComponent* GetXInterface() { return pRXComp.get(); }
|
||||||
{
|
|
||||||
return pRXComp.get();
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // INCLUDED_WINACCESSIBILITY_SOURCE_UACCCOM_ACCCOMPONENTBASE_H
|
#endif // INCLUDED_WINACCESSIBILITY_SOURCE_UACCCOM_ACCCOMPONENTBASE_H
|
||||||
|
@@ -24,7 +24,7 @@
|
|||||||
#pragma clang diagnostic push
|
#pragma clang diagnostic push
|
||||||
#pragma clang diagnostic ignored "-Wnon-virtual-dtor"
|
#pragma clang diagnostic ignored "-Wnon-virtual-dtor"
|
||||||
#endif
|
#endif
|
||||||
#include <UAccCOM.h>
|
#include <UAccCOM.h>
|
||||||
#if defined __clang__
|
#if defined __clang__
|
||||||
#pragma clang diagnostic pop
|
#pragma clang diagnostic pop
|
||||||
#endif
|
#endif
|
||||||
@@ -43,7 +43,7 @@ using namespace css::uno;
|
|||||||
* @param description Variant to get description.
|
* @param description Variant to get description.
|
||||||
* @return Result.
|
* @return Result.
|
||||||
*/
|
*/
|
||||||
COM_DECLSPEC_NOTHROW STDMETHODIMP CAccImage::get_description(BSTR * description)
|
COM_DECLSPEC_NOTHROW STDMETHODIMP CAccImage::get_description(BSTR* description)
|
||||||
{
|
{
|
||||||
SolarMutexGuard g;
|
SolarMutexGuard g;
|
||||||
|
|
||||||
@@ -52,7 +52,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccImage::get_description(BSTR * description)
|
|||||||
// #CHECK#
|
// #CHECK#
|
||||||
if (description == nullptr)
|
if (description == nullptr)
|
||||||
return E_INVALIDARG;
|
return E_INVALIDARG;
|
||||||
if( !pRXImg.is() )
|
if (!pRXImg.is())
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|
||||||
OUString ouStr = GetXInterface()->getAccessibleImageDescription();
|
OUString ouStr = GetXInterface()->getAccessibleImageDescription();
|
||||||
@@ -66,15 +66,15 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccImage::get_description(BSTR * description)
|
|||||||
|
|
||||||
COM_DECLSPEC_NOTHROW STDMETHODIMP CAccImage::get_imagePosition(
|
COM_DECLSPEC_NOTHROW STDMETHODIMP CAccImage::get_imagePosition(
|
||||||
/* [in] */ enum IA2CoordinateType,
|
/* [in] */ enum IA2CoordinateType,
|
||||||
/* [out] */ long __RPC_FAR *,
|
/* [out] */ long __RPC_FAR*,
|
||||||
/* [retval][out] */ long __RPC_FAR *)
|
/* [retval][out] */ long __RPC_FAR*)
|
||||||
{
|
{
|
||||||
return E_NOTIMPL;
|
return E_NOTIMPL;
|
||||||
}
|
}
|
||||||
|
|
||||||
COM_DECLSPEC_NOTHROW STDMETHODIMP CAccImage::get_imageSize(
|
COM_DECLSPEC_NOTHROW STDMETHODIMP CAccImage::get_imageSize(
|
||||||
/* [out] */ long __RPC_FAR *,
|
/* [out] */ long __RPC_FAR*,
|
||||||
/* [retval][out] */ long __RPC_FAR *)
|
/* [retval][out] */ long __RPC_FAR*)
|
||||||
{
|
{
|
||||||
return E_NOTIMPL;
|
return E_NOTIMPL;
|
||||||
}
|
}
|
||||||
@@ -92,16 +92,16 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccImage::put_XInterface(hyper pXInterface)
|
|||||||
|
|
||||||
CUNOXWrapper::put_XInterface(pXInterface);
|
CUNOXWrapper::put_XInterface(pXInterface);
|
||||||
//special query.
|
//special query.
|
||||||
if(pUNOInterface == nullptr)
|
if (pUNOInterface == nullptr)
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|
||||||
Reference<XAccessibleContext> pRContext = pUNOInterface->getAccessibleContext();
|
Reference<XAccessibleContext> pRContext = pUNOInterface->getAccessibleContext();
|
||||||
if( !pRContext.is() )
|
if (!pRContext.is())
|
||||||
{
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
Reference<XAccessibleImage> pRXI(pRContext,UNO_QUERY);
|
Reference<XAccessibleImage> pRXI(pRContext, UNO_QUERY);
|
||||||
if( !pRXI.is() )
|
if (!pRXI.is())
|
||||||
pRXImg = nullptr;
|
pRXImg = nullptr;
|
||||||
else
|
else
|
||||||
pRXImg = pRXI.get();
|
pRXImg = pRXI.get();
|
||||||
|
@@ -40,39 +40,44 @@ public:
|
|||||||
STDMETHOD(get_addSelection)(long startOffset, long endOffset);
|
STDMETHOD(get_addSelection)(long startOffset, long endOffset);
|
||||||
|
|
||||||
// Gets text attributes.
|
// Gets text attributes.
|
||||||
STDMETHOD(get_attributes)(long offset, long * startOffset, long * endOffset, BSTR * textAttributes);
|
STDMETHOD(get_attributes)
|
||||||
|
(long offset, long* startOffset, long* endOffset, BSTR* textAttributes);
|
||||||
|
|
||||||
// Gets caret offset.
|
// Gets caret offset.
|
||||||
STDMETHOD(get_caretOffset)(long * offset);
|
STDMETHOD(get_caretOffset)(long* offset);
|
||||||
|
|
||||||
// Gets total number of characters.
|
// Gets total number of characters.
|
||||||
STDMETHOD(get_characterCount)(long * nCharacters);
|
STDMETHOD(get_characterCount)(long* nCharacters);
|
||||||
|
|
||||||
// Gets bounding rect containing the glyph(s) representing the character
|
// Gets bounding rect containing the glyph(s) representing the character
|
||||||
// at the specified text offset
|
// at the specified text offset
|
||||||
STDMETHOD(get_characterExtents)(long offset, IA2CoordinateType coordType, long * x, long * y, long * width, long * height);
|
STDMETHOD(get_characterExtents)
|
||||||
|
(long offset, IA2CoordinateType coordType, long* x, long* y, long* width, long* height);
|
||||||
|
|
||||||
// Gets number of active non-contiguous selections.
|
// Gets number of active non-contiguous selections.
|
||||||
STDMETHOD(get_nSelections)(long * nSelections);
|
STDMETHOD(get_nSelections)(long* nSelections);
|
||||||
|
|
||||||
// Gets bounding rect for the glyph at a certain point.
|
// Gets bounding rect for the glyph at a certain point.
|
||||||
STDMETHOD(get_offsetAtPoint)(long x, long y, IA2CoordinateType coordType, long * offset);
|
STDMETHOD(get_offsetAtPoint)(long x, long y, IA2CoordinateType coordType, long* offset);
|
||||||
|
|
||||||
// Gets character offsets of N-th active text selection.
|
// Gets character offsets of N-th active text selection.
|
||||||
STDMETHOD(get_selection)(long selectionIndex, long * startOffset, long * endOffset);
|
STDMETHOD(get_selection)(long selectionIndex, long* startOffset, long* endOffset);
|
||||||
|
|
||||||
// Gets a range of text by offset NOTE: returned string may be longer
|
// Gets a range of text by offset NOTE: returned string may be longer
|
||||||
// than endOffset-startOffset bytes if text contains multi-byte characters.
|
// than endOffset-startOffset bytes if text contains multi-byte characters.
|
||||||
STDMETHOD(get_text)(long startOffset, long endOffset, BSTR * text);
|
STDMETHOD(get_text)(long startOffset, long endOffset, BSTR* text);
|
||||||
|
|
||||||
// Gets a specified amount of text that ends before a specified offset.
|
// Gets a specified amount of text that ends before a specified offset.
|
||||||
STDMETHOD(get_textBeforeOffset)(long offset, IA2TextBoundaryType boundaryType, long * startOffset, long * endOffset, BSTR * text);
|
STDMETHOD(get_textBeforeOffset)
|
||||||
|
(long offset, IA2TextBoundaryType boundaryType, long* startOffset, long* endOffset, BSTR* text);
|
||||||
|
|
||||||
// Gets a specified amount of text that spans the specified offset.
|
// Gets a specified amount of text that spans the specified offset.
|
||||||
STDMETHOD(get_textAfterOffset)(long offset, IA2TextBoundaryType boundaryType, long * startOffset, long * endOffset, BSTR * text);
|
STDMETHOD(get_textAfterOffset)
|
||||||
|
(long offset, IA2TextBoundaryType boundaryType, long* startOffset, long* endOffset, BSTR* text);
|
||||||
|
|
||||||
// Gets a specified amount of text that starts after a specified offset.
|
// Gets a specified amount of text that starts after a specified offset.
|
||||||
STDMETHOD(get_textAtOffset)(long offset, IA2TextBoundaryType boundaryType, long * startOffset, long * endOffset, BSTR * text);
|
STDMETHOD(get_textAtOffset)
|
||||||
|
(long offset, IA2TextBoundaryType boundaryType, long* startOffset, long* endOffset, BSTR* text);
|
||||||
|
|
||||||
// Unselects a range of text.
|
// Unselects a range of text.
|
||||||
STDMETHOD(removeSelection)(long selectionIndex);
|
STDMETHOD(removeSelection)(long selectionIndex);
|
||||||
@@ -86,27 +91,24 @@ public:
|
|||||||
// Gets total number of characters.
|
// Gets total number of characters.
|
||||||
// NOTE: this may be different than the total number of bytes required
|
// NOTE: this may be different than the total number of bytes required
|
||||||
// to store the text, if the text contains multi-byte characters.
|
// to store the text, if the text contains multi-byte characters.
|
||||||
STDMETHOD(get_nCharacters)(long * nCharacters);
|
STDMETHOD(get_nCharacters)(long* nCharacters);
|
||||||
|
|
||||||
STDMETHOD(get_newText)( IA2TextSegment *newText);
|
STDMETHOD(get_newText)(IA2TextSegment* newText);
|
||||||
|
|
||||||
STDMETHOD(get_oldText)( IA2TextSegment *oldText);
|
STDMETHOD(get_oldText)(IA2TextSegment* oldText);
|
||||||
|
|
||||||
// Makes specific part of string visible on screen.
|
// Makes specific part of string visible on screen.
|
||||||
STDMETHOD(scrollSubstringTo)(long startIndex, long endIndex,enum IA2ScrollType scrollType);
|
STDMETHOD(scrollSubstringTo)(long startIndex, long endIndex, enum IA2ScrollType scrollType);
|
||||||
STDMETHOD(scrollSubstringToPoint)(long startIndex, long endIndex,enum IA2CoordinateType coordinateType, long x, long y );
|
STDMETHOD(scrollSubstringToPoint)
|
||||||
|
(long startIndex, long endIndex, enum IA2CoordinateType coordinateType, long x, long y);
|
||||||
|
|
||||||
// Override of IUNOXWrapper.
|
// Override of IUNOXWrapper.
|
||||||
STDMETHOD(put_XInterface)(hyper pXInterface) override;
|
STDMETHOD(put_XInterface)(hyper pXInterface) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
css::uno::Reference<css::accessibility::XAccessibleText> pRXText;
|
css::uno::Reference<css::accessibility::XAccessibleText> pRXText;
|
||||||
|
|
||||||
css::accessibility::XAccessibleText* GetXInterface()
|
css::accessibility::XAccessibleText* GetXInterface() { return pRXText.get(); }
|
||||||
{
|
|
||||||
return pRXText.get();
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // INCLUDED_WINACCESSIBILITY_SOURCE_UACCCOM_ACCTEXTBASE_H
|
#endif // INCLUDED_WINACCESSIBILITY_SOURCE_UACCCOM_ACCTEXTBASE_H
|
||||||
|
@@ -25,7 +25,7 @@
|
|||||||
#pragma clang diagnostic push
|
#pragma clang diagnostic push
|
||||||
#pragma clang diagnostic ignored "-Wnon-virtual-dtor"
|
#pragma clang diagnostic ignored "-Wnon-virtual-dtor"
|
||||||
#endif
|
#endif
|
||||||
#include <UAccCOM.h>
|
#include <UAccCOM.h>
|
||||||
#if defined __clang__
|
#if defined __clang__
|
||||||
#pragma clang diagnostic pop
|
#pragma clang diagnostic pop
|
||||||
#endif
|
#endif
|
||||||
@@ -44,7 +44,7 @@ using namespace com::sun::star::uno;
|
|||||||
* @return Result.
|
* @return Result.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
COM_DECLSPEC_NOTHROW STDMETHODIMP CAccValue::get_currentValue(VARIANT * currentValue)
|
COM_DECLSPEC_NOTHROW STDMETHODIMP CAccValue::get_currentValue(VARIANT* currentValue)
|
||||||
{
|
{
|
||||||
SolarMutexGuard g;
|
SolarMutexGuard g;
|
||||||
|
|
||||||
@@ -52,11 +52,11 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccValue::get_currentValue(VARIANT * currentV
|
|||||||
|
|
||||||
if (currentValue == nullptr)
|
if (currentValue == nullptr)
|
||||||
return E_INVALIDARG;
|
return E_INVALIDARG;
|
||||||
if ( !pRXVal.is() )
|
if (!pRXVal.is())
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|
||||||
// Get Any type value from UNO.
|
// Get Any type value from UNO.
|
||||||
css::uno::Any anyVal = GetXInterface()->getCurrentValue();
|
css::uno::Any anyVal = GetXInterface()->getCurrentValue();
|
||||||
// Convert Any to VARIANT.
|
// Convert Any to VARIANT.
|
||||||
CMAccessible::ConvertAnyToVariant(anyVal, currentValue);
|
CMAccessible::ConvertAnyToVariant(anyVal, currentValue);
|
||||||
|
|
||||||
@@ -77,57 +77,57 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccValue::setCurrentValue(VARIANT value)
|
|||||||
|
|
||||||
ENTER_PROTECTED_BLOCK
|
ENTER_PROTECTED_BLOCK
|
||||||
|
|
||||||
if ( !pRXVal.is() )
|
if (!pRXVal.is())
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|
||||||
HRESULT hRet = S_OK;
|
HRESULT hRet = S_OK;
|
||||||
css::uno::Any anyVal;
|
css::uno::Any anyVal;
|
||||||
|
|
||||||
// Set value according to value type.
|
// Set value according to value type.
|
||||||
switch(value.vt)
|
switch (value.vt)
|
||||||
{
|
{
|
||||||
case VT_UI1:
|
case VT_UI1:
|
||||||
{
|
{
|
||||||
anyVal <<= sal_Unicode(value.bVal);
|
anyVal <<= sal_Unicode(value.bVal);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case VT_BOOL:
|
case VT_BOOL:
|
||||||
{
|
{
|
||||||
css::uno::Type typeInfo(TypeClass_BOOLEAN, "bool");
|
css::uno::Type typeInfo(TypeClass_BOOLEAN, "bool");
|
||||||
anyVal.setValue(&value.boolVal, typeInfo);
|
anyVal.setValue(&value.boolVal, typeInfo);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case VT_I2:
|
case VT_I2:
|
||||||
{
|
{
|
||||||
css::uno::Type typeInfo(TypeClass_SHORT, "short");
|
css::uno::Type typeInfo(TypeClass_SHORT, "short");
|
||||||
anyVal.setValue(&value.iVal, typeInfo);
|
anyVal.setValue(&value.iVal, typeInfo);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case VT_I4:
|
case VT_I4:
|
||||||
{
|
{
|
||||||
css::uno::Type typeInfo(TypeClass_LONG, "long");
|
css::uno::Type typeInfo(TypeClass_LONG, "long");
|
||||||
anyVal.setValue(&value.lVal, typeInfo);
|
anyVal.setValue(&value.lVal, typeInfo);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case VT_R4:
|
case VT_R4:
|
||||||
{
|
{
|
||||||
css::uno::Type typeInfo(TypeClass_FLOAT, "float");
|
css::uno::Type typeInfo(TypeClass_FLOAT, "float");
|
||||||
anyVal.setValue(&value.fltVal, typeInfo);
|
anyVal.setValue(&value.fltVal, typeInfo);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case VT_R8:
|
case VT_R8:
|
||||||
{
|
{
|
||||||
css::uno::Type typeInfo(TypeClass_DOUBLE, "double");
|
css::uno::Type typeInfo(TypeClass_DOUBLE, "double");
|
||||||
anyVal.setValue(&value.dblVal, typeInfo);
|
anyVal.setValue(&value.dblVal, typeInfo);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
// Unsupported type conversion.
|
// Unsupported type conversion.
|
||||||
hRet = E_FAIL;
|
hRet = E_FAIL;
|
||||||
@@ -135,9 +135,9 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccValue::setCurrentValue(VARIANT value)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(hRet == S_OK)
|
if (hRet == S_OK)
|
||||||
{
|
{
|
||||||
hRet = pRXVal->setCurrentValue(anyVal) ? S_OK : E_FAIL ;
|
hRet = pRXVal->setCurrentValue(anyVal) ? S_OK : E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
return hRet;
|
return hRet;
|
||||||
@@ -150,7 +150,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccValue::setCurrentValue(VARIANT value)
|
|||||||
* @param maximumValue Variant that accepts maximum value.
|
* @param maximumValue Variant that accepts maximum value.
|
||||||
* @return Result.
|
* @return Result.
|
||||||
*/
|
*/
|
||||||
COM_DECLSPEC_NOTHROW STDMETHODIMP CAccValue::get_maximumValue(VARIANT *maximumValue)
|
COM_DECLSPEC_NOTHROW STDMETHODIMP CAccValue::get_maximumValue(VARIANT* maximumValue)
|
||||||
{
|
{
|
||||||
SolarMutexGuard g;
|
SolarMutexGuard g;
|
||||||
|
|
||||||
@@ -158,11 +158,11 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccValue::get_maximumValue(VARIANT *maximumVa
|
|||||||
|
|
||||||
if (maximumValue == nullptr)
|
if (maximumValue == nullptr)
|
||||||
return E_INVALIDARG;
|
return E_INVALIDARG;
|
||||||
if ( !pRXVal.is() )
|
if (!pRXVal.is())
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|
||||||
// Get Any type value from UNO.
|
// Get Any type value from UNO.
|
||||||
css::uno::Any anyVal = GetXInterface()->getMaximumValue();
|
css::uno::Any anyVal = GetXInterface()->getMaximumValue();
|
||||||
// Convert Any to VARIANT.
|
// Convert Any to VARIANT.
|
||||||
CMAccessible::ConvertAnyToVariant(anyVal, maximumValue);
|
CMAccessible::ConvertAnyToVariant(anyVal, maximumValue);
|
||||||
|
|
||||||
@@ -176,7 +176,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccValue::get_maximumValue(VARIANT *maximumVa
|
|||||||
* @param minimumValue Variant that accepts minimum value.
|
* @param minimumValue Variant that accepts minimum value.
|
||||||
* @return Result.
|
* @return Result.
|
||||||
*/
|
*/
|
||||||
COM_DECLSPEC_NOTHROW STDMETHODIMP CAccValue::get_minimumValue(VARIANT *minimumValue)
|
COM_DECLSPEC_NOTHROW STDMETHODIMP CAccValue::get_minimumValue(VARIANT* minimumValue)
|
||||||
{
|
{
|
||||||
SolarMutexGuard g;
|
SolarMutexGuard g;
|
||||||
|
|
||||||
@@ -184,11 +184,11 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccValue::get_minimumValue(VARIANT *minimumVa
|
|||||||
|
|
||||||
if (minimumValue == nullptr)
|
if (minimumValue == nullptr)
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
if ( !pRXVal.is() )
|
if (!pRXVal.is())
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|
||||||
// Get Any type value from UNO.
|
// Get Any type value from UNO.
|
||||||
css::uno::Any anyVal = GetXInterface()->getMinimumValue();
|
css::uno::Any anyVal = GetXInterface()->getMinimumValue();
|
||||||
// Convert Any to VARIANT.
|
// Convert Any to VARIANT.
|
||||||
CMAccessible::ConvertAnyToVariant(anyVal, minimumValue);
|
CMAccessible::ConvertAnyToVariant(anyVal, minimumValue);
|
||||||
|
|
||||||
@@ -210,15 +210,15 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccValue::put_XInterface(hyper pXInterface)
|
|||||||
|
|
||||||
CUNOXWrapper::put_XInterface(pXInterface);
|
CUNOXWrapper::put_XInterface(pXInterface);
|
||||||
//special query.
|
//special query.
|
||||||
if(pUNOInterface == nullptr)
|
if (pUNOInterface == nullptr)
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
Reference<XAccessibleContext> pRContext = pUNOInterface->getAccessibleContext();
|
Reference<XAccessibleContext> pRContext = pUNOInterface->getAccessibleContext();
|
||||||
if( !pRContext.is() )
|
if (!pRContext.is())
|
||||||
{
|
{
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
Reference<XAccessibleValue> pRXI(pRContext,UNO_QUERY);
|
Reference<XAccessibleValue> pRXI(pRContext, UNO_QUERY);
|
||||||
if( !pRXI.is() )
|
if (!pRXI.is())
|
||||||
pRXVal = nullptr;
|
pRXVal = nullptr;
|
||||||
else
|
else
|
||||||
pRXVal = pRXI.get();
|
pRXVal = pRXI.get();
|
||||||
|
@@ -20,11 +20,12 @@
|
|||||||
#ifndef INCLUDED_WINACCESSIBILITY_SOURCE_UACCCOM_ACCESSIBLEKEYSTROKE_H
|
#ifndef INCLUDED_WINACCESSIBILITY_SOURCE_UACCCOM_ACCESSIBLEKEYSTROKE_H
|
||||||
#define INCLUDED_WINACCESSIBILITY_SOURCE_UACCCOM_ACCESSIBLEKEYSTROKE_H
|
#define INCLUDED_WINACCESSIBILITY_SOURCE_UACCCOM_ACCESSIBLEKEYSTROKE_H
|
||||||
|
|
||||||
struct ACCESSIBLE_KEYSTROKE {
|
struct ACCESSIBLE_KEYSTROKE
|
||||||
short modifiers;
|
{
|
||||||
short keyCode;
|
short modifiers;
|
||||||
char keyChar;
|
short keyCode;
|
||||||
short keyFunc;
|
char keyChar;
|
||||||
|
short keyFunc;
|
||||||
};
|
};
|
||||||
|
|
||||||
const short MODIFIER_SHIFT = 1;
|
const short MODIFIER_SHIFT = 1;
|
||||||
|
@@ -26,7 +26,7 @@
|
|||||||
#pragma clang diagnostic push
|
#pragma clang diagnostic push
|
||||||
#pragma clang diagnostic ignored "-Wnon-virtual-dtor"
|
#pragma clang diagnostic ignored "-Wnon-virtual-dtor"
|
||||||
#endif
|
#endif
|
||||||
#include <UAccCOM.h>
|
#include <UAccCOM.h>
|
||||||
#if defined __clang__
|
#if defined __clang__
|
||||||
#pragma clang diagnostic pop
|
#pragma clang diagnostic pop
|
||||||
#endif
|
#endif
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
#if defined __clang__
|
#if defined __clang__
|
||||||
#pragma clang diagnostic push
|
#pragma clang diagnostic push
|
||||||
#pragma clang diagnostic ignored "-Wextra-tokens"
|
#pragma clang diagnostic ignored "-Wextra-tokens"
|
||||||
// "#endif !_MIDL_USE_GUIDDEF_" in midl-generated code
|
// "#endif !_MIDL_USE_GUIDDEF_" in midl-generated code
|
||||||
#endif
|
#endif
|
||||||
#include <UAccCOM_i.c>
|
#include <UAccCOM_i.c>
|
||||||
#include <ia2_api_all_i.c>
|
#include <ia2_api_all_i.c>
|
||||||
@@ -56,7 +56,6 @@
|
|||||||
#include "AccHyperLink.h"
|
#include "AccHyperLink.h"
|
||||||
#include "AccHypertext.h"
|
#include "AccHypertext.h"
|
||||||
|
|
||||||
|
|
||||||
CComModule _Module;
|
CComModule _Module;
|
||||||
|
|
||||||
BEGIN_OBJECT_MAP(ObjectMap)
|
BEGIN_OBJECT_MAP(ObjectMap)
|
||||||
@@ -83,8 +82,7 @@ END_OBJECT_MAP()
|
|||||||
|
|
||||||
// DLL Entry Point
|
// DLL Entry Point
|
||||||
|
|
||||||
extern "C"
|
extern "C" BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID /*lpReserved*/)
|
||||||
BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID /*lpReserved*/)
|
|
||||||
{
|
{
|
||||||
if (dwReason == DLL_PROCESS_ATTACH)
|
if (dwReason == DLL_PROCESS_ATTACH)
|
||||||
{
|
{
|
||||||
@@ -93,17 +91,12 @@ extern "C"
|
|||||||
}
|
}
|
||||||
else if (dwReason == DLL_PROCESS_DETACH)
|
else if (dwReason == DLL_PROCESS_DETACH)
|
||||||
_Module.Term();
|
_Module.Term();
|
||||||
return TRUE; // ok
|
return TRUE; // ok
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Used to determine whether the DLL can be unloaded by OLE
|
// Used to determine whether the DLL can be unloaded by OLE
|
||||||
|
|
||||||
STDAPI DllCanUnloadNow()
|
STDAPI DllCanUnloadNow() { return (_Module.GetLockCount() == 0) ? S_OK : E_FAIL; }
|
||||||
{
|
|
||||||
return (_Module.GetLockCount()==0) ? S_OK : E_FAIL;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Returns a class factory to create an object of the requested type
|
// Returns a class factory to create an object of the requested type
|
||||||
|
|
||||||
@@ -112,10 +105,9 @@ STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
|
|||||||
return _Module.GetClassObject(rclsid, riid, ppv);
|
return _Module.GetClassObject(rclsid, riid, ppv);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
IMAccessible* UAccCOMCreateInstance()
|
||||||
IMAccessible * UAccCOMCreateInstance()
|
|
||||||
{
|
{
|
||||||
IMAccessible * pIMA = nullptr;
|
IMAccessible* pIMA = nullptr;
|
||||||
HRESULT hr = createInstance<CMAccessible>(IID_IMAccessible, &pIMA);
|
HRESULT hr = createInstance<CMAccessible>(IID_IMAccessible, &pIMA);
|
||||||
return (S_OK == hr) ? pIMA : nullptr;
|
return (S_OK == hr) ? pIMA : nullptr;
|
||||||
}
|
}
|
||||||
|
@@ -24,14 +24,13 @@
|
|||||||
#pragma clang diagnostic push
|
#pragma clang diagnostic push
|
||||||
#pragma clang diagnostic ignored "-Wnon-virtual-dtor"
|
#pragma clang diagnostic ignored "-Wnon-virtual-dtor"
|
||||||
#endif
|
#endif
|
||||||
#include <UAccCOM.h>
|
#include <UAccCOM.h>
|
||||||
#if defined __clang__
|
#if defined __clang__
|
||||||
#pragma clang diagnostic pop
|
#pragma clang diagnostic pop
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using namespace ::com::sun::star;
|
using namespace ::com::sun::star;
|
||||||
|
|
||||||
|
|
||||||
// CUNOXWrapper
|
// CUNOXWrapper
|
||||||
|
|
||||||
COM_DECLSPEC_NOTHROW STDMETHODIMP CUNOXWrapper::put_XInterface(hyper nXInterface)
|
COM_DECLSPEC_NOTHROW STDMETHODIMP CUNOXWrapper::put_XInterface(hyper nXInterface)
|
||||||
@@ -40,9 +39,6 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CUNOXWrapper::put_XInterface(hyper nXInterface
|
|||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
COM_DECLSPEC_NOTHROW STDMETHODIMP CUNOXWrapper::put_XSubInterface(hyper)
|
COM_DECLSPEC_NOTHROW STDMETHODIMP CUNOXWrapper::put_XSubInterface(hyper) { return S_OK; }
|
||||||
{
|
|
||||||
return S_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||||
|
@@ -20,7 +20,7 @@
|
|||||||
#ifndef INCLUDED_WINACCESSIBILITY_SOURCE_UACCCOM_UNOXWRAPPER_H
|
#ifndef INCLUDED_WINACCESSIBILITY_SOURCE_UACCCOM_UNOXWRAPPER_H
|
||||||
#define INCLUDED_WINACCESSIBILITY_SOURCE_UACCCOM_UNOXWRAPPER_H
|
#define INCLUDED_WINACCESSIBILITY_SOURCE_UACCCOM_UNOXWRAPPER_H
|
||||||
|
|
||||||
#include "Resource.h" // main symbols
|
#include "Resource.h" // main symbols
|
||||||
|
|
||||||
#include <com/sun/star/accessibility/XAccessible.hpp>
|
#include <com/sun/star/accessibility/XAccessible.hpp>
|
||||||
|
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
#pragma clang diagnostic push
|
#pragma clang diagnostic push
|
||||||
#pragma clang diagnostic ignored "-Wnon-virtual-dtor"
|
#pragma clang diagnostic ignored "-Wnon-virtual-dtor"
|
||||||
#endif
|
#endif
|
||||||
#include <UAccCOM.h>
|
#include <UAccCOM.h>
|
||||||
#if defined __clang__
|
#if defined __clang__
|
||||||
#pragma clang diagnostic pop
|
#pragma clang diagnostic pop
|
||||||
#endif
|
#endif
|
||||||
@@ -42,8 +42,10 @@ protected:
|
|||||||
css::accessibility::XAccessible* pUNOInterface;
|
css::accessibility::XAccessible* pUNOInterface;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CUNOXWrapper() : pUNOInterface(nullptr)
|
CUNOXWrapper()
|
||||||
{ }
|
: pUNOInterface(nullptr)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
// IUNOXWrapper
|
// IUNOXWrapper
|
||||||
STDMETHOD(put_XInterface)(hyper pXInterface) override;
|
STDMETHOD(put_XInterface)(hyper pXInterface) override;
|
||||||
|
@@ -46,33 +46,32 @@ AccEventListener::AccEventListener(css::accessibility::XAccessible* pAcc,
|
|||||||
AccObjectManagerAgent* Agent)
|
AccObjectManagerAgent* Agent)
|
||||||
: m_xAccessible(pAcc)
|
: m_xAccessible(pAcc)
|
||||||
, pAgent(Agent)
|
, pAgent(Agent)
|
||||||
{}
|
|
||||||
|
|
||||||
AccEventListener::~AccEventListener()
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AccEventListener::~AccEventListener() {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Uno's event notifier when event is captured
|
* Uno's event notifier when event is captured
|
||||||
* @param AccessibleEventObject the event object which contains information about event
|
* @param AccessibleEventObject the event object which contains information about event
|
||||||
*/
|
*/
|
||||||
void AccEventListener::notifyEvent( const css::accessibility::AccessibleEventObject& aEvent )
|
void AccEventListener::notifyEvent(const css::accessibility::AccessibleEventObject& aEvent)
|
||||||
{
|
{
|
||||||
SolarMutexGuard g;
|
SolarMutexGuard g;
|
||||||
|
|
||||||
switch (aEvent.EventId)
|
switch (aEvent.EventId)
|
||||||
{
|
{
|
||||||
case AccessibleEventId::NAME_CHANGED:
|
case AccessibleEventId::NAME_CHANGED:
|
||||||
HandleNameChangedEvent(aEvent.NewValue);
|
HandleNameChangedEvent(aEvent.NewValue);
|
||||||
break;
|
break;
|
||||||
case AccessibleEventId::DESCRIPTION_CHANGED:
|
case AccessibleEventId::DESCRIPTION_CHANGED:
|
||||||
HandleDescriptionChangedEvent(aEvent.NewValue);
|
HandleDescriptionChangedEvent(aEvent.NewValue);
|
||||||
break;
|
break;
|
||||||
case AccessibleEventId::STATE_CHANGED:
|
case AccessibleEventId::STATE_CHANGED:
|
||||||
HandleStateChangedEvent(aEvent.OldValue, aEvent.NewValue);
|
HandleStateChangedEvent(aEvent.OldValue, aEvent.NewValue);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -85,7 +84,7 @@ void AccEventListener::HandleNameChangedEvent(Any name)
|
|||||||
if (pAgent->IsTopWinAcc(m_xAccessible.get()))
|
if (pAgent->IsTopWinAcc(m_xAccessible.get()))
|
||||||
{
|
{
|
||||||
XAccessible* pAccDoc = pAgent->GetAccDocByAccTopWin(m_xAccessible.get());
|
XAccessible* pAccDoc = pAgent->GetAccDocByAccTopWin(m_xAccessible.get());
|
||||||
if ( pAccDoc )
|
if (pAccDoc)
|
||||||
{
|
{
|
||||||
pAgent->UpdateAccName(pAccDoc);
|
pAgent->UpdateAccName(pAccDoc);
|
||||||
pAgent->NotifyAccEvent(UM_EVENT_OBJECT_NAMECHANGE, pAccDoc);
|
pAgent->NotifyAccEvent(UM_EVENT_OBJECT_NAMECHANGE, pAccDoc);
|
||||||
@@ -132,7 +131,7 @@ void AccEventListener::HandleVisibleDataChangedEvent()
|
|||||||
void AccEventListener::HandleStateChangedEvent(Any oldValue, Any newValue)
|
void AccEventListener::HandleStateChangedEvent(Any oldValue, Any newValue)
|
||||||
{
|
{
|
||||||
short newV, oldV;
|
short newV, oldV;
|
||||||
if( newValue >>= newV)
|
if (newValue >>= newV)
|
||||||
{
|
{
|
||||||
SetComponentState(newV, true);
|
SetComponentState(newV, true);
|
||||||
}
|
}
|
||||||
@@ -147,16 +146,16 @@ void AccEventListener::HandleStateChangedEvent(Any oldValue, Any newValue)
|
|||||||
* @param state new state id
|
* @param state new state id
|
||||||
* @param enable true if state is set, false if state is unset
|
* @param enable true if state is set, false if state is unset
|
||||||
*/
|
*/
|
||||||
void AccEventListener::SetComponentState(short state, bool enable )
|
void AccEventListener::SetComponentState(short state, bool enable)
|
||||||
{
|
{
|
||||||
switch (state)
|
switch (state)
|
||||||
{
|
{
|
||||||
case AccessibleStateType::FOCUSED:
|
case AccessibleStateType::FOCUSED:
|
||||||
FireStateFocusedChange(enable);
|
FireStateFocusedChange(enable);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
FireStatePropertyChange(state, enable);
|
FireStatePropertyChange(state, enable);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -166,7 +165,7 @@ void AccEventListener::SetComponentState(short state, bool enable )
|
|||||||
*/
|
*/
|
||||||
void AccEventListener::FireStateFocusedChange(bool enable)
|
void AccEventListener::FireStateFocusedChange(bool enable)
|
||||||
{
|
{
|
||||||
if(enable)
|
if (enable)
|
||||||
{
|
{
|
||||||
pAgent->IncreaseState(m_xAccessible.get(), AccessibleStateType::FOCUSED);
|
pAgent->IncreaseState(m_xAccessible.get(), AccessibleStateType::FOCUSED);
|
||||||
pAgent->NotifyAccEvent(UM_EVENT_STATE_FOCUSED, m_xAccessible.get());
|
pAgent->NotifyAccEvent(UM_EVENT_STATE_FOCUSED, m_xAccessible.get());
|
||||||
@@ -177,15 +176,14 @@ void AccEventListener::FireStateFocusedChange(bool enable)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* fire the MSAA state changed event
|
* fire the MSAA state changed event
|
||||||
* @param state the state id
|
* @param state the state id
|
||||||
* @param set true if state is set, false if state is unset
|
* @param set true if state is set, false if state is unset
|
||||||
*/
|
*/
|
||||||
void AccEventListener::FireStatePropertyChange(short /*state*/, bool set )
|
void AccEventListener::FireStatePropertyChange(short /*state*/, bool set)
|
||||||
{
|
{
|
||||||
if( set )
|
if (set)
|
||||||
{
|
{
|
||||||
//get new state
|
//get new state
|
||||||
}
|
}
|
||||||
@@ -200,9 +198,9 @@ void AccEventListener::FireStatePropertyChange(short /*state*/, bool set )
|
|||||||
*/
|
*/
|
||||||
short AccEventListener::GetRole()
|
short AccEventListener::GetRole()
|
||||||
{
|
{
|
||||||
css::uno::Reference<css::accessibility::XAccessibleContext> const
|
css::uno::Reference<css::accessibility::XAccessibleContext> const xContext(
|
||||||
xContext(m_xAccessible->getAccessibleContext());
|
m_xAccessible->getAccessibleContext());
|
||||||
if(xContext.is())
|
if (xContext.is())
|
||||||
{
|
{
|
||||||
return xContext->getAccessibleRole();
|
return xContext->getAccessibleRole();
|
||||||
}
|
}
|
||||||
@@ -234,7 +232,7 @@ void AccEventListener::RemoveMeFromBroadcaster()
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
css::uno::Reference<XAccessibleEventBroadcaster> const xBroadcaster(
|
css::uno::Reference<XAccessibleEventBroadcaster> const xBroadcaster(
|
||||||
m_xAccessible->getAccessibleContext(), UNO_QUERY);
|
m_xAccessible->getAccessibleContext(), UNO_QUERY);
|
||||||
if (xBroadcaster.is())
|
if (xBroadcaster.is())
|
||||||
{
|
{
|
||||||
//remove the lister from accessible object
|
//remove the lister from accessible object
|
||||||
@@ -242,22 +240,21 @@ void AccEventListener::RemoveMeFromBroadcaster()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception const&)
|
catch (Exception const&)
|
||||||
{ // may throw if it's already disposed - ignore that
|
{ // may throw if it's already disposed - ignore that
|
||||||
}
|
}
|
||||||
pAgent->NotifyDestroy(m_xAccessible.get());
|
pAgent->NotifyDestroy(m_xAccessible.get());
|
||||||
m_xAccessible.clear(); // release cyclic reference
|
m_xAccessible.clear(); // release cyclic reference
|
||||||
}
|
}
|
||||||
catch(...)
|
catch (...)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* this method is invoked before listener is disposed
|
* this method is invoked before listener is disposed
|
||||||
*/
|
*/
|
||||||
void AccEventListener::disposing( const css::lang::EventObject& /*Source*/ )
|
void AccEventListener::disposing(const css::lang::EventObject& /*Source*/)
|
||||||
{
|
{
|
||||||
SolarMutexGuard g;
|
SolarMutexGuard g;
|
||||||
|
|
||||||
|
@@ -19,7 +19,6 @@
|
|||||||
|
|
||||||
// AccObjectContainerEventListener.cpp: implementation of the AccContainerEventListener class.
|
// AccObjectContainerEventListener.cpp: implementation of the AccContainerEventListener class.
|
||||||
|
|
||||||
|
|
||||||
#include <com/sun/star/accessibility/XAccessible.hpp>
|
#include <com/sun/star/accessibility/XAccessible.hpp>
|
||||||
#include <com/sun/star/accessibility/AccessibleStateType.hpp>
|
#include <com/sun/star/accessibility/AccessibleStateType.hpp>
|
||||||
#include <com/sun/star/accessibility/AccessibleEventId.hpp>
|
#include <com/sun/star/accessibility/AccessibleEventId.hpp>
|
||||||
@@ -33,12 +32,12 @@
|
|||||||
using namespace com::sun::star::uno;
|
using namespace com::sun::star::uno;
|
||||||
using namespace com::sun::star::accessibility;
|
using namespace com::sun::star::accessibility;
|
||||||
|
|
||||||
AccObjectContainerEventListener::AccObjectContainerEventListener(css::accessibility::XAccessible* pAcc, AccObjectManagerAgent* Agent)
|
AccObjectContainerEventListener::AccObjectContainerEventListener(
|
||||||
:AccContainerEventListener(pAcc, Agent)
|
css::accessibility::XAccessible* pAcc, AccObjectManagerAgent* Agent)
|
||||||
{}
|
: AccContainerEventListener(pAcc, Agent)
|
||||||
AccObjectContainerEventListener::~AccObjectContainerEventListener()
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
AccObjectContainerEventListener::~AccObjectContainerEventListener() {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* handle the STATE_CHANGED event
|
* handle the STATE_CHANGED event
|
||||||
@@ -48,7 +47,7 @@ void AccObjectContainerEventListener::HandleStateChangedEvent(Any oldValue, Any
|
|||||||
//set the accessible name before process for there is no NAME_CHANGED event when change
|
//set the accessible name before process for there is no NAME_CHANGED event when change
|
||||||
//the text in drawing objects.
|
//the text in drawing objects.
|
||||||
short newV;
|
short newV;
|
||||||
if( newValue >>= newV)
|
if (newValue >>= newV)
|
||||||
{
|
{
|
||||||
if (newV == AccessibleStateType::FOCUSED)
|
if (newV == AccessibleStateType::FOCUSED)
|
||||||
{
|
{
|
||||||
|
@@ -21,9 +21,7 @@
|
|||||||
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
ResIDGenerator::~ResIDGenerator()
|
ResIDGenerator::~ResIDGenerator() {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SubList stores those IDs that were ever generated and deleted, the method
|
* SubList stores those IDs that were ever generated and deleted, the method
|
||||||
|
Reference in New Issue
Block a user