vijay patil escribió:
I believe right now there two
procedures to use examples provided with OO.org SDK.
Following are (NetBeans 6.0 specific) instructions for compiling and
running SDK examples,
just to clarify my understanding and for future reference.
Sample programs are in SDK directory. For example:
C:\Program Files\OpenOffice.org_2.3_SDK\examples\java\Text
# Procedure 1 (As a simple Java application)
1. Create a new project.
File >> New Project >> Java >> Java Application
2. We are going to copy example code, so no need to create any class.
3. Now copy example code (for example: SWriter.java) into the project.
4. This code is dependent on OO.org API (libraries), therefore we must
add the libraries.
Window >> Projects >> Libraries >> RightClick >> Add Library >> OpenOffice 2.x
This add all relevant libraries (.jar files)
5. Build and Run the app.
--------------------
# Procedure 2 (Using OO.org API Plugin)
1. Install OO.org API plugin.
2. Choose File >> New Project >> OpenOffice.org >> OO.org Client App
3. This creates a sample code OfficeUNOClientApp.java, the relevant
OO.org libraries are automatically added.
4. Replace sample code with desired example (say SWriter.java)
5. Build and Run the app.
----------
This is what I understood in last few days, correct me if I am wrong.
Concerning a client application, you're right. Even if you do not have
the plug-in, you can create a Java application and add to the Project's
libraries the JARs located in the installation directory of
OpenOffice.org: $INST_DIR/program/classes , at least "juh.jar"
"jurt.jar" "jut.jar" "ridl.jar" "unoil.jar". And you can also use by
your own the development tools in the SDK.
But if you start playing with the plug-in, you will find it can do other
things than a client application, and start developing an add-in for
Calc, or other UNO component, is so simple as following the steps in a
wizard.
I send you three NB Projects samples to your mail so that you can start
at least seeing who it works: a client application, an add-in, and a UNO
component that makes a new embedded object available in OOo (as they are
complex, may be you get lost trying to understand how they work; if so,
don't feel lost, just try to play with the different options in the
Project's context menu).
To run the client application, just right-click in the project and
choose run.
For the other two, you will have other interesting options. Choose
"Debug extension in target office" (for this you have to download,
install and set the SDK environment [just as simple as running the
setsdkenv_[unix] script in the SDK root directory and typing the answers
to the questions]). Then follow the flow: installation of the extension,
for the first time you debug (or after cleaning the project) the
registration wizard will appear (just click the default, no need to
register, so choose that you are already registered), and finally a
testing document will be opened, that shows the add-in/embedded object
working.
For starting, a simple client application is the best, so take the
components only as examples of what the plug-in can do.
Have fun
Ariel.
--
Ariel Constenla-Haile
La Plata, Argentina
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://www.ArielConstenlaHaile.com.ar/ooo/
"Aus der Kriegsschule des Lebens
- Was mich nicht umbringt,
macht mich härter."
Nietzsche Götzendämmerung, Sprüche und Pfeile, 8.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]