diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-10-24 10:10:56 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-10-24 15:39:26 +0100 |
commit | 0853819285861e896e370bb5c10bf9108f3d74d8 (patch) | |
tree | 120dec3d2f40db781b9f81b94490c5e6d6d4b04e /vcl/inc/vcl | |
parent | 39c9ef3991d783bd8265ab31565814145a5dae8d (diff) |
merge and correct buttonbox spacing calculation
Change-Id: Ibd378c85c6b7cf774ed2a6f652264a2a78bfe366
Diffstat (limited to 'vcl/inc/vcl')
-rw-r--r-- | vcl/inc/vcl/layout.hxx | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/vcl/inc/vcl/layout.hxx b/vcl/inc/vcl/layout.hxx index 38ad29e8ef02..fb533dbc9e32 100644 --- a/vcl/inc/vcl/layout.hxx +++ b/vcl/inc/vcl/layout.hxx @@ -45,6 +45,7 @@ private: class VCL_DLLPUBLIC VclBox : public VclContainer { protected: + Size m_aMinChildSize; bool m_bHomogeneous; int m_nSpacing; public: @@ -70,8 +71,10 @@ public: { return m_bHomogeneous; } - virtual bool set_property(const rtl::OString &rKey, const rtl::OString &rValue); + virtual bool set_property(const OString &rKey, const OString &rValue); protected: + Size finalizeMaxes(const Size &rSize, sal_uInt16 nVisibleChildren) const; + virtual Size calculateRequisition() const; virtual void setAllocation(const Size &rAllocation); @@ -182,11 +185,7 @@ enum VclButtonBoxStyle class VCL_DLLPUBLIC VclButtonBox : public VclBox { public: - VclButtonBox(Window *pParent, int nSpacing) - : VclBox(pParent, true, nSpacing) - , m_eLayoutStyle(VCL_BUTTONBOX_DEFAULT_STYLE) - { - } + VclButtonBox(Window *pParent, int nSpacing); void set_layout(VclButtonBoxStyle eStyle) { m_eLayoutStyle = eStyle; @@ -195,7 +194,7 @@ public: { return m_eLayoutStyle; } - virtual bool set_property(const rtl::OString &rKey, const rtl::OString &rValue); + virtual bool set_property(const OString &rKey, const OString &rValue); protected: virtual Size calculateRequisition() const; virtual void setAllocation(const Size &rAllocation); @@ -388,7 +387,7 @@ public: { return m_nColumnSpacing; } - virtual bool set_property(const rtl::OString &rKey, const rtl::OString &rValue); + virtual bool set_property(const OString &rKey, const OString &rValue); }; VCL_DLLPUBLIC void setGridAttach(Window &rWidget, sal_Int32 nLeft, sal_Int32 nTop, @@ -408,7 +407,7 @@ class VCL_DLLPUBLIC VclFrame : public VclBin { public: VclFrame(Window *pParent) : VclBin(pParent) {} - void set_label(const rtl::OUString &rLabel); + void set_label(const OUString &rLabel); Window *get_label_widget(); const Window *get_label_widget() const; protected: @@ -431,7 +430,7 @@ public: , m_fYScale(1.0) { } - virtual bool set_property(const rtl::OString &rKey, const rtl::OString &rValue); + virtual bool set_property(const OString &rKey, const OString &rValue); protected: virtual Size calculateRequisition() const; virtual void setAllocation(const Size &rAllocation); @@ -459,7 +458,7 @@ public: } virtual Window *get_child(); virtual const Window *get_child() const; - virtual bool set_property(const rtl::OString &rKey, const rtl::OString &rValue); + virtual bool set_property(const OString &rKey, const OString &rValue); protected: virtual Size calculateRequisition() const; virtual void setAllocation(const Size &rAllocation); |