diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-07-22 15:19:26 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-07-22 20:47:54 +0200 |
commit | df8f780cc24410d2fec5c4d4e1ed58d492559241 (patch) | |
tree | f26af4690497235379a0d91635226bee6013f171 /include/vcl/InterimItemWindow.hxx | |
parent | 40251f0e73d2cb700313395dcf49c43a9c1e8570 (diff) |
move useful parts of ControlBase down hierarchy
Change-Id: I4116a3532b21f6066468bd3905efef1020ace101
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99233
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/vcl/InterimItemWindow.hxx')
-rw-r--r-- | include/vcl/InterimItemWindow.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/vcl/InterimItemWindow.hxx b/include/vcl/InterimItemWindow.hxx index 2ff2dd6d2303..2e2a259a2077 100644 --- a/include/vcl/InterimItemWindow.hxx +++ b/include/vcl/InterimItemWindow.hxx @@ -23,10 +23,16 @@ public: virtual Size GetOptimalSize() const override; virtual void GetFocus() override; + bool ControlHasFocus() const; + + virtual void Draw(OutputDevice* pDevice, const Point& rPos, DrawFlags nFlags) override; + protected: InterimItemWindow(vcl::Window* pParent, const OUString& rUIXMLDescription, const OString& rID, sal_uInt64 nLOKWindowId = 0); + void InitControlBase(weld::Widget* pWidget); + // pass keystrokes from our child window through this to handle focus changes correctly // returns true if keystroke is consumed bool ChildKeyInput(const KeyEvent& rKEvt); @@ -34,6 +40,10 @@ protected: std::unique_ptr<weld::Builder> m_xBuilder; VclPtr<vcl::Window> m_xVclContentArea; std::unique_ptr<weld::Container> m_xContainer; + weld::Widget* m_pWidget; + +private: + virtual void ImplPaintToDevice(::OutputDevice* pTargetOutDev, const Point& rPos) override; }; /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ |