Custom actions/menu/toolbar in text view

Post here questions and problems related to oXygen frameworks/document types.
martindholmes
Posts: 104
Location: Victoria, BC, Canada

Custom actions/menu/toolbar in text view

Wed Jul 08, 2015 1:35 am

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: 603

Re: Custom actions/menu/toolbar in text view

Wed Jul 08, 2015 10:34 am

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: 104
Location: Victoria, BC, Canada

Re: Custom actions/menu/toolbar in text view

Fri Jul 10, 2015 12:26 am

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: 104
Location: Victoria, BC, Canada

Re: Custom actions/menu/toolbar in text view

Fri Jul 10, 2015 12:28 am

Any idea when the feature request might be addressed?

Cheers,
Martin
alex_jitianu
Posts: 603

Re: Custom actions/menu/toolbar in text view

Fri Jul 10, 2015 1:48 pm

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

Return to “SDK-API, Frameworks - Document Types”

Who is online

Users browsing this forum: No registered users and 1 guest