Re: XTextSection set background image API Changes ?

Peter Eberlein <[email protected]>
Newsgroups gmane.comp.openoffice.devel.general
Message-ID <[email protected]>
Am 09.03.2011 15:10, schrieb underscore:
> I was setting the background image as follows :
>
> (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");
> graphicURL = (String) nameContainer.getByName(graphicName);
>
> xSectionProps.setPropertyValue("BackGraphic", graphicURL);
> xSectionProps.setPropertyValue("BackGraphicFilter", "PNG - Portable
> Network Graphic");
> xSectionProps.setPropertyValue("BackGraphicLocation",
> com.sun.star.style.GraphicLocation.TILED);
>
> But this does not seem to work in OOo 3.3 ?
>
> Whats the way to set the background image of a section now ?
>
>
> thanks
>
> Ashok

Please don't crosspost.

Regards

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