summaryrefslogtreecommitdiff
path: root/starmath/source/cfgitem.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2008-07-22 06:12:35 +0000
committerOliver Bolte <obo@openoffice.org>2008-07-22 06:12:35 +0000
commitb1db00fe3deff8584e20df6ef7a9e66a4697ea43 (patch)
tree2167082eae63efaae58c651345354b2bc706b0f9 /starmath/source/cfgitem.cxx
parentc4bad428cea013201b15690a251fa5fb146fe212 (diff)
INTEGRATION: CWS pba11y01 (1.19.30); FILE MERGED
2008/07/14 07:36:03 tl 1.19.30.1: #i91480# fix for font format list config entry
Diffstat (limited to 'starmath/source/cfgitem.cxx')
-rw-r--r--starmath/source/cfgitem.cxx18
1 files changed, 16 insertions, 2 deletions
diff --git a/starmath/source/cfgitem.cxx b/starmath/source/cfgitem.cxx
index 3acf3abf1af8..e6b540a9d092 100644
--- a/starmath/source/cfgitem.cxx
+++ b/starmath/source/cfgitem.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: cfgitem.cxx,v $
- * $Revision: 1.19 $
+ * $Revision: 1.20 $
*
* This file is part of OpenOffice.org.
*
@@ -460,6 +460,13 @@ void SmMathConfig::SetFormatModified( BOOL bVal )
}
+void SmMathConfig::SetFontFormatListModified( BOOL bVal )
+{
+ if (pFontFormatList)
+ pFontFormatList->SetModified( bVal );
+}
+
+
void SmMathConfig::ReadSymbol( SmSym &rSymbol,
const rtl::OUString &rSymbolName,
const rtl::OUString &rBaseNode ) const
@@ -1120,7 +1127,7 @@ const SmFormat & SmMathConfig::GetStandardFormat() const
}
-void SmMathConfig::SetStandardFormat( const SmFormat &rFormat )
+void SmMathConfig::SetStandardFormat( const SmFormat &rFormat, BOOL bSaveFontFormatList )
{
if (!pFormat)
LoadFormat();
@@ -1129,6 +1136,13 @@ void SmMathConfig::SetStandardFormat( const SmFormat &rFormat )
*pFormat = rFormat;
SetFormatModified( TRUE );
SaveFormat();
+
+ if (bSaveFontFormatList)
+ {
+ // needed for SmFontTypeDialog's DefaultButtonClickHdl
+ SetFontFormatListModified( TRUE );
+ SaveFontFormatList();
+ }
}
}