@API(type=INTERNAL, src=PUBLIC) public class DITAExternalObjectInsertionHandler extends AuthorExternalObjectInsertionHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ONLY_TEXT_CONTENT_TASK_STYLESHEET
An XSLT stylesheet for extracting the entire text content
(and only the text content) from any input XML, except the text from elements:
xhtml:span[contains(@style, 'mso-list:Ignore')]
|
ONLY_TEXT_CONTENT_STYLESHEET
DND_DB_TREE, DND_DITA_MAPS_MANAGER, DND_EXTERNAL, DND_IMAGE_PREVIEW, DND_PROJECT_TREE, PASTE
Constructor and Description |
---|
DITAExternalObjectInsertionHandler() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getImporterStylesheetFileName(AuthorAccess authorAccess)
Get the file name of the main Author paste stylesheet.
|
protected java.lang.String |
getOnlyTextContentStylesheet(AuthorAccess authorAccess)
Gets an XSLT stylesheet that can extract the entire text content (and only the text content)
from any input XML.
|
void |
insertURLs(AuthorAccess authorAccess,
java.util.List<java.net.URL> urls,
int source)
A list of URLs need to be inserted at the caret position, probably as links.
|
void |
insertURLs(AuthorAccess authorAccess,
java.util.List<java.net.URL> urls,
java.util.List<ReferenceType> types,
int source)
A list of URLs need to be inserted at the caret position, probably as links.
|
acceptSource, acceptURLs, checkImportedXHTMLContentIsPreservedEntirely, containOnlyBinaryResources, containOnlyImages, createImporterStylesheetSource, createListsPreprocessingStylesheet, createSectionsPreprocessingStylesheet, getBaseURLAtCaretPosition, getContextPathNamesAndUris, getDescription, getListsPreprocessingStylesheetFileName, getSectionsPreprocessingStylesheetFileName, insertXHTMLFragment, simpleTransform
public static final java.lang.String ONLY_TEXT_CONTENT_TASK_STYLESHEET
public void insertURLs(AuthorAccess authorAccess, java.util.List<java.net.URL> urls, java.util.List<ReferenceType> types, int source) throws AuthorOperationException
AuthorExternalObjectInsertionHandler
source
of the insertion can be a paste event or a
drag and drop event.
AuthorExternalObjectInsertionHandler.acceptURLs(AuthorAccess, List, int)
returned true
for the same source
and urls
list.
insertURLs
in class AuthorExternalObjectInsertionHandler
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 the AuthorExternalObjectInsertionHandler
constants.AuthorOperationException
AuthorExternalObjectInsertionHandler.insertURLs(ro.sync.ecss.extensions.api.AuthorAccess, java.util.List, java.util.List, int)
public void insertURLs(AuthorAccess authorAccess, java.util.List<java.net.URL> urls, int source) throws AuthorOperationException
AuthorExternalObjectInsertionHandler
source
of the insertion can be a paste event or a
drag and drop event.
AuthorExternalObjectInsertionHandler.acceptURLs(AuthorAccess, List, int)
returned true
for the same source
and urls
list.
insertURLs
in class AuthorExternalObjectInsertionHandler
authorAccess
- The author accessurls
- The list of URLs.source
- The source of the URLs, one of the AuthorExternalObjectInsertionHandler
constants.AuthorOperationException
AuthorExternalObjectInsertionHandler.insertURLs(ro.sync.ecss.extensions.api.AuthorAccess, java.util.List, int)
protected java.lang.String getImporterStylesheetFileName(AuthorAccess authorAccess)
AuthorExternalObjectInsertionHandler
getImporterStylesheetFileName
in class AuthorExternalObjectInsertionHandler
authorAccess
- The author access API.AuthorExternalObjectInsertionHandler.getImporterStylesheetFileName(ro.sync.ecss.extensions.api.AuthorAccess)
protected java.lang.String getOnlyTextContentStylesheet(AuthorAccess authorAccess)
getOnlyTextContentStylesheet
in class AuthorExternalObjectInsertionHandler
authorAccess
- The author access© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.