[dev] UNO - JAVA

2010-06-07 Thread Erik Minor
I tried to get Uno - Java working .. I encountered the most basic
problem:  Could not get OpenOffice 2.0 and the corresponding SDK to run
it in Eclipse.
 
As I see it to get this out to users programmers must have an easy way
to access the tools.. I can't even get it started!
 
Recommendation: One Jar file to go!
 
Also.. 99% of your examples use VB Script.  Great.. problem is most
programmers who are looking at OenOffice don't like Microsoft, their
products, or their code (i.e. VBScript)
 
I am willing to help on the documentation front but you first must give
me a simple Jar to start.  


Re: [dev] UNO - JAVA

2010-06-07 Thread Alexandro Colorado
On Sun, Jun 6, 2010 at 5:03 AM, Erik Minor erik.mi...@oculus-inc.com wrote:
 I tried to get Uno - Java working .. I encountered the most basic
 problem:  Could not get OpenOffice 2.0 and the corresponding SDK to run
 it in Eclipse.

Please try a more updated version with 3.2.1 and not 2.0, the bridge
might have been broken, 2.0 was launched almost 5 years ago.

 As I see it to get this out to users programmers must have an easy way
 to access the tools.. I can't even get it started!

I have tried NetBeans and OOo and is pretty easy, I did a demo with it
a couple of weeks ago.


 Recommendation: One Jar file to go!

Actually the bridge creates an extension with a .oxt file.


 Also.. 99% of your examples use VB Script.  Great.. problem is most
 programmers who are looking at OenOffice don't like Microsoft, their
 products, or their code (i.e. VBScript)

Is actually OOo Basic, not VBscript, OOo Basic is the language with
UNO framework and the scripting language. Only similarity with
vbscript is that both scripts are based on basic bu tthe API is
different.

 I am willing to help on the documentation front but you first must give
 me a simple Jar to start.

There are some sample oxt with java in it, also make sure to go to
codesnippets and the forum, both offer good examples.


-- 
Alexandro Col
OpenOffice.org Español
http://es.openoffice.org

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



Re: [dev] UNO - JAVA

2010-06-07 Thread Cédric Bosdonnat
Hi Erik,

Le dimanche 06 juin 2010 à 06:03 -0400, Erik Minor a écrit :
 I tried to get Uno - Java working .. I encountered the most basic
 problem:  Could not get OpenOffice 2.0 and the corresponding SDK to run
 it in Eclipse.

Hum, OOo 2.0 is quite old and I'm not sure if it is still supported in
OOEclipse. You should have a try with some newer OOo / SDK version as
some important installation changes have occurred since then.

Don't hesitate to ping me if you find out some bug in the OOEclipse
plugins.

Regards,

-- 
Cédric Bosdonnat
Go-oo hacker
http://go-oo.org
OOo Eclipse Integration developer
http://cedric.bosdonnat.free.fr




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



[dev] [Uno/Java] Querying implemented interfaces and properties

2008-06-23 Thread Aaron Digulla

Hello,

I'm trying to figure out how the various objects in the UNO class  
model are related to each other but I can't find a way to list all  
interfaces (i.e. all those classes for which  
UnoRuntime.queryInterface() would return non-null).


My solution was to collect all classes in the UNO jars and then simply  
call queryInterface() for each of them. Is there a better way?


Regards,

--
Aaron Optimizer Digulla a.k.a. Philmann Dark
It's not the universe that's limited, it's our imagination.
Follow me and I'll show you something beyond the limits.
http://www.pdark.de/

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



Re: [dev] [Uno/Java] Querying implemented interfaces and properties

2008-06-23 Thread Stephan Bergmann

Aaron Digulla wrote:

Hello,

I'm trying to figure out how the various objects in the UNO class model 
are related to each other but I can't find a way to list all interfaces 
(i.e. all those classes for which UnoRuntime.queryInterface() would 
return non-null).


My solution was to collect all classes in the UNO jars and then simply 
call queryInterface() for each of them. Is there a better way?


The intention is that every UNO object supports the 
com.sun.star.lang.XTypeProvider interface, and that its getTypes method 
returns all the interfaces supported by the given object.  However, note 
that some objects (erroneously) do not support XTypeProvider, and that 
the vague definition of getTypes leaves it open whether an 
implementation returns only most derived types or all types (or 
something in between).


-Stephan

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