diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-06-25 15:21:40 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-06-25 21:10:12 +0200 |
commit | 2cebba0e4042ca2cab37cf38874c2576c2ac6a6f (patch) | |
tree | 6d48a4057e4e6ff8f349ddba11e5d0d3122324f2 /include/editeng | |
parent | 2ec032e01f03ae22ead30be77b8e89b861504128 (diff) |
use common WeldEditView
Change-Id: I873cb64a167027030c9eeef61344e6f6f885a924
Reviewed-on: https://gerrit.libreoffice.org/74705
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/editeng')
-rw-r--r-- | include/editeng/weldeditview.hxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/editeng/weldeditview.hxx b/include/editeng/weldeditview.hxx index 3d31f589d14f..d14873258d0f 100644 --- a/include/editeng/weldeditview.hxx +++ b/include/editeng/weldeditview.hxx @@ -25,17 +25,19 @@ public: virtual void SetDrawingArea(weld::DrawingArea* pDrawingArea) override; virtual ~WeldEditView() override; - std::unique_ptr<EditEngine> m_xEdEngine; - std::unique_ptr<EditView> m_xEdView; - protected: - virtual Size GetPreferredSize() const; + std::unique_ptr<EditEngine> m_xEditEngine; + std::unique_ptr<EditView> m_xEditView; + + virtual void makeEditEngine(); + virtual void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect) override; virtual bool MouseMove(const MouseEvent& rMEvt) override; virtual bool MouseButtonDown(const MouseEvent& rMEvt) override; virtual bool MouseButtonUp(const MouseEvent& rMEvt) override; virtual bool KeyInput(const KeyEvent& rKEvt) override; virtual void GetFocus() override; + virtual void LoseFocus() override; virtual void Resize() override; virtual void EditViewInvalidate(const tools::Rectangle& rRect) const override |