Olivier R. wrote:
>
> i'm using xxe-pro-5.4.0 and i would like to implement the "resize
> table-column" functionality to my own tables... could you please send us
> the code witch implements the ResizeTableColumn class?
> It would be great to have also the code for resizing an image ;
>

[1] You'll first have to add bindings similar to what follows in your 
configuration file:

---
<binding>
   <appEvent name="resize-image" />
   <command name="resizeImage"
            parameter="contentdepth=%{height} contentwidth=%{width}
                       scale scalefit" />
</binding>
---

---
<binding>
   <appEvent name="resize-table-column" />
   <command name="db5.resizeTableColumn"
            parameter="%{resizedColumn} %{columnCount}
                       %{oldColumnWidths} %{newColumnWidths}" />
</binding>
---

More information in:

http://www.xmlmind.com/xmleditor/_distrib/doc/configure/binding.html

* Search for "Interactively resize an image by dragging one of the 
“handles” displayed around it".

* Search for "Interactively resize a table column by dragging its column 
separator".



[2] If your image element has no child elements and/or attributes 
allowing to specify its dimension, then, no matter what you would do, 
XXE cannot interactively resize your images.

Otherwise, may be the generic resizeImage command will also work for 
your specific image element.

More information in:

http://www.xmlmind.com/xmleditor/_distrib/doc/commands/resizeImage.html

If the generic resizeImage command cannot do the job, then please write 
your own resize image command. Before doing that, we strongly recommend 
reading the source code[*] of:

com.xmlmind.xmleditapp.cmd.object.ResizeImage.



[3] If your table element has no child elements and/or attributes 
allowing to specify the widths of the columns, then, no matter what you 
would do, XXE cannot resize the columns of your tables.

Otherwise, please write your own resize column command. Before doing 
that, we strongly recommend reading the source code[*] of (DITA 
simpletable = simplest column model):

com.xmlmind.xmleditext.dita.ResizeSimpleTableColumn

and also, the source code of (XHTML table = well-known column model):

com.xmlmind.xmleditext.xhtml.table.ResizeTableColumn.



---
[*] Your site license gives you access to the full source code of XXE.
 
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to