Package ro.sync.ecss.extensions.docbook
Class DocBookExtensionsBundleBase
- java.lang.Object
-
- ro.sync.ecss.extensions.api.ExtensionsBundle
-
- ro.sync.ecss.extensions.docbook.DocBookExtensionsBundleBase
-
- All Implemented Interfaces:
Extension
- Direct Known Subclasses:
DocBook4ExtensionsBundle
,DocBook5ExtensionsBundle
@API(type=INTERNAL, src=PUBLIC) public abstract class DocBookExtensionsBundleBase extends ExtensionsBundle
The DocBook framework extensions bundle.
-
-
Constructor Summary
Constructors Constructor Description DocBookExtensionsBundleBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description AuthorTableCellSepProvider
createAuthorTableCellSepProvider()
Creates a newAuthorTableCellSepProvider
instance responsible for providing information about the table cells painting their separators.AuthorTableCellSpanProvider
createAuthorTableCellSpanProvider()
Creates a newAuthorTableCellSpanProvider
instance responsible for providing information about the table cells spanning.AuthorTableColumnWidthProvider
createAuthorTableColumnWidthProvider()
Creates a newAuthorTableColumnWidthProvider
instance responsible for providing information and for handling modifications regarding table width and column widths.EditPropertiesHandler
createEditPropertiesHandler()
A custom implementation to handle editing properties of an author node.LinkTextResolver
createLinkTextResolver()
Creates a newLinkTextResolver
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 newSchemaManagerFilter
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 anAuthorImageDecorator
.protected abstract java.lang.String
getDocumentNamespace()
SpellCheckerHelper
getSpellCheckerHelper()
Get a helper for the spell checker.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.-
Methods inherited from class ro.sync.ecss.extensions.api.ExtensionsBundle
createAttributesValueEditor, createAuthorAWTDndListener, createAuthorBreadCrumbCustomizer, createAuthorExtensionStateListener, createAuthorOutlineCustomizer, createAuthorPreloadProcessor, createAuthorReferenceResolver, createAuthorStylesFilter, createAuthorSWTDndListener, createCustomAttributeValueEditor, createElementLocatorProvider, createExternalObjectInsertionHandler, createIDTypeRecognizer, createTextPageExternalObjectInsertionHandler, createTextSWTDndListener, customizeLinkTooltipDescription, getAuthorSchemaAwareEditingHandler, getAuthorTableOperationsHandler, getClipboardFragmentProcessor, getDocumentTypeID, getDocumentTypeName, getHelpPageID, getProfilingConditionalTextProvider, getUniqueAttributesIdentifier, getWebappExtensionsProvier, isContentReference, resolveCustomAttributeValue, resolveCustomHref, resolveCustomHref, setDocumentTypeName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ro.sync.ecss.extensions.api.Extension
getDescription
-
-
-
-
Method Detail
-
createAuthorTableCellSpanProvider
public AuthorTableCellSpanProvider createAuthorTableCellSpanProvider()
Description copied from class:ExtensionsBundle
Creates a newAuthorTableCellSpanProvider
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.- Overrides:
createAuthorTableCellSpanProvider
in classExtensionsBundle
- Returns:
- A new
AuthorTableCellSpanProvider
instance. - See Also:
ExtensionsBundle.createAuthorTableCellSpanProvider()
-
createAuthorTableColumnWidthProvider
public AuthorTableColumnWidthProvider createAuthorTableColumnWidthProvider()
Description copied from class:ExtensionsBundle
Creates a newAuthorTableColumnWidthProvider
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.- Overrides:
createAuthorTableColumnWidthProvider
in classExtensionsBundle
- Returns:
- A new
AuthorTableColumnWidthProvider
instance. - See Also:
ExtensionsBundle.createAuthorTableColumnWidthProvider()
-
createAuthorTableCellSepProvider
public AuthorTableCellSepProvider createAuthorTableCellSepProvider()
Description copied from class:ExtensionsBundle
Creates a newAuthorTableCellSepProvider
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.- Overrides:
createAuthorTableCellSepProvider
in classExtensionsBundle
- Returns:
- A new
AuthorTableCellSepProvider
instance. - See Also:
ExtensionsBundle.createAuthorTableCellSepProvider()
-
getDocumentNamespace
protected abstract java.lang.String getDocumentNamespace()
- Returns:
- The document namespace.
-
createSchemaManagerFilter
public SchemaManagerFilter createSchemaManagerFilter()
Description copied from class:ExtensionsBundle
Creates a newSchemaManagerFilter
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.- Overrides:
createSchemaManagerFilter
in classExtensionsBundle
- Returns:
- A new
SchemaManagerFilter
instance. - See Also:
ExtensionsBundle.createSchemaManagerFilter()
-
createXMLNodeCustomizer
public XMLNodeRendererCustomizer createXMLNodeCustomizer()
Description copied from class:ExtensionsBundle
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.- Overrides:
createXMLNodeCustomizer
in classExtensionsBundle
- Returns:
- The XML node customizer.
- See Also:
ExtensionsBundle.createXMLNodeCustomizer()
-
createLinkTextResolver
public LinkTextResolver createLinkTextResolver()
Description copied from class:ExtensionsBundle
Creates a newLinkTextResolver
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.- Overrides:
createLinkTextResolver
in classExtensionsBundle
- Returns:
- A new
LinkTextResolver
instance. - See Also:
ExtensionsBundle.createLinkTextResolver()
-
resolveCustomHref
public java.net.URL resolveCustomHref(java.net.URL currentEditorURL, AuthorNode contextNode, java.lang.String linkHref, AuthorAccess authorAccess) throws java.io.IOException
Description copied from class:ExtensionsBundle
When clicking a href the bundle can custom solve the href to an URL.- Overrides:
resolveCustomHref
in classExtensionsBundle
- Parameters:
currentEditorURL
- 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.- Returns:
- The resolved absolute URL if null if the default behavior will be performed
- Throws:
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.- See Also:
ExtensionsBundle.resolveCustomHref(java.net.URL, ro.sync.ecss.extensions.api.node.AuthorNode, java.lang.String, ro.sync.ecss.extensions.api.AuthorAccess)
-
getAuthorActionEventHandler
public AuthorActionEventHandler getAuthorActionEventHandler()
Description copied from class:ExtensionsBundle
Creates a special handler for author actions events (such as key events). These events normally have built-in handling but this handler gets a chance to perform something different.- Overrides:
getAuthorActionEventHandler
in classExtensionsBundle
- Returns:
- An event handler.
- See Also:
ExtensionsBundle.getAuthorActionEventHandler()
-
getAuthorImageDecorator
public AuthorImageDecorator getAuthorImageDecorator()
Description copied from class:ExtensionsBundle
Get anAuthorImageDecorator
. Permits decoration of the images that are displayed in the Author view. For instance it can overlay some meta-information over the image.- Overrides:
getAuthorImageDecorator
in classExtensionsBundle
- Returns:
- An
AuthorImageDecorator
, ornull
. - See Also:
ExtensionsBundle.getAuthorImageDecorator()
-
createEditPropertiesHandler
public EditPropertiesHandler createEditPropertiesHandler()
Description copied from class:ExtensionsBundle
A custom implementation to handle editing properties of an author node. For example when a user double clicks on an element tag we will invoke this extension and a specific dialog can be presented.- Overrides:
createEditPropertiesHandler
in classExtensionsBundle
- Returns:
- An implementation that can edit the properties of nodes.
- See Also:
ExtensionsBundle.createEditPropertiesHandler()
-
getSpellCheckerHelper
public SpellCheckerHelper getSpellCheckerHelper()
Description copied from class:ExtensionsBundle
Get a helper for the spell checker.- Overrides:
getSpellCheckerHelper
in classExtensionsBundle
- Returns:
- Helper utilities implemented at framework level.
- See Also:
ExtensionsBundle.getSpellCheckerHelper()
-
-