@API(type=INTERNAL,
src=PUBLIC)
public class DITAExtensionsBundle
extends ExtensionsBundle
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DITA_KEYS_MANAGER_ATTRIBUTE
The DITA keys manager for the current editing session.
|
static java.lang.String |
DITA_ROOT_MAP_URL_ATTRIBUTE
The attribute name for the dita root map url.
|
protected ContextKeyManager |
keyManager
The key manager that is context aware and is used to resolve key refs.
|
protected ContextKeyManagerProvider |
keyManagerProvider
The provider for the key manager which is context aware and is used to resolve key refs.
|
| Constructor and Description |
|---|
DITAExtensionsBundle() |
| Modifier and Type | Method and Description |
|---|---|
AuthorExtensionStateListener |
createAuthorExtensionStateListener()
Returns the
AuthorExtensionStateListener which will be notified
when the Author extension where it is defined is activated and deactivated
during the detection process. |
AuthorReferenceResolver |
createAuthorReferenceResolver()
Creates a new
AuthorReferenceResolver instance used to expand
content references. |
AuthorTableCellSepProvider |
createAuthorTableCellSepProvider()
Creates a new
AuthorTableCellSepProvider instance
responsible for providing information about the table cells painting
their separators. |
AuthorTableCellSpanProvider |
createAuthorTableCellSpanProvider()
Creates a new
AuthorTableCellSpanProvider instance
responsible for providing information about the table cells spanning. |
AuthorTableColumnWidthProvider |
createAuthorTableColumnWidthProvider()
Creates a new
AuthorTableColumnWidthProvider instance
responsible for providing information and for handling modifications
regarding table width and column widths. |
protected ContextKeyManager |
createContextKeyManager(EditingSessionContext context)
Create a context key manager to be used when resolving keyrefs.
|
EditPropertiesHandler |
createEditPropertiesHandler()
A custom implementation to handle editing properties of an author node.
|
ElementLocatorProvider |
createElementLocatorProvider()
Creates a new
ElementLocatorProvider instance responsible
for providing an implementation of an ElementLocator
based on the structure of a link. |
AuthorExternalObjectInsertionHandler |
createExternalObjectInsertionHandler()
Create a handler which gets notified when external resources need to be inserted in the Author page.
|
IDTypeRecognizer |
createIDTypeRecognizer()
Creates a new
IDTypeRecognizer instance responsible
for providing an implementation which can recognize ID declarations and references. |
LinkTextResolver |
createLinkTextResolver()
Creates a new
LinkTextResolver instance responsible for resolving a
specific link marked in the CSS file and returning a text content from the
targeted location. |
SchemaManagerFilter |
createSchemaManagerFilter()
Creates a new
SchemaManagerFilter instance used to filter
the content completion proposals from the schema manager. |
XMLNodeRendererCustomizer |
createXMLNodeCustomizer()
Create an XML node customizer used for custom nodes rendering in the Author outline, Text page outline,
Author bread crumb, content completion window or the DITA Map view.
|
AuthorActionEventHandler |
getAuthorActionEventHandler()
Creates a special handler for author actions events (such as key events).
|
AuthorImageDecorator |
getAuthorImageDecorator()
Get an
AuthorImageDecorator. |
AuthorSchemaAwareEditingHandler |
getAuthorSchemaAwareEditingHandler()
If Schema Aware mode is active in Oxygen, all actions that can generate invalid content will be redirected toward
this support.
|
AuthorTableOperationsHandler |
getAuthorTableOperationsHandler()
Get the
AuthorTableOperationsHandler instance
responsible for handling table operations. |
ClipboardFragmentProcessor |
getClipboardFragmentProcessor()
Get a processor for Author Document Fragments in the clipboard (which will be pasted, dropped, etc).
|
java.lang.String |
getDescription() |
java.lang.String |
getDocumentTypeID()
This should never return
null if the OptionsStorage
support it is intended to be used. |
java.lang.String |
getHelpPageID(java.lang.String currentEditorPage)
Get the help page ID for this particular framework extensions bundle.
|
ContextKeyManager |
getKeyManager()
Returns the keys manager.
|
ProfilingConditionalTextProvider |
getProfilingConditionalTextProvider()
Creates a new
ProfilingConditionalTextProvider instance responsible
for providing custom support regarding profiling and conditional text. |
UniqueAttributesRecognizer |
getUniqueAttributesIdentifier()
Get an unique attributes creator and identifier.
|
boolean |
isContentReference(AuthorNode node)
Check if this node references another node which should replace it entirely.
|
java.net.URL |
resolveCustomHref(java.net.URL currentEditorURL,
AuthorNode contextNode,
java.lang.String linkHref,
AuthorAccess authorAccess)
When clicking a href the bundle can custom solve the href to an URL.
|
createAttributesValueEditor, createAuthorAWTDndListener, createAuthorBreadCrumbCustomizer, createAuthorOutlineCustomizer, createAuthorStylesFilter, createAuthorSWTDndListener, createCustomAttributeValueEditor, createTextSWTDndListener, getDocumentTypeName, resolveCustomHref, resolveCustomHref, setDocumentTypeNamepublic static final java.lang.String DITA_ROOT_MAP_URL_ATTRIBUTE
public static final java.lang.String DITA_KEYS_MANAGER_ATTRIBUTE
protected ContextKeyManager keyManager
protected final ContextKeyManagerProvider keyManagerProvider
public AuthorExtensionStateListener createAuthorExtensionStateListener()
ExtensionsBundleAuthorExtensionStateListener which will be notified
when the Author extension where it is defined is activated and deactivated
during the detection process.
This method is called each time the Document Type association where the
Author extension and the extensions bundle are defined matches a document
opened in an Author page.createAuthorExtensionStateListener in class ExtensionsBundleAuthorExtensionStateListener instance.ExtensionsBundle.createAuthorExtensionStateListener()protected ContextKeyManager createContextKeyManager(EditingSessionContext context)
DITA_ROOT_MAP_URL_ATTRIBUTE
and if it was set, the specified map is used. Otherwise, it uses the
default ditamap in Autor.context - The editing session context.public ClipboardFragmentProcessor getClipboardFragmentProcessor()
ExtensionsBundlegetClipboardFragmentProcessor in class ExtensionsBundleExtensionsBundle.getClipboardFragmentProcessor()public AuthorReferenceResolver createAuthorReferenceResolver()
ExtensionsBundleAuthorReferenceResolver instance used to expand
content references.
The method is called each time an opened document in an Author editor page
matches the document type association where the extensions bundle is defined.createAuthorReferenceResolver in class ExtensionsBundleAuthorReferenceResolver instance.ExtensionsBundle.createAuthorReferenceResolver()public AuthorTableCellSpanProvider createAuthorTableCellSpanProvider()
ExtensionsBundleAuthorTableCellSpanProvider instance
responsible for providing information about the table cells spanning.
The table cell span provider is not reused between different tables.
The method is called for each table in the document so a new instance
should be provided each time.createAuthorTableCellSpanProvider in class ExtensionsBundleAuthorTableCellSpanProvider instance.ExtensionsBundle.createAuthorTableCellSpanProvider()public AuthorTableColumnWidthProvider createAuthorTableColumnWidthProvider()
ExtensionsBundleAuthorTableColumnWidthProvider instance
responsible for providing information and for handling modifications
regarding table width and column widths.
The table column width provider is not reused between different tables.
The method is called for each table in the document so a new instance
should be provided each time.createAuthorTableColumnWidthProvider in class ExtensionsBundleAuthorTableColumnWidthProvider instance.ExtensionsBundle.createAuthorTableColumnWidthProvider()public AuthorTableCellSepProvider createAuthorTableCellSepProvider()
ExtensionsBundleAuthorTableCellSepProvider instance
responsible for providing information about the table cells painting
their separators.
The table cell separators provider is not reused between different tables.
The method is called for each table in the document so a new instance
should be provided each time.createAuthorTableCellSepProvider in class ExtensionsBundleAuthorTableCellSepProvider instance.ExtensionsBundle.createAuthorTableCellSepProvider()public java.lang.String getDescription()
Extension.getDescription()public java.lang.String getDocumentTypeID()
ExtensionsBundlenull if the OptionsStorage
support it is intended to be used.
If this returns null you will not be able to add
OptionListener or store and retrieve
any options at all.getDocumentTypeID in class ExtensionsBundleExtensionsBundle.getDocumentTypeID()public UniqueAttributesRecognizer getUniqueAttributesIdentifier()
ExtensionsBundlegetUniqueAttributesIdentifier in class ExtensionsBundleExtensionsBundle.getUniqueAttributesIdentifier()public ElementLocatorProvider createElementLocatorProvider()
ExtensionsBundleElementLocatorProvider instance responsible
for providing an implementation of an ElementLocator
based on the structure of a link. The ElementLocator is capable
of locating an element pointed by the supplied link.
This method is called each time an element needs to be located based on a
link specification.createElementLocatorProvider in class ExtensionsBundleElementLocatorProvider instance.ExtensionsBundle.createElementLocatorProvider()public java.net.URL resolveCustomHref(java.net.URL currentEditorURL,
AuthorNode contextNode,
java.lang.String linkHref,
AuthorAccess authorAccess)
throws java.io.IOException,
CustomResolverException
ExtensionsBundleresolveCustomHref in class ExtensionsBundlecurrentEditorURL - The URL of the current editor.contextNode - The context node in which the href needs to be computed.linkHref - The link href as derrived from the CSSauthorAccess - The Author Access.CustomResolverException - If the link is recognized by the extensions bundle, but could not be mapped
to an URL. It offers a solution to the user. This solution
is invoked when the user clicks on the error message.java.io.IOException - If the link is recognized by the extensions bundle, but could not be mapped
to an URL.ExtensionsBundle.resolveCustomHref(java.net.URL, ro.sync.ecss.extensions.api.node.AuthorNode, java.lang.String, ro.sync.ecss.extensions.api.AuthorAccess)public AuthorSchemaAwareEditingHandler getAuthorSchemaAwareEditingHandler()
ExtensionsBundleInvalidEditException.
It is recommended to extend class AuthorSchemaAwareEditingHandlerAdapter in order to be protected from any
API additions that may occur in interface AuthorSchemaAwareEditingHandler.getAuthorSchemaAwareEditingHandler in class ExtensionsBundleExtensionsBundle.getAuthorSchemaAwareEditingHandler()public SchemaManagerFilter createSchemaManagerFilter()
ExtensionsBundleSchemaManagerFilter instance used to filter
the content completion proposals from the schema manager.
This method is called each time the document type where the extensions bundle
is defined matches a document opened in an editor.createSchemaManagerFilter in class ExtensionsBundleSchemaManagerFilter instance.ExtensionsBundle.createSchemaManagerFilter()public AuthorExternalObjectInsertionHandler createExternalObjectInsertionHandler()
ExtensionsBundlecreateExternalObjectInsertionHandler in class ExtensionsBundleExtensionsBundle.createExternalObjectInsertionHandler()public boolean isContentReference(AuthorNode node)
ExtensionsBundleisContentReference in class ExtensionsBundlenode - The nodetrue if this node references another node which should replace it entirely.ExtensionsBundle.isContentReference(ro.sync.ecss.extensions.api.node.AuthorNode)public ProfilingConditionalTextProvider getProfilingConditionalTextProvider()
ExtensionsBundleProfilingConditionalTextProvider instance responsible
for providing custom support regarding profiling and conditional text.getProfilingConditionalTextProvider in class ExtensionsBundleProfilingConditionalTextProvider instance.ExtensionsBundle.getProfilingConditionalTextProvider()public XMLNodeRendererCustomizer createXMLNodeCustomizer()
ExtensionsBundlecreateXMLNodeCustomizer in class ExtensionsBundleExtensionsBundle.createXMLNodeCustomizer()public AuthorTableOperationsHandler getAuthorTableOperationsHandler()
ExtensionsBundleAuthorTableOperationsHandler instance
responsible for handling table operations.getAuthorTableOperationsHandler in class ExtensionsBundleExtensionsBundle.getAuthorTableOperationsHandler()public LinkTextResolver createLinkTextResolver()
ExtensionsBundleLinkTextResolver instance responsible for resolving a
specific link marked in the CSS file and returning a text content from the
targeted location. This text content will be presented as a static text
associated with the link in author page.
This resolver will be used when function oxy_link-text() is encountered
inside the CSS rules on the 'content' property.createLinkTextResolver in class ExtensionsBundleLinkTextResolver instance.ExtensionsBundle.createLinkTextResolver()public IDTypeRecognizer createIDTypeRecognizer()
ExtensionsBundleIDTypeRecognizer instance responsible
for providing an implementation which can recognize ID declarations and references.
This method is called each time an ID must be recognized or certain ID-aware searches or refactory actions are performed.createIDTypeRecognizer in class ExtensionsBundleIDTypeRecognizer instance.ExtensionsBundle.createIDTypeRecognizer()public ContextKeyManager getKeyManager()
public AuthorActionEventHandler getAuthorActionEventHandler()
ExtensionsBundlegetAuthorActionEventHandler in class ExtensionsBundleExtensionsBundle.getAuthorActionEventHandler()public AuthorImageDecorator getAuthorImageDecorator()
ExtensionsBundleAuthorImageDecorator. Permits decoration of the images that
are displayed in the Author view. For instance it can overlay some meta-information
over the image.getAuthorImageDecorator in class ExtensionsBundleAuthorImageDecorator, or null.ExtensionsBundle.getAuthorImageDecorator()public EditPropertiesHandler createEditPropertiesHandler()
ExtensionsBundlecreateEditPropertiesHandler in class ExtensionsBundleExtensionsBundle.createEditPropertiesHandler()public java.lang.String getHelpPageID(java.lang.String currentEditorPage)
ExtensionsBundlegetHelpPageID in class ExtensionsBundlecurrentEditorPage - The current editor page mode (Text/Grid/Author/Schema), one of the constants in the "ro.sync.exml.editor.EditorPageConstants" interface.ExtensionsBundle.getHelpPageID(java.lang.String)© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.