summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unoflatpara.cxx
diff options
context:
space:
mode:
authorValentin Kettner <vakevk+libreoffice@gmail.com>2014-08-08 19:16:38 +0200
committerValentin Kettner <vakevk+libreoffice@gmail.com>2014-08-12 23:26:38 +0200
commit535971f3a166da6c0e44a6b7211c7f8c298f388f (patch)
tree0336851da5207b32512a6833be9f7b0412bdf96d /sw/source/core/unocore/unoflatpara.cxx
parent5494954b269267f6ee3bdd5ac73e7513fa69978f (diff)
Refactored IDocumentStylePoolAccess out of SwDoc.
Added non const SwDoc::GetDfltTxtFmtColl and SwDoc::GetTxtFmtColls and SwDoc::GetCharFmts. Had to make the manager friend of SwTxtFmtColl and SwConditionTxtFmtColl Had to make SwDoc::_MakeCharFmt and SwDoc::_MakeFrmFmt public. Change-Id: I19a36d91f92b3781a6c4313ec12eb8f7d4dfacc3
Diffstat (limited to 'sw/source/core/unocore/unoflatpara.cxx')
-rw-r--r--sw/source/core/unocore/unoflatpara.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unoflatpara.cxx b/sw/source/core/unocore/unoflatpara.cxx
index 555a0ff9d218..517c7ec2f905 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 <IDocumentStylePoolAccess.hxx>
#include <viewsh.hxx>
#include <viewimp.hxx>
#include <breakit.hxx>
@@ -347,7 +348,7 @@ SwXFlatParagraphIterator::SwXFlatParagraphIterator( SwDoc& rDoc, sal_Int32 nType
//mnStartNode = mnCurrentNode = get node from current cursor TODO!
// register as listener and get notified when document is closed
- mpDoc->GetPageDescFromPool( RES_POOLPAGE_STANDARD )->Add(this);
+ mpDoc->getIDocumentStylePoolAccess().GetPageDescFromPool( RES_POOLPAGE_STANDARD )->Add(this);
}
SwXFlatParagraphIterator::~SwXFlatParagraphIterator()