Custom Action for Text View, not Author View

Having trouble installing Oxygen? Got a bug to report? Post it all here.
ajmott
Posts: 4
Joined: Thu Oct 06, 2011 8:29 pm

Custom Action for Text View, not Author View

Post by ajmott »

Hi,

I've written a number of custom actions (mostly Insert actions) that some of our authors use when using Author View. We have a couple of authors that have requested a couple of actions be enabled when they are in Text View.

I've gone through the javadoc, and as well as the Oxygen documentation, and I can't seem to find any indication of if it is even possible to have a custom action available in Text View. I'm guessing "no" because actions are defined in the Author tab of the Doc Type Config dialog.

Any clarity or direction is appreciated.

-AJ
mihaela
Posts: 490
Joined: Wed May 20, 2009 2:40 pm

Re: Custom Action for Text View, not Author View

Post by mihaela »

Hello,

The Author SDK can be used to add extensions for a specific document type, in Author mode. To extend the oXygen functionality for Text mode you can use the plugin SDK.

Here you can find the OxygenPluginsDevelopmentKit.zip that contains the plugins SDK, javadoc and sample source codes:
http://www.oxygenxml.com/oxygen_sdk.htm ... er_Plugins

Here is the online documentation about "Extending Oxygen XML with Plugins":
http://oxygenxml.com/doc/ug-editor/topi ... ugins.html

You can use multiple types of oXygen plugins. For your specific needs (adding some actions to main menu, toolbar or popup menu in Text page) you should implement a WorkspaceAccessPlugin:
http://oxygenxml.com/doc/ug-editor/conc ... lugin.html
Inside the OxygenPluginsDevelopmentKit.zip you will find the source of a CustomWorkspaceAccessPluginExtension that contribute actions to main menu, toolbar and popup menu.

Best Regards,
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
Post Reply