Re: [api-dev] exporting png via UNO

2009-12-18 Thread Mikhail Voytenko
Hi On 12/17/09 17:14, Mikhail Voytenko wrote: Hi, an Impress document can just be exported to PNG using the related filter. Writer and Spreadsheet documents do not have such export filter. I would suggest to use ::com::sun::star::datatransfer::XTransferable interface implemented by the

[api-dev] using css.awt.AsyncCallback in OOoBasic

2009-12-18 Thread Laurent Godard
Hi all my problem is that a mouse listener on a calc document is called and i need to close the calc document in this call it works but exiting the listerner callback _mousepressed, OOo crashes Mikhail pointed me on AsyncCallback using OOoBasic asyncCallback = createUnoService(

Re: [api-dev] using css.awt.AsyncCallback in OOoBasic

2009-12-18 Thread Laurent Godard
Hi again thanks a lot it works, at least i can define a callback :) i did dome tests and i encounter a strange behaviour my call chain is, i added a print statement at the end of each subroutine sub listener_moussereleased -- sub 1 -- sub 2 i define the callback in sub2 and put (for the

Re: [api-dev] using css.awt.AsyncCallback in OOoBasic

2009-12-18 Thread Peter Eberlein
Hi Laurent, Am 18.12.2009 15:27, schrieb Laurent Godard: Hi Franck thanks a lot it works, at least i can define a callback :) btw, seems to me that i can not depend in the callback on a public variable change public myDummy Sub Main oASync = CreateUnoService(com.sun.star.awt.AsyncCallback)

Re: [api-dev] using css.awt.AsyncCallback in OOoBasic

2009-12-18 Thread Laurent Godard
Hi peter If you comment out your Print in the main routine, than the Print in the callback function works as expected. Try to replace both print methods with Msgbox and it makes you wonder... The Msgbox in the callback function doesn't appear without any errors. thanks a lot i'll have a

[api-dev] ExtendedControlOverEmbeddedObject.update()

2009-12-18 Thread Regina Henschel
Hi all, I have written a macro (see below), which uses ExtendedControlOverEmbeddedObject.update(). The macro works for me. But I'm worried because the interface XEmbeddedObject is labeled as 'unpublished' in http://api.openoffice.org/docs/common/ref/com/sun/star/embed/XEmbeddedObject.html.

[api-dev] How to change the CellContentType in spreadsheet

2009-12-18 Thread madawa jeevananda
Hi, I am working on an add on which checks a spreadsheet document for potential errors in formulas. For this I needed to identify the cells containing numbers which are included in formulas but the cell format is set as text. Now, this is done and I need to convert those cells to number cells.