Package ro.sync.ecss.extensions.dita.map
Class DITAMapExternalObjectInsertionHandler
java.lang.Object
ro.sync.ecss.extensions.api.AuthorExternalObjectInsertionHandler
ro.sync.ecss.extensions.dita.DITAExternalObjectInsertionHandler
ro.sync.ecss.extensions.dita.map.DITAMapExternalObjectInsertionHandler
- All Implemented Interfaces:
Extension,ExternalObjectInsertionSources
@API(type=INTERNAL,
src=PUBLIC)
public class DITAMapExternalObjectInsertionHandler
extends DITAExternalObjectInsertionHandler
Dropped URLs handler
-
Field Summary
Fields inherited from interface ro.sync.ecss.extensions.api.ExternalObjectInsertionSources
DND_DB_TREE, DND_DITA_COMPONENTS_TAB, DND_DITA_KEYS_VIEW, DND_DITA_MAPS_MANAGER, DND_DITA_MEDIA_TAB, DND_EXTERNAL, DND_IMAGE_PREVIEW, DND_PROJECT_TREE, PASTE -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.DITAMapExternalObjectInsertionHandler(ContextKeyManagerProvider keyManagerProvider) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidinsertURLs(AuthorAccess authorAccess, List<URL> urls, int source) A list of URLs need to be inserted at the caret position, probably as links.voidinsertURLs(AuthorAccess authorAccess, List<URL> urls, List<ReferenceType> types, int source) A list of URLs need to be inserted at the caret position, probably as links.Methods inherited from class ro.sync.ecss.extensions.dita.DITAExternalObjectInsertionHandler
getFilterContentOfOutputStylesheet, getImporterStylesheetFileName, getOnlyTextContentStylesheetMethods inherited from class ro.sync.ecss.extensions.api.AuthorExternalObjectInsertionHandler
acceptSource, acceptURLs, checkImportedXHTMLContentIsPreservedEntirely, containOnlyBinaryResources, containOnlyImages, createImporterStylesheetSource, getBaseURLAtCaretPosition, getClassStylesheetResource, getContextPathNamesAndUris, getDescription, insertImportedContent, insertXHTMLFragment, setParametersToTransform, simpleTransform, simpleTransform
-
Constructor Details
-
DITAMapExternalObjectInsertionHandler
public DITAMapExternalObjectInsertionHandler()Default constructor. -
DITAMapExternalObjectInsertionHandler
Constructor.- Parameters:
keyManagerProvider- The key manager provider
-
-
Method Details
-
insertURLs
public void insertURLs(AuthorAccess authorAccess, List<URL> urls, List<ReferenceType> types, int source) throws AuthorOperationException Description copied from class:AuthorExternalObjectInsertionHandlerA list of URLs need to be inserted at the caret position, probably as links.
Thesourceof the insertion can be a paste event or a drag and drop event.
This call back is received ifAuthorExternalObjectInsertionHandler.acceptURLs(AuthorAccess, List, int)returnedtruefor the samesourceandurlslist.
You can use it to link to those specific files/URLs.- Overrides:
insertURLsin classDITAExternalObjectInsertionHandler- Parameters:
authorAccess- The author accessurls- The list of URLs.types- The type of the URL reference - if null, the type will be inferred.source- The source of the URLs, one of theAuthorExternalObjectInsertionHandlerconstants.- Throws:
AuthorOperationException- See Also:
-
insertURLs
public void insertURLs(AuthorAccess authorAccess, List<URL> urls, int source) throws AuthorOperationException Description copied from class:AuthorExternalObjectInsertionHandlerA list of URLs need to be inserted at the caret position, probably as links.
Thesourceof the insertion can be a paste event or a drag and drop event.
This call back is received ifAuthorExternalObjectInsertionHandler.acceptURLs(AuthorAccess, List, int)returnedtruefor the samesourceandurlslist.
You can use it to link to those specific files/URLs.- Overrides:
insertURLsin classDITAExternalObjectInsertionHandler- Parameters:
authorAccess- The author accessurls- The list of URLs.source- The source of the URLs, one of theAuthorExternalObjectInsertionHandlerconstants.- Throws:
AuthorOperationException- See Also:
-