diff options
author | Michael Brauer <mib@openoffice.org> | 2000-11-20 10:15:52 +0000 |
---|---|---|
committer | Michael Brauer <mib@openoffice.org> | 2000-11-20 10:15:52 +0000 |
commit | 92425e3771f05fd68b2e5ea7661d57543b52be0d (patch) | |
tree | 07a509042ef15b6b33201a5d9aa446648bcd144a /sw | |
parent | 184273b1f02e36faa17276223e18444564ac4565 (diff) |
create impl when adding fonts to pool (required for XML filter)
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/writer/writer.cxx | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/sw/source/filter/writer/writer.cxx b/sw/source/filter/writer/writer.cxx index 0b784325f334..88661c4c6451 100644 --- a/sw/source/filter/writer/writer.cxx +++ b/sw/source/filter/writer/writer.cxx @@ -2,9 +2,9 @@ * * $RCSfile: writer.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: jp $ $Date: 2000-11-13 17:26:24 $ + * last change: $Author: mib $ $Date: 2000-11-20 11:15:52 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -466,6 +466,9 @@ BOOL Writer::CopyLocalFileToINet( String& rFileNm ) void Writer::PutNumFmtFontsInAttrPool() { + if( !pImpl ) + pImpl = new Writer_Impl( *pDoc ); + // dann gibt es noch in den NumRules ein paar Fonts // Diese in den Pool putten. Haben sie danach einen RefCount > 1 // kann es wieder entfernt werden - ist schon im Pool @@ -501,6 +504,9 @@ void Writer::PutNumFmtFontsInAttrPool() void Writer::PutEditEngFontsInAttrPool( BOOL bIncl_CJK_CTL ) { + if( !pImpl ) + pImpl = new Writer_Impl( *pDoc ); + SfxItemPool* pPool = pDoc->GetAttrPool().GetSecondaryPool(); if( pPool ) { @@ -515,6 +521,9 @@ void Writer::PutEditEngFontsInAttrPool( BOOL bIncl_CJK_CTL ) void Writer::PutCJKandCTLFontsInAttrPool() { + if( !pImpl ) + pImpl = new Writer_Impl( *pDoc ); + SfxItemPool& rPool = pDoc->GetAttrPool(); _AddFontItems( rPool, RES_CHRATR_CJK_FONT ); _AddFontItems( rPool, RES_CHRATR_CTL_FONT ); @@ -649,11 +658,14 @@ ULONG StgWriter::Write( SwPaM& rPaM, SvStorage& rStg, const String* pFName ) Source Code Control System - Header - $Header: /zpool/svn/migration/cvs_rep_09_09_08/code/sw/source/filter/writer/writer.cxx,v 1.4 2000-11-13 17:26:24 jp Exp $ + $Header: /zpool/svn/migration/cvs_rep_09_09_08/code/sw/source/filter/writer/writer.cxx,v 1.5 2000-11-20 11:15:52 mib Exp $ Source Code Control System - Update $Log: not supported by cvs2svn $ + Revision 1.4 2000/11/13 17:26:24 jp + new method PutCJKandCTLFontsInAttrPool + Revision 1.3 2000/11/01 19:31:51 jp Writer:CopyLocalFileToINet: export of mail graphics removed and SvFileStream access removed |