Jacek.Lewandowski at ifb-group.com wrote:
> It seems not to solve the problem becouse still when I double click on
> image it opens the dialog box with ???. Is it possible, insted of standard
> dialog box like this(after double click of mouse):
> 
> (Embedded image moved to file: pic24954.jpg)
> 
> 
> to have this:
> 
> (Embedded image moved to file: pic32524.jpg)
> 
> I try to do something like this: but it seems to work only for elements
> which are not 'imagedata' or 'graphic' but should for all element.
> 
> <binding>
>       <mouseClicked2 button="1"/>
>       <command name="putAttribute" parameter="[implicitElement] fileref" />
>   </binding>
> 
>   but it seems to work only for elements which are NOT 'imagedata' or
> 'graphic' but should works for all element.  Of course I can add test
> expresion="" but ths code above should work for all elements, but it
> doesn#t for imagedata and graphic.
> 

Your analysis of the situation is 100% correct. What you did should work
fine, *except* that images are rendered using a specialized control
which intercepts the double-click (this is hard-wired in the code)
before your binding enters into the game.

The specialized control is: com.xmlmind.xmleditext.docbook.Graphic. See
http://www.xmlmind.com/xmleditor/_distrib/doc/api/com/xmlmind/xmleditext/docbook/Graphic.html

It is declared in XXE_install_dir/addon/config/docbook/css/image.imp:
---
graphic,
inlinegraphic,
imagedata {
    content: gadget("com.xmlmind.xmleditext.docbook.Graphic");
}
---

Therefore unless you replace com.xmlmind.xmleditext.docbook.Graphic by a
custom gadget of yours[*], what you want to do cannot work.


---
[*] Subclassing com.xmlmind.xmleditext.docbook.Graphic should work fine,
but you need to be a Java[tm] programmer to do that.




Reply via email to