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


On Sun, 12 Jun 2011 17:06:40 +0200, Thorsten Behrens <thb@documentfoundation.org> wrote:

Marco wrote:
The following header files: FrameworkHelper.hxx, SlideSorter.hxx,
ShellView.hxx and in general all headers under sd/source/ui/inc/
are not delivered to solver/340/unxlngx6.pro/inc Is that normal ?
Or is there something broken in my build ?
In the first case how can I access such headers from the filter
module ?

Hi Marco - not at all, my comment was meant to direct you to the
implementation - which is sometimes the best approach on how to
figure out how the API works. :)


Hi Thorsten,
give a look at this code fragment:


uno::Reference< uno::XComponentContext > xComponentContext (::comphelper::getProcessComponentContext());
if( xComponentContext.is() )
{
uno::Reference< drawing::framework::XControllerManager > xCM( xController, uno::UNO_QUERY );
        if ( xCM.is() )
        {
Reference< drawing::framework::XConfigurationController > xCC( xCM->getConfigurationController() );
                if( xCC.is() )
                {
// ::sd::framework::FrameworkHelper::msLeftImpressPaneURL const ::rtl::OUString msLeftImpressPaneURL( RTL_CONSTASCII_USTRINGPARAM( "private:resource/pane/LeftImpressPane" ) ); const ::rtl::OUString msSlideSorterURL( RTL_CONSTASCII_USTRINGPARAM( "private:resource/view/SlideSorter" ) ); Reference< drawing::framework::XView > xView( xCC->getResource( drawing::framework::ResourceId::createWithAnchorURL ( xComponentContext, msSlideSorterURL, msLeftImpressPaneURL) ), uno::UNO_QUERY );
                        if( xView.is() )
                        {
                               // TODO
                        }

                }
        }
}


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.
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 ?


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.