http://openoffice.org/bugzilla/show_bug.cgi?id=118043
Issue Type: DEFECT
Summary: Bad alignment when topMargin of a formula change
Classification: Application
Product: Formula editor
Version: OOo 3.4 Beta
Platform: PC
OS/Version: All
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: ui
AssignedTo: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]
With 3.4 version, OOo can now align formula on baseline (see new option
MathBaselineAlignment in document settings or option dialog)
But there is a problem with the top margin.
I wrote a macro you can run step by step to see the problem.
You will have the same problem inserting the formula with menu
"insert->object->formula" but changing properties with menu is not easy to
describe. So try this macro :
sub badAlignment
param=ThisComponent.createInstance("com.sun.star.document.Settings")
param.MathBaselineAlignment=true
obj=ThisComponent.CreateInstance("com.sun.star.text.TextEmbeddedObject")
obj.CLSID="078B7ABA-54FC-457F-8551-6147e776a997"
obj.AnchorType=com.sun.star.text.TextContentAnchorType.AS_CHARACTER
oViewCursor = ThisComponent.getCurrentController().getViewCursor()
oTextCursor=oViewCursor.Text.createTextCursorByRange(oViewCursor)
oTextCursor.Text.insertString(oTextCursor,"this formula ...",false)
oTextCursor.Text.insertTextContent(oTextCursor, obj, true)
obj.Model.leftMargin=0
obj.Model.rightMargin=0
obj.Model.bottomMargin=0
obj.Model.topMargin=0
obj.Model.formula="x ^ {1 over 2}"
oTextCursor.Text.insertString(oTextCursor," is aligned, ",false)
obj.Model.bottomMargin=100
oTextCursor.Text.insertString(oTextCursor," still aligned, ",false)
obj.Model.topMargin=100
oTextCursor.Text.insertString(oTextCursor," not aligned anymore ! ",false)
end sub
--
Configure bugmail: http://openoffice.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
---------------------------------------------------------------------
Please do not reply to this automatically generated notification
from Bugzilla. Please log into the website and enter your comments.
---------------------------------------------------------------------
--
-----------------------------------------------------------------
To unsubscribe send email to [email protected]
For additional commands send email to [email protected]
with Subject: help
--
-----------------------------------------------------------------
To unsubscribe send email to [email protected]
For additional commands send email to [email protected]
with Subject: help