25#include <com/sun/star/accessibility/AccessibleRole.hpp>
26#include <com/sun/star/accessibility/AccessibleStateType.hpp>
27#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
29#include <osl/interlck.h>
31#include <svx/strings.hrc>
86 OAccessibleSelectionHelper::disposing();
88 ::comphelper::disposeComponent(rChild);
100 throw IndexOutOfBoundsException();
112 throw IndexOutOfBoundsException();
129 aRet.X = aOutPos.
X();
130 aRet.Y = aOutPos.
Y();
131 aRet.Width = aOutSize.
Width();
132 aRet.Height = aOutSize.
Height();
149 uno::Reference< css::accessibility::XAccessible > xRet;
153 throw lang::IndexOutOfBoundsException();
168 return uno::Reference<css::accessibility::XAccessible>();
173 return css::accessibility::AccessibleRole::TABLE;
179 return SvxResId( RID_SVXSTR_CHARACTER_SELECTION );
187 return SvxResId( RID_SVXSTR_CHAR_SEL_DESC );
193 return uno::Reference< css::accessibility::XAccessibleRelationSet >();
201 sal_Int64 nStateSet = 0;
206 nStateSet |= AccessibleStateType::FOCUSABLE;
209 nStateSet |= AccessibleStateType::FOCUSED;
210 nStateSet |= AccessibleStateType::ACTIVE;
214 nStateSet |= AccessibleStateType::ENABLED;
215 nStateSet |= AccessibleStateType::SENSITIVE;
218 nStateSet |= AccessibleStateType::VISIBLE;
220 nStateSet |= AccessibleStateType::MANAGES_DESCENDANTS;
231 uno::Reference< css::accessibility::XAccessible > xRet;
232 const sal_uInt16 nItemId = sal::static_int_cast<sal_uInt16>(
235 if( sal_uInt16(-1) != nItemId )
282 return Reference< XAccessibleTable >();
287 return Reference< XAccessibleTable >();
325 throw IndexOutOfBoundsException();
331 return Reference< XAccessible >();
336 return Reference< XAccessible >();
348 return (
static_cast<sal_Int64
>(nRow) *
COLUMN_COUNT) + nColumn;
368 OSL_ENSURE(pParent,
"NO parent supplied!");
384 const ::osl::MutexGuard aGuard( GetMutex() );
396 throw lang::IndexOutOfBoundsException();
410 return css::accessibility::AccessibleRole::TABLE_CELL;
418 OUString sDescription;
422 const int tmp_len = (c < 0x10000) ? 4 : 6;
423 char buf[16] =
"0x0000";
425 for(
int i = 0;
i < tmp_len; ++
i )
427 char h =
static_cast<char>(c_Shifted & 0x0F);
428 buf[tmp_len+1-
i] = (
h > 9) ? (
h - 10 +
'A') : (
h +
'0');
432 snprintf( buf+6, 10,
" (%" SAL_PRIuUINT32
")", c );
434 sDescription =
SvxResId( RID_SVXSTR_CHARACTER_CODE )
436 + OUString(buf, strlen(buf), RTL_TEXTENCODING_ASCII_US);
462 return uno::Reference< css::accessibility::XAccessibleRelationSet >();
470 sal_Int64 nStateSet = 0;
476 nStateSet |= css::accessibility::AccessibleStateType::ENABLED;
478 nStateSet |= css::accessibility::AccessibleStateType::SELECTABLE;
479 nStateSet |= css::accessibility::AccessibleStateType::FOCUSABLE;
485 nStateSet |= css::accessibility::AccessibleStateType::SELECTED;
487 nStateSet |= css::accessibility::AccessibleStateType::FOCUSED;
491 nStateSet |= AccessibleStateType::VISIBLE;
492 nStateSet |= AccessibleStateType::SHOWING;
494 nStateSet |= AccessibleStateType::TRANSIENT;
516 throw IndexOutOfBoundsException();
524 throw IndexOutOfBoundsException();
531 return Reference< css::accessibility::XAccessibleKeyBinding >();
532 throw IndexOutOfBoundsException();
552 aRet.X = aRect.
Left();
553 aRet.Y = aRect.
Top();
563 return uno::Reference< css::accessibility::XAccessible >();
BaseContainerNodeSharedPtr & mrParent
const StyleSettings & GetStyleSettings() const
static const AllSettings & GetSettings()
constexpr tools::Long Y() const
constexpr tools::Long X() const
constexpr tools::Long Height() const
constexpr tools::Long Width() const
const Color & GetWindowColor() const
const Color & GetDialogTextColor() const
virtual void SelectIndex(int index, bool bFocus=false)
static sal_uInt16 GetRowPos(sal_uInt16 _nPos)
sal_uInt16 GetSelectIndexId() const
virtual sal_Int32 getMaxCharCount() const
void OutputIndex(int index)
int PixelToMapIndex(const Point &) const
uno::Reference< css::accessibility::XAccessible > getAccessibleParent() const
bool IsSelected(sal_uInt16 _nPos) const
static sal_uInt16 GetColumnPos(sal_uInt16 _nPos)
virtual svx::SvxShowCharSetItem * ImplGetItem(int _nPos)
virtual int LastInView() const
The table implementation of the vcl control.
virtual sal_Bool SAL_CALL isAccessibleColumnSelected(sal_Int32 nColumn) override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleCaption() override
virtual sal_Bool SAL_CALL isAccessibleSelected(sal_Int32 nRow, sal_Int32 nColumn) override
virtual sal_Int32 SAL_CALL getAccessibleColumn(sal_Int64 nChildIndex) override
virtual css::uno::Sequence< sal_Int32 > SAL_CALL getSelectedAccessibleRows() override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleSummary() override
virtual css::uno::Sequence< sal_Int32 > SAL_CALL getSelectedAccessibleColumns() override
virtual void SAL_CALL grabFocus() override
virtual void implSelect(sal_Int64 nAccessibleChildIndex, bool bSelect) override
virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet() override
virtual bool implIsSelected(sal_Int64 nAccessibleChildIndex) override
virtual sal_Int32 SAL_CALL getForeground() override
virtual sal_Int64 SAL_CALL getAccessibleChildCount() override
virtual sal_Bool SAL_CALL isAccessibleRowSelected(sal_Int32 nRow) override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent() override
virtual css::uno::Reference< css::accessibility::XAccessibleTable > SAL_CALL getAccessibleColumnHeaders() override
virtual OUString SAL_CALL getAccessibleName() override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint(const css::awt::Point &aPoint) override
virtual void SAL_CALL disposing() override
virtual sal_Int16 SAL_CALL getAccessibleRole() override
virtual OUString SAL_CALL getAccessibleRowDescription(sal_Int32 nRow) override
virtual sal_Int32 SAL_CALL getAccessibleRow(sal_Int64 nChildIndex) override
::std::vector< css::uno::Reference< css::accessibility::XAccessible > > m_aChildren
virtual sal_Int64 SAL_CALL getAccessibleIndex(sal_Int32 nRow, sal_Int32 nColumn) override
SvxShowCharSet * m_pParent
virtual sal_Int32 SAL_CALL getBackground() override
virtual sal_Int32 SAL_CALL getAccessibleRowExtentAt(sal_Int32 nRow, sal_Int32 nColumn) override
virtual css::awt::Rectangle implGetBounds() override
implements the calculation of the bounding rectangle - still waiting to be overwritten
virtual css::uno::Reference< css::accessibility::XAccessibleTable > SAL_CALL getAccessibleRowHeaders() override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild(sal_Int64 i) override
virtual sal_Int32 SAL_CALL getAccessibleColumnCount() override
virtual OUString SAL_CALL getAccessibleColumnDescription(sal_Int32 nColumn) override
virtual OUString SAL_CALL getAccessibleDescription() override
virtual sal_Int64 SAL_CALL getAccessibleStateSet() override
virtual sal_Int32 SAL_CALL getAccessibleRowCount() override
virtual sal_Int32 SAL_CALL getAccessibleColumnExtentAt(sal_Int32 nRow, sal_Int32 nColumn) override
virtual ~SvxShowCharSetAcc() override
SvxShowCharSetAcc(SvxShowCharSet *pParent)
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleCellAt(sal_Int32 nRow, sal_Int32 nColumn) override
The child implementation of the table.
virtual OUString SAL_CALL getAccessibleDescription() override
virtual css::awt::Rectangle implGetBounds() override
implements the calculation of the bounding rectangle - still waiting to be overwritten
virtual OUString SAL_CALL getAccessibleName() override
virtual sal_Bool SAL_CALL doAccessibleAction(sal_Int32 nIndex) override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild(sal_Int64 i) override
SvxShowCharSetItem * mpParent
virtual sal_Int64 SAL_CALL getAccessibleChildCount() override
virtual css::uno::Reference< css::accessibility::XAccessibleKeyBinding > SAL_CALL getAccessibleActionKeyBinding(sal_Int32 nIndex) override
virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet() override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint(const css::awt::Point &aPoint) override
virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent() override
virtual sal_Int32 SAL_CALL getAccessibleActionCount() override
SvxShowCharSetItemAcc(SvxShowCharSetItem *pParent)
virtual sal_Int16 SAL_CALL getAccessibleRole() override
virtual OUString SAL_CALL getAccessibleActionDescription(sal_Int32 nIndex) override
virtual sal_Int64 SAL_CALL getAccessibleStateSet() override
virtual ~SvxShowCharSetItemAcc() override
virtual void SAL_CALL grabFocus() override
OUString SvxResId(TranslateId aId)
RegionData_Impl * mpParent
class SvxPropertySetInfoPool
constexpr T & temporary(T &&x)
Simple struct to hold some information about the single items of the table.
css::uno::Reference< css::accessibility::XAccessible > GetAccessible()
SvxShowCharSetAcc * m_pParent
SvxShowCharSet & mrParent
SvxShowCharSetItem(SvxShowCharSet &rParent, SvxShowCharSetAcc *_pParent, sal_uInt16 _nPos)
rtl::Reference< SvxShowCharSetItemAcc > m_xItem