To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=972





------- Additional comments from [EMAIL PROTECTED] Mon Feb 27 13:51:14 -0800 
2006 -------
" My suggestion is to have the "base line to base line" orientation only at
runtime (when the document is edited). In the file format we translate this to
"free positioning relative to the text" by using "from top" orientation. The
distance will be calculated from the difference between the "top-base line" and
the "base line - base line" alignment. "

Yes, it seems to be the best issue to get compatibility with older OOo.

" If either the text base line moves due to changes in the text attributes or if
the formula base line moves due to changes in the formula we simply can
recalculate the position of the formula object and again store it as "from top".
In the first case (change text) Writer must ask the formula for its base line
and then start the calculation, in the latte (change formula) case the formula
must send a notification to Writer that it should do this. "

For the first case (change text) I think it's not necessary to recalculate base
line for two reasons :
1) Is there a situation where the change of text attributes move the text base
line ? If you change the size of character, for exemple, the base line doesn't
change, does it ? So the "from top" is still good ? Am I wrong ?
2) Currently, I you change text attribute (font, size, color, ...) of a
paragraph which includes a formula, this one doesn't change because these
parameters are independant of text. So, you get a difference between text and
formula. I think it wouldn't be a defect if alignement wouldn't change. A double
click on formula to open math module will recalculate the right position. And if
there is too much formulae to recalculate position one by one, add-on such as
dmaths or CmathOOo will do the job (currently, it's true with font name and size
for all formulae in a text or a selected text because OOo can't do it 
automatically)

In the latte case (formula change) I think it's necessary to recalculate base
line alignement. It's probably the easiest to develop, isn't it ?

" The problem now is that we don't want to have this recalculation for *all*
objects that are aligned "from top", so an additional setting is needed in the
Writer file format that triggers recalculation if necessary. Such setting is an
extension of the file format, so we must talk to the Open
Document TC about it. I don't expect a problem here, because it's a "compatible"
change, but it will take some time. "

If you don't recalculate alignment when text change (the first case) you don't
need additional settings anymore... and no modification of file format.
You need only to modify the math module to add a 'base-line' alignment, which is
 converted on exit of the module in a "from top" alignment.

"What we have to do for this:

- extend file format, implement loading/storing of the new attribute"

perhaps not ?

"- add and implement "base line" item in the "Format Frame" dialog of Writer"

yes

"- implement recalculation of positions as described above "

yes for formula changes, but reserved to module math or api.

"- implement base line calculation in Math"

of course !

"- implement an API to retrieve and recalculate the base line from a formula 
object"

yes, yes, yes : a new FormulaPropertie such as "BaseLineAlignment (boolean)" and
a recalculation when instruction setmodified(True) is executed.

" - implement a listener/broadcaster relationship in Writer that triggers
recalculation of position if the base line of the formula changes"

no need ?

"I hope I didn't forget anything. :-)"

I don't think.
Thank's a lot to consider our request.
I hope I didn't say too much mistakes.
bye

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to