Issue 62461 - Can't set the property FIRST PARAGRAPH in the WRAP menu from API
Summary: Can't set the property FIRST PARAGRAPH in the WRAP menu from API
Status: CLOSED IRREPRODUCIBLE
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: stephan.wunderlich
QA Contact: issues@api
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-23 08:35 UTC by thoriredd
Modified: 2013-02-24 21:07 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description thoriredd 2006-02-23 08:35:23 UTC
Hi,
i use the API&Java to load some RTF into a big one writer file. In this RTF the
images are represented from a string (something like #....#),at runtime i
substitute the string inserting the image,then i would to wrap the text around
the image, so i set this property for the GraphicObject that represent the image:

gObject = mxDocFactory.createInstance("com.sun.star.text.GraphicObject" );
ps = (XPropertySet)UnoRuntime.queryInterface(XPropertySet.class, gObject);
...              
ps.setPropertyValue("AnchorType",TextContentAnchorType.AT_PARAGRAPH);
ps.setPropertyValue("SurroundAnchorOnly",new Boolean(true));
ps.setPropertyValue("GraphicURL", "file:///"+url);                 
ps.setPropertyValue("Surround",com.sun.star.text.WrapTextMode.RIGHT);
ps.setPropertyValue("SurroundContour",new Boolean(true));
ps.setPropertyValue("ContourOutside",new Boolean(true));
s.setPropertyValue("IsAutomaticContour",new Boolean(false));
                
The problem is that OO set automatically the flag FIRST PARAGRAPH in the submenu
WRAP (find it clicking with the right button on the image), i need to uncheck
this property with the API but i don't found anything... I can't do this
manually because the image in the final document are thousands...
The problem is the same with OO1.1.4 and OO2.0
This is a bug? or something else??
Comment 1 christianjunker 2006-02-23 12:24:03 UTC
thoriredd:
Can you upload a sample document and attach a simple macro (SB code) out of your
Java code?
Comment 2 stephan.wunderlich 2006-02-23 13:16:46 UTC
removing the line
   ps.setPropertyValue("SurroundAnchorOnly",new Boolean(true));
should remove the mark at "FirstParagraph"
Comment 3 thoriredd 2006-02-23 14:16:02 UTC
Thanks, now it's ok...
sorry for the mistake!
Comment 4 stephan.wunderlich 2006-02-23 14:30:41 UTC
closing