summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/sdwindow.cxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-05-22 05:54:11 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-06-18 17:02:38 +0200
commitfdfc55da301435dfd52b0365b8edda7aa893f983 (patch)
treeabc8c696491fc6d69faefcffbf98ea2f0c4bb458 /sd/source/ui/view/sdwindow.cxx
parentb67527fb75cd95201d9251064e8b9d5b1c4fe62a (diff)
uitest: add initial code for impress main edit window
Change-Id: I82eabe1df33878316907e664ddbcd8edf6a73d33
Diffstat (limited to 'sd/source/ui/view/sdwindow.cxx')
-rw-r--r--sd/source/ui/view/sdwindow.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/sd/source/ui/view/sdwindow.cxx b/sd/source/ui/view/sdwindow.cxx
index 580e7a664fef..f400e7816945 100644
--- a/sd/source/ui/view/sdwindow.cxx
+++ b/sd/source/ui/view/sdwindow.cxx
@@ -38,6 +38,7 @@
#include "AccessibleDrawDocumentView.hxx"
#include "WindowUpdater.hxx"
#include "ViewShellBase.hxx"
+#include "uiobject.hxx"
#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
@@ -129,6 +130,11 @@ void Window::SetViewShell (ViewShell* pViewSh)
}
}
+ViewShell* Window::GetViewShell()
+{
+ return mpViewShell;
+}
+
void Window::CalcMinZoom()
{
// Are we entitled to change the minimal zoom factor?
@@ -1021,6 +1027,14 @@ void Window::LogicInvalidate(const Rectangle* pRectangle)
rSfxViewShell.libreOfficeKitViewCallback(LOK_CALLBACK_INVALIDATE_TILES, sRectangle.getStr());
}
+FactoryFunction Window::GetUITestFactory() const
+{
+ if (get_id() == "impress_win")
+ return ImpressWindowUIObject::create;
+
+ return WindowUIObject::create;
+}
+
} // end of namespace sd
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */