diff options
author | Thomas Lange [tl] <Thomas.Lange@oracle.com> | 2010-10-13 11:39:15 +0200 |
---|---|---|
committer | Thomas Lange [tl] <Thomas.Lange@oracle.com> | 2010-10-13 11:39:15 +0200 |
commit | 9a1374b54144b15cfef1a0d8eeba861a69fec875 (patch) | |
tree | efacb059428e02abe44a194619195082f88e413d /starmath/source/config.cxx | |
parent | 8780cc5c294085fe7379a24eee58ac446cc40d0c (diff) |
cws tl84: #i114767# Math: added option to save only used symbols
Diffstat (limited to 'starmath/source/config.cxx')
-rwxr-xr-x[-rw-r--r--] | starmath/source/config.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/starmath/source/config.cxx b/starmath/source/config.cxx index 16b3b97afd96..c7adf9e07446 100644..100755 --- a/starmath/source/config.cxx +++ b/starmath/source/config.cxx @@ -101,6 +101,10 @@ void SmConfig::ItemSetToConfig(const SfxItemSet &rSet) Broadcast(SfxSimpleHint(HINT_FORMATCHANGED)); } } + if (rSet.GetItemState(SID_SAVE_ONLY_USED_SYMBOLS, TRUE, &pItem) == SFX_ITEM_SET) + { bVal = ((const SfxBoolItem *) pItem)->GetValue(); + SetSaveOnlyUsedSymbols( bVal ); + } SaveOther(); } @@ -120,6 +124,7 @@ void SmConfig::ConfigToItemSet(SfxItemSet &rSet) const rSet.Put(SfxBoolItem(pPool->GetWhich(SID_PRINTFRAME), IsPrintFrame())); rSet.Put(SfxBoolItem(pPool->GetWhich(SID_AUTOREDRAW), IsAutoRedraw())); rSet.Put(SfxBoolItem(pPool->GetWhich(SID_NO_RIGHT_SPACES), IsIgnoreSpacesRight())); + rSet.Put(SfxBoolItem(pPool->GetWhich(SID_SAVE_ONLY_USED_SYMBOLS), IsSaveOnlyUsedSymbols())); } |