Re: XTextSection set background image API Changes ?

underscore <[email protected]>
Newsgroups gmane.comp.openoffice.devel.general
Message-ID <[email protected]>
On Wed, Mar 9, 2011 at 5:47 PM, Michael Stahl
<[email protected]> wrote:
>> (xSectionProps is the XPropertySet of a XTextSection )
>>
>> Object         bitmapTable   =
>> createInstance("com.sun.star.drawing.BitmapTable");
>> XNameContainer nameContainer = ooQueryInterface.XNameContainer(bitmapTable);
>> String         graphicName   = "section-background"
>> nameContainer.insertByName(graphicName, "file:/home/user/file.png");
>
> i guess this should be "file:///home/user/file.png", right?
> does that work?
>

Thanks ...

Indeed It was the URL -- odd thing is I have been using such
(file:/home/user ) URIs since OOo 2.4 --

So 00 I have 2 instances of the same code ...

One has OOo 3.1 -- and it works with file:/home/user ...
Same code on OOo 3.3 -- and it works only with file:/// protocol URLs
e.g. file:///home/user
--
-----------------------------------------------------------------
To unsubscribe send email to [email protected]
For additional commands send email to [email protected]
with Subject: help
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.