Dinesh Chothe wrote:

>> If I understand correctly, you want to implement a command callable from
>> a menu and this command should get some text as a parameter and should
>> return some new text, right? The good news is that the whole thing can
>> be packed into an extension, without any need to change the OOo source
>> code at all.
>>
>> First you should understand the concept of the Dispatch Framework a bit
>> (it's explained in the Developer's Guide). In this concept you will also
>> find how you can add new commands in extensions. The code bound to the
>> command will be provided by an object called "protocol handler" and some
>> "Dispatch objects" it creates. The protocal handler is initialized with
>> the Frame object it is working on (representing the view anc controller
>> pair it contains). From this object you can get access to the current
>> selection. The selection allows you to retrieve the current content as
>> well as to change it.
> 
>  Yes. I have  seen all this from developers guide.
>  Now after getting  contents  in  object  how  to  pass  it  to  VC++ DLL?
>  How OO objects handles  VC++ DLL's methods?

I'm not sure if I understand correctly. The code you are writing can be
a VC++ DLL itself. What else do you need?

Or how did you plan to implement your dispatch objects?
Please take the C++ example Add-On from the Developer's Guide example
(ProtocolHandlerAddon.cpp) to see how "external" code is bound to OOo
via the Dispatch API. You can even take this Add-On as a starting point
for your own development, add more commands and fill out the gaps.

Ciao,
Mathias

-- 
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't reply to "[EMAIL PROTECTED]".
I use it for the OOo lists and only rarely read other mails sent to it.


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

Reply via email to