Re: [udk-dev] defaultBootstrap_InitialComponentContext()

2008-04-17 Thread Stephan Bergmann

Rony G. Flatscher wrote:

Hi there,

could you give a brief/short example in Java (pseudo-code or a sequence 
of the necessary API invocations would suffice) how one would get to an 
office with the suggested/planned changes in place (and if no office 
process is up, how to start one up and have it initialized) which would 
work on all platforms?


The simple bootstrap mechanism described at 
http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/ProUNO/Java/Transparent_Use_of_Office_UNO_Components 
should continue to work.


-Stephan

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



Re: [udk-dev] defaultBootstrap_InitialComponentContext()

2008-04-17 Thread Rony G. Flatscher


Stephan Bergmann wrote:

Rony G. Flatscher wrote:
could you give a brief/short example in Java (pseudo-code or a 
sequence of the necessary API invocations would suffice) how one 
would get to an office with the suggested/planned changes in place 
(and if no office process is up, how to start one up and have it 
initialized) which would work on all platforms?


The simple bootstrap mechanism described at 
http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/ProUNO/Java/Transparent_Use_of_Office_UNO_Components 
should continue to work.

Great, thanks an awful lot!
:)

---rony

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



Re: [udk-dev] defaultBootstrap_InitialComponentContext()

2008-04-17 Thread Jörg Budischewski

Hi,

for pyuno, I would address the issue the same way you have addressed 
it for the office, thus let python.bat/python.sh set the URE_BOOTSTRAP 
variable.



That was my first thought, too.  


 But then I noticed that python.sh (and
the python symlink pointing to it) are only included #ifndef 
SYSTEM_PYTHON (scp2/source/python/file_python.scp:1.18, 
scp2/source/python/shortcut_python.scp:1.3), so that modifying python.sh 
would not work in general.  (However, I have no idea how any PyUNO 
relevant stuff is found in the SYSTEM_PYTHON, anyway, which, I grok, is 
found via PYTHONPATH=$sd_prog:... in our !SYSTEM_PYTHON python.sh.)
this must be solved by the distributors. I currently don't know how they 
do this right now, probably by defining appropriate default values for 
environment variables, maybe someone is listening here and can give us 
some insight ?


The type-via-remote-bridge-suggestion is certainly a sensible 
extension, but won't help here. When you have a component, that can 
exist without the soffice process (will there ever be some :-) ... ? 
), you would have to connect to an office just to serve as a type server.
Or you would have to make sure the (hypothetical, future) component 
bootstraps into an OOo environment by other means (i.e., making sure 
yourself that URE_BOOTSTRAP is set by putting a wrapper around that 
component).  I was mainly concerned with keeping existing scenarios 
running.

As said before, I would stick to the python.[sh|bat] solution.

Bye,

Joerg


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