michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "EditTxn.h" michael@0: #include "nsError.h" michael@0: #include "nsISupportsBase.h" michael@0: michael@0: NS_IMPL_CYCLE_COLLECTION_CLASS(EditTxn) michael@0: michael@0: NS_IMPL_CYCLE_COLLECTION_UNLINK_0(EditTxn) michael@0: NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN(EditTxn) michael@0: // We don't have anything to traverse, but some of our subclasses do. michael@0: NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END michael@0: michael@0: NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(EditTxn) michael@0: NS_INTERFACE_MAP_ENTRY(nsITransaction) michael@0: NS_INTERFACE_MAP_ENTRY(nsPIEditorTransaction) michael@0: NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsITransaction) michael@0: NS_INTERFACE_MAP_END michael@0: michael@0: NS_IMPL_CYCLE_COLLECTING_ADDREF(EditTxn) michael@0: NS_IMPL_CYCLE_COLLECTING_RELEASE_WITH_LAST_RELEASE(EditTxn, LastRelease()) michael@0: michael@0: EditTxn::~EditTxn() michael@0: { michael@0: } michael@0: michael@0: NS_IMETHODIMP michael@0: EditTxn::RedoTransaction(void) michael@0: { michael@0: return DoTransaction(); michael@0: } michael@0: michael@0: NS_IMETHODIMP michael@0: EditTxn::GetIsTransient(bool *aIsTransient) michael@0: { michael@0: *aIsTransient = false; michael@0: michael@0: return NS_OK; michael@0: } michael@0: michael@0: NS_IMETHODIMP michael@0: EditTxn::Merge(nsITransaction *aTransaction, bool *aDidMerge) michael@0: { michael@0: *aDidMerge = false; michael@0: michael@0: return NS_OK; michael@0: }