To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=67283
                 Issue #|67283
                 Summary|Formulas inserted programmatically don't auto-size
               Component|Formula editor
                 Version|OOo 2.0.3
                Platform|PC
                     URL|
              OS/Version|All
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|code
             Assigned to|mru
             Reported by|cdeval





------- Additional comments from [EMAIL PROTECTED] Wed Jul 12 07:30:38 -0700 
2006 -------
Hello,
Thank's for the issue 59205. But the problem is half-resolved.
When the text of formula changes, the box auto-size -> success (issue 59205 
solved)!
When the size of formula changes, the box doesn't auto-size. And it was
auto-size in OOo version 1.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 (issue 59205 solved)
        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]

Reply via email to