diff options
-rw-r--r-- | cui/source/dialogs/screenshotannotationdlg.cxx | 39 |
1 files changed, 21 insertions, 18 deletions
diff --git a/cui/source/dialogs/screenshotannotationdlg.cxx b/cui/source/dialogs/screenshotannotationdlg.cxx index 67373ec6f323..cc43afa14a2f 100644 --- a/cui/source/dialogs/screenshotannotationdlg.cxx +++ b/cui/source/dialogs/screenshotannotationdlg.cxx @@ -104,27 +104,30 @@ namespace } } -class Picture : public weld::CustomWidgetController +namespace { -private: - ScreenshotAnnotationDlg_Impl *m_pDialog; - bool m_bMouseOver; -private: - virtual void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle&) override; - virtual bool MouseMove(const MouseEvent& rMouseEvent) override; - virtual bool MouseButtonUp(const MouseEvent& rMouseEvent) override; -public: - Picture(ScreenshotAnnotationDlg_Impl* pDialog) - : m_pDialog(pDialog) - , m_bMouseOver(false) + class Picture : public weld::CustomWidgetController { - } + private: + ScreenshotAnnotationDlg_Impl *m_pDialog; + bool m_bMouseOver; + private: + virtual void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle&) override; + virtual bool MouseMove(const MouseEvent& rMouseEvent) override; + virtual bool MouseButtonUp(const MouseEvent& rMouseEvent) override; + public: + Picture(ScreenshotAnnotationDlg_Impl* pDialog) + : m_pDialog(pDialog) + , m_bMouseOver(false) + { + } - bool IsMouseOver() const - { - return m_bMouseOver; - } -}; + bool IsMouseOver() const + { + return m_bMouseOver; + } + }; +} class ScreenshotAnnotationDlg_Impl { |