summaryrefslogtreecommitdiff
path: root/winaccessibility/source
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2022-02-28 10:57:30 +0000
committerMichael Weghorn <m.weghorn@posteo.de>2022-02-28 17:42:47 +0100
commit6723203528739430974d5c1dd14a26f8d4efcf0a (patch)
treef569638a1afc977c3c7815b1fe72264ef769bd3d /winaccessibility/source
parent470ed0ff78a8b07d5aa02e0bba97bfa479860cf3 (diff)
wina11y: Convert unomsaaevent.hxx constants to enum class UnoMSAAEvent
Also drop the previous comments for the constants that add little value and are partially outdated. See the actual implementation to see how values are mapped to send out actual MSAA events, e.g. the previous comment // CARET_CHANGED --> EVENT_OBJECT_LOCATIONCHANGED was no longer correct by now, since that is by now mapped to `IA2_EVENT_TEXT_CARET_MOVED` in `AccObjectWinManager::NotifyAccEvent`. Change-Id: I38111ccb60c06f73ce53b18a6ca32e13dbd629b8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130697 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'winaccessibility/source')
-rw-r--r--winaccessibility/source/service/AccComponentEventListener.cxx28
-rw-r--r--winaccessibility/source/service/AccContainerEventListener.cxx66
-rw-r--r--winaccessibility/source/service/AccDescendantManagerEventListener.cxx26
-rw-r--r--winaccessibility/source/service/AccDialogEventListener.cxx4
-rw-r--r--winaccessibility/source/service/AccEventListener.cxx12
-rw-r--r--winaccessibility/source/service/AccFrameEventListener.cxx4
-rw-r--r--winaccessibility/source/service/AccListEventListener.cxx4
-rw-r--r--winaccessibility/source/service/AccMenuEventListener.cxx6
-rw-r--r--winaccessibility/source/service/AccObjectManagerAgent.cxx6
-rw-r--r--winaccessibility/source/service/AccObjectWinManager.cxx84
-rw-r--r--winaccessibility/source/service/AccParagraphEventListener.cxx4
-rw-r--r--winaccessibility/source/service/AccTableEventListener.cxx23
-rw-r--r--winaccessibility/source/service/AccTopWindowListener.cxx6
-rw-r--r--winaccessibility/source/service/AccTreeEventListener.cxx2
-rw-r--r--winaccessibility/source/service/AccWindowEventListener.cxx4
15 files changed, 136 insertions, 143 deletions
diff --git a/winaccessibility/source/service/AccComponentEventListener.cxx b/winaccessibility/source/service/AccComponentEventListener.cxx
index 7f7acfe1e1e1..21de787addee 100644
--- a/winaccessibility/source/service/AccComponentEventListener.cxx
+++ b/winaccessibility/source/service/AccComponentEventListener.cxx
@@ -93,7 +93,7 @@ void AccComponentEventListener::notifyEvent( const css::accessibility::Accessib
void AccComponentEventListener::HandleValueChangedEvent(Any, Any)
{
pAgent->UpdateValue(m_xAccessible.get());
- pAgent->NotifyAccEvent(UM_EVENT_OBJECT_VALUECHANGE, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::OBJECT_VALUECHANGE, m_xAccessible.get());
}
/**
@@ -102,7 +102,7 @@ void AccComponentEventListener::HandleValueChangedEvent(Any, Any)
void AccComponentEventListener::HandleActionChangedEvent()
{
pAgent->UpdateAction(m_xAccessible.get());
- pAgent->NotifyAccEvent(UM_EVENT_OBJECT_DEFACTIONCHANGE, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::OBJECT_DEFACTIONCHANGE, m_xAccessible.get());
}
/**
@@ -114,7 +114,7 @@ void AccComponentEventListener::HandleActionChangedEvent()
void AccComponentEventListener::HandleTextChangedEvent(Any, Any newValue)
{
pAgent->UpdateValue(m_xAccessible.get(), newValue);
- pAgent->NotifyAccEvent(UM_EVENT_OBJECT_VALUECHANGE, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::OBJECT_VALUECHANGE, m_xAccessible.get());
}
/**
@@ -125,7 +125,7 @@ void AccComponentEventListener::HandleTextChangedEvent(Any, Any newValue)
*/
void AccComponentEventListener::HandleCaretChangedEvent(Any, Any)
{
- pAgent->NotifyAccEvent(UM_EVENT_OBJECT_CARETCHANGE, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::OBJECT_CARETCHANGE, m_xAccessible.get());
}
/**
@@ -218,19 +218,19 @@ void AccComponentEventListener::FireStatePropertyChange(short state, bool set)
if(!pAgent->IsSpecialToolboItem(m_xAccessible.get()))
{
- pAgent->NotifyAccEvent(UM_EVENT_STATE_CHECKED, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::STATE_CHECKED, m_xAccessible.get());
}
break;
case AccessibleStateType::PRESSED:
pAgent->IncreaseState(m_xAccessible.get(), state);
- pAgent->NotifyAccEvent(UM_EVENT_STATE_PRESSED, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::STATE_PRESSED, m_xAccessible.get());
break;
case AccessibleStateType::SELECTED:
pAgent->IncreaseState(m_xAccessible.get(), state);
break;
case AccessibleStateType::ARMED:
pAgent->IncreaseState(m_xAccessible.get(), state);
- pAgent->NotifyAccEvent(UM_EVENT_STATE_ARMED, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::STATE_ARMED, m_xAccessible.get());
break;
case AccessibleStateType::SHOWING:
pAgent->DecreaseState(m_xAccessible.get(), AccessibleStateType::DEFUNC);
@@ -257,23 +257,23 @@ void AccComponentEventListener::FireStatePropertyChange(short state, bool set)
if(!pAgent->IsSpecialToolboItem(m_xAccessible.get()))
{
- pAgent->NotifyAccEvent(UM_EVENT_STATE_CHECKED, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::STATE_CHECKED, m_xAccessible.get());
}
break;
case AccessibleStateType::PRESSED:
pAgent->DecreaseState(m_xAccessible.get(), state);
- pAgent->NotifyAccEvent(UM_EVENT_STATE_PRESSED, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::STATE_PRESSED, m_xAccessible.get());
break;
case AccessibleStateType::SELECTED:
pAgent->DecreaseState(m_xAccessible.get(), state);
//if the state is unset, no need to send MSAA SELECTION event
- //pAgent->NotifyAccEvent(UM_EVENT_STATE_SELECTED, m_xAccessible.get());
+ //pAgent->NotifyAccEvent(UnoMSAAEvent::STATE_SELECTED, m_xAccessible.get());
break;
case AccessibleStateType::ARMED:
{
pAgent->DecreaseState(m_xAccessible.get(), state);
//if the state is unset, no need to send MSAA MENU event
- //pAgent->NotifyAccEvent(UM_EVENT_STATE_ARMED, m_xAccessible.get());
+ //pAgent->NotifyAccEvent(UnoMSAAEvent::STATE_ARMED, m_xAccessible.get());
}
break;
case AccessibleStateType::SHOWING:
@@ -302,7 +302,7 @@ void AccComponentEventListener::FireStateFocusedChange(bool enable)
if(enable)
{
if (GetParentRole() != AccessibleRole::COMBO_BOX)
- pAgent->NotifyAccEvent(UM_EVENT_STATE_FOCUSED, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::STATE_FOCUSED, m_xAccessible.get());
}
else
{
@@ -313,13 +313,13 @@ void AccComponentEventListener::FireStateFocusedChange(bool enable)
void AccComponentEventListener::HandleSelectionChangedEventNoArgs()
{
- pAgent->NotifyAccEvent(UM_EVENT_SELECTION_CHANGED, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::SELECTION_CHANGED, m_xAccessible.get());
}
//add TEXT_SELECTION_CHANGED event
void AccComponentEventListener::HandleTextSelectionChangedEvent()
{
- pAgent->NotifyAccEvent(UM_EVENT_TEXT_SELECTION_CHANGED, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::TEXT_SELECTION_CHANGED, m_xAccessible.get());
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/winaccessibility/source/service/AccContainerEventListener.cxx b/winaccessibility/source/service/AccContainerEventListener.cxx
index ae4cccba9e0e..aa7a016e2384 100644
--- a/winaccessibility/source/service/AccContainerEventListener.cxx
+++ b/winaccessibility/source/service/AccContainerEventListener.cxx
@@ -134,7 +134,7 @@ void AccContainerEventListener::HandleChildChangedEvent(Any oldValue, Any newVal
{
//add all oldValue's existing children
pAgent->InsertChildrenAccObj(pAcc);
- pAgent->NotifyAccEvent(UM_EVENT_CHILD_ADDED, pAcc);
+ pAgent->NotifyAccEvent(UnoMSAAEvent::CHILD_ADDED, pAcc);
}
}
}
@@ -144,7 +144,7 @@ void AccContainerEventListener::HandleChildChangedEvent(Any oldValue, Any newVal
if(xChild.is())
{
XAccessible* pAcc = xChild.get();
- pAgent->NotifyAccEvent(UM_EVENT_CHILD_REMOVED, pAcc);
+ pAgent->NotifyAccEvent(UnoMSAAEvent::CHILD_REMOVED, pAcc);
//delete all oldValue's existing children
pAgent->DeleteChildrenAccObj( pAcc );
//delete this child
@@ -162,14 +162,14 @@ void AccContainerEventListener::HandleChildChangedEvent(Any oldValue, Any newVal
*/
void AccContainerEventListener::HandleSelectionChangedEvent(const Any& /*oldValue*/, const Any& newValue)
{
- if(NotifyChildEvent(UM_EVENT_SELECTION_CHANGED,newValue))
+ if (NotifyChildEvent(UnoMSAAEvent::SELECTION_CHANGED, newValue))
{
return ;
}
//menu bar does not process selection change event,just same as word behavior
if (GetRole()!=AccessibleRole::MENU_BAR)
- pAgent->NotifyAccEvent(UM_EVENT_SELECTION_CHANGED, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::SELECTION_CHANGED, m_xAccessible.get());
}
/**
@@ -184,7 +184,7 @@ void AccContainerEventListener::HandleAllChildrenChangedEvent()
pAgent->DeleteChildrenAccObj(m_xAccessible.get());
//add all oldValue's existing children
pAgent->InsertChildrenAccObj(m_xAccessible.get());
- pAgent->NotifyAccEvent(UM_EVENT_OBJECT_REORDER , m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::OBJECT_REORDER, m_xAccessible.get());
}
}
@@ -194,7 +194,7 @@ void AccContainerEventListener::HandleAllChildrenChangedEvent()
void AccContainerEventListener::HandleTextChangedEvent(Any, Any newValue)
{
pAgent->UpdateValue(m_xAccessible.get(), newValue);
- pAgent->NotifyAccEvent(UM_EVENT_OBJECT_TEXTCHANGE, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::OBJECT_TEXTCHANGE, m_xAccessible.get());
}
/**
@@ -261,7 +261,7 @@ void AccContainerEventListener::SetComponentState(short state, bool enable )
case AccessibleStateType::CHECKED:
{
pAgent->UpdateState(m_xAccessible.get());
- pAgent->NotifyAccEvent(UM_EVENT_STATE_BUSY, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::STATE_BUSY, m_xAccessible.get());
break;
}
@@ -290,7 +290,7 @@ void AccContainerEventListener::FireStatePropertyChange(short state, bool set)
case AccessibleStateType::FOCUSABLE:
case AccessibleStateType::OFFSCREEN:
pAgent->IncreaseState(m_xAccessible.get(), state);
- pAgent->NotifyAccEvent(UM_EVENT_STATE_BUSY, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::STATE_BUSY, m_xAccessible.get());
break;
case AccessibleStateType::SHOWING:
// UNO !SHOWING == MSAA OFFSCREEN
@@ -317,7 +317,7 @@ void AccContainerEventListener::FireStatePropertyChange(short state, bool set)
case AccessibleStateType::FOCUSABLE:
case AccessibleStateType::OFFSCREEN:
pAgent->DecreaseState(m_xAccessible.get(), state);
- pAgent->NotifyAccEvent(UM_EVENT_STATE_BUSY, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::STATE_BUSY, m_xAccessible.get());
break;
case AccessibleStateType::SHOWING:
// UNO !SHOWING == MSAA OFFSCREEN
@@ -342,15 +342,15 @@ void AccContainerEventListener::FireStateFocusedChange(bool enable)
if(enable)
{
pAgent->IncreaseState(m_xAccessible.get(), AccessibleStateType::FOCUSED);
- //if the acc role is MENU_BAR, MSAA UM_EVENT_MENU_START event should be sent
- //if the acc role is POPUP_MENU, MSAA UM_EVENT_MENUPOPUPSTART event should be sent
+ // if the acc role is MENU_BAR, UnoMSAAEvent::MENU_START event should be sent
+ // if the acc role is POPUP_MENU, UnoMSAAEvent::MENUPOPUPSTART event should be sent
short role = GetRole();
if(role == AccessibleRole::MENU_BAR)
{
- pAgent->NotifyAccEvent(UM_EVENT_MENU_START, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::MENU_START, m_xAccessible.get());
}
else if (role == AccessibleRole::POPUP_MENU)
- pAgent->NotifyAccEvent(UM_EVENT_MENUPOPUPSTART, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::MENUPOPUPSTART, m_xAccessible.get());
//Disable the focused event on option_pane and Panel.
//only disable option_pane for toolbar has panel to get focus
else if (role == AccessibleRole::PANEL || role == AccessibleRole::OPTION_PANE )
@@ -360,7 +360,7 @@ void AccContainerEventListener::FireStateFocusedChange(bool enable)
if (parentRole == AccessibleRole::TOOL_BAR
|| parentRole == AccessibleRole::SCROLL_PANE // sidebar
|| parentRole == AccessibleRole::PANEL) // sidebar
- pAgent->NotifyAccEvent(UM_EVENT_STATE_FOCUSED, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::STATE_FOCUSED, m_xAccessible.get());
}
else if (role == AccessibleRole::COMBO_BOX )
{
@@ -381,30 +381,30 @@ void AccContainerEventListener::FireStateFocusedChange(bool enable)
{
pAgent->DecreaseState(m_xAccessible.get(), AccessibleStateType::FOCUSED);
pAgent->IncreaseState( mxChild.get(), AccessibleStateType::FOCUSED);
- pAgent->NotifyAccEvent(UM_EVENT_STATE_FOCUSED, mxChild.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::STATE_FOCUSED, mxChild.get());
bSendFocusOnCombobox = false;
}
}
}
}
if (bSendFocusOnCombobox)
- pAgent->NotifyAccEvent(UM_EVENT_STATE_FOCUSED, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::STATE_FOCUSED, m_xAccessible.get());
}
else
- pAgent->NotifyAccEvent(UM_EVENT_STATE_FOCUSED, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::STATE_FOCUSED, m_xAccessible.get());
}
else
{
pAgent->DecreaseState(m_xAccessible.get(), AccessibleStateType::FOCUSED);
- //if the acc role is MENU_BAR, MSAA UM_EVENT_MENU_END event should be sent
- //if the acc role is POPUP_MENU, MSAA UM_EVENT_MENUPOPUPEND event should be sent
+ // if the acc role is MENU_BAR, UnoMSAAEvent::MENU_END event should be sent
+ // if the acc role is POPUP_MENU, UnoMSAAEvent::MENUPOPUPEND event should be sent
if (GetRole() == AccessibleRole::MENU_BAR)
{
- pAgent->NotifyAccEvent(UM_EVENT_MENU_END, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::MENU_END, m_xAccessible.get());
}
else if (GetRole() == AccessibleRole::POPUP_MENU)
{
- pAgent->NotifyAccEvent(UM_EVENT_MENUPOPUPEND, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::MENUPOPUPEND, m_xAccessible.get());
}
}
}
@@ -418,7 +418,7 @@ void AccContainerEventListener::FireStateFocusedChange(bool enable)
void AccContainerEventListener::HandleValueChangedEvent(Any, Any)
{
pAgent->UpdateValue(m_xAccessible.get());
- pAgent->NotifyAccEvent(UM_EVENT_OBJECT_VALUECHANGE, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::OBJECT_VALUECHANGE, m_xAccessible.get());
}
bool AccContainerEventListener::IsEditable(Reference<XAccessibleContext> const & xContext)
@@ -437,7 +437,7 @@ bool AccContainerEventListener::IsEditable(Reference<XAccessibleContext> const &
return false;
}
-bool AccContainerEventListener::NotifyChildEvent(short nWinEvent,const Any &Value)
+bool AccContainerEventListener::NotifyChildEvent(UnoMSAAEvent eWinEvent, const Any& Value)
{
Reference< XAccessible > xChild;
if(Value >>= xChild )
@@ -445,7 +445,7 @@ bool AccContainerEventListener::NotifyChildEvent(short nWinEvent,const Any &Valu
if(xChild.is())
{
XAccessible* pAcc = xChild.get();
- pAgent->NotifyAccEvent(nWinEvent, pAcc);
+ pAgent->NotifyAccEvent(eWinEvent, pAcc);
return true;
}
}
@@ -454,29 +454,29 @@ bool AccContainerEventListener::NotifyChildEvent(short nWinEvent,const Any &Valu
void AccContainerEventListener::HandleSelectionChangedAddEvent(const Any& /*oldValue*/, const Any& newValue)
{
- if(NotifyChildEvent(UM_EVENT_SELECTION_CHANGED_ADD,newValue))
+ if (NotifyChildEvent(UnoMSAAEvent::SELECTION_CHANGED_ADD, newValue))
{
return ;
}
- pAgent->NotifyAccEvent(UM_EVENT_SELECTION_CHANGED_ADD, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::SELECTION_CHANGED_ADD, m_xAccessible.get());
}
void AccContainerEventListener::HandleSelectionChangedRemoveEvent(const Any& /*oldValue*/, const Any& newValue)
{
- if(NotifyChildEvent(UM_EVENT_SELECTION_CHANGED_REMOVE,newValue))
+ if (NotifyChildEvent(UnoMSAAEvent::SELECTION_CHANGED_REMOVE, newValue))
{
return ;
}
- pAgent->NotifyAccEvent(UM_EVENT_SELECTION_CHANGED_REMOVE, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::SELECTION_CHANGED_REMOVE, m_xAccessible.get());
}
void AccContainerEventListener::HandleSelectionChangedWithinEvent(const Any& /*oldValue*/, const Any& newValue)
{
- if(NotifyChildEvent(UM_EVENT_SELECTION_CHANGED_WITHIN,newValue))
+ if (NotifyChildEvent(UnoMSAAEvent::SELECTION_CHANGED_WITHIN, newValue))
{
return ;
}
- pAgent->NotifyAccEvent(UM_EVENT_SELECTION_CHANGED_WITHIN, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::SELECTION_CHANGED_WITHIN, m_xAccessible.get());
}
void AccContainerEventListener::UpdateAllChildrenState(XAccessible* pXAccessible)
@@ -514,17 +514,17 @@ void AccContainerEventListener::UpdateAllChildrenState(XAccessible* pXAccessible
void AccContainerEventListener::HandlePageChangedEvent(const Any& /*oldValue*/, const Any& /*newValue*/)
{
- pAgent->NotifyAccEvent(UM_EVENT_OBJECT_PAGECHANGED, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::OBJECT_PAGECHANGED, m_xAccessible.get());
}
void AccContainerEventListener::HandleSectionChangedEvent(const Any& /*oldValue*/, const Any& /*newValue*/ )
{
- pAgent->NotifyAccEvent(UM_EVENT_SECTION_CHANGED, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::SECTION_CHANGED, m_xAccessible.get());
}
void AccContainerEventListener::HandleColumnChangedEvent(const Any& /*oldValue*/, const Any& /*newValue*/)
{
- pAgent->NotifyAccEvent(UM_EVENT_COLUMN_CHANGED, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::COLUMN_CHANGED, m_xAccessible.get());
}
void AccContainerEventListener::HandleNameChangedEvent( Any name )
diff --git a/winaccessibility/source/service/AccDescendantManagerEventListener.cxx b/winaccessibility/source/service/AccDescendantManagerEventListener.cxx
index e3236fe6cabe..c38f19e32cd8 100644
--- a/winaccessibility/source/service/AccDescendantManagerEventListener.cxx
+++ b/winaccessibility/source/service/AccDescendantManagerEventListener.cxx
@@ -93,7 +93,7 @@ void AccDescendantManagerEventListener::HandleChildChangedEvent(Any oldValue, An
pAgent->InsertAccObj(pAcc, m_xAccessible.get());
pAgent->InsertChildrenAccObj(pAcc);
- pAgent->NotifyAccEvent(UM_EVENT_CHILD_ADDED, pAcc);
+ pAgent->NotifyAccEvent(UnoMSAAEvent::CHILD_ADDED, pAcc);
}
}
@@ -104,7 +104,7 @@ void AccDescendantManagerEventListener::HandleChildChangedEvent(Any oldValue, An
{
XAccessible* pAcc = xChild.get();
- pAgent->NotifyAccEvent(UM_EVENT_CHILD_REMOVED, pAcc);
+ pAgent->NotifyAccEvent(UnoMSAAEvent::CHILD_REMOVED, pAcc);
pAgent->DeleteChildrenAccObj( pAcc );
pAgent->DeleteAccObj( pAcc );
}
@@ -130,7 +130,7 @@ void AccDescendantManagerEventListener::HandleSelectionChangedEvent(Any oldValue
pAgent->IncreaseState( pAcc, AccessibleStateType::SELECTED);
}
- pAgent->NotifyAccEvent(UM_EVENT_SELECTION_CHANGED, pAcc);
+ pAgent->NotifyAccEvent(UnoMSAAEvent::SELECTION_CHANGED, pAcc);
bSend=true;
}
}
@@ -144,7 +144,7 @@ void AccDescendantManagerEventListener::HandleSelectionChangedEvent(Any oldValue
}
if (!bSend)
{
- pAgent->NotifyAccEvent(UM_EVENT_SELECTION_CHANGED, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::SELECTION_CHANGED, m_xAccessible.get());
}
}
@@ -173,7 +173,7 @@ void AccDescendantManagerEventListener::HandleChildChangedNoFocusEvent(Any oldVa
}
}
-bool AccDescendantManagerEventListener::NotifyChildEvent(short nWinEvent,const Any &Value)
+bool AccDescendantManagerEventListener::NotifyChildEvent(UnoMSAAEvent eWinEvent, const Any& Value)
{
Reference< XAccessible > xChild;
if(Value >>= xChild )
@@ -181,11 +181,11 @@ bool AccDescendantManagerEventListener::NotifyChildEvent(short nWinEvent,const A
if(xChild.is())
{
XAccessible* pAcc = xChild.get();
- pAgent->NotifyAccEvent(nWinEvent, pAcc);
+ pAgent->NotifyAccEvent(eWinEvent, pAcc);
if (pAgent->IsStateManageDescendant(m_xAccessible.get()))
{
- if (nWinEvent == UM_EVENT_SELECTION_CHANGED_REMOVE)
+ if (eWinEvent == UnoMSAAEvent::SELECTION_CHANGED_REMOVE)
{
// The object has just been sent in a SELECTION_CHANGED_REMOVE event
// and accessibility tools may query for the object and call methods on
@@ -209,29 +209,29 @@ bool AccDescendantManagerEventListener::NotifyChildEvent(short nWinEvent,const A
}
void AccDescendantManagerEventListener::HandleSelectionChangedAddEvent(const Any& /*oldValue*/, const Any &newValue)
{
- if(NotifyChildEvent(UM_EVENT_SELECTION_CHANGED_ADD,newValue))
+ if (NotifyChildEvent(UnoMSAAEvent::SELECTION_CHANGED_ADD, newValue))
{
return ;
}
- pAgent->NotifyAccEvent(UM_EVENT_SELECTION_CHANGED_ADD, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::SELECTION_CHANGED_ADD, m_xAccessible.get());
}
void AccDescendantManagerEventListener::HandleSelectionChangedRemoveEvent(const Any& /*oldValue*/, const Any &newValue)
{
- if(NotifyChildEvent(UM_EVENT_SELECTION_CHANGED_REMOVE,newValue))
+ if (NotifyChildEvent(UnoMSAAEvent::SELECTION_CHANGED_REMOVE, newValue))
{
return ;
}
- pAgent->NotifyAccEvent(UM_EVENT_SELECTION_CHANGED_REMOVE, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::SELECTION_CHANGED_REMOVE, m_xAccessible.get());
}
void AccDescendantManagerEventListener::HandleSelectionChangedWithinEvent(const Any& /*oldValue*/, const Any &newValue)
{
- if(NotifyChildEvent(UM_EVENT_SELECTION_CHANGED_WITHIN,newValue))
+ if (NotifyChildEvent(UnoMSAAEvent::SELECTION_CHANGED_WITHIN, newValue))
{
return ;
}
- pAgent->NotifyAccEvent(UM_EVENT_SELECTION_CHANGED_WITHIN, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::SELECTION_CHANGED_WITHIN, m_xAccessible.get());
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/winaccessibility/source/service/AccDialogEventListener.cxx b/winaccessibility/source/service/AccDialogEventListener.cxx
index 1b9ce3cb7b5a..865a039a7926 100644
--- a/winaccessibility/source/service/AccDialogEventListener.cxx
+++ b/winaccessibility/source/service/AccDialogEventListener.cxx
@@ -82,7 +82,7 @@ void AccDialogEventListener::HandleChildChangedEvent(Any oldValue, Any newValue)
pAgent->InsertAccObj(pAcc, m_xAccessible.get());
//add all oldValue's existing children
pAgent->InsertChildrenAccObj(pAcc);
- pAgent->NotifyAccEvent(UM_EVENT_CHILD_ADDED, pAcc);
+ pAgent->NotifyAccEvent(UnoMSAAEvent::CHILD_ADDED, pAcc);
}
}
else if (oldValue >>= xChild)
@@ -91,7 +91,7 @@ void AccDialogEventListener::HandleChildChangedEvent(Any oldValue, Any newValue)
if(xChild.is())
{
XAccessible* pAcc = xChild.get();
- pAgent->NotifyAccEvent(UM_EVENT_CHILD_REMOVED, pAcc);
+ pAgent->NotifyAccEvent(UnoMSAAEvent::CHILD_REMOVED, pAcc);
//delete all oldValue's existing children
pAgent->DeleteChildrenAccObj( pAcc );
//delete this child
diff --git a/winaccessibility/source/service/AccEventListener.cxx b/winaccessibility/source/service/AccEventListener.cxx
index 6736edf382f4..fd8636099033 100644
--- a/winaccessibility/source/service/AccEventListener.cxx
+++ b/winaccessibility/source/service/AccEventListener.cxx
@@ -85,12 +85,12 @@ void AccEventListener::HandleNameChangedEvent(Any name)
if (pAccDoc)
{
pAgent->UpdateAccName(pAccDoc);
- pAgent->NotifyAccEvent(UM_EVENT_OBJECT_NAMECHANGE, pAccDoc);
+ pAgent->NotifyAccEvent(UnoMSAAEvent::OBJECT_NAMECHANGE, pAccDoc);
}
}
pAgent->UpdateAccName(m_xAccessible.get(), name);
- pAgent->NotifyAccEvent(UM_EVENT_OBJECT_NAMECHANGE, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::OBJECT_NAMECHANGE, m_xAccessible.get());
}
/**
@@ -98,7 +98,7 @@ void AccEventListener::HandleNameChangedEvent(Any name)
*/
void AccEventListener::HandleDescriptionChangedEvent()
{
- pAgent->NotifyAccEvent(UM_EVENT_OBJECT_DESCRIPTIONCHANGE, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::OBJECT_DESCRIPTIONCHANGE, m_xAccessible.get());
}
/**
@@ -107,7 +107,7 @@ void AccEventListener::HandleDescriptionChangedEvent()
void AccEventListener::HandleBoundrectChangedEvent()
{
AccObjectManagerAgent::UpdateLocation(m_xAccessible.get());
- pAgent->NotifyAccEvent(UM_EVENT_BOUNDRECT_CHANGED, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::BOUNDRECT_CHANGED, m_xAccessible.get());
}
/**
@@ -116,7 +116,7 @@ void AccEventListener::HandleBoundrectChangedEvent()
void AccEventListener::HandleVisibleDataChangedEvent()
{
pAgent->UpdateValue(m_xAccessible.get());
- pAgent->NotifyAccEvent(UM_EVENT_VISIBLE_DATA_CHANGED, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::VISIBLE_DATA_CHANGED, m_xAccessible.get());
}
/**
@@ -164,7 +164,7 @@ void AccEventListener::FireStateFocusedChange(bool enable)
if (enable)
{
pAgent->IncreaseState(m_xAccessible.get(), AccessibleStateType::FOCUSED);
- pAgent->NotifyAccEvent(UM_EVENT_STATE_FOCUSED, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::STATE_FOCUSED, m_xAccessible.get());
}
else
{
diff --git a/winaccessibility/source/service/AccFrameEventListener.cxx b/winaccessibility/source/service/AccFrameEventListener.cxx
index 4ddaf3d8789b..bae97a1cab6a 100644
--- a/winaccessibility/source/service/AccFrameEventListener.cxx
+++ b/winaccessibility/source/service/AccFrameEventListener.cxx
@@ -94,7 +94,7 @@ void AccFrameEventListener::HandleChildChangedEvent(Any oldValue, Any newValue)
pAgent->InsertAccObj(pAcc, m_xAccessible.get(), systemdata->hWnd);
//add all oldValue's existing children
pAgent->InsertChildrenAccObj(pAcc);
- pAgent->NotifyAccEvent(UM_EVENT_CHILD_ADDED, pAcc);
+ pAgent->NotifyAccEvent(UnoMSAAEvent::CHILD_ADDED, pAcc);
}
}
else if (oldValue >>= xChild)
@@ -103,7 +103,7 @@ void AccFrameEventListener::HandleChildChangedEvent(Any oldValue, Any newValue)
if(xChild.is())
{
XAccessible* pAcc = xChild.get();
- pAgent->NotifyAccEvent(UM_EVENT_CHILD_REMOVED, pAcc);
+ pAgent->NotifyAccEvent(UnoMSAAEvent::CHILD_REMOVED, pAcc);
//delete all oldValue's existing children
pAgent->DeleteChildrenAccObj( pAcc );
//delete this child
diff --git a/winaccessibility/source/service/AccListEventListener.cxx b/winaccessibility/source/service/AccListEventListener.cxx
index 9852fe810538..b4ecb9f77862 100644
--- a/winaccessibility/source/service/AccListEventListener.cxx
+++ b/winaccessibility/source/service/AccListEventListener.cxx
@@ -92,7 +92,7 @@ void AccListEventListener::HandleActiveDescendantChangedEvent(Any oldValue, Any
pAgent->IncreaseState( pAcc, AccessibleStateType::FOCUSED);
- pAgent->NotifyAccEvent(UM_EVENT_ACTIVE_DESCENDANT_CHANGED, pAcc);
+ pAgent->NotifyAccEvent(UnoMSAAEvent::ACTIVE_DESCENDANT_CHANGED, pAcc);
}
}
if (oldValue >>= xChild)
@@ -119,7 +119,7 @@ void AccListEventListener::HandleValueChangedEvent(Any, Any)
XAccessible* pParentAcc =
pAgent->GetParentXAccessible(m_xAccessible.get());
pAgent->UpdateValue(pParentAcc);
- pAgent->NotifyAccEvent(UM_EVENT_OBJECT_VALUECHANGE, pParentAcc);
+ pAgent->NotifyAccEvent(UnoMSAAEvent::OBJECT_VALUECHANGE, pParentAcc);
}
}
diff --git a/winaccessibility/source/service/AccMenuEventListener.cxx b/winaccessibility/source/service/AccMenuEventListener.cxx
index 623997177e9f..05d78b9b0a4f 100644
--- a/winaccessibility/source/service/AccMenuEventListener.cxx
+++ b/winaccessibility/source/service/AccMenuEventListener.cxx
@@ -81,7 +81,7 @@ void AccMenuEventListener::HandleChildChangedEvent(Any oldValue, Any newValue)
pAgent->InsertAccObj(pAcc, m_xAccessible.get());
//add all oldValue's existing children
pAgent->InsertChildrenAccObj(pAcc);
- pAgent->NotifyAccEvent(UM_EVENT_CHILD_ADDED, pAcc);
+ pAgent->NotifyAccEvent(UnoMSAAEvent::CHILD_ADDED, pAcc);
}
}
else if (oldValue >>= xChild)
@@ -90,7 +90,7 @@ void AccMenuEventListener::HandleChildChangedEvent(Any oldValue, Any newValue)
if(xChild.is())
{
XAccessible* pAcc = xChild.get();
- pAgent->NotifyAccEvent(UM_EVENT_CHILD_REMOVED, pAcc);
+ pAgent->NotifyAccEvent(UnoMSAAEvent::CHILD_REMOVED, pAcc);
//delete all oldValue's existing children
pAgent->DeleteChildrenAccObj( pAcc );
//delete this child
@@ -105,7 +105,7 @@ void AccMenuEventListener::HandleChildChangedEvent(Any oldValue, Any newValue)
*/
void AccMenuEventListener::HandleSelectionChangedEventNoArgs()
{
- pAgent->NotifyAccEvent(UM_EVENT_SELECTION_CHANGED, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::SELECTION_CHANGED, m_xAccessible.get());
}
/**
diff --git a/winaccessibility/source/service/AccObjectManagerAgent.cxx b/winaccessibility/source/service/AccObjectManagerAgent.cxx
index 0299635a55ef..ee2690a71797 100644
--- a/winaccessibility/source/service/AccObjectManagerAgent.cxx
+++ b/winaccessibility/source/service/AccObjectManagerAgent.cxx
@@ -229,13 +229,13 @@ void AccObjectManagerAgent::UpdateState( css::accessibility::XAccessible* pXAcc
/**
* Interface of notify MSAA event when some UNO event occurred.
* @param pXAcc Uno XAccessible interface of control.
- * @param pEvent UNO event ID.
+ * @param eEvent event type.
* @return If the method is correctly processed.
*/
-bool AccObjectManagerAgent::NotifyAccEvent(short pEvent, XAccessible* pXAcc)
+bool AccObjectManagerAgent::NotifyAccEvent(UnoMSAAEvent eEvent, XAccessible* pXAcc)
{
if(pWinManager)
- return pWinManager->NotifyAccEvent(pXAcc,pEvent);
+ return pWinManager->NotifyAccEvent(pXAcc, eEvent);
return false;
}
diff --git a/winaccessibility/source/service/AccObjectWinManager.cxx b/winaccessibility/source/service/AccObjectWinManager.cxx
index 0f37eeb2628f..24dce8fc8249 100644
--- a/winaccessibility/source/service/AccObjectWinManager.cxx
+++ b/winaccessibility/source/service/AccObjectWinManager.cxx
@@ -148,10 +148,10 @@ AccObject* AccObjectWinManager::GetTopWindowAccObj(HWND hWnd)
/**
* Simulate MSAA event via XAccessible interface and event type.
* @param pXAcc XAccessible interface.
- * @param state Customize Interface
+ * @param eEvent eventy type
* @return The terminate result that identifies if the call is successful.
*/
-bool AccObjectWinManager::NotifyAccEvent(XAccessible* pXAcc,short state)
+bool AccObjectWinManager::NotifyAccEvent(XAccessible* pXAcc, UnoMSAAEvent eEvent)
{
Reference< XAccessibleContext > pRContext;
@@ -172,9 +172,9 @@ bool AccObjectWinManager::NotifyAccEvent(XAccessible* pXAcc,short state)
long dChildID = selfAccObj->GetResID();
HWND hAcc = selfAccObj->GetParentHWND();
- switch(state)
+ switch(eEvent)
{
- case UM_EVENT_STATE_FOCUSED:
+ case UnoMSAAEvent::STATE_FOCUSED:
{
UpdateAccFocus(pXAcc);
selfAccObj->UpdateDefaultAction( );
@@ -182,124 +182,124 @@ bool AccObjectWinManager::NotifyAccEvent(XAccessible* pXAcc,short state)
NotifyWinEvent( EVENT_OBJECT_FOCUS,hAcc, OBJID_CLIENT,dChildID );
break;
}
- case UM_EVENT_STATE_BUSY:
+ case UnoMSAAEvent::STATE_BUSY:
NotifyWinEvent( EVENT_OBJECT_STATECHANGE,hAcc, OBJID_CLIENT,dChildID );
break;
- case UM_EVENT_STATE_CHECKED:
+ case UnoMSAAEvent::STATE_CHECKED:
NotifyWinEvent( EVENT_OBJECT_STATECHANGE,hAcc, OBJID_CLIENT,dChildID );
break;
- case UM_EVENT_STATE_PRESSED:
+ case UnoMSAAEvent::STATE_PRESSED:
NotifyWinEvent( EVENT_OBJECT_STATECHANGE,hAcc, OBJID_CLIENT,dChildID );
break;
//Removed fire out selected event
- //case UM_EVENT_STATE_SELECTED:
+ //case UnoMSAAEvent::STATE_SELECTED:
// NotifyWinEvent( EVENT_OBJECT_STATECHANGE,hAcc, OBJID_CLIENT,dChildID );
// break;
- case UM_EVENT_STATE_ARMED:
+ case UnoMSAAEvent::STATE_ARMED:
UpdateAccFocus(pXAcc);
NotifyWinEvent( EVENT_OBJECT_FOCUS,hAcc, OBJID_CLIENT,dChildID );
break;
- case UM_EVENT_MENU_START:
+ case UnoMSAAEvent::MENU_START:
NotifyWinEvent( EVENT_SYSTEM_MENUSTART,hAcc, OBJID_CLIENT,dChildID );
break;
- case UM_EVENT_MENU_END:
+ case UnoMSAAEvent::MENU_END:
NotifyWinEvent( EVENT_SYSTEM_MENUEND,hAcc, OBJID_CLIENT,dChildID );
break;
- case UM_EVENT_MENUPOPUPSTART:
+ case UnoMSAAEvent::MENUPOPUPSTART:
NotifyWinEvent( EVENT_SYSTEM_MENUPOPUPSTART,hAcc, OBJID_CLIENT,dChildID );
break;
- case UM_EVENT_MENUPOPUPEND:
+ case UnoMSAAEvent::MENUPOPUPEND:
NotifyWinEvent( EVENT_SYSTEM_MENUPOPUPEND,hAcc, OBJID_CLIENT,dChildID );
break;
- case UM_EVENT_SELECTION_CHANGED:
+ case UnoMSAAEvent::SELECTION_CHANGED:
NotifyWinEvent( EVENT_OBJECT_SELECTION,hAcc, OBJID_CLIENT,dChildID );
break;
- case UM_EVENT_SELECTION_CHANGED_ADD:
+ case UnoMSAAEvent::SELECTION_CHANGED_ADD:
NotifyWinEvent( EVENT_OBJECT_SELECTIONADD,hAcc, OBJID_CLIENT,dChildID );
break;
- case UM_EVENT_SELECTION_CHANGED_REMOVE:
+ case UnoMSAAEvent::SELECTION_CHANGED_REMOVE:
NotifyWinEvent( EVENT_OBJECT_SELECTIONREMOVE,hAcc, OBJID_CLIENT,dChildID );
break;
- case UM_EVENT_SELECTION_CHANGED_WITHIN:
+ case UnoMSAAEvent::SELECTION_CHANGED_WITHIN:
NotifyWinEvent( EVENT_OBJECT_SELECTIONWITHIN,hAcc, OBJID_CLIENT,dChildID );
break;
- case UM_EVENT_OBJECT_VALUECHANGE:
+ case UnoMSAAEvent::OBJECT_VALUECHANGE:
UpdateValue(pXAcc);
NotifyWinEvent( EVENT_OBJECT_VALUECHANGE,hAcc, OBJID_CLIENT,dChildID );
break;
- case UM_EVENT_OBJECT_NAMECHANGE:
+ case UnoMSAAEvent::OBJECT_NAMECHANGE:
NotifyWinEvent( EVENT_OBJECT_NAMECHANGE,hAcc, OBJID_CLIENT,dChildID );
break;
- case UM_EVENT_OBJECT_DESCRIPTIONCHANGE:
+ case UnoMSAAEvent::OBJECT_DESCRIPTIONCHANGE:
NotifyWinEvent( EVENT_OBJECT_DESCRIPTIONCHANGE,hAcc, OBJID_CLIENT,dChildID );
break;
- case UM_EVENT_OBJECT_DEFACTIONCHANGE:
+ case UnoMSAAEvent::OBJECT_DEFACTIONCHANGE:
NotifyWinEvent( IA2_EVENT_ACTION_CHANGED,hAcc, OBJID_CLIENT,dChildID );
break;
- case UM_EVENT_OBJECT_CARETCHANGE:
+ case UnoMSAAEvent::OBJECT_CARETCHANGE:
NotifyWinEvent( IA2_EVENT_TEXT_CARET_MOVED,hAcc, OBJID_CLIENT,dChildID );
break;
- case UM_EVENT_OBJECT_TEXTCHANGE:
+ case UnoMSAAEvent::OBJECT_TEXTCHANGE:
NotifyWinEvent( IA2_EVENT_TEXT_CHANGED,hAcc, OBJID_CLIENT,dChildID );
break;
- case UM_EVENT_ACTIVE_DESCENDANT_CHANGED:
+ case UnoMSAAEvent::ACTIVE_DESCENDANT_CHANGED:
UpdateAccFocus(pXAcc);
NotifyWinEvent( EVENT_OBJECT_FOCUS,hAcc, OBJID_CLIENT,dChildID );
break;
- case UM_EVENT_BOUNDRECT_CHANGED:
+ case UnoMSAAEvent::BOUNDRECT_CHANGED:
NotifyWinEvent( EVENT_OBJECT_LOCATIONCHANGE,hAcc, OBJID_CLIENT,dChildID );
break;
- case UM_EVENT_VISIBLE_DATA_CHANGED:
+ case UnoMSAAEvent::VISIBLE_DATA_CHANGED:
NotifyWinEvent( IA2_EVENT_VISIBLE_DATA_CHANGED,hAcc, OBJID_CLIENT,dChildID );
break;
- case UM_EVENT_SHOW :
+ case UnoMSAAEvent::SHOW :
NotifyWinEvent( EVENT_OBJECT_SHOW,hAcc, OBJID_CLIENT,dChildID );
NotifyWinEvent( EVENT_SYSTEM_FOREGROUND,hAcc, OBJID_CLIENT,dChildID );
break;
- case UM_EVENT_TABLE_CAPTION_CHANGED:
+ case UnoMSAAEvent::TABLE_CAPTION_CHANGED:
NotifyWinEvent( IA2_EVENT_TABLE_CAPTION_CHANGED,hAcc, OBJID_CLIENT,dChildID );
break;
- case UM_EVENT_TABLE_COLUMN_DESCRIPTION_CHANGED:
+ case UnoMSAAEvent::TABLE_COLUMN_DESCRIPTION_CHANGED:
NotifyWinEvent( IA2_EVENT_TABLE_COLUMN_DESCRIPTION_CHANGED,hAcc, OBJID_CLIENT,dChildID );
break;
- case UM_EVENT_TABLE_COLUMN_HEADER_CHANGED:
+ case UnoMSAAEvent::TABLE_COLUMN_HEADER_CHANGED:
NotifyWinEvent( IA2_EVENT_TABLE_COLUMN_HEADER_CHANGED,hAcc, OBJID_CLIENT,dChildID );
break;
- case UM_EVENT_TABLE_MODEL_CHANGED:
+ case UnoMSAAEvent::TABLE_MODEL_CHANGED:
NotifyWinEvent( IA2_EVENT_TABLE_MODEL_CHANGED,hAcc, OBJID_CLIENT,dChildID );
break;
- case UM_EVENT_TABLE_ROW_HEADER_CHANGED:
+ case UnoMSAAEvent::TABLE_ROW_HEADER_CHANGED:
NotifyWinEvent( IA2_EVENT_TABLE_ROW_HEADER_CHANGED,hAcc, OBJID_CLIENT,dChildID );
break;
- case UM_EVENT_TABLE_SUMMARY_CHANGED:
+ case UnoMSAAEvent::TABLE_SUMMARY_CHANGED:
NotifyWinEvent( IA2_EVENT_TABLE_SUMMARY_CHANGED,hAcc, OBJID_CLIENT,dChildID );
break;
- case UM_EVENT_TABLE_ROW_DESCRIPTION_CHANGED:
+ case UnoMSAAEvent::TABLE_ROW_DESCRIPTION_CHANGED:
NotifyWinEvent( IA2_EVENT_TABLE_ROW_DESCRIPTION_CHANGED,hAcc, OBJID_CLIENT,dChildID );
break;
- case UM_EVENT_OBJECT_REORDER:
+ case UnoMSAAEvent::OBJECT_REORDER:
NotifyWinEvent( EVENT_OBJECT_REORDER,hAcc, OBJID_CLIENT,dChildID );
break;
- case UM_EVENT_PAGE_CHANGED:
+ case UnoMSAAEvent::PAGE_CHANGED:
NotifyWinEvent( IA2_EVENT_PAGE_CHANGED,hAcc, OBJID_CLIENT,dChildID );
break;
- case UM_EVENT_CHILD_REMOVED:
+ case UnoMSAAEvent::CHILD_REMOVED:
NotifyWinEvent( EVENT_OBJECT_DESTROY,hAcc, OBJID_CLIENT,dChildID );
break;
- case UM_EVENT_CHILD_ADDED:
+ case UnoMSAAEvent::CHILD_ADDED:
NotifyWinEvent( EVENT_OBJECT_CREATE ,hAcc, OBJID_CLIENT,dChildID );
break;
- case UM_EVENT_OBJECT_PAGECHANGED:
+ case UnoMSAAEvent::OBJECT_PAGECHANGED:
NotifyWinEvent( IA2_EVENT_PAGE_CHANGED ,hAcc, OBJID_CLIENT,dChildID );
break;
- case UM_EVENT_TEXT_SELECTION_CHANGED:
+ case UnoMSAAEvent::TEXT_SELECTION_CHANGED:
NotifyWinEvent( IA2_EVENT_TEXT_SELECTION_CHANGED ,hAcc, OBJID_CLIENT,dChildID );
break;
- case UM_EVENT_SECTION_CHANGED:
+ case UnoMSAAEvent::SECTION_CHANGED:
NotifyWinEvent( IA2_EVENT_SECTION_CHANGED ,hAcc, OBJID_CLIENT,dChildID );
break;
- case UM_EVENT_COLUMN_CHANGED:
+ case UnoMSAAEvent::COLUMN_CHANGED:
NotifyWinEvent( IA2_EVENT_TEXT_COLUMN_CHANGED ,hAcc, OBJID_CLIENT,dChildID );
break;
default:
diff --git a/winaccessibility/source/service/AccParagraphEventListener.cxx b/winaccessibility/source/service/AccParagraphEventListener.cxx
index 55d7eecf75d6..66783030c34c 100644
--- a/winaccessibility/source/service/AccParagraphEventListener.cxx
+++ b/winaccessibility/source/service/AccParagraphEventListener.cxx
@@ -95,7 +95,7 @@ void AccParagraphEventListener::notifyEvent( const css::accessibility::Accessib
void AccParagraphEventListener::HandleCaretChangedEvent(Any, Any)
{
AccObjectManagerAgent::UpdateLocation(m_xAccessible.get());
- pAgent->NotifyAccEvent(UM_EVENT_OBJECT_CARETCHANGE, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::OBJECT_CARETCHANGE, m_xAccessible.get());
}
/**
@@ -125,7 +125,7 @@ void AccParagraphEventListener::SetComponentState(short state, bool enable )
void AccParagraphEventListener::HandleTextSelectionChangedEvent()
{
- pAgent->NotifyAccEvent(UM_EVENT_TEXT_SELECTION_CHANGED, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::TEXT_SELECTION_CHANGED, m_xAccessible.get());
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/winaccessibility/source/service/AccTableEventListener.cxx b/winaccessibility/source/service/AccTableEventListener.cxx
index 7e8add45492c..96345cc86894 100644
--- a/winaccessibility/source/service/AccTableEventListener.cxx
+++ b/winaccessibility/source/service/AccTableEventListener.cxx
@@ -56,44 +56,37 @@ void AccTableEventListener::notifyEvent( const css::accessibility::AccessibleEv
case AccessibleEventId::TABLE_CAPTION_CHANGED:
{
-
- pAgent->NotifyAccEvent(UM_EVENT_TABLE_CAPTION_CHANGED, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::TABLE_CAPTION_CHANGED, m_xAccessible.get());
break;
}
case AccessibleEventId::TABLE_COLUMN_DESCRIPTION_CHANGED:
{
-
- pAgent->NotifyAccEvent(UM_EVENT_TABLE_COLUMN_DESCRIPTION_CHANGED, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::TABLE_COLUMN_DESCRIPTION_CHANGED, m_xAccessible.get());
break;
}
case AccessibleEventId::TABLE_COLUMN_HEADER_CHANGED:
{
-
- pAgent->NotifyAccEvent(UM_EVENT_TABLE_COLUMN_HEADER_CHANGED, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::TABLE_COLUMN_HEADER_CHANGED, m_xAccessible.get());
break;
}
case AccessibleEventId::TABLE_ROW_HEADER_CHANGED:
{
-
- pAgent->NotifyAccEvent(UM_EVENT_TABLE_ROW_HEADER_CHANGED, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::TABLE_ROW_HEADER_CHANGED, m_xAccessible.get());
break;
}
case AccessibleEventId::TABLE_MODEL_CHANGED:
{
-
HandleTableModelChangeEvent(aEvent.NewValue);
break;
}
case AccessibleEventId::TABLE_SUMMARY_CHANGED:
{
-
- pAgent->NotifyAccEvent(UM_EVENT_TABLE_SUMMARY_CHANGED, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::TABLE_SUMMARY_CHANGED, m_xAccessible.get());
break;
}
case AccessibleEventId::TABLE_ROW_DESCRIPTION_CHANGED:
{
-
- pAgent->NotifyAccEvent(UM_EVENT_TABLE_ROW_DESCRIPTION_CHANGED, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::TABLE_ROW_DESCRIPTION_CHANGED, m_xAccessible.get());
break;
}
default:
@@ -116,7 +109,7 @@ void AccTableEventListener::HandleActiveDescendantChangedEvent(Any oldValue, Any
{
XAccessible* pAcc = xChild.get();
pAgent->InsertAccObj(pAcc, m_xAccessible.get());
- pAgent->NotifyAccEvent(UM_EVENT_ACTIVE_DESCENDANT_CHANGED, pAcc);
+ pAgent->NotifyAccEvent(UnoMSAAEvent::ACTIVE_DESCENDANT_CHANGED, pAcc);
}
}
else if (oldValue >>= xChild)
@@ -142,7 +135,7 @@ void AccTableEventListener::HandleTableModelChangeEvent(Any newValue)
//add all oldValue's existing children
pAgent->InsertChildrenAccObj(m_xAccessible.get());
}
- pAgent->NotifyAccEvent(UM_EVENT_TABLE_MODEL_CHANGED, m_xAccessible.get());
+ pAgent->NotifyAccEvent(UnoMSAAEvent::TABLE_MODEL_CHANGED, m_xAccessible.get());
}
}
diff --git a/winaccessibility/source/service/AccTopWindowListener.cxx b/winaccessibility/source/service/AccTopWindowListener.cxx
index 6ea78eb57c5b..a828c36c0413 100644
--- a/winaccessibility/source/service/AccTopWindowListener.cxx
+++ b/winaccessibility/source/service/AccTopWindowListener.cxx
@@ -77,7 +77,7 @@ void AccTopWindowListener::HandleWindowOpened( css::accessibility::XAccessible*
if (role == css::accessibility::AccessibleRole::POPUP_MENU ||
role == css::accessibility::AccessibleRole::MENU )
{
- accManagerAgent.NotifyAccEvent(UM_EVENT_MENUPOPUPSTART, pAccessible);
+ accManagerAgent.NotifyAccEvent(UnoMSAAEvent::MENUPOPUPSTART, pAccessible);
}
if (role == css::accessibility::AccessibleRole::FRAME ||
@@ -85,7 +85,7 @@ void AccTopWindowListener::HandleWindowOpened( css::accessibility::XAccessible*
role == css::accessibility::AccessibleRole::WINDOW ||
role == css::accessibility::AccessibleRole::ALERT)
{
- accManagerAgent.NotifyAccEvent(UM_EVENT_SHOW, pAccessible);
+ accManagerAgent.NotifyAccEvent(UnoMSAAEvent::SHOW, pAccessible);
}
}
}
@@ -214,7 +214,7 @@ void AccTopWindowListener::windowClosed( const css::lang::EventObject& e )
if (role == css::accessibility::AccessibleRole::POPUP_MENU ||
role == css::accessibility::AccessibleRole::MENU)
{
- accManagerAgent.NotifyAccEvent(UM_EVENT_MENUPOPUPEND, pAccessible);
+ accManagerAgent.NotifyAccEvent(UnoMSAAEvent::MENUPOPUPEND, pAccessible);
}
}
diff --git a/winaccessibility/source/service/AccTreeEventListener.cxx b/winaccessibility/source/service/AccTreeEventListener.cxx
index bf5aceb8d9d3..ee3be70ac2ef 100644
--- a/winaccessibility/source/service/AccTreeEventListener.cxx
+++ b/winaccessibility/source/service/AccTreeEventListener.cxx
@@ -72,7 +72,7 @@ void AccTreeEventListener::HandleActiveDescendantChangedEvent(Any oldValue, Any
{
XAccessible* pAcc = xChild.get();
pAgent->InsertAccObj(pAcc, m_xAccessible.get());
- pAgent->NotifyAccEvent(UM_EVENT_ACTIVE_DESCENDANT_CHANGED, pAcc);
+ pAgent->NotifyAccEvent(UnoMSAAEvent::ACTIVE_DESCENDANT_CHANGED, pAcc);
}
}
if (oldValue >>= xChild)
diff --git a/winaccessibility/source/service/AccWindowEventListener.cxx b/winaccessibility/source/service/AccWindowEventListener.cxx
index c079cc6ed351..fbc719a81a31 100644
--- a/winaccessibility/source/service/AccWindowEventListener.cxx
+++ b/winaccessibility/source/service/AccWindowEventListener.cxx
@@ -82,7 +82,7 @@ void AccWindowEventListener::HandleChildChangedEvent(Any oldValue, Any newValue)
pAgent->InsertAccObj(pAcc, m_xAccessible.get());
//add all oldValue's existing children
pAgent->InsertChildrenAccObj(pAcc);
- pAgent->NotifyAccEvent(UM_EVENT_CHILD_ADDED, pAcc);
+ pAgent->NotifyAccEvent(UnoMSAAEvent::CHILD_ADDED, pAcc);
}
}
else if (oldValue >>= xChild)
@@ -91,7 +91,7 @@ void AccWindowEventListener::HandleChildChangedEvent(Any oldValue, Any newValue)
if(xChild.is())
{
XAccessible* pAcc = xChild.get();
- pAgent->NotifyAccEvent(UM_EVENT_CHILD_REMOVED, pAcc);
+ pAgent->NotifyAccEvent(UnoMSAAEvent::CHILD_REMOVED, pAcc);
pAgent->DeleteChildrenAccObj( pAcc );
//delete this child
pAgent->DeleteAccObj( pAcc );