diff options
author | Valentin Kettner <vakevk+libreoffice@gmail.com> | 2014-08-06 16:21:14 +0200 |
---|---|---|
committer | Valentin Kettner <vakevk+libreoffice@gmail.com> | 2014-08-12 23:26:38 +0200 |
commit | 5494954b269267f6ee3bdd5ac73e7513fa69978f (patch) | |
tree | bd6569e5b82a7c771062b2e2e5f6db7666913597 /sw/source/core/tox/ToxTextGenerator.cxx | |
parent | 64e13a1456c44ef3461c2941bb3be15c3eaf478e (diff) |
Refactored IDocumentLayoutAccess out of SwDoc.
Into the new class DocumentLayoutManager.
Change-Id: I02d0cfcc63633d0bdab380508b2ef563187fd269
Diffstat (limited to 'sw/source/core/tox/ToxTextGenerator.cxx')
-rw-r--r-- | sw/source/core/tox/ToxTextGenerator.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/core/tox/ToxTextGenerator.cxx b/sw/source/core/tox/ToxTextGenerator.cxx index 9c83b4abc56e..af71b04b4abb 100644 --- a/sw/source/core/tox/ToxTextGenerator.cxx +++ b/sw/source/core/tox/ToxTextGenerator.cxx @@ -23,6 +23,7 @@ #include "cntfrm.hxx" #include "fchrfmt.hxx" #include "doc.hxx" +#include <IDocumentLayoutAccess.hxx> #include "fmtinfmt.hxx" #include "ndtxt.hxx" #include "pagedesc.hxx" @@ -115,7 +116,7 @@ ToxTextGenerator::HandleChapterToken(const SwTOXSortTabBase& rBase, const SwForm } // #i53420# - const SwCntntFrm* contentFrame = contentNode->getLayoutFrm(pDoc->GetCurrentLayout()); + const SwCntntFrm* contentFrame = contentNode->getLayoutFrm(pDoc->getIDocumentLayoutAccess().GetCurrentLayout()); if (!contentFrame) { return OUString(); } @@ -203,7 +204,7 @@ ToxTextGenerator::GenerateText(SwDoc* pDoc, const std::vector<SwTOXSortTabBase*> case TOKEN_TAB_STOP: { ToxTabStopTokenHandler::HandledTabStopToken htst = - mTabStopTokenHandler->HandleTabStopToken(aToken, *pTOXNd, pDoc->GetCurrentLayout()); + mTabStopTokenHandler->HandleTabStopToken(aToken, *pTOXNd, pDoc->getIDocumentLayoutAccess().GetCurrentLayout()); rTxt += htst.text; aTStops.Insert(htst.tabStop); break; |