summaryrefslogtreecommitdiffstats
path: root/sfx2/source/uitest/sfx_uiobject.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/uitest/sfx_uiobject.cxx')
-rw-r--r--sfx2/source/uitest/sfx_uiobject.cxx12
1 files changed, 10 insertions, 2 deletions
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: */