a11y: Pass vcl::Window instead of VCLXWindow for TextWindow a11y
As was done for the other a11y classes subclassing VCLXAccessibleComponent in commit 168512dce7f1f1453c045584d47bd78a0a6c73f7 Author: Michael Weghorn <m.weghorn@posteo.de> Date: Thu Dec 12 18:06:13 2024 +0100 a11y: Stop using VCLXWindow in vcl a11y classes , also pass the vcl::Window when creating an XAccessibleContext for a TextView, to get rid of the UNO/toolkit dependency. Change-Id: I3c5febd27a53fe17f83cc4e95dd7466f11a7a225 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178403 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
This commit is contained in:
parent
667823e412
commit
cd76d6caaf
@ -316,8 +316,7 @@ typedef std::unordered_map< OUString,
|
||||
class Document final : public ::VCLXAccessibleComponent, public ::SfxListener
|
||||
{
|
||||
public:
|
||||
Document(::VCLXWindow * pVclXWindow, ::TextEngine & rEngine,
|
||||
::TextView & rView);
|
||||
Document(vcl::Window* pWindow, ::TextEngine & rEngine, ::TextView & rView);
|
||||
|
||||
css::uno::Reference<css::accessibility::XAccessible> getAccessible() const;
|
||||
|
||||
|
@ -701,9 +701,9 @@ void Paragraph::checkDisposed()
|
||||
OUString(), getXWeak());
|
||||
}
|
||||
|
||||
Document::Document(::VCLXWindow * pVclXWindow, ::TextEngine & rEngine,
|
||||
::TextView & rView):
|
||||
VCLXAccessibleComponent(pVclXWindow->GetWindow()),
|
||||
Document::Document(vcl::Window* pWindow, ::TextEngine & rEngine,
|
||||
::TextView & rView)
|
||||
: VCLXAccessibleComponent(pWindow),
|
||||
m_rEngine(rEngine),
|
||||
m_rView(rView),
|
||||
m_aEngineListener(*this),
|
||||
|
@ -146,7 +146,7 @@ public:
|
||||
|
||||
virtual css::uno::Reference< css::accessibility::XAccessibleContext >
|
||||
createAccessibleTextWindowContext(
|
||||
VCLXWindow* pVclXWindow, TextEngine& rEngine, TextView& rView
|
||||
vcl::Window* pWindow, TextEngine& rEngine, TextView& rView
|
||||
) const override;
|
||||
|
||||
virtual css::uno::Reference< css::accessibility::XAccessible >
|
||||
@ -387,9 +387,9 @@ Reference< XAccessible > AccessibleFactory::createAccessibleTabBar( TabBar& _rTa
|
||||
}
|
||||
|
||||
Reference< XAccessibleContext > AccessibleFactory::createAccessibleTextWindowContext(
|
||||
VCLXWindow* pVclXWindow, TextEngine& rEngine, TextView& rView ) const
|
||||
vcl::Window* pWindow, TextEngine& rEngine, TextView& rView) const
|
||||
{
|
||||
return new Document( pVclXWindow, rEngine, rView );
|
||||
return new Document(pWindow, rEngine, rView );
|
||||
}
|
||||
|
||||
Reference< XAccessible > AccessibleFactory::createAccessibleTreeListBox(
|
||||
|
@ -57,7 +57,7 @@ TextWindowPeer::TextWindowPeer(TextView & view):
|
||||
css::uno::Reference<css::accessibility::XAccessibleContext>
|
||||
TextWindowPeer::CreateAccessibleContext() {
|
||||
return m_aFactoryAccess.getFactory().createAccessibleTextWindowContext(
|
||||
this, m_rEngine, m_rView);
|
||||
GetWindow(), m_rEngine, m_rView);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -41,6 +41,7 @@ namespace com::sun::star {
|
||||
namespace vcl { class IAccessibleBrowseBox; }
|
||||
namespace vcl { class IAccessibleTabListBox; }
|
||||
namespace vcl { class IAccessibleTableProvider; }
|
||||
namespace vcl { class Window; }
|
||||
|
||||
class SvHeaderTabListBox;
|
||||
class SvtIconChoiceCtrl;
|
||||
@ -112,7 +113,7 @@ namespace vcl
|
||||
|
||||
virtual css::uno::Reference< css::accessibility::XAccessibleContext >
|
||||
createAccessibleTextWindowContext(
|
||||
VCLXWindow* pVclXWindow, TextEngine& rEngine, TextView& rView
|
||||
vcl::Window* pWindow, TextEngine& rEngine, TextView& rView
|
||||
) const = 0;
|
||||
|
||||
virtual css::uno::Reference< css::accessibility::XAccessible >
|
||||
|
Loading…
x
Reference in New Issue
Block a user