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