Santy, Michael wrote:
> 
> I'm developing an editor for a docbook-like schema and wish to restrict
> the scope of cursor (solid red background) selections.  With the
> standard docbook configuration, assume that you have two adjacent
> paragraphs and cursor selected text spanning both.  XXE's default
> behavior for cut would work as intended, but paste (Ctrl-V) would
> silently do nothing unless the cursor is in the appropriate place.  The
> user would have to know to paste before or paste after with the
> application menu.
> 
> For my intended application, I think it would be more intuitive for the
> users to be able to paste whatever they can cut or copy with cursor
> selections.  Therefore I would like to limit the scope of the cursor
> selection to the boundaries of block elements (i.e., para, listitem,
> etc.).  This would effectively mean that cursor selection would only be
> capable of selecting textual and other inline content (e.g., emphasis,
> etc.).
> 
> Is there a straightforward way to tell XXE where to stop cursor
> selection? 

I'm sorry but I don't see how this could implemented in the general case.

However, I guess that you could write a replacement for the "selectAt"
command
(http://www.xmlmind.com/xmleditor/_distrib/doc/commands/selectAt.html)
which intimately knows your docbook-like schema and then rebind the
mouse actions to make them use your custom command.

Press-1 = selectAt begin

Drag-1 = selectAt extend

Release-1 = selectAt end

Shift-Click-1 = selectAt

Reply via email to