Re: [dev] Genuine OOo in distributions ? (Re: [dev] OOo installation packages for Linux, a few (easy) questions

2010-08-23 Thread Rene Engelhard
Hi,

On Sat, Aug 21, 2010 at 11:57:26PM +0200, rony wrote:
[...]
> Uninstalling the Ubuntu OOo and instead installing the genuine OOo,
> downloaed from http://OpenOffice.org/download, installing it and running
> the very same program works without an error!

We (at least Debian, can't speak of Ubuntu) don't patch anything in that
area, and we use OpenJDK (which should be sufficiently compatible and
doesn't "cripple" stuff for building). Using Sun JDK is no option, no.

So sorry, no idea.

What I *can* say, though is that not veretyhing exposed on distros is a bug
*caused* by those distros. We had many bugs in the last years where it
just occurred with some circumstances, other compilers, ...

> In the case it matters, here is the CLASSPATH setting for the Ubuntu OOo:
> 
> 
> /opt/BSF4ooRexx/bsf-v400-20090910.jar:/opt/BSF4ooRexx/bsf-rexx-engine.jar:.::/usr/lib/openoffice/program/../basis-link/ure-link/share/java/ridl.jar:/usr/lib/openoffice/program/../basis-link/ure-link/share/java/jurt.jar:/usr/lib/openoffice/program/../basis-link/ure-link/share/java/juh.jar:/usr/lib/openoffice/program/../basis-link/program/classes/unoil.jar:/usr/lib/openoffice/progra

Looks OK.

Grüße/Regards,

René

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



Re: [dev] unopkg - question about "shared-extension-desc.xml"

2010-08-23 Thread Joachim Lingner

Thank you,

Joachim

On 22.08.10 19:49, Oliver Brinzing wrote:

Hi Joachim,


Registration of shared and bundled extensions occurrs now at startup
and must be done for every user individually. See
http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/Extensions/The_Active_Extension


ok, i added issue http://www.openoffice.org/issues/show_bug.cgi?id=113899,
cause i don't think a user should be able to uninstall a shared extension via 
unopkg

regards

Oliver




-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



[dev] Re: Genuine OOo in distributions ? (Re: [dev] OOo installation packages for Linux, a few (easy) questions

2010-08-23 Thread Michael Stahl
On 21/08/2010 23:57, rony wrote:
> Hi René,
> 
> sorry that it took a while to get back, but I got totally carried away
> changing/enhancing the installation scripts and had to get everything
> into sync again, before coming back to check out and analyze the problem
> with the Ubuntu distribution.
> 
> Here's to what boils it down:
> 
> * Using latest 64-bit Ubuntu, having everything updated to today,
> * Running an ooRexx script which uses the OOo/UNO Java bridge to
>   interact with OOo, yielding the following error:
> 
> 40 *-* xContext = UNO.connect() -- connect to server and
> retrieve the XContext object
> REX0040E: Error 40 running /usr/bin/UNO.CLS line 1804:  Incorrect
> call to routine
> REX0634E: Error 40.900:  BSF4ooRexx/routine/BSF(), error 3: Java
> exception occurred: [org.apache.bsf.BSFException: /// Java-exception
> (RexxAndJava) occurred:
> [java.lang.reflect.InvocationTargetException], g*etCause():
> [java.lang.UnsatisfiedLinkError:
> 
> com.sun.star.lib.connections.pipe.PipeConnection.createJNI(Ljava/lang/String;)I*]

i think i remember this error... it is caused by not finding some URE
dynamic libraries, like libjpipe.so.
the Java UNO bridge apparently uses native code via JNI for some things.

> \\\?BSF4ooRexx subfunction "invoke": object
> 'java.lang.cl...@593d93f4' - method [FINDINTERFACEWITHMEMBER],
> method not found or error (exception) executing method!]
> 
> Uninstalling the Ubuntu OOo and instead installing the genuine OOo,
> downloaed from http://OpenOffice.org/download, installing it and running
> the very same program works without an error!
> 
> In the case it matters, here is the CLASSPATH setting for the Ubuntu OOo:
> 
> 
> /opt/BSF4ooRexx/bsf-v400-20090910.jar:/opt/BSF4ooRexx/bsf-rexx-engine.jar:.::/usr/lib/openoffice/program/../basis-link/ure-link/share/java/ridl.jar:/usr/lib/openoffice/program/../basis-link/ure-link/share/java/jurt.jar:/usr/lib/openoffice/program/../basis-link/ure-link/share/java/juh.jar:/usr/lib/openoffice/program/../basis-link/program/classes/unoil.jar:/usr/lib/openoffice/progra

on a Ubuntu box here the libraries seems to be in /usr/lib/ure/lib/libjpipe.so

so try adding "/usr/lib/ure/lib/" to CLASSPATH, see if that helps.

> The genuine OOo will have practically the same setting, except that its
> directory would be pointed to:
> "/opt/openoffice.org3/program/../basis-link/ure-link/share/java/*".
> 
> HTH,
> 
> ---rony

-- 
"I wish you success, and may your lambdas always beta reduce." -- dons


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



Re: [dev] I have a blank Calc document that shows red text in 3.3

2010-08-23 Thread Eike Rathke
Hi James,

On Sunday, 2010-08-22 16:00:11 -0400, James wrote:

> It is a blank file the shows vertical red text (that used to be there as
> horizontal text in a cell).

The document has no cell content at all, the only thing that could be
displayed is an image



(actually twice) if one refreshes the links, which I didn't.

  Eike

-- 
 OOo Calc core developer. Number formatter stricken i18n transpositionizer.
 Signature key 0x87F8D412 : 2F58 5236 DB02 F335 8304  7D6C 65C9 F9B5 87F8 D412
 OpenOffice.org Engineering at Oracle: http://blogs.sun.com/GullFOSS
 --
 Please don't send mail to the old e...@sun.com account that I used for mailing
 lists, it phased out. Use eike.rat...@oracle.com instead. Thanks.


pgpmOxGpLOyiW.pgp
Description: PGP signature


Re: [dev] Re: Genuine OOo in distributions ? (Re: [dev] OOo installation packages for Linux, a few (easy) questions

2010-08-23 Thread Rene Engelhard
On Mon, Aug 23, 2010 at 11:42:22AM +0200, Michael Stahl wrote:
> i think i remember this error... it is caused by not finding some URE
> dynamic libraries, like libjpipe.so.
> the Java UNO bridge apparently uses native code via JNI for some things.

Then that is a bug in the bridge or the extension itself IMHO ...

> on a Ubuntu box here the libraries seems to be in /usr/lib/ure/lib/libjpipe.so
> 
> so try adding "/usr/lib/ure/lib/" to CLASSPATH, see if that helps.

... because ure-link is exactly what points to that /usr/lib/ure thing.
Anything which assumes that the ure is inside the OOo dir is wrong;
the only valid assumption is that *ure-link* is. That's how the three-layewr
OOo interface was defined.

Grüße/Regards,

René

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



Re: [dev] XInitialization

2010-08-23 Thread Ariel Constenla-Haile
Hello Jan,

On Monday 23 August 2010, 02:12, Jan private wrote:
> Hello Ariel,
> 
> > > I have written a C++ component, which works fine. But just recently I
> > > noticed that
> > > 
> > > void SAL_CALL myComponent::initialize( const Sequence< Any >&
> > > aArguments ) throw ( Exception, RuntimeException)
> > > 
> > > is called four times after running openoffice.org -writer before the
> > > empty writer document opens.
> > 
> > what kind of component have you written?
> 
> I am not sure what information you need. 

there are different kinds of UNO components you can implement. Each component 
can have a different behavior.

> Here is the class definition (C
> ++, Linux x86) and the relevant method:
> 
> class iMath : public cppu::WeakImplHelper6
> <
>   XDispatchProvider,
>   XDispatch,
>   XInitialization,
>   XServiceInfo,
>   XDialogEventHandler,
> XContainerWindowEventHandler

I guess you are implementing a css.frame.ProtocolHandler. aren't you?

> {
> public:
> // XInitialization
>   virtual void SAL_CALL initialize
> (const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >&
> aArguments)   throw (Exception, RuntimeException);
> }

how, when, why, ..., your components gets initialized depends on the component 
type.
For your purpose you may need to implement a css.task.Job, to be instantiated 
every time a document is loaded from its location or a new one is created.
It all depends on what you're trying to achieve.

Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina


signature.asc
Description: This is a digitally signed message part.


Re: [dev] Re: Genuine OOo in distributions ? (Re: [dev] OOo installation packages for Linux, a few (easy) questions

2010-08-23 Thread Rene Engelhard
Michael Stahl wrote.
> so try adding "/usr/lib/ure/lib/" to CLASSPATH, see if that helps.

Or LD_LIBRARY_PATH (no idea whether that helps for JNI "Linkage" but
it can be tried, too)

Grüße/Regards,

René

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



[dev] Instance of OOo running after unopkg ?

2010-08-23 Thread Rony G. Flatscher
Hi there,

for installing an extension (under Ubuntu in this particular case) in an
installation script the command-line tool "unopkg" is used. When
starting OOo thereafter a warning comes up that an instance of OOo would
be running, and if one would like to proceed.

Is this an expected behaviour?

Is there a command-line utility which one could use to make sure that
after unopkg OOo gets reliably shutdown? Or with other words: how could
one make sure in an un/installation script, that OOo has completely shut
down after unopkg, before proceeding ?

---rony



-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



Re: [dev] Instance of OOo running after unopkg ?

2010-08-23 Thread Rene Engelhard
Hi,

On Mon, Aug 23, 2010 at 04:01:45PM +0200, Rony G. Flatscher wrote:
> for installing an extension (under Ubuntu in this particular case) in an
> installation script the command-line tool "unopkg" is used. When
> starting OOo thereafter a warning comes up that an instance of OOo would
> be running, and if one would like to proceed.
> 
> Is this an expected behaviour?

Nope.

I don't see that in all the packages here which use unopkg
in their preinst/postinst/prerm.

Grüße/Regards,

René

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



[dev] XDesktop.terminate() Re: [dev] Instance of OOo running after unopkg ?

2010-08-23 Thread rony
Hi there,

... cut ...

> Just a quick question (which would save me a little bit of research.
> which currently would be quite helpful): how can I make sure, having a
> xContext (from com.sun.star.comp.helper.Bootstrap.bootstrap()) to
> shutdown OOo gracefully at the end? (Presumably not closing OOo
> explicitly leavees an instance open.)
>
>   
sorry for the noise, just found what I need: XDesktop.terminate().

---rony

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



Re: [dev] Instance of OOo running after unopkg ?

2010-08-23 Thread rony
Hi René,

On 23.08.2010 16:05, Rene Engelhard wrote:
> On Mon, Aug 23, 2010 at 04:01:45PM +0200, Rony G. Flatscher wrote:
>   
>> for installing an extension (under Ubuntu in this particular case) in an
>> installation script the command-line tool "unopkg" is used. When
>> starting OOo thereafter a warning comes up that an instance of OOo would
>> be running, and if one would like to proceed.
>>
>> Is this an expected behaviour?
>> 
> Nope.
>
> I don't see that in all the packages here which use unopkg
> in their preinst/postinst/prerm.
>   
Thank you very much for this hint!

Going back because of it, I just noticed that unopkg is not the culprit,
but a script that runs afterwards, so it is my own fault probably. Sorry
for the wrong alarm.

Just a quick question (which would save me a little bit of research
which currently would be quite helpful): how can I make sure, having a
xContext (from com.sun.star.comp.helper.Bootstrap.bootstrap()) to
shutdown OOo gracefully at the end? (Presumably not closing OOo
explicitly leavees an instance open.)

---rony



-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



Re: [dev] Re: Genuine OOo in distributions ? (Re: [dev] OOo installation packages for Linux, a few (easy) questions

2010-08-23 Thread rony


On 23.08.2010 14:09, Rene Engelhard wrote:
> On Mon, Aug 23, 2010 at 11:42:22AM +0200, Michael Stahl wrote:
>   
>> i think i remember this error... it is caused by not finding some URE
>> dynamic libraries, like libjpipe.so.
>> the Java UNO bridge apparently uses native code via JNI for some things.
>> 
> Then that is a bug in the bridge or the extension itself IMHO ...
>   
The extension just employs the Bootstrap class if invoked outside of OOo.

>> n a Ubuntu box here the libraries seems to be in /usr/lib/ure/lib/libjpipe.so
>>
>> so try adding "/usr/lib/ure/lib/" to CLASSPATH, see if that helps.
>> 
> ... because ure-link is exactly what points to that /usr/lib/ure thing.
> Anything which assumes that the ure is inside the OOo dir is wrong;
> the only valid assumption is that *ure-link* is. That's how the three-layewr
> OOo interface was defined.
>   
What would be the easiest way to re-install the Ubuntu-OOo after
deinstalling the genuine OOo?
(Or do I have to go through Synaptic manager and check all sort of
modules (with the risk that I am overlooking an important one, given
that the OOo related modules seem to be quite dispersed.)

---rony




-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



Re: [dev] Re: Genuine OOo in distributions ? (Re: [dev] OOo installation packages for Linux, a few (easy) questions

2010-08-23 Thread Rene Engelhard
On Mon, Aug 23, 2010 at 03:29:47PM +0200, rony wrote:
> (Or do I have to go through Synaptic manager and check all sort of

Eww, synaptic.

> modules (with the risk that I am overlooking an important one, given
> that the OOo related modules seem to be quite dispersed.)

apt-get install openoffice.org. Which is a dummy package which
is supposed (unless Ubuntu patched somthing) there install all modules +
Java suppoer (including officebean), but of course without SDK)

(or select openoffice.org in synaptic).

Grüße/Regards,

René

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



Re: [dev] I have a blank Calc document that shows red text in 3.3

2010-08-23 Thread James
 On 08/23/10 07:16, Eike Rathke wrote:
> Hi James,
>
> On Sunday, 2010-08-22 16:00:11 -0400, James wrote:
>
>> It is a blank file the shows vertical red text (that used to be there as
>> horizontal text in a cell).
> The document has no cell content at all, the only thing that could be
> displayed is an image
>
>  xlink:href='http://e-academy.com/images/insidepage/spacer.gif' 
> xlink:actuate='onLoad' xlink:show='embed' xlink:type='simple'>
>
> (actually twice) if one refreshes the links, which I didn't.
>
>   Eike
>
I deleted the text.
The question is how did the image get there?

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



Re: [dev] Re: building openoffice problem

2010-08-23 Thread Soohong Min
Hello,

I'm building OpenOffice 3.2.1.4. I wonder there is a way to install
some modules.
Actually I deleted some modules I don't need to install in the middle
of building.
After building packimages module, I got some error message including
some lists I deleted and it indicates that there is dependency
problems.
So I cannot install OpenOffce.
I wonder how I can ignore some modules I don't want.
Please let me know

Thanks

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



Re: [dev] XInitialization

2010-08-23 Thread Jan private
Hello Ariel,

> I guess you are implementing a css.frame.ProtocolHandler. aren't you?

I suppose you are right. I started out by copying from some SDK example.
Now I looked and found in iMath.cxx:

#define SERVICE_NAME "de.gmx.rheinlaender.jan.imath.ProtocolHandler"

> how, when, why, ..., your components gets initialized depends on the 
> component 
> type.
> For your purpose you may need to implement a css.task.Job, to be instantiated 
> every time a document is loaded from its location or a new one is created.
> It all depends on what you're trying to achieve.
Yes, that is what I want: A component of which an instance is attached
to every document and lives as long as the document is opened. But it
also needs to provide and handle menus, dialogs and other user
interaction. So do I need both Job and ProtocolHandler?

I found sdk/examples/DevelopersGuide/Components/Addons/JobsAddon and
will try to adapt it to my purposes. 

Thank you!
Jan



-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



Re: [dev] Re: building openoffice problem

2010-08-23 Thread David Tardon
On Mon, Aug 23, 2010 at 02:59:09PM -0700, Soohong Min wrote:
> Hello,
> 
> I'm building OpenOffice 3.2.1.4. I wonder there is a way to install
> some modules.
> Actually I deleted some modules I don't need to install in the middle
> of building.
> After building packimages module, I got some error message including
> some lists I deleted and it indicates that there is dependency
> problems.
> So I cannot install OpenOffce.
> I wonder how I can ignore some modules I don't want.
> Please let me know
> 

You can't. If you want to create an install set, you have to build
everything. Later, if you want to work on a specific module, you can
actually remove others. But it will work only as far as you do only
compatible changes and I strongly discourage you to do it.

Out of curiosity: is there really an SW project that is able to handle
removal of part of it's source tree during build? And build (and
install) just that which remains?

D.

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org