summaryrefslogtreecommitdiff
path: root/sfx2/source/sidebar/TabBar.cxx
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2023-01-14 12:06:10 -0900
committerXisco Fauli <xiscofauli@libreoffice.org>2023-02-21 20:20:03 +0000
commit88e29df0c216c300b9388ee2822003da2bee8679 (patch)
treebc54289b1975d9c192ea34246cbd4e526a7983c3 /sfx2/source/sidebar/TabBar.cxx
parentb05104facac18f40f34043be304f616530fc3a22 (diff)
tdf#152921 add uitest
Change-Id: I6d3e6d8503c23549b04f5aaace6a90de9f3ced5e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145522 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sfx2/source/sidebar/TabBar.cxx')
-rw-r--r--sfx2/source/sidebar/TabBar.cxx9
1 files changed, 9 insertions, 0 deletions
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 <svtools/acceleratorexecute.hxx>
#include <osl/diagnose.h>
+#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: */