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/filter/ascii | |
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/filter/ascii')
-rw-r--r-- | sw/source/filter/ascii/parasc.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/filter/ascii/parasc.cxx b/sw/source/filter/ascii/parasc.cxx index 7265d8ef5e26..803ef460e88c 100644 --- a/sw/source/filter/ascii/parasc.cxx +++ b/sw/source/filter/ascii/parasc.cxx @@ -29,6 +29,7 @@ #include <shellio.hxx> #include <doc.hxx> #include <IDocumentDeviceAccess.hxx> +#include <IDocumentStylePoolAccess.hxx> #include <swtypes.hxx> #include <ndtxt.hxx> #include <pam.hxx> @@ -155,9 +156,9 @@ sal_uLong SwASCIIParser::CallParser() if (bNewDoc) { - pColl = pDoc->GetTxtCollFromPool(RES_POOLCOLL_HTML_PRE, false); + pColl = pDoc->getIDocumentStylePoolAccess().GetTxtCollFromPool(RES_POOLCOLL_HTML_PRE, false); if (!pColl) - pColl = pDoc->GetTxtCollFromPool(RES_POOLCOLL_STANDARD,false); + pColl = pDoc->getIDocumentStylePoolAccess().GetTxtCollFromPool(RES_POOLCOLL_STANDARD,false); if (pColl) pDoc->SetTxtFmtColl(*pPam, pColl); } |