ContentEditingNativeChangeEdit

class ContentEditingNativeChangeEdit(pageIndex: Int, textBlockId: UUID, undoData: UndoData, redoData: UndoData, val externalControlState: ExternalControlState, deleted: Boolean? = null) : ContentEditingEdit

Any content changes made by the NativeContentEditor (which is text-change and change of style (font, textcolor, textsize)) can simply be un-/redone by calling NativeContentEditingCommand.RESTORE with a specific HistoryIndex and the id of the textblock. Additionally the isDeleted flag of the textblock is by this class, too (since deletion of a textblock always goes in context with deleting all the block's text)

Constructors

Link copied to clipboard
constructor(pageIndex: Int, textBlockId: UUID, undoData: UndoData, redoData: UndoData, externalControlState: ExternalControlState, deleted: Boolean? = null)

Properties

Link copied to clipboard
val externalControlState: ExternalControlState

Functions

Link copied to clipboard
fun isDeleted(forUndo: Boolean): Boolean?
Link copied to clipboard
fun selEnd(forUndo: Boolean): Int?
Link copied to clipboard
fun selStart(forUndo: Boolean): Int?
Link copied to clipboard
fun version(forUndo: Boolean): UInt