summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2004-05-10 14:36:07 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2004-05-10 14:36:07 +0000
commit624f729fc2aa45979d088792223d9e92685e5d54 (patch)
tree17da91d7ae04012232d16973751bf3f1fbcd13ac
parentbd2c93250dd5f809bbd977cacd3e25648b46b30c (diff)
INTEGRATION: CWS dialogdiet01 (1.8.60); FILE MERGED
2004/04/08 01:45:19 mwu 1.8.60.1: DialogDiet 2004_04_08
-rw-r--r--extensions/source/propctrlr/fontdialog.cxx34
1 files 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 <com/sun/star/beans/XPropertyState.hpp>
#endif
-
+#ifndef _SVX_SVXIDS_HRC
+#include <svx/svxids.hrc> //CHINA001
+#endif
+#include <svx/svxdlg.hxx> //CHINA001
+#include <svx/dialogs.hrc> //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<SvxCharNamePage&>(_rPage).SetFontList(
- static_cast<const SvxFontListItem&>(GetInputSetImpl()->Get(CFID_FONTLIST))
- );
- static_cast<SvxCharNamePage&>(_rPage).DisableControls( DISABLE_HIDE_LANGUAGE );
+//CHINA001 static_cast<SvxCharNamePage&>(_rPage).SetFontList(
+//CHINA001 static_cast<const SvxFontListItem&>(GetInputSetImpl()->Get(CFID_FONTLIST))
+//CHINA001 );
+//CHINA001 static_cast<SvxCharNamePage&>(_rPage).DisableControls( DISABLE_HIDE_LANGUAGE );
+
+//CHINA001 SvxFontListItem aFontListItem( static_cast<const SvxFontListItem&>(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<const SvxFontListItem&>(GetInputSetImpl()->Get(CFID_FONTLIST))));
+ aSet.Put (SfxUInt16Item(SID_DISABLE_CTL,DISABLE_HIDE_LANGUAGE));
+ _rPage.PageCreated(aSet);
break;
}
}