summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;