Hi Joel,

Joel Cordeiro escribió:
Hi,

really thank you for the explanation. But for now, i wouldnt like to care
with the those bugs you explain

these are no bugs, but simply how things work.

( but those tricks are really helpfull in
the future, thanks ). So lets forget those tricks for now, and get some
concentration just to make something working.

I have some questions, hope you will not considered they us much naive:

[... already answered by Jürgen]

- i already tried the client application of the book, but it does not work,
because it hasnt a main method.

I guess we are talking about the same thing: the example that comes with
the SDK, located in
sdk/examples/DevelopersGuide/OfficeDev/ContextMenuInterceptor.java,
which does have a public static void main method (are you copying the
code from the Dev's Guide? if so, here the code usually is in form of
snippets, so you have to study the full code in the SDK)

What should the main method do? Instantiate
the class that implements the context menu interceptor?

yes, that's what the example in the SDK does.

I havent understood
how to make the connection between the extension and the interceptor class.

as I said in previous mail: a css.task.Job.

In the client application from the SDK example, a new doc. is loaded,
then accesses the controller, and registers the interceptor.

So you need a Job that gets executed every time a doc is loaded from the
location where it is stored, or created; and then access the controller,
register the interceptor...


Hope this are normal questions. I already read the developers guide, at
least the main topics to do that, but dont understand how to put it all
together.

in
http://www.ArielConstenlaHaile.com.ar/ooo/temp/ContextMenuInterceptor.zip
you'll find a version of the client application (done with the newest
version of the plug-in, and tested *only* on OOo 3.0)

in
http://www.ArielConstenlaHaile.com.ar/ooo/tmp/dbaccess/DatabaseControllerDemo.zip
you'll find an extension, *BUT* I created this add hoc, just for testing
some new features in the database module: I didn't review it, nor
cleaned it, nor tested it in other version than DEV300_m29; so just by
luck it may work in the latest developer snapshot; use it at your own
risk. If I find time, I'll do a ready-to-use-in-production version, but
can't promise.

Regards
Ariel.


--
Ariel Constenla-Haile
La Plata, Argentina

[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]

Reply via email to