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 newAuthorTableCellSepProviderinstance responsible for providing information about the table cells painting their separators.Creates a newAuthorTableCellSpanProviderinstance responsible for providing information about the table cells spanning.Creates a newAuthorTableColumnWidthProviderinstance 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 newLinkTextResolverinstance responsible for resolving a specific link marked in the CSS file and returning a text content from the targeted location.Creates a newSchemaManagerFilterinstance 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 StringGet 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, setDocumentTypeNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ro.sync.ecss.extensions.api.Extension
getDescription
-
Constructor Details
-
DocBookExtensionsBundleBase
public DocBookExtensionsBundleBase()
-
-
Method Details
-
createAuthorTableCellSpanProvider
Description copied from class:ExtensionsBundleCreates a newAuthorTableCellSpanProviderinstance 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:
createAuthorTableCellSpanProviderin classExtensionsBundle- Returns:
- A new
AuthorTableCellSpanProviderinstance. - See Also:
-
createAuthorTableColumnWidthProvider
Description copied from class:ExtensionsBundleCreates a newAuthorTableColumnWidthProviderinstance 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:
createAuthorTableColumnWidthProviderin classExtensionsBundle- Returns:
- A new
AuthorTableColumnWidthProviderinstance. - See Also:
-
createAuthorTableCellSepProvider
Description copied from class:ExtensionsBundleCreates a newAuthorTableCellSepProviderinstance 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:
createAuthorTableCellSepProviderin classExtensionsBundle- Returns:
- A new
AuthorTableCellSepProviderinstance. - See Also:
-
getDocumentNamespace
- Returns:
- The document namespace.
-
createSchemaManagerFilter
Description copied from class:ExtensionsBundleCreates a newSchemaManagerFilterinstance 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:
createSchemaManagerFilterin classExtensionsBundle- Returns:
- A new
SchemaManagerFilterinstance. - See Also:
-
createXMLNodeCustomizer
Description copied from class:ExtensionsBundleCreate 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:
createXMLNodeCustomizerin classExtensionsBundle- Returns:
- The XML node customizer.
- See Also:
-
createLinkTextResolver
Description copied from class:ExtensionsBundleCreates a newLinkTextResolverinstance 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:
createLinkTextResolverin classExtensionsBundle- Returns:
- A new
LinkTextResolverinstance. - See Also:
-
resolveCustomHref
public URL resolveCustomHref(URL currentEditorURL, AuthorNode contextNode, String linkHref, AuthorAccess authorAccess) throws IOException Description copied from class:ExtensionsBundleWhen clicking a href the bundle can custom solve the href to an URL.- Overrides:
resolveCustomHrefin 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:ExtensionsBundleCreates 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:
getAuthorActionEventHandlerin classExtensionsBundle- Returns:
- An event handler.
- See Also:
-
getAuthorImageDecorator
Description copied from class:ExtensionsBundleGet 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:
getAuthorImageDecoratorin classExtensionsBundle- Returns:
- An
AuthorImageDecorator, ornull. - See Also:
-
createEditPropertiesHandler
Description copied from class:ExtensionsBundleA 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:
createEditPropertiesHandlerin classExtensionsBundle- Returns:
- An implementation that can edit the properties of nodes.
- See Also:
-
getSpellCheckerHelper
Description copied from class:ExtensionsBundleGet a helper for the spell checker.- Overrides:
getSpellCheckerHelperin classExtensionsBundle- Returns:
- Helper utilities implemented at framework level.
- See Also:
-