alrighty, thanks, I guess I will have to do my own
scaling.

In the meantime I have filed an issue:
http://www.openoffice.org/issues/show_bug.cgi?id=67226

I reckon it would be ideal if OpenOffice could be made
so that headless mode means that OpenOffice is never
allowed to generate dialogs, but the user can. That
way I can have my printing in headless mode, and those
dialogs do not come up when my uno command fails.

regards

--- Fernand Vanrie <[EMAIL PROTECTED]> wrote:

> kent,
> Gave a look at the OOforum snipets: 
>
http://www.oooforum.org/forum/viewtopic.phtml?t=38771
> All image resizing can be done with wath you find in
> this example.
> 
> Fernand
> 
> 
> Kent Gibson schreef:
> > I am having a range of problems inserting images
> into
> > tables.
> >
> > I would like to insert an image into a table cell.
> > Furthermore I would like the image to scale itself
> to
> > the proportions of the cell.
> >
> > This is exactly the default behaviour the User
> > Interface provides when you insert pictures from
> file
> > into a cell.
> >
> > If I try and do it the easist way (my XText is my
> > Cell's XText):
> >
> > Object oGraphicObject =  
> mxDocFactory.createInstance
> > ("com.sun.star.text.GraphicObject");
> > XTextContent xGraphicContent = (XTextContent)   
> > UnoRuntime.queryInterface(XTextContent.class,
> > oGraphicObject);
> > XPropertySet xGraphicProps = (XPropertySet)   
> > UnoRuntime.queryInterface(XPropertySet.class,
> > xGraphicContent);
> >
> > xGraphicProps.setPropertyValue(
> >         "AnchorType", TextContentAnchorType.
> > AT_PARAGRAPH);
> > //      "AnchorType", TextContentAnchorType.
> > AS_CHARACTER);
> > //      "AnchorType", TextContentAnchorType.
> AT_PAGE);
> > //      "AnchorType", TextContentAnchorType.
> AT_FRAME);
> > //      "AnchorType", TextContentAnchorType.
> > AT_CHARACTER);
> > xGraphicProps.setPropertyValue( "GraphicURL",
> >
> "http://Kingyo.tutms.tut.ac.jp/icons/TAI-icon.gif";);
> > xText.insertTextContent(curText, xGraphicContent,
> > false);
> >
> > I never get this scaled effect. The closest is
> with
> > AS_CHARACTER. It is not scaled but at least it is
> > inside the boundaries of the cell.
> >
> > Alrighty so then I try and use the dispatcher. It
> > works pretty well, but sometimes when it fails, it
> pop
> > ups the "Picture" dialog. It works for about 9 out
> 10
> > times. 9 Images get put in the table and the
> Picture
> > dialog pops up once. Which i really don't want to
> see.
> >  I am using a XStatusListener and
> > XDispatchResultListener, in an effort not to
> overload
> > the dispatcher. If I switch into headless mode
> then I
> > don't see the dialogs, but then printing doesn't
> work.
> >
> > Lastly, I present documents to the user in read
> only
> > modus, and I can only get the dispatcher to work
> if I
> > select the cell that I want to insert, and that
> does
> > not work in read only modus.
> >
> > Does any one have any ideas? 
> >
> > thanks and kind regards
> >
> > kent
> >
> >
> >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> > http://mail.yahoo.com 
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >   
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to