summaryrefslogtreecommitdiff
path: root/starmath/source/edit.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2005-05-03 12:51:56 +0000
committerOliver Bolte <obo@openoffice.org>2005-05-03 12:51:56 +0000
commit11fc33c63fde6d453e6c9651b62d3abdbe0cd64f (patch)
tree98eb1a535086ef163c81d99ab9b02f3c58cf1a5f /starmath/source/edit.cxx
parent3e8bf62ec6cbd777614448569fdc658db8df0ede (diff)
INTEGRATION: CWS tl11 (1.32.10); FILE MERGED
2005/04/27 13:15:37 tl 1.32.10.1: #i21351# fixed font problem for edit window solved
Diffstat (limited to 'starmath/source/edit.cxx')
-rw-r--r--starmath/source/edit.cxx29
1 files changed, 3 insertions, 26 deletions
diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx
index 44b3f51ad090..0db31a36da6a 100644
--- a/starmath/source/edit.cxx
+++ b/starmath/source/edit.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: edit.cxx,v $
*
- * $Revision: 1.32 $
+ * $Revision: 1.33 $
*
- * last change: $Author: vg $ $Date: 2005-02-16 17:58:30 $
+ * last change: $Author: obo $ $Date: 2005-05-03 13:51:56 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -295,30 +295,7 @@ void SmEditWindow::DataChanged( const DataChangedEvent& )
pEditEngine->SetDefTab( USHORT( GetTextWidth( C2S("XXXX") ) ) );
- USHORT aFntInfoId[3] = {
- EE_CHAR_FONTINFO, EE_CHAR_FONTINFO_CJK, EE_CHAR_FONTINFO_CTL };
- for (int i = 0; i < 3; ++i)
- {
- const SfxPoolItem *pItem;
- if ((pItem = pEditEngineItemPool->GetPoolDefaultItem( aFntInfoId[i] )))
- {
- const SvxFontItem *pFntItem = ((const SvxFontItem *) pItem);
- const Font &rFnt = aSettings.GetFieldFont();
- SvxFontItem aFntItem( rFnt.GetFamily(), rFnt.GetName(),
- rFnt.GetStyleName(), rFnt.GetPitch(),
- pFntItem->GetCharSet(),
- aFntInfoId[i] );
- pEditEngineItemPool->SetPoolDefaultItem( aFntItem );
- }
- }
-
- SvxFontHeightItem aItem( GetFont().GetSize().Height(), 100,
- EE_CHAR_FONTHEIGHT );
- pEditEngineItemPool->SetPoolDefaultItem( aItem );
- aItem.SetWhich( EE_CHAR_FONTHEIGHT_CJK );
- pEditEngineItemPool->SetPoolDefaultItem( aItem );
- aItem.SetWhich( EE_CHAR_FONTHEIGHT_CTL );
- pEditEngineItemPool->SetPoolDefaultItem( aItem );
+ SetEditEngineDefaultFonts( *pEditEngine, *pEditEngineItemPool );
// forces new settings to be used
// unfortunately this resets the whole edit engine