From a11926f900e5b20c1ef924d139a8ae35937aa224 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 10 Oct 2019 13:07:05 +0100 Subject: Picture can be in anonymous namespace MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I484443e70b6465a98851aede32df1975d55d75d0 Reviewed-on: https://gerrit.libreoffice.org/80604 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- cui/source/dialogs/screenshotannotationdlg.cxx | 39 ++++++++++++++------------ 1 file 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 { -- cgit