From 88e29df0c216c300b9388ee2822003da2bee8679 Mon Sep 17 00:00:00 2001 From: Jim Raykowski Date: Sat, 14 Jan 2023 12:06:10 -0900 Subject: tdf#152921 add uitest Change-Id: I6d3e6d8503c23549b04f5aaace6a90de9f3ced5e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145522 Tested-by: Jenkins Reviewed-by: Xisco Fauli --- sfx2/source/sidebar/TabBar.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sfx2/source/sidebar/TabBar.cxx') diff --git a/sfx2/source/sidebar/TabBar.cxx b/sfx2/source/sidebar/TabBar.cxx index bd73322f9496..6b77096898c7 100644 --- a/sfx2/source/sidebar/TabBar.cxx +++ b/sfx2/source/sidebar/TabBar.cxx @@ -35,6 +35,8 @@ #include #include +#include "uiobject.hxx" + using namespace css; using namespace css::uno; @@ -58,6 +60,8 @@ TabBar::TabBar(vcl::Window* pParentWindow, , maPopupMenuProvider(std::move(aPopupMenuProvider)) , pParentSidebarController(rParentSidebarController) { + set_id("TabBar"); // for uitest + InitControlBase(mxMenuButton.get()); mxTempToplevel->move(mxContents.get(), m_xContainer.get()); @@ -378,6 +382,11 @@ void TabBar::EnableMenuButton(const bool bEnable) mxMenuButton->set_sensitive(bEnable); } +FactoryFunction TabBar::GetUITestFactory() const +{ + return TabBarUIObject::create; +} + } // end of namespace sfx2::sidebar /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit