20#ifndef INCLUDED_COMPHELPER_ACCESSIBLESELECTIONHELPER_HXX
21#define INCLUDED_COMPHELPER_ACCESSIBLESELECTIONHELPER_HXX
23#include <config_options.h>
27#include <com/sun/star/accessibility/XAccessibleSelection.hpp>
30#define ACCESSIBLE_SELECTION_CHILD_ALL (sal_Int32(-1))
31#define ACCESSIBLE_SELECTION_CHILD_SELF ((sal_Int32)-2)
55 virtual css::uno::Reference< css::accessibility::XAccessibleContext >
66 implSelect( sal_Int64 nAccessibleChildIndex,
bool bSelect ) = 0;
75 void selectAccessibleChild( sal_Int64 nChildIndex );
78 bool isAccessibleChildSelected( sal_Int64 nChildIndex );
80 void clearAccessibleSelection( );
82 void selectAllAccessibleChildren( );
84 sal_Int64 getSelectedAccessibleChildCount( );
87 css::uno::Reference< css::accessibility::XAccessible > getSelectedAccessibleChild( sal_Int64 nSelectedChildIndex );
90 void deselectAccessibleChild( sal_Int64 nSelectedChildIndex );
100 class UNLESS_MERGELIBS(COMPHELPER_DLLPUBLIC) OAccessibleSelectionHelper :
public cppu::ImplInheritanceHelper<OAccessibleComponentHelper, css::accessibility::XAccessibleSelection>,
104 OAccessibleSelectionHelper(OAccessibleSelectionHelper
const &) =
delete;
105 OAccessibleSelectionHelper(OAccessibleSelectionHelper &&) =
delete;
106 void operator =(OAccessibleSelectionHelper
const &) =
delete;
107 void operator =(OAccessibleSelectionHelper &&) =
delete;
111 OAccessibleSelectionHelper();
114 virtual css::uno::Reference< css::accessibility::XAccessibleContext > implGetAccessibleContext()
override;
119 virtual void SAL_CALL selectAccessibleChild( sal_Int64 nChildIndex )
override;
120 virtual sal_Bool SAL_CALL isAccessibleChildSelected( sal_Int64 nChildIndex )
override;
121 virtual void SAL_CALL clearAccessibleSelection( )
override;
122 virtual void SAL_CALL selectAllAccessibleChildren( )
override;
123 virtual sal_Int64 SAL_CALL getSelectedAccessibleChildCount( )
override;
124 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getSelectedAccessibleChild( sal_Int64 nSelectedChildIndex )
override;
125 virtual void SAL_CALL deselectAccessibleChild( sal_Int64 nSelectedChildIndex )
override;
base class encapsulating common functionality for the helper classes implementing the XAccessibleSele...
virtual void implSelect(sal_Int64 nAccessibleChildIndex, bool bSelect)=0
virtual bool implIsSelected(sal_Int64 nAccessibleChildIndex)=0
virtual css::uno::Reference< css::accessibility::XAccessibleContext > implGetAccessibleContext()=0
#define COMPHELPER_DLLPUBLIC