Customizing "New document wizard" for new framework

Post here questions and problems related to oXygen frameworks/document types.
jbvalentin
Posts: 11
Joined: Thu Jul 06, 2017 10:53 am
Location: Nantes, France

Customizing "New document wizard" for new framework

Post by jbvalentin »

Hi,

I've set up a framework to support a specific set of DTDs/Schemas.

I've created some templates as per https://www.oxygenxml.com/doc/versions/ ... lates.html

I'd like to know if it would also be possible to create a specific "New document wizard" so that users would have a specific dialog to enter requested data. I've looked at the https://www.oxygenxml.com/doc/versions/ ... orial.html page but haven't been able to find relevant information.

Could point me to the documentation, or provide me with guidelines on how to achieve that?

Thank you very much.
Regards,
Jean-Baptiste
Radu
Posts: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: Customizing "New document wizard" for new framework

Post by Radu »

Hi Jean-Baptiste,

We do not have APIs right now for this, I added an internal issue to consider this for a future version.
A couple of possible workarounds:

1) Use editor variables in the new file templates:
https://www.oxygenxml.com/doc/versions/ ... ables.html

They automatically get expanded when a file is created based on the template. And one editor variable is called "ask" and it shows a dialog to the end user requesting a certain value.

2) If the XML documents open in the Author visual editing mode you could try to use this special CSS property:

https://www.oxygenxml.com/doc/versions/ ... nsion.html

3) Create a Java-based plugin for Oxygen which adds your own "New" button to the toolbar. Sample plugin:

https://github.com/oxygenxml/sample-plu ... ace-access

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
jbvalentin
Posts: 11
Joined: Thu Jul 06, 2017 10:53 am
Location: Nantes, France

Re: Customizing "New document wizard" for new framework

Post by jbvalentin »

Hi Radu,

thank you very much for your answer.
I'll try some suggested workarounds in the meantime - the third one looks close to what I'd like to achieve.

Regards,
Jean-Baptiste
Post Reply