Yves Forkl wrote:
>> However this will be a somewhat advanced customization:
>>
>> [1] Define the "Characters" menu as below; plus give it a generic name
>> such as "configSpecificMenu2".
>>
>> [2] Create a file (anywhere in ZZZ/addon/) called custom.xxe_gui
>> containing what follows:
>> ---
>> <menuItems name="configSpecificMenuItems2">
>>   <class>com.xmlmind.xmleditapp.kit.part.ConfigSpecificMenuItems</class>
>>   <property name="specificationName">configSpecificMenu2</property>
>> </menuItems>
>>
>> <menu name="configSpecificMenu2" label="Extras">
>>   <menuItems name="configSpecificMenuItems2" />
>> </menu>
>>
>> <menuBar name="menuBar">
>>   <insert />
>>   <menu name="configSpecificMenu2" />
>> </menuBar>
> 
> Trying this solution which seems to me like using a backdoor to the GUI
> of XXE V. 2.x, I get exactly the same result like before, when I just

Sorry, I wanted to give you a glimpse of what you'll be able to do with
V3 and I just added confusion to the discussion.

<menuBar>, <menuItems>, etc, are all part of the XML vocabulary
specifying the  GUI of XXE *V3*. This cannot work with V2.




> 
>> [1] Your Characters menu, being completely generic, could be directly
>> defined in custom.xxe_gui. Doing this will be simple and quick in V3
>> (much much simpler than adding a second *config specific* menu as
>> described above)
> 
> May I ask in what sense it is "completely generic"? (Can you give an
> example of a menu item which would contradict this?) Anyway, I'm looking
> forward to XXE V. 3.
> 

You'll be able to add a menu similar to your Characters menu to the GUI
of XXE V3. This will work no matter which type of document is opened in
the XML editor. That is, your Characters menu will be added to the GUI
of XXE V3 just like the File, Select, Edit, etc, menus are.

This works because your Characters menu only contains generic commands
(insertString) and not commands which are specific to DocBook (e.g.
docb.tableColumn, doc.toggleInformal, etc).

For this, your Characters menu will have to be removed from your
customization of the DocBook configuration, will have to be rewritten
using the XML vocabulary specifying the GUI of XXE V3 and will have to
be put in a file called custom.xxe_gui.

Reply via email to