#101689# Accessibility for EditorWindow.
This commit is contained in:
parent
15f61eb13f
commit
5d14bc0bec
2 changed files with 27 additions and 4 deletions
|
@ -2,9 +2,9 @@
|
|||
*
|
||||
* $RCSfile: baside2.hxx,v $
|
||||
*
|
||||
* $Revision: 1.11 $
|
||||
* $Revision: 1.12 $
|
||||
*
|
||||
* last change: $Author: sb $ $Date: 2002-07-05 10:22:47 $
|
||||
* last change: $Author: sb $ $Date: 2002-07-24 13:01:27 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
|
@ -178,6 +178,10 @@ private:
|
|||
BOOL bDoSyntaxHighlight;
|
||||
BOOL bDelayHighlight;
|
||||
|
||||
virtual
|
||||
::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >
|
||||
GetComponentInterface(BOOL bCreate = TRUE);
|
||||
|
||||
protected:
|
||||
virtual void Paint( const Rectangle& );
|
||||
virtual void Resize();
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
*
|
||||
* $RCSfile: baside2b.cxx,v $
|
||||
*
|
||||
* $Revision: 1.26 $
|
||||
* $Revision: 1.27 $
|
||||
*
|
||||
* last change: $Author: sb $ $Date: 2002-07-15 09:01:03 $
|
||||
* last change: $Author: sb $ $Date: 2002-07-24 13:01:28 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
|
@ -73,6 +73,7 @@
|
|||
#include <vcl/sound.hxx>
|
||||
#include <svtools/xtextedt.hxx>
|
||||
#include <svtools/txtattr.hxx>
|
||||
#include <svtools/textwindowaccessibility.hxx>
|
||||
|
||||
#include <helpid.hrc>
|
||||
#include <baside2.hrc>
|
||||
|
@ -1715,6 +1716,24 @@ void ComplexEditorWindow::DataChanged(DataChangedEvent const & rDCEvt)
|
|||
}
|
||||
}
|
||||
|
||||
// virtual
|
||||
uno::Reference< awt::XWindowPeer >
|
||||
EditorWindow::GetComponentInterface(BOOL bCreate)
|
||||
{
|
||||
uno::Reference< awt::XWindowPeer > xPeer(
|
||||
Window::GetComponentInterface(false));
|
||||
if (!xPeer.is() && bCreate)
|
||||
{
|
||||
// Make sure edit engine and view are available:
|
||||
if (!pEditEngine)
|
||||
CreateEditEngine();
|
||||
|
||||
xPeer = new svtools::TextWindowAccessibility(*GetEditView());
|
||||
SetComponentInterface(xPeer);
|
||||
}
|
||||
return xPeer;
|
||||
}
|
||||
|
||||
WatchTreeListBox::WatchTreeListBox( Window* pParent, WinBits nWinBits )
|
||||
: SvTreeListBox( pParent, nWinBits )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue