summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2024-02-15 09:29:56 +0100
committerMichael Weghorn <m.weghorn@posteo.de>2024-02-16 09:09:52 +0100
commit9b3b747e164c4eab056f65bb29baa04ab1770bb2 (patch)
treef96c98788445d012fb6b8afc6e82773520b86dfe /svtools
parent8d98f231fa2d3f4386a842d0f45a9ceeea4ab8e1 (diff)
a11y: Drop 'using namespace com::sun::star::accessibility::AccessibleEventId"
This e.g. makes it easier to grep where a certain kind of event is sent. Change-Id: I50bbdf4413e720188c9e4bbce9c02187183f3858 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163425 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/brwbox/brwbox1.cxx58
-rw-r--r--svtools/source/brwbox/editbrowsebox.cxx7
2 files changed, 33 insertions, 32 deletions
diff --git a/svtools/source/brwbox/brwbox1.cxx b/svtools/source/brwbox/brwbox1.cxx
index cc78b514f7a6..ce32f324bd42 100644
--- a/svtools/source/brwbox/brwbox1.cxx
+++ b/svtools/source/brwbox/brwbox1.cxx
@@ -40,9 +40,9 @@
#define SCROLL_FLAGS (ScrollFlags::Clip | ScrollFlags::NoChildren)
-using namespace com::sun::star::accessibility::AccessibleEventId;
using namespace com::sun::star::accessibility::AccessibleTableModelChangeType;
using com::sun::star::accessibility::AccessibleTableModelChange;
+using namespace com::sun::star::accessibility;
using namespace ::com::sun::star::uno;
using namespace svt;
@@ -499,7 +499,7 @@ void BrowseBox::SetColumnPos( sal_uInt16 nColumnId, sal_uInt16 nPos )
return;
commitTableEvent(
- TABLE_MODEL_CHANGED,
+ AccessibleEventId::TABLE_MODEL_CHANGED,
Any( AccessibleTableModelChange(
COLUMNS_REMOVED,
-1,
@@ -512,7 +512,7 @@ void BrowseBox::SetColumnPos( sal_uInt16 nColumnId, sal_uInt16 nPos )
);
commitTableEvent(
- TABLE_MODEL_CHANGED,
+ AccessibleEventId::TABLE_MODEL_CHANGED,
Any( AccessibleTableModelChange(
COLUMNS_INSERTED,
-1,
@@ -562,7 +562,7 @@ void BrowseBox::SetColumnTitle( sal_uInt16 nItemId, const OUString& rTitle )
if ( isAccessibleAlive() )
{
- commitTableEvent( TABLE_COLUMN_DESCRIPTION_CHANGED,
+ commitTableEvent(AccessibleEventId::TABLE_COLUMN_DESCRIPTION_CHANGED,
Any( rTitle ),
Any( sOld )
);
@@ -745,7 +745,7 @@ void BrowseBox::RemoveColumn( sal_uInt16 nItemId )
return;
commitTableEvent(
- TABLE_MODEL_CHANGED,
+ AccessibleEventId::TABLE_MODEL_CHANGED,
Any( AccessibleTableModelChange(COLUMNS_REMOVED,
-1,
-1,
@@ -757,7 +757,7 @@ void BrowseBox::RemoveColumn( sal_uInt16 nItemId )
);
commitHeaderBarEvent(
- CHILD,
+ AccessibleEventId::CHILD,
Any(),
Any( CreateAccessibleColumnHeader( nPos ) ),
true
@@ -805,21 +805,21 @@ void BrowseBox::RemoveColumns()
// all columns should be removed, so we remove the column header bar and append it again
// to avoid to notify every column remove
commitBrowseBoxEvent(
- CHILD,
+ AccessibleEventId::CHILD,
Any(),
Any(m_pImpl->getAccessibleHeaderBar(AccessibleBrowseBoxObjType::ColumnHeaderBar))
);
// and now append it again
commitBrowseBoxEvent(
- CHILD,
+ AccessibleEventId::CHILD,
Any(m_pImpl->getAccessibleHeaderBar(AccessibleBrowseBoxObjType::ColumnHeaderBar)),
Any()
);
// notify a table model change
commitTableEvent(
- TABLE_MODEL_CHANGED,
+ AccessibleEventId::TABLE_MODEL_CHANGED,
Any ( AccessibleTableModelChange( COLUMNS_REMOVED,
-1,
-1,
@@ -1125,21 +1125,21 @@ void BrowseBox::Clear()
return;
commitBrowseBoxEvent(
- CHILD,
+ AccessibleEventId::CHILD,
Any(),
Any( m_pImpl->getAccessibleHeaderBar( AccessibleBrowseBoxObjType::RowHeaderBar ) )
);
// and now append it again
commitBrowseBoxEvent(
- CHILD,
+ AccessibleEventId::CHILD,
Any( m_pImpl->getAccessibleHeaderBar( AccessibleBrowseBoxObjType::RowHeaderBar ) ),
Any()
);
// notify a table model change
commitTableEvent(
- TABLE_MODEL_CHANGED,
+ AccessibleEventId::TABLE_MODEL_CHANGED,
Any( AccessibleTableModelChange(ROWS_REMOVED,
0,
nOldRowCount,
@@ -1225,7 +1225,7 @@ void BrowseBox::RowInserted( sal_Int32 nRow, sal_Int32 nNumRows, bool bDoPaint,
if ( isAccessibleAlive() )
{
commitTableEvent(
- TABLE_MODEL_CHANGED,
+ AccessibleEventId::TABLE_MODEL_CHANGED,
Any( AccessibleTableModelChange(
ROWS_INSERTED,
nRow,
@@ -1240,7 +1240,7 @@ void BrowseBox::RowInserted( sal_Int32 nRow, sal_Int32 nNumRows, bool bDoPaint,
for (tools::Long i = nRow+1 ; i <= nRowCount ; ++i)
{
commitHeaderBarEvent(
- CHILD,
+ AccessibleEventId::CHILD,
Any( CreateAccessibleRowHeader( i ) ),
Any(),
false
@@ -1368,26 +1368,26 @@ void BrowseBox::RowRemoved( sal_Int32 nRow, sal_Int32 nNumRows, bool bDoPaint )
// all columns should be removed, so we remove the column header bar and append it again
// to avoid to notify every column remove
commitBrowseBoxEvent(
- CHILD,
+ AccessibleEventId::CHILD,
Any(),
Any( m_pImpl->getAccessibleHeaderBar( AccessibleBrowseBoxObjType::RowHeaderBar ) )
);
// and now append it again
commitBrowseBoxEvent(
- CHILD,
+ AccessibleEventId::CHILD,
Any(m_pImpl->getAccessibleHeaderBar(AccessibleBrowseBoxObjType::RowHeaderBar)),
Any()
);
commitBrowseBoxEvent(
- CHILD,
+ AccessibleEventId::CHILD,
Any(),
Any( m_pImpl->getAccessibleTable() )
);
// and now append it again
commitBrowseBoxEvent(
- CHILD,
+ AccessibleEventId::CHILD,
Any( m_pImpl->getAccessibleTable() ),
Any()
);
@@ -1395,7 +1395,7 @@ void BrowseBox::RowRemoved( sal_Int32 nRow, sal_Int32 nNumRows, bool bDoPaint )
else
{
commitTableEvent(
- TABLE_MODEL_CHANGED,
+ AccessibleEventId::TABLE_MODEL_CHANGED,
Any( AccessibleTableModelChange(
ROWS_REMOVED,
nRow,
@@ -1410,7 +1410,7 @@ void BrowseBox::RowRemoved( sal_Int32 nRow, sal_Int32 nNumRows, bool bDoPaint )
for (tools::Long i = nRow+1 ; i <= (nRow+nNumRows) ; ++i)
{
commitHeaderBarEvent(
- CHILD,
+ AccessibleEventId::CHILD,
Any(),
Any( CreateAccessibleRowHeader( i ) ),
false
@@ -1642,7 +1642,7 @@ void BrowseBox::SetNoSelection()
if ( isAccessibleAlive() )
{
commitTableEvent(
- SELECTION_CHANGED,
+ AccessibleEventId::SELECTION_CHANGED,
Any(),
Any()
);
@@ -1695,19 +1695,19 @@ void BrowseBox::SelectAll()
return;
commitTableEvent(
- SELECTION_CHANGED,
+ AccessibleEventId::SELECTION_CHANGED,
Any(),
Any()
);
commitHeaderBarEvent(
- SELECTION_CHANGED,
+ AccessibleEventId::SELECTION_CHANGED,
Any(),
Any(),
true
); // column header event
commitHeaderBarEvent(
- SELECTION_CHANGED,
+ AccessibleEventId::SELECTION_CHANGED,
Any(),
Any(),
false
@@ -1774,12 +1774,12 @@ void BrowseBox::SelectRow( sal_Int32 nRow, bool _bSelect, bool bExpand )
return;
commitTableEvent(
- SELECTION_CHANGED,
+ AccessibleEventId::SELECTION_CHANGED,
Any(),
Any()
);
commitHeaderBarEvent(
- SELECTION_CHANGED,
+ AccessibleEventId::SELECTION_CHANGED,
Any(),
Any(),
false
@@ -1841,12 +1841,12 @@ void BrowseBox::SelectColumnPos( sal_uInt16 nNewColPos, bool _bSelect, bool bMak
if ( isAccessibleAlive() )
{
commitTableEvent(
- SELECTION_CHANGED,
+ AccessibleEventId::SELECTION_CHANGED,
Any(),
Any()
);
commitHeaderBarEvent(
- SELECTION_CHANGED,
+ AccessibleEventId::SELECTION_CHANGED,
Any(),
Any(),
true
@@ -2340,7 +2340,7 @@ void BrowseBox::CursorMoved()
if ( isAccessibleAlive() && HasFocus() )
commitTableEvent(
- ACTIVE_DESCENDANT_CHANGED,
+ AccessibleEventId::ACTIVE_DESCENDANT_CHANGED,
Any( CreateAccessibleCell( GetCurRow(),GetColumnPos( GetCurColumnId() ) ) ),
Any()
);
diff --git a/svtools/source/brwbox/editbrowsebox.cxx b/svtools/source/brwbox/editbrowsebox.cxx
index 515c102379b3..a86fe61c22b8 100644
--- a/svtools/source/brwbox/editbrowsebox.cxx
+++ b/svtools/source/brwbox/editbrowsebox.cxx
@@ -50,8 +50,9 @@ namespace svt
}
}
+ using namespace com::sun::star::accessibility;
using namespace ::com::sun::star::uno;
- using namespace com::sun::star::accessibility::AccessibleEventId;
+
IEditImplementation::~IEditImplementation()
@@ -953,7 +954,7 @@ namespace svt
if ( isAccessibleAlive() && HasFocus() )
{
commitTableEvent(
- ACTIVE_DESCENDANT_CHANGED,
+ AccessibleEventId::ACTIVE_DESCENDANT_CHANGED,
Any( CreateAccessibleCell( nRow, GetColumnPos( nCol -1) ) ),
Any()
);
@@ -969,7 +970,7 @@ namespace svt
if ( isAccessibleAlive() && m_aImpl->m_xActiveCell)
{
- commitBrowseBoxEvent( CHILD, Any(), Any( m_aImpl->m_xActiveCell ) );
+ commitBrowseBoxEvent(AccessibleEventId::CHILD, Any(), Any(m_aImpl->m_xActiveCell));
m_aImpl->clearActiveCell();
}