Download XML Author 10.3 User Manual for Eclipse
Transcript
<oXygen/> XML Editor Developer
Guide
<ref location="referred.xml">Reference</ref>
When no reference resolver is specified, the reference has the following layout:
Figure 7.33. Reference with no specified reference resolver
When the above implementation is configured, the reference has the expected layout:
Figure 7.34. Reference with reference resolver
Configuring CSS Styles Filter
You can modify the CSS styles for each ro.sync.ecss.extensions.api.node.AuthorNode rendered in
the Author page using an implementation of ro.sync.ecss.extensions.api.StylesFilter You can
implement the various callbacks of the interface either by returning the default value given by <oXygen/> or by contributing to the value. The received styles ro.sync.ecss.css.Styles can be processed and values can be
overwritten with your own. For example you can override the KEY_BACKGROUND_COLOR style to return your own
implementation of ro.sync.exml.view.graphics.Color or override the KEY_FONT style to return your
own implementation of ro.sync.exml.view.graphics.Font.
For instance in our simple document example the filter can change the value of the KEY_FONT property for the table
element:
package simple.documentation.framework;
import
import
import
import
ro.sync.ecss.css.Styles;
ro.sync.ecss.extensions.api.StylesFilter;
ro.sync.ecss.extensions.api.node.AuthorNode;
ro.sync.exml.view.graphics.Font;
public class SDFStylesFilter implements StylesFilter {
public Styles filter(Styles styles, AuthorNode authorNode) {
if (AuthorNode.NODE_TYPE_ELEMENT == authorNode.getType()
&& "table".equals(authorNode.getName())) {
styles.setProperty(Styles.KEY_FONT, new Font(null, Font.BOLD, 12));
}
return styles;
}
}
198
Related documents
XML Editor 10.3 User Manual for Eclipse
XML Author 10.3 User Manual
XML Author 11.2 User Manual for Eclipse
XML Editor 10.3 User Manual
XML Editor 11.2 User Manual
Oxygen XML Author 12.2
XML Editor User Manual
XML Editor 11.2 User Manual for Eclipse
Oxygen XML Author Eclipse Plugin 15.2
XML Author 11.2 User Manual
User Manual
Oxygen XML Editor 16.1