2007-03-22 10:30:00 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 04:12:37 -07:00
|
|
|
/* 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/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
#include "EditTxn.h"
|
2012-07-12 23:33:42 -07:00
|
|
|
#include "nsError.h"
|
|
|
|
#include "nsISupportsBase.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2013-02-07 02:19:08 -08:00
|
|
|
NS_IMPL_CYCLE_COLLECTION_UNLINK_0(EditTxn)
|
|
|
|
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN(EditTxn)
|
|
|
|
// We don't have anything to traverse, but some of our subclasses do.
|
|
|
|
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END
|
2009-05-08 21:59:25 -07:00
|
|
|
|
|
|
|
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(EditTxn)
|
|
|
|
NS_INTERFACE_MAP_ENTRY(nsITransaction)
|
|
|
|
NS_INTERFACE_MAP_ENTRY(nsPIEditorTransaction)
|
|
|
|
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsITransaction)
|
|
|
|
NS_INTERFACE_MAP_END
|
|
|
|
|
2011-03-06 03:11:31 -08:00
|
|
|
NS_IMPL_CYCLE_COLLECTING_ADDREF(EditTxn)
|
|
|
|
NS_IMPL_CYCLE_COLLECTING_RELEASE(EditTxn)
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
EditTxn::~EditTxn()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
|
|
|
EditTxn::RedoTransaction(void)
|
|
|
|
{
|
|
|
|
return DoTransaction();
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2011-09-28 23:19:26 -07:00
|
|
|
EditTxn::GetIsTransient(bool *aIsTransient)
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
2011-10-17 07:59:28 -07:00
|
|
|
*aIsTransient = false;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2011-09-28 23:19:26 -07:00
|
|
|
EditTxn::Merge(nsITransaction *aTransaction, bool *aDidMerge)
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
2011-10-17 07:59:28 -07:00
|
|
|
*aDidMerge = false;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
return NS_OK;
|
|
|
|
}
|