undoapi: API and Impl tweaks

This commit is contained in:
Frank Schoenheit [fs] 2010-10-15 23:39:05 +02:00
parent 52831664bf
commit 460b79696a
2 changed files with 10 additions and 3 deletions

View file

@ -135,11 +135,14 @@ interface XUndoManager
<p>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 <member>XUndoAction::undo</member> raises an exception other than a <member scope="com::sun::star::uno">RuntimeException</member>
*/
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
</ul></p>
@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 <member>XUndoAction::redo</member> raises an exception other than a <member scope="com::sun::star::uno">RuntimeException</member>
*/
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.
*/

View file

@ -28,6 +28,7 @@
#define __com_sun_star_document_XUndoManagerListener_idl__
#include <com/sun/star/document/UndoManagerEvent.idl>
#include <com/sun/star/lang/XEventListener.idl>
//==================================================================================================================
@ -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.