Package-level declarations

Types

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

Baseclass for all content editing undo/redo actions. All edits need the id of the affected textblock 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: 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)

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

Content editing undo-edit for text alignment changes.

Link copied to clipboard
class ContentEditingTextBlockLineSpacingEdit(pageIndex: Int, textBlockId: UUID, oldLineSpacing: Float?, newLineSpacing: Float?) : ContentEditingEdit
Link copied to clipboard
class ContentEditingTextBlockMoveAndResizeEdit(pageIndex: Int, textBlockId: UUID, oldAnchor: Vec2? = null, newAnchor: Vec2? = null, oldSize: Numeric? = null, newSize: Numeric? = null) : ContentEditingEdit

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