Package ro.sync.ecss.extensions.xhtml
Class XHTMLExtensionsBundle
java.lang.Object
ro.sync.ecss.extensions.api.ExtensionsBundle
ro.sync.ecss.extensions.xhtml.XHTMLExtensionsBundle
- All Implemented Interfaces:
Extension
The XHTML framework extensions bundle.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns theAuthorExtensionStateListenerwhich will be notified when the Author extension where it is defined is activated and deactivated during the detection process.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 newElementLocatorProviderinstance responsible for providing an implementation of anElementLocatorbased on the structure of a link.Create a handler which gets notified when external resources need to be inserted in the Author page.Creates a newIDTypeRecognizerinstance responsible for providing an implementation which can recognize ID declarations and references.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.Get theAuthorTableOperationsHandlerinstance responsible for handling table operations.Get a processor for Author Document Fragments in the clipboard (which will be pasted, dropped, etc).This should never returnnullif theOptionsStoragesupport it is intended to be used.getHelpPageID(String currentEditorPage) Get the help page ID for this particular framework extensions bundle.Get an unique attributes creator and identifier.Methods inherited from class ro.sync.ecss.extensions.api.ExtensionsBundle
createAttributesValueEditor, createAuthorAWTDndListener, createAuthorBreadCrumbCustomizer, createAuthorOutlineCustomizer, createAuthorPreloadProcessor, createAuthorReferenceResolver, createAuthorStylesFilter, createAuthorSWTDndListener, createAuthorTableCellSepProvider, createCustomAttributeValueEditor, createLinkTextResolver, createTextPageExternalObjectInsertionHandler, createTextSWTDndListener, customizeImageTooltipDescription, customizeLinkTooltipDescription, getAuthorSchemaAwareEditingHandler, getDocumentTypeName, getProfilingConditionalTextProvider, getSpellCheckerHelper, getWebappExtensionsProvier, isContentReference, resolveCustomAttributeValue, resolveCustomHref, resolveCustomHref, resolveCustomHref, setDocumentTypeName
-
Constructor Details
-
XHTMLExtensionsBundle
public XHTMLExtensionsBundle()
-
-
Method Details
-
createAuthorExtensionStateListener
Description copied from class:ExtensionsBundleReturns theAuthorExtensionStateListenerwhich 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.- Overrides:
createAuthorExtensionStateListenerin classExtensionsBundle- Returns:
- A new
AuthorExtensionStateListenerinstance. - See Also:
-
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:
-
getDescription
- Returns:
- The description of the extension.
- See Also:
-
getDocumentTypeID
Description copied from class:ExtensionsBundleThis should never returnnullif theOptionsStoragesupport it is intended to be used. If this returnsnullyou will not be able to addOptionListeneror store and retrieve any options at all.- Specified by:
getDocumentTypeIDin classExtensionsBundle- Returns:
- The unique identifier of the Document Type.
- See Also:
-
getUniqueAttributesIdentifier
Description copied from class:ExtensionsBundleGet an unique attributes creator and identifier.- Overrides:
getUniqueAttributesIdentifierin classExtensionsBundle- Returns:
- The unique attributes identifier
- See Also:
-
getClipboardFragmentProcessor
Description copied from class:ExtensionsBundleGet a processor for Author Document Fragments in the clipboard (which will be pasted, dropped, etc).- Overrides:
getClipboardFragmentProcessorin classExtensionsBundle- Returns:
- a processor for Author Document Fragments in the clipboard (which will be pasted, dropped, etc).
- See Also:
-
createElementLocatorProvider
Description copied from class:ExtensionsBundleCreates a newElementLocatorProviderinstance responsible for providing an implementation of anElementLocatorbased on the structure of a link. TheElementLocatoris 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.- Overrides:
createElementLocatorProviderin classExtensionsBundle- Returns:
- A new
ElementLocatorProviderinstance. - See Also:
-
createExternalObjectInsertionHandler
Description copied from class:ExtensionsBundleCreate a handler which gets notified when external resources need to be inserted in the Author page. The usual usage for this is to get notified when URLs are dropped from the project or DITA Maps manager in the Author page.- Overrides:
createExternalObjectInsertionHandlerin classExtensionsBundle- Returns:
- The External URLs handler
- See Also:
-
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:
-
getAuthorTableOperationsHandler
Description copied from class:ExtensionsBundleGet theAuthorTableOperationsHandlerinstance responsible for handling table operations.- Overrides:
getAuthorTableOperationsHandlerin classExtensionsBundle- Returns:
- Author table operations handler.
- See Also:
-
createIDTypeRecognizer
Description copied from class:ExtensionsBundleCreates a newIDTypeRecognizerinstance 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.- Overrides:
createIDTypeRecognizerin classExtensionsBundle- Returns:
- A new
IDTypeRecognizerinstance. - 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:
-
getHelpPageID
Description copied from class:ExtensionsBundleGet the help page ID for this particular framework extensions bundle. If the returned help page ID is an URL, a web browser will be opened pointing to that URL when the user presses F1 in the dialog or when using the Help button. If the returned help page ID is an identifier, when help is invoked, the application will open the Oxygen User's Manual and locate this identifier inside it.- Overrides:
getHelpPageIDin classExtensionsBundle- Parameters:
currentEditorPage- The current editor page mode (Text/Grid/Author/Schema), one of the constants in the "ro.sync.exml.editor.EditorPageConstants" interface.- Returns:
- The help page ID, by default no help page ID is returned.
- See Also:
-