summaryrefslogtreecommitdiff
path: root/vcl/inc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-10-22 10:27:50 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-10-22 10:28:45 +0100
commit841b975a09b2159e824c51fc1c42b02e7f542052 (patch)
tree9ce18199e35047a165334ffdd8d9ef525f5301c4 /vcl/inc
parent349cf01b1dd3a4c08fb3e17ffd89aa7ea9211f6c (diff)
implement secondary button groups in buttonboxes
Change-Id: I0e60b7e197ba4f6ebd3f24cb2e9072ce3e1353fb
Diffstat (limited to 'vcl/inc')
-rw-r--r--vcl/inc/vcl/layout.hxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/vcl/inc/vcl/layout.hxx b/vcl/inc/vcl/layout.hxx
index 43fc7a9c60bd..38ad29e8ef02 100644
--- a/vcl/inc/vcl/layout.hxx
+++ b/vcl/inc/vcl/layout.hxx
@@ -201,6 +201,18 @@ protected:
virtual void setAllocation(const Size &rAllocation);
private:
VclButtonBoxStyle m_eLayoutStyle;
+ struct Requisition
+ {
+ sal_uInt16 m_nPrimaryChildren;
+ sal_uInt16 m_nSecondaryChildren;
+ Size m_aSize;
+ Requisition()
+ : m_nPrimaryChildren(0)
+ , m_nSecondaryChildren(0)
+ {
+ }
+ };
+ Requisition calculatePrimarySecondaryRequisitions() const;
};
class VCL_DLLPUBLIC VclVButtonBox : public VclButtonBox