oxygen 11: adding contextual menu in "outline" toolbar

Oxygen general issues.
guna@ebscohost.com
Posts: 27
Joined: Tue Nov 17, 2009 10:16 pm

oxygen 11: adding contextual menu in "outline" toolbar

Post by guna@ebscohost.com »

Hi,
I have a requirement to have a contextual menu item in the "outline" tool bar. The user selects an element in outline toolbar, then do right click and select my contextual menu.

can you guide me,
1)how to add contextual menu item on a outline tool bar?
2)how to trigger corresponding configuration.

Thanks
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: oxygen 11: adding contextual menu in "outline" toolbar

Post by sorin_ristache »

Hello,

Do you edit XML documents in Author mode or in Text mode? In Author mode you can configure custom actions in the document type that corresponds to the edited document but such an action can be added in the current version only to the toolbar of the editor or to the contextual menu of the editor (see Author tab of the dialog for editing a document type). We will consider enhancing the configuration of a custom action in Author mode for allowing it to be added to the contextual menu of the Outline view.


Regards,
Sorin
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: oxygen 11: adding contextual menu in "outline" toolbar

Post by Radu »

Hi Guna,

In Oxygen 11.2 you will be able to overwrite two customization methods in the ExtensionsBundle

Code: Select all


createAuthorBreadCrumbCustomizer()
and

Code: Select all


createAuthorOutlineCustomizer()
This will give you access to the pop-up menus available on the Author breadcrumb and outline tree.

You will also have an AuthorOutlineAccess to get access to the selected nodes.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
guna@ebscohost.com
Posts: 27
Joined: Tue Nov 17, 2009 10:16 pm

Re: oxygen 11: adding contextual menu in "outline" toolbar

Post by guna@ebscohost.com »

can you provide a sample code?
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: oxygen 11: adding contextual menu in "outline" toolbar

Post by Radu »

Hi,

Sample code will be found in the Author SDK Simple Documentation Framework when Oxygen 11.2 will be released (at the end of March).

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply