Issue 111253 - Math: settings.xml should only list symbols used in the current formula
Summary: Math: settings.xml should only list symbols used in the current formula
Status: ACCEPTED
Alias: None
Product: Math
Classification: Application
Component: code (show other issues)
Version: DEV300m77
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-29 11:34 UTC by thomas.lange
Modified: 2013-08-07 14:54 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description thomas.lange 2010-04-29 11:34:08 UTC
Currently all symbols defined by the user are written to the settings.xml upon
saving the formula or text document. Thus if a user has a Writer document with
say 300 formula and has a set of 100 user-defined defined symbols those 100
symbols will be added to each formula even if that does not make use of any symbol. 
Thus to reduce document the size the settings.xml should only list those symbols
that are used by the respective formula.

Another effect of the current behavior is that even on different
computers/office-installations than the one where the document got created all
user-defined symbols from that original computer will be visible in the symbol
catalogs of other computers when the formulas get edited. 
By only listing the actually used ones in the settings.xml the symbol catalog on
different computer also will no longer list all the user-symbols that were
previously listed when a formula is edited. 
This may look to some users like a loss of functionality, thus we should also
introduce an UI option that allows to specify if all symbols or only those in
use should be saved to file/formula.
Comment 1 thomas.lange 2010-04-29 11:37:39 UTC
Side note: The definition of a single user-defined symbol in the uncompressed(!)
settings.xml is almost about 1 kb!
Comment 2 thomas.lange 2010-04-29 11:38:01 UTC
.