A stylesheet extension class is any class having a public constructor having the following signature:
In the CSS stylesheet used to style the document being edited, using the following proprietary at-rule in :
@extension "StyleSheetExtension navy white";
No requirements other than a public constructor having the above signature. However, this constructor generally has side effects such as registering dependencies between the view of an element and some of its attributes (
ViewFactoryBase is XXE style engine), registering intrinsic styles (
StyleSpecs), registering custom view components with the
CustomViewManager, etc. See sample stylesheet extension class.