Ari Urkullu Villanueva wrote:

> Hello. I am working in an OXT that implements services 
> com.sun.star.document.ExportFilter,
> com.sun.star.document.ImportFilter, 
> com.sun.star.document.ExtendedTypeDetection and
> com.sun.star.ui.dialogs.FilterOptionsDialog, to allow data exchange between 
> Calc and Freemind.
> My problem is that I don´t know how to distiguish between import and export 
> when the 
> FilterOptionsDialog is used. Niklas Nebel helped me and told me that 
> setSourceDocument and 
> setTargetDocument methods where called before execute method. But I don´t 
> know why in my
> project I put three breakpoints, each one in one of these three methods, and 
> debugging, I see that
> execute method its called first. ¿Can somean help me?
I just checked in the source code of OOo: at least "setSourceDocument"
is always called before "execute". So even if "execute" might be called
before "setTargetDocument" (I didn't check that in the code), this
shouldn't be a problem as then you can assume that getting the "execute"
call first means that you are working as importer.

Regards,
Mathias

-- 
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't reply to "[email protected]".
I use it for the OOo lists and only rarely read other mails sent to it.



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to