Hide the "Grid" View button

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Vincent
Posts: 52
Joined: Thu Dec 15, 2011 7:56 pm

Hide the "Grid" View button

Post by Vincent »

Hi,

I wonder if it's possible to hide the button "grid" in the application (Oxygen Author) in order to avoid the user to click on it.
I just want the ability to switch between Text and Author view but not for grid (it is useless in my case).
I talk about the buttons just below the editing window.

Where could I find the settings for this ?


Thank you,
Vincent.
Radu
Posts: 9051
Joined: Fri Jul 09, 2004 5:18 pm

Re: Hide the "Grid" View button

Post by Radu »

Hi Vincent,

We do not yet have this possibility to hide the Grid page completely.
Do you want such a possibility as a per-user setting or do you want to impose it to a group of users?

If you are interested in the second approach the following workaround would be available:
If you have experience using Java, we have a Plugins SDK:
http://www.oxygenxml.com/oxygen_sdk.htm ... er_Plugins

Right now our Workspace Access plugin type API allows you to add a listener which will be notified when the user switches to a page. When the user switches to the Grid page you could (using the API) force the switch to the Text or Author pages or show a warning message and switch back to the last page.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Vincent
Posts: 52
Joined: Thu Dec 15, 2011 7:56 pm

Re: Hide the "Grid" View button

Post by Vincent »

I take note of your message and solutions.
Thank you for answering so rapidly.

Vincent
cedporter
Posts: 18
Joined: Thu Mar 16, 2017 8:44 pm

Re: Hide the "Grid" View button

Post by cedporter »

This is a very old thread, but did you ever implement a way to hid the Grid View button? We would definitely be interested in that feature, for all users. Ideally, something like a new option for pluginWorkspaceAccess.setGlobalObjectProperty() for suppressing a view would be a welcome addition.
Radu
Posts: 9051
Joined: Fri Jul 09, 2004 5:18 pm

Re: Hide the "Grid" View button

Post by Radu »

Hi,

I will assume you are using the desktop version of Oxygen.
We have a components validator plugin extension which allows you to remove the Grid editing mode:

Code: Select all

ro.sync.exml.ComponentsValidator.validateEditorPage(String)
https://www.oxygenxml.com/doc/versions/ ... lugin.html

and a sample Oxygen plugin which adds such a Java extension:

https://github.com/oxygenxml/oxygen-com ... ter-plugin

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
cedporter
Posts: 18
Joined: Thu Mar 16, 2017 8:44 pm

Re: Hide the "Grid" View button

Post by cedporter »

Thanks, we'll take a look at this.
Post Reply