diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-08-20 12:01:14 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-08-20 14:00:58 +0100 |
commit | 4b339818bb036b409dd5dc00d645c62063e63de5 (patch) | |
tree | cd27d4fc5a75930cb6565d362a1cfc2261c404e1 /include | |
parent | eba5e5b6b6577cc2d0bbd1ff66eefd0e2024fc4e (diff) |
add a VclViewport
like GtkViewport so that the scrolled region will be clipped,
which also has the side-effect of stopping glade clobbering
the non view-port scrolled .ui files on editing
Change-Id: Ic64174b3a35b77f068e0085cdc7721aeb33f1d82
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/layout.hxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/vcl/layout.hxx b/include/vcl/layout.hxx index a68103802e06..6c4ce283d12d 100644 --- a/include/vcl/layout.hxx +++ b/include/vcl/layout.hxx @@ -576,6 +576,17 @@ private: ScrollBarBox m_aScrollBarBox; }; +class VCL_DLLPUBLIC VclViewport : public VclBin +{ +public: + VclViewport(Window *pParent, WinBits nStyle = WB_HIDE | WB_CLIPCHILDREN) + : VclBin(pParent, nStyle) + { + } +protected: + virtual void setAllocation(const Size &rAllocation) SAL_OVERRIDE; +}; + //Enforces that its children are always the same size as itself. //Intercepts any Commands intended for its children. // |