To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=59205
------- Additional comments from [EMAIL PROTECTED] Fri Jul 7 03:14:27 -0700
2006 -------
Hello,
Thank's for the issue. But the problem is half-resolved.
When the text of formula changes, the box auto-size -> success !
When the size of formula changes, the box doesn't auto-size. And it was with
OOo1.1.5 !
type following macro to see the problem :
Sub Main
oDoc = ThisComponent
TEObj = oDoc.createInstance("com.sun.star.text.TextEmbeddedObject")
TEObj.setPropertyValue("CLSID", "078B7ABA-54FC-457F-8551-6147e776a997")
TEObj.setPropertyValue("AnchorType",
com.sun.star.text.TextContentAnchorType.AS_CHARACTER)
xText = oDoc.getText()
xRange = xText.getEnd()
xText.insertTextContent(xRange, TEObj, false)
math = TEObj.getEmbeddedObject()
' Youpi : now the following line resizes box
math.setPropertyValue("Formula", "{x+y} over z")
' but not with this line :
math.BaseFontHeight=25
' and not with this line too :
math.setmodified(TRUE)
End Sub
Thank's for your help.
---------------------------------------------------------------------
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]