summaryrefslogtreecommitdiff
path: root/offapi/com/sun/star/chart2
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2010-11-09 21:36:54 +0100
committerFrank Schoenheit [fs] <frank.schoenheit@oracle.com>2010-11-09 21:36:54 +0100
commita358dac4b7da1486051764c0e6c6e32f38193fa3 (patch)
tree34d2be1666e776ff82edea89d735bd9ae2b7d116 /offapi/com/sun/star/chart2
parent0d112e4aeffecd8890f1938476c4a419d64a6060 (diff)
undoapi: step 0.1 of the migration of css.chart2.XUndoManager to css.document.XUndoManager: remove the XModel paramter from the XUndoManager methods, they're an implicit attribute of the instance
Diffstat (limited to 'offapi/com/sun/star/chart2')
-rw-r--r--offapi/com/sun/star/chart2/XUndoManager.idl20
1 files changed, 9 insertions, 11 deletions
diff --git a/offapi/com/sun/star/chart2/XUndoManager.idl b/offapi/com/sun/star/chart2/XUndoManager.idl
index 2d0ca4bd4977..9354fa4f7a54 100644
--- a/offapi/com/sun/star/chart2/XUndoManager.idl
+++ b/offapi/com/sun/star/chart2/XUndoManager.idl
@@ -28,7 +28,6 @@
#define com_sun_star_chart2_XUndoManager_idl
#include <com/sun/star/uno/XInterface.idl>
-#include <com/sun/star/frame/XModel.idl>
#include <com/sun/star/beans/PropertyValue.idl>
module com
@@ -40,24 +39,23 @@ module star
module chart2
{
-/** An interface for undo functionality based on passing frame::XModel
- objects.
+/** An interface for undo functionality based on the model which the undo manager belongs to
*/
interface XUndoManager : ::com::sun::star::uno::XInterface
{
- /** call this before you change the xCurrentModel
+ /** call this before you change the model which the undo manager belongs to
*/
- void preAction( [in] ::com::sun::star::frame::XModel xModelBeforeChange );
+ void preAction();
- /** call this before you change the xCurrentModel. You can pass
+ /** call this before you change the model which the undo manager belongs to. You can pass
parameters to refine the undo action.
*/
- void preActionWithArguments( [in] ::com::sun::star::frame::XModel xModelBeforeChange,
- [in] sequence< ::com::sun::star::beans::PropertyValue > aArguments );
+ void preActionWithArguments( [in] sequence< ::com::sun::star::beans::PropertyValue > aArguments );
/** call this after you successfully did changes to your current model
*/
void postAction( [in] string aUndoText );
+
/** call this if you aborted the current action.
*/
void cancelAction();
@@ -66,15 +64,15 @@ interface XUndoManager : ::com::sun::star::uno::XInterface
state set in preAction. This is useful for cancellation in
live-preview dialogs.
*/
- void cancelActionWithUndo( [inout] ::com::sun::star::frame::XModel xModelToRestore );
+ void cancelActionWithUndo();
/** give the current model to be put into the redo-stack
*/
- void undo( [inout] ::com::sun::star::frame::XModel xCurrentModel );
+ void undo();
/** give the current model to be put into the undo-stack
*/
- void redo( [inout] ::com::sun::star::frame::XModel xCurrentModel );
+ void redo();
/** @return <TRUE/> if the undo stack is not empty, i.e. a call to undo() will succeed
*/