[Libreoffice] [GSoC 2011][svgexport] I need some help on exporting "all selected slides" task
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
> can help you. Basicly you will need to get the
> 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
Reference<XComponentContext> xComponentContext; // This also is regarded
Reference<XControllerManager> xCM (xController, UNO_QUERY_THROW);
Reference<XPane> xPane (xCC->getResource(
but I don know how to get such a component context object.
So if you could give me some hint would be great!
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
More information about the LibreOffice