summaryrefslogtreecommitdiff
path: root/sw/source/uibase/uitest/uiobject.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/uitest/uiobject.cxx')
-rw-r--r--sw/source/uibase/uitest/uiobject.cxx25
1 files changed, 25 insertions, 0 deletions
diff --git a/sw/source/uibase/uitest/uiobject.cxx b/sw/source/uibase/uitest/uiobject.cxx
index 44b995dcf588..fc62fa157cf1 100644
--- a/sw/source/uibase/uitest/uiobject.cxx
+++ b/sw/source/uibase/uitest/uiobject.cxx
@@ -255,6 +255,31 @@ OUString CommentUIObject::get_name() const
return "CommentUIObject";
}
+PageBreakUIObject::PageBreakUIObject(const VclPtr<SwPageBreakWin>& xPageBreakUIObject):
+ WindowUIObject(xPageBreakUIObject),
+ mxPageBreakUIObject(xPageBreakUIObject)
+{
+}
+void PageBreakUIObject::execute(const OUString& rAction,
+ const StringMap& rParameters)
+{
+ if (rAction == "DELETE" || rAction == "EDIT")
+ mxPageBreakUIObject->execute(rAction.toAsciiLowerCase().toUtf8());
+ else
+ WindowUIObject::execute(rAction, rParameters);
+}
+
+std::unique_ptr<UIObject> PageBreakUIObject::create(vcl::Window* pWindow)
+{
+ SwPageBreakWin* pPageBreakWin = dynamic_cast<SwPageBreakWin*>(pWindow);
+ assert(pPageBreakWin);
+ return std::unique_ptr<UIObject>(new PageBreakUIObject(pPageBreakWin));
+}
+
+OUString PageBreakUIObject::get_name() const
+{
+ return "PageBreakUIObject";
+}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */