diff options
author | Frank Schoenheit [fs] <frank.schoenheit@sun.com> | 2010-10-19 22:23:16 +0200 |
---|---|---|
committer | Frank Schoenheit [fs] <frank.schoenheit@sun.com> | 2010-10-19 22:23:16 +0200 |
commit | a3963e83ea99eb1c7ee7f6b7bcadadd17961eb7c (patch) | |
tree | 4ceb3abdebe940169dc9a7eec0b80d2eb0f5fbaa /offapi/com/sun/star/document | |
parent | 460b79696a0111b89bc4ac9c41a0b37fdb621f16 (diff) |
undoapi: added isUndo/RedoPossible / getCurrent/AllUndo/RedoTitle(s) to XUndoManager
Diffstat (limited to 'offapi/com/sun/star/document')
-rwxr-xr-x | offapi/com/sun/star/document/XUndoManager.idl | 37 |
1 files changed, 37 insertions, 0 deletions
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(); |