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 -
Method Summary
Modifier and TypeMethodDescriptionCreates a newAuthorTableCellSepProvider
instance responsible for providing information about the table cells painting their separators.Creates a newAuthorTableCellSpanProvider
instance responsible for providing information about the table cells spanning.Creates a newAuthorTableColumnWidthProvider
instance responsible for providing information and for handling modifications regarding table width and column widths.A custom implementation to handle editing properties of an author node.Creates a newLinkTextResolver
instance responsible for resolving a specific link marked in the CSS file and returning a text content from the targeted location.Creates a newSchemaManagerFilter
instance used to filter the content completion proposals from the schema manager.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.Creates a special handler for author actions events (such as key events).Get anAuthorImageDecorator
.protected abstract String
Get a helper for the spell checker.resolveCustomHref
(URL currentEditorURL, AuthorNode contextNode, 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, customizeImageTooltipDescription, 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
-
Constructor Details
-
DocBookExtensionsBundleBase
public DocBookExtensionsBundleBase()
-
-
Method Details
-
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:
-
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:
-
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:
-
getDocumentNamespace
- Returns:
- The document namespace.
-
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:
-
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:
-
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:
-
resolveCustomHref
public URL resolveCustomHref(URL currentEditorURL, AuthorNode contextNode, String linkHref, AuthorAccess authorAccess) throws 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.IOException
- If the link is recognized by the extensions bundle, but could not be mapped to an URL.- See Also:
-
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:
-
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:
-
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:
-
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:
-