22#include <bitmaps.hlst>
29#define BUTTON_WIDTH 30
67 if (nCurrentWidth <= nWidth)
77 nCurrentWidth -= nWindowWidth;
99 if (nCurrentWidth > nWidth)
144 sal_uInt16 nVisibleChildren = 0;
152 if (!pChild->IsVisible())
158 nPrimaryDimension += pChild->get_padding() * 2;
170 m_pPopup.disposeAndClear();
174 for (
int i = 0;
i < GetChildCount();
i++)
177 if (pWindow != m_pButton)
189 m_pPopup->hideSeparators(
true);
192 tools::Long y = m_pButton->GetPosPixel().getY() + GetSizePixel().Height();
IMPL_LINK(PriorityMergedHBox, PBClickHdl, Button *,, void)
Size calculateRequisition() const override
VclPtr< PushButton > m_pButton
int GetHiddenCount() const override
virtual void Resize() override
VclPtr< NotebookbarPopup > m_pPopup
virtual void dispose() override
This is intended to be used to clear any locally held references to other Window-subclass objects.
PriorityMergedHBox(vcl::Window *pParent)
constexpr tools::Long getWidth() const
constexpr tools::Long Width() const
Size finalizeMaxes(const Size &rSize, sal_uInt16 nVisibleChildren) const
void accumulateMaxes(const Size &rChildSize, Size &rSize) const
virtual Size calculateRequisition() const override
static Size getLayoutRequisition(const vcl::Window &rWindow)
virtual tools::Long getPrimaryDimension(const Size &rSize) const override
virtual void setPrimaryDimension(Size &rSize, tools::Long nWidth) const override
static VclPtr< reference_type > Create(Arg &&... arg)
A construction helper for VclPtr.
virtual void dispose() override
This is intended to be used to clear any locally held references to other Window-subclass objects.
vcl::Window * GetParent() const
sal_uInt16 GetChildCount() const
vcl::Window * GetWindow(GetWindowType nType) const
void SetParent(vcl::Window *pNewParent)
void Show(bool bVisible=true, ShowFlags nFlags=ShowFlags::NONE)
void set_pack_type(VclPackType ePackType)
void set_width_request(sal_Int32 nWidthRequest)
virtual Size GetSizePixel() const
Size GetOutputSizePixel() const
vcl::Window * GetChild(sal_uInt16 nChild) const
#define LINK(Instance, Class, Member)
WinBits const WB_FLATBUTTON