To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=57289
                  Issue #:|57289
                  Summary:|getting the process' component context in URE
                Component:|udk
                  Version:|current
                 Platform:|All
                      URL:|
               OS/Version:|All
                   Status:|NEW
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|ENHANCEMENT
                 Priority:|P3
             Subcomponent:|code
              Assigned to:|sb
              Reported by:|dbo





------- Additional comments from [EMAIL PROTECTED] Thu Nov  3 04:30:12 -0800 
2005 -------
If I need to access an existing (already bootstrapped) process local UNO
environment from within e.g. an XPCOM component (which has been started from
within the office process), I have currently no API to get the UNO component
context. There is such an API in comphelper (setProcessServiceFactory().

Background:
The XPCOM-UNO runtime object (i.e. a XPCOM service that is accessed in
Javascript) offers access to am UNO component context. Getting the component
context, I currently call comphelper::getProcessServiceFactory(). If no such
service factory is set, I assume that the whole process is not the running
office process, thus I bootstrap using a remote component context (calling
cppu::bootstrap()).

As an alternative, just for omitting the need to link against comphelper, I 
could

if (current process is soffice..exe/soffice.bin) {
#if WINDOWS
    handle = loadLib("comphelp4msc.dll");
    sym = dlsym( handle. "C++-decorated-comphelper::getProcessService" )
#else
    sym = dlsym( processHandle. "C++-decorated-comphelper::getProcessService" )
#endif
    ...

So what do you think, Stephan?

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to