diff options
author | Valentin Kettner <vakevk+libreoffice@gmail.com> | 2014-08-15 19:09:49 +0200 |
---|---|---|
committer | Valentin Kettner <vakevk+libreoffice@gmail.com> | 2014-08-19 21:57:06 +0200 |
commit | 15295ab6db7cb46ea5f155d33a08027c62fb0e41 (patch) | |
tree | 89ad8ebaee3f7821299b944c378d60a11aa20d64 /sw/source/core/unocore/unoflatpara.cxx | |
parent | 5a05115ee25683b5fc7c79ab418eaeed120bd3b0 (diff) |
Refactored SwDoc::GetEditShell .
Removed its output paramater as GetCurrentViewShell should be
used instead and added a const version.
Change-Id: Iad8b57553b6e93e3472ce8c6905d08e8d49af770
Diffstat (limited to 'sw/source/core/unocore/unoflatpara.cxx')
-rw-r--r-- | sw/source/core/unocore/unoflatpara.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/unocore/unoflatpara.cxx b/sw/source/core/unocore/unoflatpara.cxx index 517c7ec2f905..b6a7c5f3bfbf 100644 --- a/sw/source/core/unocore/unoflatpara.cxx +++ b/sw/source/core/unocore/unoflatpara.cxx @@ -30,6 +30,7 @@ #include <ndtxt.hxx> #include <doc.hxx> #include <docsh.hxx> +#include <IDocumentLayoutAccess.hxx> #include <IDocumentStylePoolAccess.hxx> #include <viewsh.hxx> #include <viewimp.hxx> @@ -384,8 +385,7 @@ uno::Reference< text::XFlatParagraph > SwXFlatParagraphIterator::getNextPara() SwTxtNode* pRet = 0; if ( mbAutomatic ) { - SwViewShell* pViewShell = 0; - mpDoc->GetEditShell( &pViewShell ); + SwViewShell* pViewShell = mpDoc->getIDocumentLayoutAccess().GetCurrentViewShell(); SwPageFrm* pCurrentPage = pViewShell ? pViewShell->Imp()->GetFirstVisPage() : 0; SwPageFrm* pStartPage = pCurrentPage; |