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