[Libreoffice] [GSoC 2011][svgexport] I need some help on exporting "all selected slides" task

Marco mrcekets at gmail.com
Fri Jun 10 03:19:24 PDT 2011


On Wed, 08 Jun 2011 12:23:25 +0200, Christian Lippka <cl at lippka.com> wrote:

> Am 08.06.2011 12:16, schrieb Marco:
>> but as I said aSelection internal type seems to be "void"
>> So from which controller should I get the XSelectionSupplier interface ?
>> You talk about an xModel object where should I get it from ?
>> I thought that I should get the frame/component representing the Slide  
>> sorter panel,
>> but I don't know how to do that, too.
>> Correctly you ask me where I am (that is which component/frame has the  
>> focus) when
>> I need this selection, well the answer is: inside the document export  
>> dialog, and
>> I guess that this makes all things more complex.
> I currently do not have much time to look into this in detail. But I  
> think
>
> http://wiki.services.openoffice.org/wiki/Drawing_framework
>
> can help you.  Basicly you will need to get the
>
> "private:resource/floater/LeftImpressPane,  
> private:resource/view/SlideSorter"
>
> resource and find its XSelectionSupplier interface.  How this is  
> actually done I don't
> know (yet).


Hi Christian, Thorsten
I read the Drawing framework in details.
Now if I get the "private:resource/floater/LeftImpressPane,
private:resource/view/SlideSorter" resource what I have is a XView
interface, that in general does not provide a XSelectionSupplier
interface but probably the underlying object does.
Anyhow, in order to test it I need a Component Context instance
to get the resource:

Reference<XController> xController;              // This is regarded as  
given.
Reference<XComponentContext> xComponentContext;  // This also is regarded  
as given.

Reference<XControllerManager> xCM (xController, UNO_QUERY_THROW);
Reference<XConfigurationController> xCC  
(xCM->getConfigurationController());

Reference<XPane> xPane (xCC->getResource(
     ResourceId::create(
         xComponentContext,
         FrameworkHelper::msLeftImpressPaneURL),
     UNO_QUERY);

but I don know how to get such a component context object.
So if you could give me some hint would be great!

Cheers,
    Marco


-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


More information about the LibreOffice mailing list