tags:

views:

122

answers:

0

Basically, I have my own custom ribbon in a .dotm. I also have a 3rd-party ribbon with some buttons/functionality I would like to reference from my custom ribbon. I can access the XML for this 3rd-party ribbon. So, is it possible to reference this 3rd-party XML from my custom ribbon, so that I can have one of the 3rd-party's buttons on my own custom ribbon?

If I qualify my custom ribbon's namespace in the 3rd-party's file, and vise-versa, will I be able to declare one's button in the other's, and the proper code will fire?

The 3rd-party's XML for the button I want is:

    <button id="button4" label="Paste Unformatted" onAction="onAction" size="large" 
keytip="PU" screentip="Paste Unformatted" supertip="Paste text without formatting" imageMso="Paste" getEnabled="getEnabled" />

This button, with id=4, is associated with an ObjectLink element in the file, which calls on a .dll:

<ObjectLink ObjectID="button4" ObjectCallback="onAction" ObjectCallbackResult="pass through" Assembly="C:\program files\procedures.dll" />

... you get the picture.

Is my objective possible with this type of infrastructure?

NOTE: The "paste unformatted" button I am referencing is not the same as Word's...I need the 3rd-party's one.