summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-04-27 19:55:07 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-06-18 17:01:59 +0200
commita86405470fafd86132b8452746a86b54f2396fff (patch)
tree39d09973589d5294e1fa35b639c32b9c5cc644eb
parent540a6554956bbee62b5f669d672d64e03a9d888c (diff)
uitest: let us return a string based type
This is less important for the UI testing and more for debugging and logging. Change-Id: Id65fcacc591129869ca0f80f828eb63ce044cf33
-rw-r--r--offapi/com/sun/star/ui/test/XUIObject.idl2
-rw-r--r--vcl/source/uitest/uno/uiobject_uno.cxx9
-rw-r--r--vcl/source/uitest/uno/uiobject_uno.hxx3
3 files changed, 14 insertions, 0 deletions
diff --git a/offapi/com/sun/star/ui/test/XUIObject.idl b/offapi/com/sun/star/ui/test/XUIObject.idl
index d4bcc443a02b..9a0ca6b36fd0 100644
--- a/offapi/com/sun/star/ui/test/XUIObject.idl
+++ b/offapi/com/sun/star/ui/test/XUIObject.idl
@@ -21,6 +21,8 @@ interface XUIObject
void executeAction([in] string action, [in] com::sun::star::beans::PropertyValues propValues);
com::sun::star::beans::PropertyValues getState();
+
+ string getType();
};
}; }; }; }; };
diff --git a/vcl/source/uitest/uno/uiobject_uno.cxx b/vcl/source/uitest/uno/uiobject_uno.cxx
index a80e6465f50b..998a0d9a78b8 100644
--- a/vcl/source/uitest/uno/uiobject_uno.cxx
+++ b/vcl/source/uitest/uno/uiobject_uno.cxx
@@ -69,6 +69,15 @@ css::uno::Sequence<css::beans::PropertyValue> UIObjectUnoObj::getState()
return aProps;
}
+OUString SAL_CALL UIObjectUnoObj::getType()
+ throw (css::uno::RuntimeException, std::exception)
+{
+ if (!mpObj)
+ throw css::uno::RuntimeException();
+
+ return mpObj->get_type();
+}
+
OUString SAL_CALL UIObjectUnoObj::getImplementationName()
throw (css::uno::RuntimeException, std::exception)
{
diff --git a/vcl/source/uitest/uno/uiobject_uno.hxx b/vcl/source/uitest/uno/uiobject_uno.hxx
index 6e1c55f0459d..d3519bfbaadc 100644
--- a/vcl/source/uitest/uno/uiobject_uno.hxx
+++ b/vcl/source/uitest/uno/uiobject_uno.hxx
@@ -46,6 +46,9 @@ public:
css::uno::Sequence<css::beans::PropertyValue> SAL_CALL getState()
throw (css::uno::RuntimeException, std::exception) override;
+ OUString SAL_CALL getType()
+ throw (css::uno::RuntimeException, std::exception) override;
+
OUString SAL_CALL getImplementationName()
throw (css::uno::RuntimeException, std::exception) override;