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
|
|
|
|
|
|
|
#include "EditTxn.h"
|
2012-07-13 10:33:42 +04:00
|
|
|
#include "nsError.h"
|
|
|
|
#include "nsISupportsBase.h"
|
1999-01-06 23:30:13 +03:00
|
|
|
|
2009-05-09 08:59:25 +04:00
|
|
|
NS_IMPL_CYCLE_COLLECTION_0(EditTxn)
|
|
|
|
|
|
|
|
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 14:11:31 +03:00
|
|
|
NS_IMPL_CYCLE_COLLECTING_ADDREF(EditTxn)
|
|
|
|
NS_IMPL_CYCLE_COLLECTING_RELEASE(EditTxn)
|
1999-01-06 23:30:13 +03:00
|
|
|
|
1999-03-06 00:05:35 +03:00
|
|
|
EditTxn::~EditTxn()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2007-01-11 17:38:02 +03:00
|
|
|
NS_IMETHODIMP
|
|
|
|
EditTxn::RedoTransaction(void)
|
1999-01-06 23:30:13 +03:00
|
|
|
{
|
2001-03-09 17:23:59 +03:00
|
|
|
return DoTransaction();
|
1999-01-06 23:30:13 +03:00
|
|
|
}
|
|
|
|
|
2007-01-11 17:38:02 +03:00
|
|
|
NS_IMETHODIMP
|
2011-09-29 10:19:26 +04:00
|
|
|
EditTxn::GetIsTransient(bool *aIsTransient)
|
1999-01-06 23:30:13 +03:00
|
|
|
{
|
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
|
2011-09-29 10:19:26 +04:00
|
|
|
EditTxn::Merge(nsITransaction *aTransaction, bool *aDidMerge)
|
1999-01-06 23:30:13 +03:00
|
|
|
{
|
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;
|
|
|
|
}
|