diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-04-11 11:41:54 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-09-28 08:48:15 +0100 |
commit | a80c9b051d14f3d950799da9c02ed9d7ac710fcc (patch) | |
tree | b9aaac5f63cd99289bb979ffcf8e56cf981beddd /vcl/inc/vcl/layout.hxx | |
parent | 2529bd5d18782e7d1325d595001a3b4bd747b828 (diff) |
implement a basic VclFrame
factor out common VclContainer pieces
Diffstat (limited to 'vcl/inc/vcl/layout.hxx')
-rw-r--r-- | vcl/inc/vcl/layout.hxx | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/vcl/inc/vcl/layout.hxx b/vcl/inc/vcl/layout.hxx index fc7e0a1d69d1..cff021ff2970 100644 --- a/vcl/inc/vcl/layout.hxx +++ b/vcl/inc/vcl/layout.hxx @@ -36,6 +36,9 @@ class VCL_DLLPUBLIC VclContainer : public Window { public: VclContainer(Window *pParent) : Window(pParent) {} + virtual Size GetOptimalSize(WindowSizeType eType) const; + using Window::SetPosSizePixel; + virtual void SetPosSizePixel(const Point& rNewPos, const Size& rNewSize); protected: virtual Size calculateRequisition() const = 0; virtual void setAllocation(const Size &rAllocation) = 0; @@ -60,10 +63,6 @@ public: { Show(); } -public: - virtual Size GetOptimalSize(WindowSizeType eType) const; - using Window::SetPosSizePixel; - virtual void SetPosSizePixel(const Point& rNewPos, const Size& rNewSize); protected: virtual Size calculateRequisition() const; virtual void setAllocation(const Size &rAllocation); @@ -313,15 +312,20 @@ public: { return m_nColumnSpacing; } -public: - virtual Size GetOptimalSize(WindowSizeType eType) const; - using Window::SetPosSizePixel; - virtual void SetPosSizePixel(const Point& rNewPos, const Size& rNewSize); }; VCL_DLLPUBLIC void setGridAttach(Window &rWidget, sal_Int32 nLeft, sal_Int32 nTop, sal_Int32 nWidth = 1, sal_Int32 nHeight = 1); +class VCL_DLLPUBLIC VclFrame : public VclContainer +{ +public: + VclFrame(Window *pParent) : VclContainer(pParent) {} +protected: + virtual Size calculateRequisition() const; + virtual void setAllocation(const Size &rAllocation); +}; + // retro-fitting utilities // //Get a Size which is large enough to contain all children with |