Custom actions/menu/toolbar in text view

Post here questions and problems related to oXygen frameworks/document types.
martindholmes
Posts: 178
Joined: Wed Apr 20, 2005 5:43 pm
Location: Victoria, BC, Canada

Custom actions/menu/toolbar in text view

Post by martindholmes »

It's quite straightforward to create custom actions associated with a document type, and add them to a custom menu and to the toolbar when that document type is open in Author view. But I'd really like to make this functionality available in the text view; most of our editors work almost all the time in text view, and I'd like to make a range of transformations available as custom menu items for them.

Is this possible? If not, are you planning to make it possible?

Cheers,
Martin
alex_jitianu
Posts: 1008
Joined: Wed Nov 16, 2005 11:11 am

Re: Custom actions/menu/toolbar in text view

Post by alex_jitianu »

Hello Martin,

We have an already recorded feature request for this. I will add your vote for it. Meanwhile, you can use our Java based API to add something similar through an Workspace Access plugin. Such a plugin can add actions in a toolbar and from these action you can access the Text page and make changes. The Text page API is not as vast as the Author page API but you can still:
- get access to the text component and its document
- execute XPath to locate ranges that need to be process
- easily insert XML fragments

Best regards,
Alex
martindholmes
Posts: 178
Joined: Wed Apr 20, 2005 5:43 pm
Location: Victoria, BC, Canada

Re: Custom actions/menu/toolbar in text view

Post by martindholmes »

Hi Alex,

This will help for one of the projects for which I'm going to be writing a framework, but I don't think this can be done using just a project file, can it?

I don't actually need access to the text API; these are transformation scenarios I want to run.

Cheers,
Martin
martindholmes
Posts: 178
Joined: Wed Apr 20, 2005 5:43 pm
Location: Victoria, BC, Canada

Re: Custom actions/menu/toolbar in text view

Post by martindholmes »

Any idea when the feature request might be addressed?

Cheers,
Martin
alex_jitianu
Posts: 1008
Joined: Wed Nov 16, 2005 11:11 am

Re: Custom actions/menu/toolbar in text view

Post by alex_jitianu »

Hi Martin,

I've added you vote for the feature but we don't have a estimation yet. It's not a trivial feature and it will involve some architectural changes. I've sent you on your email address a sample plugin that should help you. It reads some scenario names from a file and puts actions on the toolbar that will execute those scenarios.

Best regards,
Alex
Post Reply