diff options
author | Valentin Kettner <vakevk+libreoffice@gmail.com> | 2014-08-08 19:16:38 +0200 |
---|---|---|
committer | Valentin Kettner <vakevk+libreoffice@gmail.com> | 2014-08-12 23:26:38 +0200 |
commit | 535971f3a166da6c0e44a6b7211c7f8c298f388f (patch) | |
tree | 0336851da5207b32512a6833be9f7b0412bdf96d /sw/source/core/unocore/unoredlines.cxx | |
parent | 5494954b269267f6ee3bdd5ac73e7513fa69978f (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/unoredlines.cxx')
-rw-r--r-- | sw/source/core/unocore/unoredlines.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/core/unocore/unoredlines.cxx b/sw/source/core/unocore/unoredlines.cxx index 639dda3d9343..94891fb31d42 100644 --- a/sw/source/core/unocore/unoredlines.cxx +++ b/sw/source/core/unocore/unoredlines.cxx @@ -29,6 +29,7 @@ #include <pagedesc.hxx> #include "poolfmt.hxx" #include <doc.hxx> +#include <IDocumentStylePoolAccess.hxx> #include <docary.hxx> #include <redline.hxx> #include <switerator.hxx> @@ -114,7 +115,7 @@ uno::Sequence< OUString > SwXRedlines::getSupportedServiceNames(void) beans::XPropertySet* SwXRedlines::GetObject( SwRangeRedline& rRedline, SwDoc& rDoc ) { - SwPageDesc* pStdDesc = rDoc.GetPageDescFromPool(RES_POOLPAGE_STANDARD); + SwPageDesc* pStdDesc = rDoc.getIDocumentStylePoolAccess().GetPageDescFromPool(RES_POOLPAGE_STANDARD); SwIterator<SwXRedline,SwPageDesc> aIter(*pStdDesc); SwXRedline* pxRedline = aIter.First(); while(pxRedline) @@ -132,7 +133,7 @@ SwXRedlineEnumeration::SwXRedlineEnumeration(SwDoc& rDoc) : pDoc(&rDoc), nCurrentIndex(0) { - pDoc->GetPageDescFromPool(RES_POOLPAGE_STANDARD)->Add(this); + pDoc->getIDocumentStylePoolAccess().GetPageDescFromPool(RES_POOLPAGE_STANDARD)->Add(this); } SwXRedlineEnumeration::~SwXRedlineEnumeration() |