On 12/03/2015 03:45 PM, Edith Cannet wrote:
Is there a way to get different layouts, eg. one layout by environment/addon?
I'm sorry but I'm not sure to understand what you mean by layout. Please
give us an example of what you would need.
If by layout, you mean overall layout of the user interface (menu,
toolbars, panes), then the answer is no.
An add-on can contain a customize.xxe_gui file (e.g. the MathML add-on).
This customize.xxe_gui adds UI parts to the base user interface of
XMLmind XML Editor. (A customize.xxe_gui can also remove or replace UI
parts.)
However an add-on is not supposed to completely change the base user
interface of XMLmind XML Editor. This would lead to many errors caused
by the other add-ons not finding the UI parts they expect.
If you want to do that, this is possible too, but not using a
customize.xxe_gui file included in an add-on.
If for document type A, you need UI layout A (making XXE a specialized
XML editor), then start XXE using:
set XXE_GUI=file:///C:/Doc...Settings/john/.../addon/LayoutA.xxe_gui
C:\Program Files\XMLmind_XML_Editor\bin\xxe.exe
These 2 lines could be found in xxe-a.bat.
Then, if for document type B, you need UI layout B (making XXE a
different specialized XML editor), then start XXE using:
set XXE_GUI=file:///C:/Doc...Settings/john/.../addon/LayoutB.xxe_gui
C:\Program Files\XMLmind_XML_Editor\bin\xxe.exe
These 2 lines could be found in xxe-b.bat.
LayoutA.xxe_gui and LayoutB.xxe_gui both start with:
---
<?xml version='1.0' encoding='UTF-8'?>
<gui xmlns="http://www.xmlmind.com/xmleditor/schema/gui"
xmlns:gui="http://www.xmlmind.com/xmleditor/schema/gui">
<include location="xxe-gui:DesktopApp.xxe_gui" />
...
</gui>
---
and of course, C:\Program Files\XMLmind_XML_Editor\addon\ contains only
the add-on adding support for document type A and the add-on adding
support for document type B.
In other words, the customization of the user interface is not contained
inside an add-on folder. The customization of the user interface is
implemented two .bat files: xxe-a.bat and xxe-b.bat
Reference:
http://www.xmlmind.com/xmleditor/_distrib/doc/gui/alternate_base_gui_spec.html
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support