Miloslav Hertl wrote:
> I am novice of using XMLmind. I read books "XMLmind XML Editor ? 
> Commands" and "XMLmind XML Editor - Configuration and Deployment". I was 
> modify interface for my needing :-) , but PI's and accelerator I can't. :-(
> 
> I am using XMLmind 2.6 to edit DocBook document. Because output is 
> HtmlHelp, I need insert into XML document my specific PI.
> <?hhlp_id name="MyIDName"?>
> <?hhlp_cmd name="MyCommandDectription" cmd="My_command1;"?>
> 
> My questions:
> 1) How is possible insert my instructions from toolbar?

Yes.



> 2) How I can use accelerator for inserting PI's  e.g. first with 
> <ctrl+B>, second with <ctrl+alt+B>

Yes. ctrl+shift+B (ctrl+alt often have special semantics. You'll need to 
try this yourself on your platform.)



> 3) Is somewhere more examples user customisations? E.g. the same task 
> solved in macro, item, and toolbar. Folder config is great but don't 
> contain all menus and examples for all functions, parameters of XMLmind.

No but you may want to read the configurations (DocBook, XHTML, etc) 
bundled with XXE.

Find attached to this email a ready-to-use customization. Simply 
``unzip'' this file in <XXE_user_preferences_dir>/config (e.g. 
~/.xxe2/config/ on Unix) and restart XXE.

This attached configuration is just intended to give you a quick start.

Depending on your needs, you may want to replace option piAfter by 
piBefore or piInto. See 
http://www.xmlmind.com/xmleditor/_distrib/docs/commands/ch06s26.html

---
<?xml version='1.0'?>
<configuration name="DocBook"
   xmlns="http://www.xmlmind.com/xmleditor/schema/configuration";
   xmlns:cfg="http://www.xmlmind.com/xmleditor/schema/configuration";>

   <include location="docbook/docbook.xxe" system="true" />

   <binding>
     <keyPressed code="B" modifiers="mod"/>
     <command name="insertHtmlHelpPI" parameter="hhlp_id" />
   </binding>

   <binding>
     <keyPressed code="B" modifiers="shift mod"/>
     <command name="insertHtmlHelpPI" parameter="hhlp_cmd" />
   </binding>

   <command name="insertHtmlHelpPI">
     <macro trace="false">
       <sequence>
         <command name="insertNode"
                  parameter="piAfter[implicitElement]"/>
        <command name="editPITarget" parameter="%0" />
       </sequence>
     </macro>
   </command>

   <toolBar>
     <button toolTip="Append &lt;?hhlp_id?&gt;" icon="icons/pi.gif">
       <command name="insertHtmlHelpPI" parameter="hhlp_id" />
     </button>
     <button toolTip="Append &lt;?hhlp_cmd?&gt;" icon="icons/pi.gif">
       <command name="insertHtmlHelpPI" parameter="hhlp_cmd" />
     </button>
     <separator />
     <insert />
   </toolBar>

</configuration>
---

Note that "mod" means "command" on Mac and "ctrl" on all other platforms.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mydocbook.tar.gz
Type: application/x-tar
Size: 880 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20040601/186773f0/attachment.tar
 

Reply via email to