/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
if (transaction) {
aTransactionManager->DidUndoNotify(*transaction, rv);
}
} // NS_OK if there is no Undo items or all methods work fine, otherwise, // the result of the last item's UndoTransaction(). return rv;
}
// XXX Shouldn't this DidRedoNotify()? (bug 1311626) if (transaction) {
aTransactionManager->DidUndoNotify(*transaction, rv);
}
} // NS_OK if there is no Redo items or all methods work fine, otherwise, // the result of the last item's RedoTransaction(). return rv;
}
nsresult TransactionItem::RecoverFromUndoError(
TransactionManager* aTransactionManager) { // If this method gets called, we never got to the point where we // successfully called UndoTransaction() for the transaction item itself. // Just redo any children that successfully called undo!
nsresult rv = RedoChildren(aTransactionManager);
NS_WARNING_ASSERTION(NS_SUCCEEDED(rv), "TransactionItem::RedoChildren() failed"); return rv;
}
nsresult TransactionItem::RecoverFromRedoError(
TransactionManager* aTransactionManager) { // If this method gets called, we already successfully called // RedoTransaction() for the transaction item itself. Undo all // the children that successfully called RedoTransaction(), // then undo the transaction item itself.
nsresult rv = UndoChildren(aTransactionManager); if (NS_FAILED(rv)) {
NS_WARNING("TransactionItem::UndoChildren() failed"); return rv;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.