From a3963e83ea99eb1c7ee7f6b7bcadadd17961eb7c Mon Sep 17 00:00:00 2001 From: "Frank Schoenheit [fs]" Date: Tue, 19 Oct 2010 22:23:16 +0200 Subject: [PATCH] undoapi: added isUndo/RedoPossible / getCurrent/AllUndo/RedoTitle(s) to XUndoManager --- offapi/com/sun/star/document/XUndoManager.idl | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/offapi/com/sun/star/document/XUndoManager.idl b/offapi/com/sun/star/document/XUndoManager.idl index 2fbecdc6e3de..1885068bf92c 100755 --- a/offapi/com/sun/star/document/XUndoManager.idl +++ b/offapi/com/sun/star/document/XUndoManager.idl @@ -162,6 +162,43 @@ interface XUndoManager raises( ::com::sun::star::util::InvalidStateException, ::com::sun::star::lang::WrappedTargetException ); + /** determines whether the Undo stack is currently non-empty. + */ + boolean isUndoPossible(); + + /** determines whether the Redo stack is currently non-empty. + */ + boolean isRedoPossible(); + + /** returns the title of the top-most action on the Undo stack + @throws ::com::sun::star::util::InvalidStateException + when the Undo stack is currently empty + @see XUndoAction::Title + */ + string getCurrentUndoActionTitle() + raises( ::com::sun::star::util::InvalidStateException ); + + /** returns the title of the top-most action on the Redo stack + + @throws ::com::sun::star::util::InvalidStateException + when the Redo stack is currently empty + @see XUndoAction::Title + */ + string getCurrentRedoActionTitle() + raises( ::com::sun::star::util::InvalidStateException ); + + /** returns the titles of all actions currently on the Undo stack, from top to bottom + @see XUndoAction::Title + */ + sequence< string > + getAllUndoActionTitles(); + + /** returns the titles of all actions currently on the Redo stack, from top to bottom + @see XUndoAction::Title + */ + sequence< string > + getAllRedoActionTitles(); + /** clears the undo and the redo stack. */ void clear();