Re: XTextSection set background image API Changes ?

Jürgen Schmidt <[email protected]>
Newsgroups gmane.comp.openoffice.devel.general
Organization Oracle
Message-ID <[email protected]>
On 3/9/11 4:11 PM, underscore wrote:
> 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 --
it worked by luck and it seems that somebody have correct the code or
used some other underlying stuff that is less tolerant.

The url syntax was and is wrong and you should use correct urls ;-)

Juergen

> 
> 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

--
-----------------------------------------------------------------
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.