summaryrefslogtreecommitdiffstats
path: root/vcl/source/control/button.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/control/button.cxx')
-rw-r--r--vcl/source/control/button.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index 5399ae2e68bb..a5a444fbb021 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -36,6 +36,7 @@
#include <vcl/edit.hxx>
#include <vcl/layout.hxx>
#include <vcl/vclstatuslistener.hxx>
+#include <uitest/uiobject_impl.hxx>
#include <svids.hrc>
#include <svdata.hxx>
@@ -620,6 +621,11 @@ void Button::statusChanged(const css::frame::FeatureStateEvent& rEvent)
Enable(rEvent.IsEnabled);
}
+FactoryFunction Button::GetUITestFactory() const
+{
+ return ButtonUIObject::create;
+}
+
IMPL_STATIC_LINK_TYPED( Button, dispatchCommandHandler, Button*, pButton, void )
{
if (pButton == nullptr)
@@ -3791,6 +3797,11 @@ void CheckBox::ShowFocus(const Rectangle& rRect)
Button::ShowFocus(rRect);
}
+FactoryFunction CheckBox::GetUITestFactory() const
+{
+ return EditUIObject::create;
+}
+
ImageButton::ImageButton( vcl::Window* pParent, WinBits nStyle ) :
PushButton( pParent, nStyle )
{