From b28ad987327d89ec393168d68d044be0405081c3 Mon Sep 17 00:00:00 2001 From: "Frank Schoenheit [fs]" Date: Mon, 25 Oct 2010 13:53:25 +0200 Subject: undoapi: renamings, API docs --- offapi/com/sun/star/document/UndoManagerEvent.idl | 2 +- offapi/com/sun/star/document/XUndoManager.idl | 44 +++++++++++----------- .../com/sun/star/document/XUndoManagerListener.idl | 28 +++++++------- 3 files changed, 36 insertions(+), 38 deletions(-) (limited to 'offapi/com/sun/star/document') diff --git a/offapi/com/sun/star/document/UndoManagerEvent.idl b/offapi/com/sun/star/document/UndoManagerEvent.idl index a95c0707ba33..e587669e4fbd 100755 --- a/offapi/com/sun/star/document/UndoManagerEvent.idl +++ b/offapi/com/sun/star/document/UndoManagerEvent.idl @@ -43,7 +43,7 @@ module com { module sun { module star { module document { */ struct UndoManagerEvent : ::com::sun::star::lang::EventObject { - /** the title of the Undo action which is described by the event + /** the title of the undo action which is described by the event @see XUndoAction::Title */ string UndoActionTitle; diff --git a/offapi/com/sun/star/document/XUndoManager.idl b/offapi/com/sun/star/document/XUndoManager.idl index c30049fc520d..1c8b29083f94 100755 --- a/offapi/com/sun/star/document/XUndoManager.idl +++ b/offapi/com/sun/star/document/XUndoManager.idl @@ -44,7 +44,7 @@ interface XUndoManagerListener;

Undo

Changes to a document usually result in recording of information how to undo those changes, if desired. A so-called - Undo action records the information how to undo a single change. Undo actions are maintained in a stack, so that + undo action records the information how to undo a single change. Undo actions are maintained in a stack, so that the changes they represent can be undo in the reverse order they have originally been applied.

Redo

@@ -52,15 +52,15 @@ interface XUndoManagerListener; stack, so it is possible to re-apply the changes to the document.

Undo contexts

-

For collecting multiple changes in a single Undo action, so-called Undo contexts are provided. When an Undo - context is entered, all subsequently added Undo actions are not pushed onto the Undo stack directly, but considered - a sub action of the Undo context. Once the Undo context is left, a single Undo action is pushed onto the Undo stack, +

For collecting multiple changes in a single undo action, so-called Undo contexts are provided. When an Undo + context is entered, all subsequently added Undo actions are not pushed onto the undo stack directly, but considered + a sub action of the Undo context. Once the Undo context is left, a single undo action is pushed onto the undo stack, which comprises all those single Undo actions.
Undo contexts can be arbitrarily nested.

Hidden Undo actions

-

Hidden Undo actions are those which in no observable way contribute to the Undo stack. That is, - any method retrieving information about the stack will behave as if the Undo action does not exist. Nonetheless, +

Hidden Undo actions are those which in no observable way contribute to the undo stack. That is, + any method retrieving information about the stack will behave as if the undo action does not exist. Nonetheless, calling undo respectively redo will include those actions.
Hidden Undo actions can be created by calling enterHiddenUndoContext, following by leaveUndoContext.

@@ -68,7 +68,7 @@ interface XUndoManagerListener;

Locking

An Undo manager can be locked and unlocked, using the lock and unlock methods. - When it is locked, then every attempt to add an Undo action, or to enter or leave an Undo context, will be silently + When it is locked, then every attempt to add an undo action, or to enter or leave an Undo context, will be silently ignored.

*/ interface XUndoManager @@ -94,11 +94,11 @@ interface XUndoManager [in] string i_title ); - /** enters a new undo context, creating a hidden Undo action. + /** enters a new undo context, creating a hidden undo action. -

A hidden Undo action does not, in any visible way, contribute to the Undo stack. This means +

A hidden undo action does not, in any visible way, contribute to the undo stack. This means that -