Matt Flaherty wrote:
> Is it possible within
> the API to specify a custom display style value handler like the
> inline-block and tree views? I have been digging around but so far have
> not found how to extend that if it's even possible. On the other hand,
> would it be done similar to this?
> http://www.xmlmind.com/xmleditor/_distrib/doc/dev/styleext.html#solution
> 1

You can do many things. This is how the form controls -- see 
XXE_install_dir/demo/form-sampler.xml --

Slightly edited excerpt of 
XXE_install_dir/demo/form-sampler/form-sampler.css:
---
rgb2 {
     content: gadget("com.xmlmind.xmledit.form.ComboBox",
                     labels, "Green\A Blue\A Red",
                     values, "green\A blue\A red");
}
---
(http://www.xmlmind.com/xmleditor/_distrib/doc/csssupport/gadget.html)

and the support of MathML have been implemented.

Slightly edited excerpt of MathML_addon_install_dir/common/mathml.css:
---
mml|msqrt {
   /* Block-like */
   display: view("com.xmlmind.xmleditext.mathml.MathElementViewFactory");
}
---

However the most advanced techniques are not documented. For now, you 
just have:

---
smiley {
     content: component("Smiley");
     font: normal normal small sans-serif;
     /* Needed to display the red border of the selection */
     display: inline-block;
     padding: 1px;
}
---

That is, you can replace the normal view of a styled element by a custom 
component.

See "XMLmind XML Editor - Developer's Guide", "Active custom views: 
specialized editors embedded in the DocumentView" 
http://www.xmlmind.com/xmleditor/_distrib/doc/dev/styleext.html#d0e5046



Reply via email to