Use ImplInheritanceHelper in VCLXAccessibleCheckBox
Change-Id: I6cb7926db61590a356db7c55eeda94053dbf189f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146188 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
parent
7c63d968bb
commit
df4f438e74
2 changed files with 6 additions and 26 deletions
|
@ -24,17 +24,15 @@
|
|||
#include <com/sun/star/accessibility/XAccessibleAction.hpp>
|
||||
#include <com/sun/star/accessibility/XAccessibleValue.hpp>
|
||||
|
||||
#include <cppuhelper/implbase2.hxx>
|
||||
#include <cppuhelper/implbase.hxx>
|
||||
|
||||
|
||||
|
||||
|
||||
typedef ::cppu::ImplHelper2<
|
||||
css::accessibility::XAccessibleAction,
|
||||
css::accessibility::XAccessibleValue > VCLXAccessibleCheckBox_BASE;
|
||||
|
||||
class VCLXAccessibleCheckBox final : public VCLXAccessibleTextComponent,
|
||||
public VCLXAccessibleCheckBox_BASE
|
||||
class VCLXAccessibleCheckBox final : public cppu::ImplInheritanceHelper<
|
||||
VCLXAccessibleTextComponent,
|
||||
css::accessibility::XAccessibleAction,
|
||||
css::accessibility::XAccessibleValue>
|
||||
{
|
||||
private:
|
||||
bool m_bChecked;
|
||||
|
@ -56,12 +54,6 @@ private:
|
|||
public:
|
||||
VCLXAccessibleCheckBox( VCLXWindow* pVCLXindow );
|
||||
|
||||
// XInterface
|
||||
DECLARE_XINTERFACE()
|
||||
|
||||
// XTypeProvider
|
||||
DECLARE_XTYPEPROVIDER()
|
||||
|
||||
// XServiceInfo
|
||||
virtual OUString SAL_CALL getImplementationName() override;
|
||||
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
|
||||
|
|
|
@ -46,7 +46,7 @@ using namespace ::comphelper;
|
|||
|
||||
|
||||
VCLXAccessibleCheckBox::VCLXAccessibleCheckBox( VCLXWindow* pVCLWindow )
|
||||
:VCLXAccessibleTextComponent( pVCLWindow )
|
||||
:ImplInheritanceHelper( pVCLWindow )
|
||||
{
|
||||
m_bChecked = IsChecked();
|
||||
m_bIndeterminate = IsIndeterminate();
|
||||
|
@ -137,18 +137,6 @@ void VCLXAccessibleCheckBox::FillAccessibleStateSet( sal_Int64& rStateSet )
|
|||
}
|
||||
|
||||
|
||||
// XInterface
|
||||
|
||||
|
||||
IMPLEMENT_FORWARD_XINTERFACE2( VCLXAccessibleCheckBox, VCLXAccessibleTextComponent, VCLXAccessibleCheckBox_BASE )
|
||||
|
||||
|
||||
// XTypeProvider
|
||||
|
||||
|
||||
IMPLEMENT_FORWARD_XTYPEPROVIDER2( VCLXAccessibleCheckBox, VCLXAccessibleTextComponent, VCLXAccessibleCheckBox_BASE )
|
||||
|
||||
|
||||
// XServiceInfo
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue