From c0c9c9d5f21d65f582de163566c46242d21dc506 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 31 May 2018 17:14:57 +0100 Subject: forcepoint#44 raii for connection and disconnection of SwView and SwDocShell MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I11ce25e6fc043e37d4410359438744567cac37f6 Reviewed-on: https://gerrit.libreoffice.org/55146 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sw/inc/view.hxx | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'sw/inc') diff --git a/sw/inc/view.hxx b/sw/inc/view.hxx index eca967473ae6..a3eddaedf991 100644 --- a/sw/inc/view.hxx +++ b/sw/inc/view.hxx @@ -128,6 +128,18 @@ struct SwApplyTemplate } }; +class SwView; + +// manage connection and disconnection of SwView and SwDocShell +class SwViewGlueDocShell +{ +private: + SwView& m_rView; +public: + SwViewGlueDocShell(SwView& rView, SwDocShell& rDocSh); + ~SwViewGlueDocShell(); +}; + // view of a document class SW_DLLPUBLIC SwView: public SfxViewShell { @@ -167,6 +179,7 @@ class SW_DLLPUBLIC SwView: public SfxViewShell VclPtr m_pEditWin; std::unique_ptr m_pWrtShell; + std::unique_ptr m_xGlueDocShell; SfxShell *m_pShell; // current SubShell at the dispatcher FmFormShell *m_pFormShell; // DB-FormShell -- cgit