26bool lcl_comparePriority(
const vcl::IPrioritable* a,
const vcl::IPrioritable* b)
28 return a->GetPriority() < b->GetPriority();
34 , m_bInitialized(false)
53 if (pWindow->IsHidden())
76 sal_uInt16 nVisibleChildren = 0;
82 if (!pChild->IsVisible())
87 bool bAlwaysExpanded =
true;
89 vcl::IPrioritable* pPrioritable =
dynamic_cast<vcl::IPrioritable*
>(pChild);
91 bAlwaysExpanded =
false;
96 nPrimaryDimension += pChild->get_padding() * 2;
124 if (nCurrentWidth <= nWidth)
129 if (pWindow && pWindow->
GetParent() ==
this)
133 pPrioritable->HideContent();
143 vcl::IPrioritable* pPrioritable = *pChildR;
155 pPrioritable->ShowContent();
158 if (nCurrentWidth > nWidth)
160 pPrioritable->HideContent();
186 vcl::IPrioritable* pPrioritable =
dynamic_cast<vcl::IPrioritable*
>(pChild);
#define VCL_PRIORITY_DEFAULT
Some things multiple-inherit from VclAbstractDialog and OutputDevice, so we need to use virtual inher...
std::vector< vcl::IPrioritable * > m_aSortedChildren
virtual ~PriorityHBox() override
virtual void Resize() override
virtual void GetChildrenWithPriorities()
virtual int GetHiddenCount() const
virtual Size calculateRequisition() const override
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
PriorityHBox(vcl::Window *pParent)
constexpr tools::Long getHeight() const
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 void SetSizePixel(const Size &rAllocation) override
virtual tools::Long getPrimaryDimension(const Size &rSize) const override
virtual void setPrimaryDimension(Size &rSize, tools::Long nWidth) const override
vcl::Window * GetParent() const
sal_uInt16 GetChildCount() const
vcl::Window * GetWindow(GetWindowType nType) const
void Show(bool bVisible=true, ShowFlags nFlags=ShowFlags::NONE)
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)
virtual Size GetSizePixel() const
Size GetOutputSizePixel() const
vcl::Window * GetChild(sal_uInt16 nChild) const