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

Michael Stahl mstahl at redhat.com
Fri Mar 23 03:56:39 PDT 2012


On 23/03/12 10:04, Stephan Bergmann wrote:
> On 03/23/2012 09:16 AM, Tor Lillqvist wrote:
>> What is a "component context" btw? Are there many kinds of such, or
>> many instances of the same kind in a typical running LO? In what kind
>> of environments/platforms/circumstances would the various kinds exist?
> 
> There's typically just one.  (That's why the 
> comphelper::getProcessComponentContext hack actually works nicely in the 
> first place.)

though it would be nice if there were more:  if the various service
factory implementations in the applications supplied a specialized
component context then it would be possible to create the document
specific services via the much nicer new-style service create syntax,
(by passing in the document specifc component context), instead of the
cumbersome way with string literal and queryInterface.



More information about the LibreOffice mailing list