Page 1 of 1

Custom Action for Text View, not Author View

Posted: Mon Aug 06, 2012 10:32 pm
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

Re: Custom Action for Text View, not Author View

Posted: Tue Aug 07, 2012 12:18 pm
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