From 624f729fc2aa45979d088792223d9e92685e5d54 Mon Sep 17 00:00:00 2001 From: Jens-Heiner Rechtien Date: Mon, 10 May 2004 14:36:07 +0000 Subject: [PATCH] INTEGRATION: CWS dialogdiet01 (1.8.60); FILE MERGED 2004/04/08 01:45:19 mwu 1.8.60.1: DialogDiet 2004_04_08 --- extensions/source/propctrlr/fontdialog.cxx | 34 +++++++++++++++------- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/extensions/source/propctrlr/fontdialog.cxx b/extensions/source/propctrlr/fontdialog.cxx index 01053bc024d7..7c7a0c0a08c5 100644 --- a/extensions/source/propctrlr/fontdialog.cxx +++ b/extensions/source/propctrlr/fontdialog.cxx @@ -2,9 +2,9 @@ * * $RCSfile: fontdialog.cxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: vg $ $Date: 2004-01-06 12:39:29 $ + * last change: $Author: hr $ $Date: 2004-05-10 15:36:07 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -182,7 +182,11 @@ #ifndef _COM_SUN_STAR_BEANS_XPROPERTYSTATE_HPP_ #include #endif - +#ifndef _SVX_SVXIDS_HRC +#include //CHINA001 +#endif +#include //CHINA001 +#include //CHINA001 //............................................................................ namespace pcr { @@ -301,9 +305,10 @@ namespace pcr :SfxTabDialog(_pParent, ModuleRes(RID_TABDLG_FONTDIALOG), &_rCoreSet) { FreeResource(); - - AddTabPage(TABPAGE_CHARACTERS, SvxCharNamePage::Create, 0); - AddTabPage(TABPAGE_CHARACTERS_EXT, SvxCharEffectsPage::Create, 0); + SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create(); //CHINA001 + DBG_ASSERT(pFact, "CreateFactory fail!"); + AddTabPage(TABPAGE_CHARACTERS, pFact->GetTabPageCreatorFunc(RID_SVXPAGE_CHAR_NAME), 0 );//CHINA001 AddTabPage(TABPAGE_CHARACTERS, SvxCharNamePage::Create, 0); + AddTabPage(TABPAGE_CHARACTERS_EXT, pFact->GetTabPageCreatorFunc(RID_SVXPAGE_CHAR_EFFECTS), 0 );//CHINA001 AddTabPage(TABPAGE_CHARACTERS_EXT, SvxCharEffectsPage::Create, 0); } //------------------------------------------------------------------------ @@ -685,13 +690,22 @@ namespace pcr //------------------------------------------------------------------------ void ControlCharacterDialog::PageCreated( sal_uInt16 _nId, SfxTabPage& _rPage ) { + SfxAllItemSet aSet(*(GetInputSetImpl()->GetPool())); switch ( _nId ) { case TABPAGE_CHARACTERS: - static_cast(_rPage).SetFontList( - static_cast(GetInputSetImpl()->Get(CFID_FONTLIST)) - ); - static_cast(_rPage).DisableControls( DISABLE_HIDE_LANGUAGE ); +//CHINA001 static_cast(_rPage).SetFontList( +//CHINA001 static_cast(GetInputSetImpl()->Get(CFID_FONTLIST)) +//CHINA001 ); +//CHINA001 static_cast(_rPage).DisableControls( DISABLE_HIDE_LANGUAGE ); + +//CHINA001 SvxFontListItem aFontListItem( static_cast(GetInputSetImpl()->Get(CFID_FONTLIST) )); +//CHINA001 aSet.Put ( SvxFontListItem( aFontListItem.GetFontList(), SID_ATTR_CHAR_FONTLIST)); + +// aSet.Put (SfxUInt16Item(SID_CFID_FONTLIST,CFID_FONTLIST)); + aSet.Put (SvxFontListItem(static_cast(GetInputSetImpl()->Get(CFID_FONTLIST)))); + aSet.Put (SfxUInt16Item(SID_DISABLE_CTL,DISABLE_HIDE_LANGUAGE)); + _rPage.PageCreated(aSet); break; } }