To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=85105
                 Issue #|85105
                 Summary|ActualSize of com.sun.star.text.TextGraphicObject
               Component|api
                 Version|OOo 2.3.1
                Platform|All
                     URL|
              OS/Version|All
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|definition
             Assigned to|jsc
             Reported by|villeroy





------- Additional comments from [EMAIL PROTECTED] Wed Jan  9 12:52:48 +0000 
2008 -------
After manual insertion of a graphic (Insert>Picture>From file...) I have a
TextGraphicObject with a read-only property "ActualSize".
This propertie's struct is unset (Height=0, Width=0) if I do the same thing via 
API.
Basic code from http://www.oooforum.org/forum/viewtopic.phtml?t=67567
Edit the graphicUrl and run with a Writer document as thisComponent.

Sub Main
graphicUrl = "file:///home/andreas/Documents/Bilder/sott_religion1024x768.jpg"
graphic = thisComponent.createInstance("com.sun.star.text.TextGraphicObject")
graphic.GraphicURL = graphicUrl
xTextRange = thisComponent.CurrentSelection.getByIndex(0)
xTextRange.getText().insertTextContent(xTextRange.getEnd(), graphic, false)

sz = graphic.ActualSize
print sz.Width, sz.Height ' prints 0, 0
End Sub

---------------------------------------------------------------------
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