Added Merge() method to interface.

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

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

@ -61,6 +61,19 @@ public:
*/
virtual nsresult Redo(void) = 0;
/**
* Attempts to merge a transaction into "this" transaction. Both transactions
* must be in their undo state, Do() methods already executed. The transaction
* manager calls this method to coalesce a new transaction with the
* transaction on the top of the undo stack.
* @param aDidMerge will contain merge result. True if transactions were
* merged successfully. False if merge is not possible or failed. If true,
* the transaction manager will Release() the new transacton instead of
* pushing it on the undo stack.
* @param aTransaction the previously executed transaction to merge.
*/
virtual nsresult Merge(PRBool *aDidMerge, nsITransaction *aTransaction) = 0;
/**
* Write a stream representation of the current state of the transaction.
* @param aOutputStream the stream to write to.