summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-10-24 11:50:08 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-10-24 14:30:53 +0200
commita6922432ed5109b024e22a9c595b65c19e3b5c64 (patch)
tree3085ba6151e44b053ea42cfb23581167b81158c5 /include
parentac2c561efc15b0adb94f1b207735ceaeb3f1c45a (diff)
create a VclHPaned
Change-Id: Iec1076cdca03fe75ad832c0b9f8133ee4276dd6f Reviewed-on: https://gerrit.libreoffice.org/81444 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/vcl/layout.hxx33
1 files changed, 27 insertions, 6 deletions
diff --git a/include/vcl/layout.hxx b/include/vcl/layout.hxx
index 494cb708f292..ec3fcc5041a9 100644
--- a/include/vcl/layout.hxx
+++ b/include/vcl/layout.hxx
@@ -370,21 +370,42 @@ public:
virtual void setAllocation(const Size &rAllocation) override;
};
-class VCL_DLLPUBLIC VclVPaned : public VclContainer
+class VCL_DLLPUBLIC VclPaned : public VclContainer
{
-private:
+protected:
VclPtr<Splitter> m_pSplitter;
long m_nPosition;
+
+ VclPaned(vcl::Window *pParent, bool bVertical);
+public:
+ virtual ~VclPaned() override { disposeOnce(); }
+ virtual void dispose() override;
+ long get_position() const { return m_nPosition; }
+ void set_position(long nPosition) { m_nPosition = nPosition; }
+};
+
+class VCL_DLLPUBLIC VclVPaned : public VclPaned
+{
+private:
DECL_LINK(SplitHdl, Splitter*, void);
void arrange(const Size& rAllocation, long nFirstHeight, long nSecondHeight);
+
public:
VclVPaned(vcl::Window *pParent);
- virtual ~VclVPaned() override { disposeOnce(); }
- virtual void dispose() override;
virtual Size calculateRequisition() const override;
virtual void setAllocation(const Size &rAllocation) override;
- long get_position() const { return m_nPosition; }
- void set_position(long nPosition) { m_nPosition = nPosition; }
+};
+
+class VCL_DLLPUBLIC VclHPaned : public VclPaned
+{
+private:
+ DECL_LINK(SplitHdl, Splitter*, void);
+ void arrange(const Size& rAllocation, long nFirstHeight, long nSecondHeight);
+
+public:
+ VclHPaned(vcl::Window *pParent);
+ virtual Size calculateRequisition() const override;
+ virtual void setAllocation(const Size &rAllocation) override;
};
class VCL_DLLPUBLIC VclFrame : public VclBin