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


Marco wrote:
What I get is an XView object that does not support any service.
I look into the implementation code for SlideSorter and I found
out that this object, which I get, is indeed a fake XView:
its real type is a ViewShellWrapper from which we can get
a SlideSorterViewShell that owns a method to provide a
XDrawSubController interface for the view.

Hi Marco,

wow, nice detective work - and you're almost there:

Now as I said my problem is that to utilize these classes I have
to include the headers under "sd/source/ui/inc/" but they are not
delivered to "solver/340/unxlngx6.pro/inc".
So what should I do ?

Well, this is purposefully not accessible from the outside - what
you want to do, is to make that XDrawSubController available via
API. A very cheap cop-out would be to add something like
com::sun::star::beans::XMaterialHolder to the ViewShellWrapper
interfaces (add it to ViewShellWrapperInterfaceBase, and use
WeakComponentImplHelper5 instead of WeakComponentImplHelper4) - and
have the implementation hand out the result of calling
mpViewShell->CreateSubController() for that new interface.

There are surely cleaner ways to do that, API-wise, e.g. by
implementing an XPropertySet, and/or the DrawingDocumentDrawView
service - maybe Christian has suggestions on how to best evolve
that.

That said, I'd put lower priority on this for the moment, and
instead get back to the java script and master page parts.

Cheers,

-- Thorsten

Attachment: pgpm536q6nL1S.pgp
Description: PGP signature


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.