fdo#46808 - [Easy Hack] Adapt UNO services to new-style

Stephan Bergmann sbergman at redhat.com
Thu Mar 22 08:51:19 PDT 2012


On 03/22/2012 03:13 PM, Noel Grandin wrote:
> In order to limit the knock-on effect from my change (I'm already up to
> about 12 files, and it just keeps spreading), I need to be able to
> convert an XComponentContext back into a XMultiServiceFactory.
>
> How do I do that?

uno::Reference<lang::XMultiServiceFactory>(context->getServiceManager(), 
uno::UNO_QUERY_THROW)

should give you one.

Stephan


More information about the LibreOffice mailing list