From 02a08de0567be345bcc675fb7abbbd35d68be208 Mon Sep 17 00:00:00 2001 From: Vladimir Glazounov Date: Wed, 22 Nov 2006 09:45:44 +0000 Subject: [PATCH] INTEGRATION: CWS asyncdialogs (1.24.92); FILE MERGED 2006/08/30 15:40:29 pb 1.24.92.4: RESYNC: (1.25-1.26); FILE MERGED 2006/06/01 05:24:11 pb 1.24.92.3: fix: #i57125# pFontList moved to pImpl 2006/05/31 13:57:02 pb 1.24.92.2: RESYNC: (1.24-1.25); FILE MERGED 2006/03/01 09:47:41 pb 1.24.92.1: fix: #i57125# use DocShell_Impl* --- sc/source/ui/docshell/docsh3.cxx | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/sc/source/ui/docshell/docsh3.cxx b/sc/source/ui/docshell/docsh3.cxx index c4a6904b1628..e3d0c196b7ec 100644 --- a/sc/source/ui/docshell/docsh3.cxx +++ b/sc/source/ui/docshell/docsh3.cxx @@ -4,9 +4,9 @@ * * $RCSfile: docsh3.cxx,v $ * - * $Revision: 1.26 $ + * $Revision: 1.27 $ * - * last change: $Author: kz $ $Date: 2006-07-21 13:38:39 $ + * last change: $Author: vg $ $Date: 2006-11-22 10:45:44 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -65,6 +65,7 @@ #endif #include "docsh.hxx" +#include "docshimp.hxx" #include "scmod.hxx" #include "tabvwsh.hxx" #include "viewdata.hxx" @@ -457,10 +458,10 @@ SfxPrinter* ScDocShell::GetPrinter(BOOL bCreateIfNotExist) void ScDocShell::UpdateFontList() { - delete pFontList; - // pFontList = new FontList( GetPrinter(), Application::GetDefaultDevice() ); - pFontList = new FontList( GetRefDevice(), NULL, FALSE ); // FALSE or TRUE??? - SvxFontListItem aFontListItem( pFontList, SID_ATTR_CHAR_FONTLIST ); + delete pImpl->pFontList; + // pImpl->pFontList = new FontList( GetPrinter(), Application::GetDefaultDevice() ); + pImpl->pFontList = new FontList( GetRefDevice(), NULL, FALSE ); // FALSE or TRUE??? + SvxFontListItem aFontListItem( pImpl->pFontList, SID_ATTR_CHAR_FONTLIST ); PutItem( aFontListItem ); CalcOutputFactor(); @@ -482,9 +483,9 @@ USHORT ScDocShell::SetPrinter( SfxPrinter* pNewPrinter, USHORT nDiffFlags ) // MT: Use UpdateFontList: Will use Printer fonts only if needed! /* - delete pFontList; - pFontList = new FontList( pNewPrinter, Application::GetDefaultDevice() ); - SvxFontListItem aFontListItem( pFontList, SID_ATTR_CHAR_FONTLIST ); + delete pImpl->pFontList; + pImpl->pFontList = new FontList( pNewPrinter, Application::GetDefaultDevice() ); + SvxFontListItem aFontListItem( pImpl->pFontList, SID_ATTR_CHAR_FONTLIST ); PutItem( aFontListItem ); CalcOutputFactor();