Page 1 of 1

How to disable xml Document in Author

Posted: Fri Jul 13, 2012 11:00 am
by sebastienlavandier
Hello,

I want to know if it's possible to disable an Xml Document when it opening, maybe by using a framework ? which method can I use ?

In a second step, if user do a right click on the Xml document, I want to proposed him to enable this document.

Do you think that is possible ?

Thanks in advance you for your answer.
Best regards.
Seb.L

Re: How to disable xml Document in Author

Posted: Fri Jul 13, 2012 11:39 am
by Radu
Hi Sebastien,

What do you mean by "disable"? Do you mean not-editable?

We have some API like:

Code: Select all

ro.sync.exml.workspace.api.editor.page.WSTextBasedEditorPage.setEditable(boolean)
which might be useful to you.

Regards,
Radu

Re: How to disable xml Document in Author

Posted: Mon Jul 16, 2012 10:56 am
by sebastienlavandier
Hello Radu,
Thank you very much for your help.
Bye

Re: How to disable xml Document in Author

Posted: Wed Apr 17, 2013 11:41 am
by sebastienlavandier
Hi Radu,

Now, with the new 14.2 version I want to know how it's possible to disable xml document in text mode ?

Thanks in advance for your help.
Sébastien

Re: How to disable xml Document in Author

Posted: Wed Apr 17, 2013 11:51 am
by adrian
Hi,

Can you please clarify what you understand by "disable xml document"?
Do you want to hide the Text mode and make it inaccessible to the user?

Regards,
Adrian

Re: How to disable xml Document in Author

Posted: Wed Apr 17, 2013 12:02 pm
by sebastienlavandier
No, I just want that a user can't modify the document in text mode, like it's possible in author mode.

Re: How to disable xml Document in Author

Posted: Wed Apr 17, 2013 12:10 pm
by adrian
There is no user option that does this. But, you can use the API that Radu mentioned:
ro.sync.exml.workspace.api.editor.page.WSTextBasedEditorPage.setEditable(boolean)

Regards,
Adrian

Re: How to disable xml Document in Author

Posted: Wed Apr 17, 2013 12:13 pm
by sebastienlavandier
Thanks you for your help.
Sébastien