Top Description Constructors Methods
org.jabref.model.openoffice.uno

public Class UnoUndo

extends Object
Class Inheritance
Imports
java.util.Optional, com.sun.star.document.XUndoManager, com.sun.star.document.XUndoManagerSupplier, com.sun.star.text.XTextDocument, com.sun.star.util.InvalidStateException

Undo : group document changes into larger Undo actions.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
enterUndoContext(com.sun.star.text.XTextDocument doc, String title)

Each call to enterUndoContext must be paired by a call to leaveUndoContext, otherwise, the document's undo stack is left in an inconsistent state.

public static Optional<com.sun.star.document.XUndoManager>
getXUndoManager(com.sun.star.text.XTextDocument doc)

public static void
leaveUndoContext(com.sun.star.text.XTextDocument doc)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

UnoUndoback to summary
private UnoUndo()

Method Detail

enterUndoContextback to summary
public static void enterUndoContext(com.sun.star.text.XTextDocument doc, String title)

Each call to enterUndoContext must be paired by a call to leaveUndoContext, otherwise, the document's undo stack is left in an inconsistent state.

getXUndoManagerback to summary
public static Optional<com.sun.star.document.XUndoManager> getXUndoManager(com.sun.star.text.XTextDocument doc)
leaveUndoContextback to summary
public static void leaveUndoContext(com.sun.star.text.XTextDocument doc)