OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Shape Position in paragraph

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
oeurun
General User
General User


Joined: 23 Nov 2005
Posts: 8

PostPosted: Fri Feb 17, 2006 4:21 am    Post subject: Shape Position in paragraph Reply with quote

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]
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group