summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/svx/AccessibleShapeTreeInfo.hxx15
1 files changed, 10 insertions, 5 deletions
diff --git a/include/svx/AccessibleShapeTreeInfo.hxx b/include/svx/AccessibleShapeTreeInfo.hxx
index 6057433c4181..0b5ddf8fae52 100644
--- a/include/svx/AccessibleShapeTreeInfo.hxx
+++ b/include/svx/AccessibleShapeTreeInfo.hxx
@@ -22,7 +22,7 @@
#include <com/sun/star/uno/Reference.hxx>
#include <svx/svxdllapi.h>
-#include <vcl/vclptr.hxx>
+#include <vcl/window.hxx>
namespace com { namespace sun { namespace star {
namespace accessibility { class XAccessibleComponent; }
@@ -31,7 +31,6 @@ namespace com { namespace sun { namespace star {
} } }
class SdrView;
-namespace vcl { class Window; }
namespace accessibility {
@@ -135,13 +134,19 @@ public:
/** Set the window that is used to construct SvxTextEditSources which in
turn is used to create accessible edit engines.
*/
- void SetWindow (vcl::Window* pWindow);
+ void SetDevice(OutputDevice* pWindow);
/** Return the current Window.
@return
The returned value may be NULL.
*/
- vcl::Window* GetWindow() const { return mpWindow;}
+ vcl::Window* GetWindow() const
+ {
+ if (mpWindow && mpWindow->GetOutDevType() == OUTDEV_WINDOW)
+ return static_cast<vcl::Window*>(mpWindow.get());
+ return nullptr;
+ }
+ OutputDevice* GetDevice() const { return mpWindow;}
/** The view forwarder allows the transformation between internal
and pixel coordinates and can be asked for the visible area.
@@ -183,7 +188,7 @@ private:
/** This window is necessary to construct an SvxTextEditSource which in
turn is used to create an accessible edit engine.
*/
- VclPtr<vcl::Window> mpWindow;
+ VclPtr<OutputDevice> mpWindow;
/** The view forwarder allows the transformation between internal
and pixel coordinates and can be asked for the visible area.