Richard Cleaveland wrote:

Andrew Douglas Pitonyak wrote:

oDrawPage = ThisComponent.Drawpage
 For i=0 To oDrawPage.getCount()-1
   oGraph = ThisComponent.Drawpage.getByIndex(i)
   oBorder = oGraph.BottomBorder
   oBorder.Color = 0
   oBorder.InnerLineWidth = 10
   oGraph.BottomBorder = oBorder

   oGraph.TopBorder = oBorder
   oGraph.RightBorder = oBorder
   oGraph.LeftBorder = oBorder
'oGraph.AnchorType = com.sun.star.text.TextContentAnchorType.<insert your type here>
...


Douglas, where does one find the identification of the variables and accepted parameters so I can add other items?

Dick

I use many things to do this. My first line of attack is usually to inspect the graphics object. There is a generally available package called XRay. I use my own object inspector. Also, if you add a break point in the code, then you can inspect the object in the IDE.

I have never used XRay, so I can not comment, but you should be able to see the interfaces and the services, at which point I would typically try a search on Google such as:

site:api.openoffice.org TextContentAnchorType

The tricky part is that this graphics object is a graphics object, and it is text content. The reason that I wanted to look at your document, was to see exactly what type of graphics object was inserted. You can do this by inspecting the graphics object itself.

--
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.odt
My Book: http://www.hentzenwerke.com/catalog/oome.htm
Info:  http://www.pitonyak.org/oo.php
See Also: http://documentation.openoffice.org/HOW_TO/index.html


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

Reply via email to