Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


On Wed, 08 Jun 2011 12:23:25 +0200, Christian Lippka <cl@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/

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.