summaryrefslogtreecommitdiffstats
path: root/include/vcl/layout.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-02-13 17:41:03 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-02-16 00:35:34 +0100
commit6a3f9de585fc0e8e6191db5210729ae6b3730e7d (patch)
tree5d053ebe13d08608812c2321dd60a6c9c23ffc70 /include/vcl/layout.hxx
parentofz#6311 still problems with SdrEdgeObj listening to same obj at start as end (diff)
downloadcore-6a3f9de585fc0e8e6191db5210729ae6b3730e7d.tar.gz
core-6a3f9de585fc0e8e6191db5210729ae6b3730e7d.zip
native dialog initial basis
Change-Id: I392be563e38257390f748c70bb71c67a66778ddd Reviewed-on: https://gerrit.libreoffice.org/49677 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/vcl/layout.hxx')
-rw-r--r--include/vcl/layout.hxx28
1 files changed, 28 insertions, 0 deletions
diff --git a/include/vcl/layout.hxx b/include/vcl/layout.hxx
index d73fa7166ce2..ca60679d346c 100644
--- a/include/vcl/layout.hxx
+++ b/include/vcl/layout.hxx
@@ -654,6 +654,34 @@ public:
VclMultiLineEdit *pSecondaryMessage);
};
+class VCL_DLLPUBLIC VclDrawingArea : public vcl::Window
+{
+private:
+ Link<vcl::RenderContext&, void> m_aPaintHdl;
+ Link<const Size&, void> m_aResizeHdl;
+public:
+ VclDrawingArea(vcl::Window *pParent, WinBits nStyle)
+ : vcl::Window(pParent, nStyle)
+ {
+ }
+ void SetPaintHdl(const Link<vcl::RenderContext&, void>& rLink)
+ {
+ m_aPaintHdl = rLink;
+ }
+ void SetResizeHdl(const Link<const Size&, void>& rLink)
+ {
+ m_aResizeHdl = rLink;
+ }
+ virtual void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& /*rRect*/) override
+ {
+ m_aPaintHdl.Call(rRenderContext);
+ }
+ virtual void Resize() override
+ {
+ m_aResizeHdl.Call(GetOutputSizePixel());
+ }
+};
+
//Get first window of a pTopLevel window as
//if any intermediate layout widgets didn't exist
//i.e. acts like pChild = pChild->GetWindow(GetWindowType::FirstChild);