Package ro.sync.ecss.extensions.dita.map
Class DITAMapSchemaAwareEditingHandler
java.lang.Object
ro.sync.ecss.extensions.api.AuthorSchemaAwareEditingHandlerAdapter
ro.sync.ecss.extensions.dita.DITASchemaAwareEditingHandler
ro.sync.ecss.extensions.dita.map.DITAMapSchemaAwareEditingHandler
- All Implemented Interfaces:
AuthorSchemaAwareEditingHandler
@API(type=INTERNAL,
src=PUBLIC)
public class DITAMapSchemaAwareEditingHandler
extends DITASchemaAwareEditingHandler
DITA Map Schema aware editing handler.
- Since:
- 27
-
Nested Class Summary
Nested classes/interfaces inherited from class ro.sync.ecss.extensions.api.AuthorSchemaAwareEditingHandlerAdapter
AuthorSchemaAwareEditingHandlerAdapter.WrapInAncestorsOptions -
Field Summary
Fields inherited from class ro.sync.ecss.extensions.api.AuthorSchemaAwareEditingHandlerAdapter
lastHandlerResultFields inherited from interface ro.sync.ecss.extensions.api.AuthorSchemaAwareEditingHandler
ACTION_ID_BACKSPACE, ACTION_ID_CUT, ACTION_ID_DELETE, ACTION_ID_DND, ACTION_ID_INSERT_FRAGMENT, ACTION_ID_PASTE, ACTION_ID_TYPING, CREATE_FRAGMENT_PURPOSE_COPY, CREATE_FRAGMENT_PURPOSE_CUT, CREATE_FRAGMENT_PURPOSE_DND_COPY, CREATE_FRAGMENT_PURPOSE_DND_MOVE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanhandlePasteFragment(int offset, AuthorDocumentFragment[] fragmentsToInsert, int actionId, AuthorAccess authorAccess) Handle an insert fragment event generated by: a Paste action.Methods inherited from class ro.sync.ecss.extensions.dita.DITASchemaAwareEditingHandler
canBeReplaced, changeElementsToMoveUpDown, getAncestorDetectionOptions, getPreferredElement, handleTyping, handleTypingFallbackMethods inherited from class ro.sync.ecss.extensions.api.AuthorSchemaAwareEditingHandlerAdapter
getLastResult, handleCreateDocumentFragment, handleDelete, handleDeleteElementTags, handleDeleteNodes, handleDeleteSelection, handleJoinElementsMethods 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.AuthorSchemaAwareEditingHandler
handleCodePointTyping, handleCodePointTypingFallback
-
Constructor Details
-
DITAMapSchemaAwareEditingHandler
public DITAMapSchemaAwareEditingHandler()
-
-
Method Details
-
handlePasteFragment
public boolean handlePasteFragment(int offset, AuthorDocumentFragment[] fragmentsToInsert, int actionId, AuthorAccess authorAccess) throws InvalidEditException Description copied from interface:AuthorSchemaAwareEditingHandlerHandle an insert fragment event generated by:- a Paste action. In this case, selection removal is handled before calling this method.
- a DND action. In this case source removal is handled after calling this method (unless an exception was thrown).
- an insert fragment event occurred as a result of an schema aware insert event,
like
AuthorDocumentController.insertXMLFragmentSchemaAware(String, int). Selection removal is handled before calling this method.
- Specified by:
handlePasteFragmentin interfaceAuthorSchemaAwareEditingHandler- Overrides:
handlePasteFragmentin classDITASchemaAwareEditingHandler- Parameters:
offset- Offset where the event occurred.fragmentsToInsert- Fragments to be inserted.actionId- ACTION_ID_PASTE if event was generated by paste action, ACTION_ID_DND if it was generated by a DND event or ACTION_ID_INSERT_FRAGMENT if the event was generated by anAuthorDocumentControllerschema aware insert method.authorAccess- Access class to the author functions.- Returns:
trueif the insertion was handled.- Throws:
InvalidEditException- This is an invalid edit and must be rejected.- See Also:
-