Use ImplInheritanceHelper in VCLXAccessibleTextField

Change-Id: Ie6b9fd7d825940d090f76b23597c40d8cbbca7c8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146239
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Stephan Bergmann 2023-01-26 17:40:18 +01:00
parent cf38f560d0
commit 148caa3612
2 changed files with 3 additions and 16 deletions

View file

@ -21,10 +21,7 @@
#include <standard/vclxaccessibletextcomponent.hxx>
#include <cppuhelper/implbase1.hxx>
typedef ::cppu::ImplHelper1< css::accessibility::XAccessible > VCLXAccessible_BASE;
#include <cppuhelper/implbase.hxx>
/** This class represents non editable text fields. The object passed to
the constructor is expected to be a list (a ListBox to be
@ -33,19 +30,12 @@ typedef ::cppu::ImplHelper1< css::accessibility::XAccessible > VCLXAccessible_BA
exported text changes.
*/
class VCLXAccessibleTextField final :
public VCLXAccessibleTextComponent,
public VCLXAccessible_BASE
public cppu::ImplInheritanceHelper<VCLXAccessibleTextComponent, css::accessibility::XAccessible>
{
public:
VCLXAccessibleTextField (VCLXWindow* pVCLXindow,
const css::uno::Reference< css::accessibility::XAccessible >& _xParent);
// XInterface
DECLARE_XINTERFACE()
// XTypeProvider
DECLARE_XTYPEPROVIDER()
// XAccessible
css::uno::Reference< css::accessibility::XAccessibleContext> SAL_CALL
getAccessibleContext() override;

View file

@ -31,7 +31,7 @@ using namespace ::com::sun::star::accessibility;
VCLXAccessibleTextField::VCLXAccessibleTextField (VCLXWindow* pVCLWindow, const Reference< XAccessible >& _xParent) :
VCLXAccessibleTextComponent (pVCLWindow),
ImplInheritanceHelper (pVCLWindow),
m_xParent( _xParent )
{
@ -48,9 +48,6 @@ OUString VCLXAccessibleTextField::implGetText()
return aText;
}
IMPLEMENT_FORWARD_XINTERFACE2(VCLXAccessibleTextField, VCLXAccessibleTextComponent, VCLXAccessible_BASE)
IMPLEMENT_FORWARD_XTYPEPROVIDER2(VCLXAccessibleTextField, VCLXAccessibleTextComponent, VCLXAccessible_BASE)
// XAccessible