Hello. I must say that the service FilterOptionsDialog is not implemented in 
the same class  where
the other services are. In my extension, setSourceDocument and 
setTargetDocument, both, are 
always executed after the method execute, I don´t know why. But I have an idea. 
The method 
detect from ExtendedTypeDetection is executed before execute method. I think 
that from that 
information I can know when the extension will export or when it will import. 
What do you think 
about distinguishing export/import by knowing that when method detect is 
called, we are about 
to import? 

> Date: Tue, 26 Jan 2010 09:13:30 +0100
> From: mathias.ba...@sun.com
> To: dev@openoffice.org
> Subject: Re: [dev] Problem with Filter development in an OXT
> 
> 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 "nospamfor...@gmx.de".
> I use it for the OOo lists and only rarely read other mails sent to it.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
> For additional commands, e-mail: dev-h...@openoffice.org
> 
                                          
_________________________________________________________________
Hotmail es capacidad. ¡Descubre sus ventajas y llévate un Mazda 2 gratis!
http://www.vivelive.com/historiasdehotmail/

Reply via email to