don't need to include button.hxx here

Change-Id: I70ee0546c768271b9eb1d1432de2c9c642c0984a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107133
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Caolán McNamara
2020-12-02 20:17:36 +00:00
parent 0865857e74
commit ca914b36b3
3 changed files with 7 additions and 3 deletions

View File

@@ -205,7 +205,7 @@ public:
void SetIconClickHdl( Link<NotebookBar*, void> aHdl );
void SetToolBox( ToolBox* pToolBox );
ToolBox* GetToolBox() { return m_pShortcuts; }
PushButton* GetOpenMenu() { return m_pOpenMenu; }
Control* GetOpenMenu();
virtual Size calculateRequisition() const override;
static sal_uInt16 GetHeaderHeight();

View File

@@ -18,7 +18,6 @@
*/
#include <vcl/builderfactory.hxx>
#include <vcl/button.hxx>
#include <vcl/layout.hxx>
#include <vcl/notebookbar.hxx>
#include <vcl/tabpage.hxx>
@@ -161,7 +160,7 @@ NotebookbarTabControl::~NotebookbarTabControl()
void NotebookbarTabControl::ArrowStops( sal_uInt16 nCode )
{
ToolBox* pToolBox( GetToolBox() );
PushButton* pOpenMenu( GetOpenMenu() );
Control* pOpenMenu( GetOpenMenu() );
if ( nCode == KEY_LEFT )
{

View File

@@ -2393,4 +2393,9 @@ Size NotebookbarTabControlBase::calculateRequisition() const
return TabControl::ImplCalculateRequisition(m_nHeaderHeight);
}
Control* NotebookbarTabControlBase::GetOpenMenu()
{
return m_pOpenMenu;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */