diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-02-13 17:41:03 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-02-16 00:35:34 +0100 |
commit | 6a3f9de585fc0e8e6191db5210729ae6b3730e7d (patch) | |
tree | 5d053ebe13d08608812c2321dd60a6c9c23ffc70 /include/vcl/layout.hxx | |
parent | ofz#6311 still problems with SdrEdgeObj listening to same obj at start as end (diff) | |
download | core-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.hxx | 28 |
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); |