13#include <com/sun/star/lang/XServiceInfo.hpp>
14#include <com/sun/star/uno/XComponentContext.hpp>
15#include <com/sun/star/ui/test/XUITest.hpp>
27 typedef ::cppu::WeakComponentImplHelper <
28 css::ui::test::XUITest, css::lang::XServiceInfo
35 std::unique_ptr<UITest> mpUITest;
41 sal_Bool SAL_CALL executeCommand(
const OUString& rCommand)
override;
43 sal_Bool SAL_CALL executeCommandWithParameters(
const OUString& rCommand,
44 const css::uno::Sequence< css::beans::PropertyValue >& rArgs)
override;
46 sal_Bool SAL_CALL executeDialog(
const OUString& rCommand)
override;
48 css::uno::Reference<css::ui::test::XUIObject> SAL_CALL getTopFocusWindow()
override;
50 css::uno::Reference<css::ui::test::XUIObject> SAL_CALL getFloatWindow()
override;
61UITestUnoObj::UITestUnoObj():
67sal_Bool SAL_CALL UITestUnoObj::executeCommand(
const OUString& rCommand)
73sal_Bool SAL_CALL UITestUnoObj::executeCommandWithParameters(
const OUString& rCommand,
74 const css::uno::Sequence< css::beans::PropertyValue >& rArgs)
80sal_Bool SAL_CALL UITestUnoObj::executeDialog(
const OUString& rCommand)
86css::uno::Reference<css::ui::test::XUIObject> SAL_CALL UITestUnoObj::getTopFocusWindow()
93css::uno::Reference<css::ui::test::XUIObject> SAL_CALL UITestUnoObj::getFloatWindow()
100OUString SAL_CALL UITestUnoObj::getImplementationName()
102 return "org.libreoffice.uitest.UITest";
105sal_Bool UITestUnoObj::supportsService(OUString
const & ServiceName)
110css::uno::Sequence<OUString> UITestUnoObj::getSupportedServiceNames()
112 return {
"com.sun.star.ui.test.UITest" };
115extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
118 return cppu::acquire(
new UITestUnoObj());
static std::unique_ptr< UIObject > getFocusTopWindow()
static bool executeCommand(const OUString &rCommand)
static std::unique_ptr< UIObject > getFloatWindow()
static bool executeDialog(const OUString &rCommand)
static bool executeCommandWithParameters(const OUString &rCommand, const css::uno::Sequence< css::beans::PropertyValue > &rArgs)
css::uno::Sequence< OUString > getSupportedServiceNames()
OUString getImplementationName()
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * UITest_get_implementation(css::uno::XComponentContext *, css::uno::Sequence< css::uno::Any > const &)