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