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,
|
||||||
@@ -42,22 +41,20 @@ public:
|
|||||||
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;
|
||||||
|
@@ -38,15 +38,14 @@ public:
|
|||||||
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,15 +32,14 @@ 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;
|
||||||
@@ -49,7 +48,8 @@ public:
|
|||||||
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,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>
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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.
|
||||||
@@ -39,15 +38,14 @@ public:
|
|||||||
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,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>
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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.
|
||||||
@@ -39,14 +38,13 @@ public:
|
|||||||
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,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>
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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
|
||||||
@@ -39,11 +38,11 @@ public:
|
|||||||
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,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>
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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.
|
||||||
@@ -39,11 +38,11 @@ public:
|
|||||||
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,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>
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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.
|
||||||
@@ -39,14 +38,13 @@ public:
|
|||||||
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,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>
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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
|
||||||
@@ -35,11 +34,11 @@
|
|||||||
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
|
||||||
|
@@ -35,11 +35,11 @@
|
|||||||
* 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;
|
||||||
@@ -56,7 +56,8 @@ public:
|
|||||||
// 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);
|
||||||
|
|
||||||
|
@@ -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>
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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.
|
||||||
@@ -39,11 +38,11 @@ public:
|
|||||||
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,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>
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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.
|
||||||
@@ -39,15 +38,14 @@ public:
|
|||||||
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
|
||||||
|
@@ -55,7 +55,8 @@ public:
|
|||||||
// 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,
|
||||||
@@ -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
|
||||||
|
@@ -40,7 +40,6 @@
|
|||||||
*/
|
*/
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -51,7 +50,6 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponent::get_locationInParent(long *x, l
|
|||||||
*/
|
*/
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -62,7 +60,6 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponent::get_foreground(IA2Color * foreg
|
|||||||
*/
|
*/
|
||||||
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
|
||||||
@@ -90,7 +85,6 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP CAccComponentBase::get_locationOnScreen(long *
|
|||||||
*x = pt.X;
|
*x = pt.X;
|
||||||
*y = pt.Y;
|
*y = pt.Y;
|
||||||
return S_OK;
|
return S_OK;
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (...)
|
catch (...)
|
||||||
{
|
{
|
||||||
|
@@ -56,13 +56,9 @@ public:
|
|||||||
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
|
||||||
|
@@ -40,7 +40,8 @@ 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);
|
||||||
@@ -50,7 +51,8 @@ public:
|
|||||||
|
|
||||||
// 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);
|
||||||
@@ -66,13 +68,16 @@ public:
|
|||||||
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);
|
||||||
@@ -94,19 +99,16 @@ public:
|
|||||||
|
|
||||||
// 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
|
||||||
|
@@ -20,7 +20,8 @@
|
|||||||
#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 modifiers;
|
||||||
short keyCode;
|
short keyCode;
|
||||||
char keyChar;
|
char keyChar;
|
||||||
|
@@ -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)
|
||||||
{
|
{
|
||||||
@@ -96,14 +94,9 @@ extern "C"
|
|||||||
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,7 +105,6 @@ 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;
|
||||||
|
@@ -31,7 +31,6 @@
|
|||||||
|
|
||||||
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: */
|
||||||
|
@@ -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,12 +46,11 @@ 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
|
||||||
@@ -177,7 +176,6 @@ 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
|
||||||
@@ -200,8 +198,8 @@ 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();
|
||||||
@@ -251,7 +249,6 @@ void AccEventListener::RemoveMeFromBroadcaster()
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -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(
|
||||||
|
css::accessibility::XAccessible* pAcc, AccObjectManagerAgent* Agent)
|
||||||
: AccContainerEventListener(pAcc, Agent)
|
: AccContainerEventListener(pAcc, Agent)
|
||||||
{}
|
|
||||||
AccObjectContainerEventListener::~AccObjectContainerEventListener()
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
AccObjectContainerEventListener::~AccObjectContainerEventListener() {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* handle the STATE_CHANGED event
|
* handle the STATE_CHANGED event
|
||||||
|
@@ -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