diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-03-30 23:50:23 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-06-18 17:01:53 +0200 |
commit | 0802b4d7babefdce302aeb390637d7d1a728b58b (patch) | |
tree | 15abf6d56e46f950bafe8b8de446e830477557fb /sfx2/source/uitest | |
parent | ce6285889a6f9cd7d556e7ed2426d1674e05c777 (diff) |
uitest: some small improvements for the TabDialog wrapper
Change-Id: I1ab984859a88119aab56e34388078dbfb83d41ef
Diffstat (limited to 'sfx2/source/uitest')
-rw-r--r-- | sfx2/source/uitest/sfx_uiobject.cxx | 12 |
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: */ |