Package-level declarations

Types

Link copied to clipboard
abstract class ContentEditingEdit(@IntRange(from = 0) pageIndex: Int = 0, val textBlockId: String) : PageEdit

Base class for all content editing undo/redo actions. All edits need the id of the affected text block and also the pageIndex on which the edit happened, so that we can scroll there, if required.

Link copied to clipboard
class ContentEditingNativeChangeEdit(pageIndex: Int, textBlockId: String, 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).

Link copied to clipboard
class ContentEditingTextBlockAlignmentEdit(pageIndex: Int, textBlockId: String, oldAlignment: Alignment, newAlignment: Alignment) : ContentEditingEdit

Content editing undo-edit for text alignment changes.

Link copied to clipboard
class ContentEditingTextBlockLineSpacingEdit(pageIndex: Int, textBlockId: String, oldLineSpacing: Float?, newLineSpacing: Float?) : ContentEditingEdit

Edit representing a change to the line spacing of a text block in content editing mode.

Link copied to clipboard
class ContentEditingTextBlockMoveAndResizeEdit(pageIndex: Int, textBlockId: String, oldAnchor: Vec2? = null, newAnchor: Vec2? = null, oldSize: Numeric? = null, newSize: Numeric? = null) : ContentEditingEdit

Content Editing undo-edit object for text block move/resize operations (mainly from drag & drop).