summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-03-30 23:50:23 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-06-18 17:01:53 +0200
commit0802b4d7babefdce302aeb390637d7d1a728b58b (patch)
tree15abf6d56e46f950bafe8b8de446e830477557fb /sfx2
parentce6285889a6f9cd7d556e7ed2426d1674e05c777 (diff)
uitest: some small improvements for the TabDialog wrapper
Change-Id: I1ab984859a88119aab56e34388078dbfb83d41ef
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/inc/uitest/sfx_uiobject.hxx4
-rw-r--r--sfx2/source/uitest/sfx_uiobject.cxx12
2 files changed, 14 insertions, 2 deletions
diff --git a/sfx2/inc/uitest/sfx_uiobject.hxx b/sfx2/inc/uitest/sfx_uiobject.hxx
index bee5a20b4e35..9a9277220cbd 100644
--- a/sfx2/inc/uitest/sfx_uiobject.hxx
+++ b/sfx2/inc/uitest/sfx_uiobject.hxx
@@ -32,6 +32,10 @@ public:
virtual UIObjectType get_type() const override;
static std::unique_ptr<UIObject> create(vcl::Window* pWindow);
+
+protected:
+
+ virtual OUString get_name() const override;
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sfx2/source/uitest/sfx_uiobject.cxx b/sfx2/source/uitest/sfx_uiobject.cxx
index 6cb6a2348a8e..138e4858fcbc 100644
--- a/sfx2/source/uitest/sfx_uiobject.cxx
+++ b/sfx2/source/uitest/sfx_uiobject.cxx
@@ -23,7 +23,11 @@ SfxTabDialogUIObject::~SfxTabDialogUIObject()
StringMap SfxTabDialogUIObject::get_state()
{
- return WindowUIObject::get_state();
+ StringMap aMap = WindowUIObject::get_state();
+ sal_uInt16 nPageId = mxTabDialog->GetCurPageId();
+ aMap["CurrentPageID"] = OUString::number(nPageId);
+ aMap["CurrentPageText"] = mxTabDialog->GetPageText(nPageId);
+ return aMap;
}
void SfxTabDialogUIObject::execute(const OUString& rAction,
@@ -31,7 +35,6 @@ void SfxTabDialogUIObject::execute(const OUString& rAction,
{
if (rAction == "SELECT")
{
-
}
}
@@ -47,4 +50,9 @@ std::unique_ptr<UIObject> SfxTabDialogUIObject::create(vcl::Window* pWindow)
return std::unique_ptr<UIObject>(new SfxTabDialogUIObject(pDialog));
}
+OUString SfxTabDialogUIObject::get_name() const
+{
+ return OUString("SfxTabDialogUIObject");
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */