diff options
Diffstat (limited to 'sw/source/core/view/viewsh.cxx')
-rw-r--r-- | sw/source/core/view/viewsh.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/core/view/viewsh.cxx b/sw/source/core/view/viewsh.cxx index 4d7f95609d45..42560481d74b 100644 --- a/sw/source/core/view/viewsh.cxx +++ b/sw/source/core/view/viewsh.cxx @@ -72,6 +72,7 @@ #include <svx/sdrpaintwindow.hxx> #include <svx/fmmodel.hxx> #include <vcl/dibtools.hxx> +#include <drawdoc.hxx> sal_Bool ViewShell::bLstAct = sal_False; ShellResource *ViewShell::pShellRes = 0; @@ -852,7 +853,7 @@ void ViewShell::SetAddExtLeading( bool bNew ) { SwWait aWait( *GetDoc()->GetDocShell(), true ); pIDSA->set(IDocumentSettingAccess::ADD_EXT_LEADING, bNew ); - SdrModel* pTmpDrawModel = getIDocumentDrawModelAccess()->GetDrawModel(); + SwDrawModel* pTmpDrawModel = getIDocumentDrawModelAccess()->GetDrawModel(); if ( pTmpDrawModel ) pTmpDrawModel->SetAddExtLeading( bNew ); const sal_uInt8 nInv = INV_PRTAREA | INV_SIZE | INV_TABLE | INV_SECTION; @@ -986,7 +987,7 @@ void ViewShell::Reformat() void ViewShell::ChgNumberDigits() { - SdrModel* pTmpDrawModel = getIDocumentDrawModelAccess()->GetDrawModel(); + SwDrawModel* pTmpDrawModel = getIDocumentDrawModelAccess()->GetDrawModel(); if ( pTmpDrawModel ) pTmpDrawModel->ReformatAllTextObjects(); Reformat(); |