From 460b79696a0111b89bc4ac9c41a0b37fdb621f16 Mon Sep 17 00:00:00 2001 From: "Frank Schoenheit [fs]" Date: Fri, 15 Oct 2010 23:39:05 +0200 Subject: [PATCH] undoapi: API and Impl tweaks --- offapi/com/sun/star/document/XUndoManager.idl | 10 ++++++++-- offapi/com/sun/star/document/XUndoManagerListener.idl | 3 ++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/offapi/com/sun/star/document/XUndoManager.idl b/offapi/com/sun/star/document/XUndoManager.idl index b937aa538e7a..2fbecdc6e3de 100755 --- a/offapi/com/sun/star/document/XUndoManager.idl +++ b/offapi/com/sun/star/document/XUndoManager.idl @@ -135,11 +135,14 @@ interface XUndoManager

If one or more undo contexts are currently open, those will be implicit @see redo + @throws ::com::sun::star::util::InvalidStateException + when the Undo stack is currently empty @throws ::com::sun::star::lang::WrappedTargetException if the invocation of XUndoAction::undo raises an exception other than a RuntimeException */ void undo() - raises( ::com::sun::star::lang::WrappedTargetException ); + raises( ::com::sun::star::util::InvalidStateException, + ::com::sun::star::lang::WrappedTargetException ); /** replays the action on the document which has most recently been undone @@ -150,11 +153,14 @@ interface XUndoManager

@see undo + @throws ::com::sun::star::util::InvalidStateException + when the Redo stack is currently empty @throws ::com::sun::star::lang::WrappedTargetException if the invocation of XUndoAction::redo raises an exception other than a RuntimeException */ void redo() - raises( ::com::sun::star::lang::WrappedTargetException ); + raises( ::com::sun::star::util::InvalidStateException, + ::com::sun::star::lang::WrappedTargetException ); /** clears the undo and the redo stack. */ diff --git a/offapi/com/sun/star/document/XUndoManagerListener.idl b/offapi/com/sun/star/document/XUndoManagerListener.idl index 281b3911f65c..30373739c997 100755 --- a/offapi/com/sun/star/document/XUndoManagerListener.idl +++ b/offapi/com/sun/star/document/XUndoManagerListener.idl @@ -28,6 +28,7 @@ #define __com_sun_star_document_XUndoManagerListener_idl__ #include +#include //================================================================================================================== @@ -39,7 +40,7 @@ module com { module sun { module star { module document { @see XUndoManager */ -interface XUndoManagerListener +interface XUndoManagerListener : ::com::sun::star::lang::XEventListener { /** is called when an Undo action is added to the Undo stack.