oeurun General User

Joined: 23 Nov 2005 Posts: 8
|
Posted: Fri Feb 17, 2006 4:21 am Post subject: Shape Position in paragraph |
|
|
Hi;
I try writing openoffice writer wrapper for delphi. I have a problem with shape. I can put rectangle into leftside of the paragraph. But I cannot set distance between shape and paragraph text.
How can I set distance between paragraph text and shape ?
My code is below.
vShape := gvDocument.createInstance('com.sun.star.drawing.RectangleShape');
vShape.SetPropertyValue('SizeProtect', false);
vShape.size := vStructShapeSize;
vShape.SetPropertyValue('FillTransparence', 100);
vShape.Position := vStructShapePosition;
vShape.SetPropertyValue('SurroundContour', true);
vShape.SetPropertyValue('AnchorType', 2);
vShape.SetPropertyValue('TextWrap', 4);
[/b] |
|