Added Clear(), PeekUndoStack(), and PeekRedoStack() methods to interface.

This commit is contained in:
kin%netscape.com 1998-12-02 17:37:16 +00:00
Родитель f0d7606b0b
Коммит 440860854b
1 изменённых файлов: 17 добавлений и 0 удалений

Просмотреть файл

@ -64,6 +64,11 @@ public:
*/
virtual nsresult Redo(void) = 0;
/**
* Clears the undo and redo stacks.
*/
virtual nsresult Clear(void) = 0;
/**
* Returns the number of items on the undo stack.
* @param aNumItems will contain number of items.
@ -76,6 +81,18 @@ public:
*/
virtual nsresult GetNumberOfRedoItems(PRInt32 *aNumItems) = 0;
/**
* Returns a pointer to the transaction at the top of the undo stack.
* @param aTransaction will contain pointer to the transaction.
*/
virtual nsresult PeekUndoStack(nsITransaction **aTransaction) = 0;
/**
* Returns a pointer to the transaction at the top of the redo stack.
* @param aTransaction will contain pointer to the transaction.
*/
virtual nsresult PeekRedoStack(nsITransaction **aTransaction) = 0;
/**
* Writes a stream representation of the transaction manager and it's
* execution stacks. Calls the Write() method of each transaction on the