diff options
author | Valentin Kettner <vakevk+libreoffice@gmail.com> | 2014-06-01 22:21:38 +0200 |
---|---|---|
committer | Valentin Kettner <vakevk+libreoffice@gmail.com> | 2014-06-03 19:12:05 +0200 |
commit | 86075a3f0f095cde29c6460d7e5dd4069ed89d00 (patch) | |
tree | bb4cc053f51e3f2bef38b44d1ce28dce3e1613e8 /sw/source/uibase/uiview | |
parent | 4269e3a7435b45cbbcd45d959e1e8c8e761a94a0 (diff) |
Split out IDocumentDrawModelAccess from SwDoc.
To the new class DocumentDrawModelManager.
All moved methods and members have the same in thew new class.
Change-Id: I89ad0e0c4a42885d5810e834983ea8e8e6c0a2d2
Diffstat (limited to 'sw/source/uibase/uiview')
-rw-r--r-- | sw/source/uibase/uiview/view.cxx | 3 | ||||
-rw-r--r-- | sw/source/uibase/uiview/view2.cxx | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/uibase/uiview/view.cxx b/sw/source/uibase/uiview/view.cxx index eebfc4396b5d..7ab26cf1cb82 100644 --- a/sw/source/uibase/uiview/view.cxx +++ b/sw/source/uibase/uiview/view.cxx @@ -72,6 +72,7 @@ #include <doc.hxx> #include <IDocumentUndoRedo.hxx> #include <IDocumentSettingAccess.hxx> +#include <IDocumentDrawModelAccess.hxx> #include <drawdoc.hxx> #include <wdocsh.hxx> #include <wview.hxx> @@ -1633,7 +1634,7 @@ void SwView::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) if( !bReadonly ) { SwDrawDocument * pDrawDoc = 0; - if ( 0 != ( pDrawDoc = dynamic_cast< SwDrawDocument * > (GetDocShell()->GetDoc()->GetDrawModel() ) ) ) + if ( 0 != ( pDrawDoc = dynamic_cast< SwDrawDocument * > (GetDocShell()->GetDoc()->getIDocumentDrawModelAccess().GetDrawModel() ) ) ) { if( !pDrawDoc->GetOpenInDesignMode() ) break;// don't touch the design mode diff --git a/sw/source/uibase/uiview/view2.cxx b/sw/source/uibase/uiview/view2.cxx index 2976b7db8d38..854e65355a50 100644 --- a/sw/source/uibase/uiview/view2.cxx +++ b/sw/source/uibase/uiview/view2.cxx @@ -80,6 +80,7 @@ #include <doc.hxx> #include <IDocumentUndoRedo.hxx> #include <IDocumentSettingAccess.hxx> +#include <IDocumentDrawModelAccess.hxx> #include <wrtsh.hxx> #include <viewopt.hxx> #include <basesh.hxx> |