22#include <com/sun/star/drawing/framework/TabBarButton.hpp>
23#include <com/sun/star/drawing/framework/XTabBar.hpp>
24#include <com/sun/star/drawing/framework/XToolBar.hpp>
25#include <com/sun/star/drawing/framework/XConfigurationChangeListener.hpp>
49 virtual void dispose()
override;
63 css::drawing::framework::XToolBar,
64 css::drawing::framework::XTabBar,
65 css::drawing::framework::XConfigurationChangeListener
75 const css::uno::Reference< css::drawing::framework::XResourceId>& rxViewTabBarId,
79 virtual void disposing(std::unique_lock<std::mutex>&)
override;
89 const css::drawing::framework::ConfigurationChangeEvent& rEvent)
override;
94 const css::lang::EventObject& rEvent)
override;
100 const css::drawing::framework::TabBarButton& rButton,
101 const css::drawing::framework::TabBarButton& rAnchor)
override;
105 const css::drawing::framework::TabBarButton& rButton)
override;
109 const css::drawing::framework::TabBarButton& rButton)
override;
113 const css::drawing::framework::TabBarButton& rButton)
override;
115 virtual css::uno::Sequence<css::drawing::framework::TabBarButton>
120 virtual css::uno::Reference<
121 css::drawing::framework::XResourceId> SAL_CALL
getResourceId()
override;
139 const css::drawing::framework::TabBarButton& rButton,
140 const css::drawing::framework::TabBarButton& rAnchor);
142 const css::drawing::framework::TabBarButton& rButton);
144 const css::drawing::framework::TabBarButton& rButton);
146 const css::drawing::framework::TabBarButton& rButton);
147 css::uno::Sequence<css::drawing::framework::TabBarButton>
161 const css::drawing::framework::TabBarButton& rButton,
162 sal_Int32 nPosition);
171 const css::uno::Reference<css::drawing::framework::XResourceId>& rxViewTabBarId,
virtual ~TabBarControl() override
virtual void dispose() override
::rtl::Reference< ViewTabBar > mpViewTabBar
weld::Notebook & GetNotebook()
TabBarControl(vcl::Window *pParentWindow, ::rtl::Reference< ViewTabBar > pViewTabBar)
std::unique_ptr< weld::Notebook > mxTabControl
DECL_LINK(NotebookSizeAllocHdl, const Size &, void)
DECL_LINK(ActivatePageHdl, const OUString &, void)
int GetAllocatedWidth() const
SfxViewShell descendant that the stacked Draw/Impress shells are based on.
Tab control for switching between views in the center pane.
int GetHeight() const
The returned value is calculated as the difference between the total height of the control and the he...
virtual ~ViewTabBar() override
void UpdateTabBarButtons()
virtual void SAL_CALL addTabBarButtonAfter(const css::drawing::framework::TabBarButton &rButton, const css::drawing::framework::TabBarButton &rAnchor) override
static vcl::Window * GetAnchorWindow(const css::uno::Reference< css::drawing::framework::XResourceId > &rxViewTabBarId, const rtl::Reference<::sd::DrawController > &rxController)
This method is called from the constructor to get the window for an anchor ResourceId and pass it to ...
virtual void SAL_CALL disposing(const css::lang::EventObject &rEvent) override
VclPtr< TabBarControl > mpTabControl
bool ActivatePage(size_t nIndex)
virtual sal_Bool SAL_CALL hasTabBarButton(const css::drawing::framework::TabBarButton &rButton) override
::std::vector< css::drawing::framework::TabBarButton > TabBarButtonList
const VclPtr< TabBarControl > & GetTabControl() const
TabBarButtonList maTabBarButtons
css::uno::Sequence< css::drawing::framework::TabBarButton > GetTabBarButtons()
ViewTabBar(const css::uno::Reference< css::drawing::framework::XResourceId > &rxViewTabBarId, const rtl::Reference< ::sd::DrawController > &rxController)
virtual void SAL_CALL removeTabBarButton(const css::drawing::framework::TabBarButton &rButton) override
virtual sal_Bool SAL_CALL isAnchorOnly() override
virtual css::uno::Reference< css::drawing::framework::XResourceId > SAL_CALL getResourceId() override
rtl::Reference<::sd::DrawController > mxController
css::uno::Reference< css::drawing::framework::XConfigurationController > mxConfigurationController
ViewShellBase * mpViewShellBase
virtual void SAL_CALL appendTabBarButton(const css::drawing::framework::TabBarButton &rButton) override
virtual void disposing(std::unique_lock< std::mutex > &) override
css::uno::Reference< css::drawing::framework::XResourceId > mxViewTabBarId
virtual css::uno::Sequence< css::drawing::framework::TabBarButton > SAL_CALL getTabBarButtons() override
void AddTabBarButton(const css::drawing::framework::TabBarButton &rButton, const css::drawing::framework::TabBarButton &rAnchor)
bool HasTabBarButton(const css::drawing::framework::TabBarButton &rButton)
int mnNoteBookWidthPadding
virtual void SAL_CALL notifyConfigurationChange(const css::drawing::framework::ConfigurationChangeEvent &rEvent) override
void UpdateActiveButton()
void RemoveTabBarButton(const css::drawing::framework::TabBarButton &rButton)
comphelper::WeakComponentImplHelper< css::drawing::framework::XToolBar, css::drawing::framework::XTabBar, css::drawing::framework::XConfigurationChangeListener > ViewTabBarInterfaceBase