The commands I described are macro commands. So I will send you the stuff. I will send it next year because I have to leave the office now for holidays.
I wish everybody merry christmas and all the best for 2006 Peter Schulte Hussein Shafie <hussein at xmlmind.com> 23.12.2005 09:39 Bitte antworten an "xmleditor-support at xmlmind.com" <xmleditor-support at xmlmind.com> An Peter.Schulte at gad.de Kopie "xmleditor-support at xmlmind.com" <xmleditor-support at xmlmind.com> Thema Re: [XXE] How to check non-editable nodes within commands? Peter.Schulte at gad.de wrote: > > The XMLmind command set is really a comprehensive toolset to provide > more comfort for DocBook-authors. You even can write functionality which > is not available e.g. in MS-Word. > I 've written a kind of document structure editor. This function enables > the authors to move several nodes (e.g. listitem varlistentry callout > step row qandaentry simplesect section chapter) up and down or left and > right (e.g. listitem or chapter <=> section <=> ... <=> section <=> > simplesect) just using the Alt-key in combination with the arrow-keys as > a navigator. > > My problem is: Parts of these commands work or (for the authors) seem to > work though the moved nodes are within referenced parts of the document. > The question is: How can I check within my commands if a node is > editable or not? In principle, you don't need to ask that question: * If you have written commands in the Java[tm] programming language, use this API: http://www.xmlmind.com/xmleditor/_distrib/doc/api/com/xmlmind/xmledit/doc/Node.html#isEditable() Note that marking an element as read-only is just advisory. That is, nothing prevents a command written in the Java[tm] programming language from modifying a read-only element. * If you have written macro-commands, then you may have found a bug. A macro-command should not be able to modify a read-only element. If this is the case, do not hesitate to send us your macros so we can reproduce the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20051223/46816c5f/attachment.htm

