<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Alex,<div><br></div><div>Thanks for the sample code, I was able to successfully adapt it for my more complex use-case (involving retrieval of information from custom processing instructions that were associated with the table element).</div><div><br></div><div>Best regards,</div><div>Anthony.</div><div><div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="font-size: 12px; "><b>--</b></div><div style="font-size: 13px; "><b>Michael Anthony Smith</b></div><div style="font-size: 12px; ">Senior Software Engineer</div><div style="font-size: 12px; "><br></div><div style="font-size: 14px; "><b><font>DeltaXML Ltd</font><font> </font></b><span style="font-family: Arial, sans-serif; font-size: 13px; "><i>"Experts in information change"</i></span></div><div style="font-size: 12px; "><b><br></b></div><div style="font-size: 12px; "><b>T</b>:<span class="Apple-tab-span" style="white-space: pre; "> </span>+44 1684 532 140 </div><div style="font-size: 12px; "><b>E</b>:<span class="Apple-tab-span" style="white-space: pre; "> </span><a href="mailto:anthony.smith@deltaxml.com">anthony.smith@deltaxml.com</a> </div><div style="font-size: 12px; "><b>W</b>:<span class="Apple-tab-span" style="white-space: pre; "> </span><a href="http://www.deltaxml.com/">http://www.deltaxml.com</a></div><div style="font-size: 11px; ">Malvern Hills Science Park, Malvern, Worcs, WR14 3SZ, UK</div><div style="font-size: 11px; ">Registered in England 02528681 Reg. Office: Monsell House, WR8 0QN, UK</div></div></div></div>
</div>
<br><div><div>On 7 Apr 2014, at 12:00, Alex Jitianu <<a href="mailto:alex_jitianu@sync.ro">alex_jitianu@sync.ro</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
<div bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hello,<br>
<br>
The table layout imposes a few restrictions. You must put the
button (actually any static content) on a BEFORE/AFTER pseudo
element and also very important, the "display" property for the
element must be set to "block":<br>
<br>
@Override<br>
public Styles filter(Styles styles, AuthorNode authorNode) {<br>
if (authorNode.getType() ==
AuthorNode.NODE_TYPE_PSEUDO_ELEMENT<br>
&&
PseudoElementInterface.BEFORE.equals(authorNode.getName())) {<br>
AuthorElement realElement = (AuthorElement)
authorNode.getParent();<br>
AttrValue attribute = realElement.getAttribute("class");<br>
if (attribute.getValue().contains(" topic/simpletable
")) {<br>
// The Before element of a simple table. It must be a
block if it is to be rendered.<br>
styles.setProperty(Styles.KEY_DISPLAY, "block");<br>
<br>
Map<String, Object> properties = new
HashMap<String, Object>();<br>
properties.put(InplaceEditorCSSConstants.PROPERTY_TYPE,
InplaceEditorCSSConstants.TYPE_BUTTON);<br>
properties.put(InplaceEditorCSSConstants.PROPERTY_ACTION_ID,
"insert.table");<br>
StaticContent editorContent = new
EditorContent(properties);<br>
<br>
styles.setProperty(Styles.KEY_MIXED_CONTENT, new
StaticContent[] {editorContent});<br>
}<br>
}<br>
return styles;<br>
}<br>
<pre class="moz-signature" cols="72">Best regards,
Alex
--
Alex Jitianu
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
<a class="moz-txt-link-freetext" href="http://www.oxygenxml.com/">http://www.oxygenxml.com</a> </pre>
On 07-Apr-14 12:19 PM, Michael Anthony Smith wrote:<br>
</div>
<blockquote cite="mid:A62929A4-455C-4643-9994-8D4C86C015B3@deltaxml.com" type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
We are writing a plugin based addon for oXygen that uses custom
form controls to provide a set of alternatives for specified
element, text, and attribute nodes. Here, a form control button is
associated with each element or text node that has alternative
versions, where as attribute change form control buttons are
associated with their containing element.
<div><br>
</div>
<div>The initial testing of this form control approach is
producing reasonable results, however when we associate a button
with a DITA simpletable element no form control appears. I have
looked to see if there is any documentation on the interaction
between table elements and form controls, but found nothing that
discusses this. Does anybody else have experience with
associating custom form controls with table elements? Any
insights welcome.
<div><br>
</div>
<div>Best regards,</div>
<div>Anthony.
<div>
<div><br class="webkit-block-placeholder">
</div>
<div>PS: Note that due to a form-control/StyleFilter
interaction issue with oXygen Editor 15.1 and 15.2, which
will be fixed in the next release, we are currently
developing our plugin using oXygen 15.0.</div>
<div>
<div style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div style="font-size: 12px; "><b>--</b></div>
<div style="font-size: 13px; "><b>Michael Anthony
Smith</b></div>
<div style="font-size: 12px; ">Senior Software
Engineer</div>
<div style="font-size: 12px; "><br>
</div>
<div style="font-size: 14px; "><b><font>DeltaXML Ltd</font><font> </font></b><span style="font-family: Arial, sans-serif;
font-size: 13px; "><i>"Experts in information
change"</i></span></div>
<div style="font-size: 12px; "><b><br>
</b></div>
<div style="font-size: 12px; "><b>T</b>:<span class="Apple-tab-span" style="white-space: pre;
"> </span>+44 1684 532 140 </div>
<div style="font-size: 12px; "><b>E</b>:<span class="Apple-tab-span" style="white-space: pre;
"> </span><a moz-do-not-send="true" href="mailto:anthony.smith@deltaxml.com">anthony.smith@deltaxml.com</a> </div>
<div style="font-size: 12px; "><b>W</b>:<span class="Apple-tab-span" style="white-space: pre;
"> </span><a moz-do-not-send="true" href="http://www.deltaxml.com/">http://www.deltaxml.com</a></div>
<div style="font-size: 11px; ">Malvern Hills Science
Park, Malvern, Worcs, WR14 3SZ, UK</div>
<div style="font-size: 11px; ">Registered in England
02528681 Reg. Office: Monsell House, WR8 0QN, UK</div>
</div>
</div>
</div>
</div>
<br>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
oXygen-sdk mailing list
<a class="moz-txt-link-abbreviated" href="mailto:oXygen-sdk@oxygenxml.com">oXygen-sdk@oxygenxml.com</a>
<a class="moz-txt-link-freetext" href="http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk">http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk</a>
</pre>
</blockquote>
<br>
</div>
_______________________________________________<br>oXygen-sdk mailing list<br><a href="mailto:oXygen-sdk@oxygenxml.com">oXygen-sdk@oxygenxml.com</a><br><a href="http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk">http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk</a><br></blockquote></div><br></div></body></html>