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-09-30 00:07:32 +04:00
|
|
|
|
|
|
|
#ifndef nsIAbsorbingTransaction_h__
|
|
|
|
#define nsIAbsorbingTransaction_h__
|
|
|
|
|
|
|
|
#include "nsISupports.h"
|
|
|
|
|
|
|
|
/*
|
|
|
|
Transaction interface to outside world
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define NS_IABSORBINGTRANSACTION_IID \
|
1999-11-30 17:31:47 +03:00
|
|
|
{ /* a6cf9116-15b3-11d2-932e-00805f8add32 */ \
|
|
|
|
0xa6cf9116, \
|
|
|
|
0x15b3, \
|
|
|
|
0x11d2, \
|
1999-09-30 00:07:32 +04:00
|
|
|
{0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32} }
|
|
|
|
|
2000-06-30 08:58:34 +04:00
|
|
|
class nsIAtom;
|
2000-01-31 13:30:12 +03:00
|
|
|
|
2016-07-07 12:15:53 +03:00
|
|
|
namespace mozilla {
|
|
|
|
class SelectionState;
|
|
|
|
} // namespace mozilla
|
|
|
|
|
1999-09-30 00:07:32 +04:00
|
|
|
/**
|
2015-05-28 18:58:42 +03:00
|
|
|
* A transaction interface mixin - for transactions that can support.
|
|
|
|
* the placeholder absorbtion idiom.
|
1999-09-30 00:07:32 +04:00
|
|
|
*/
|
|
|
|
class nsIAbsorbingTransaction : public nsISupports{
|
|
|
|
public:
|
|
|
|
|
2005-11-11 17:36:26 +03:00
|
|
|
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IABSORBINGTRANSACTION_IID)
|
1999-09-30 00:07:32 +04:00
|
|
|
|
2016-07-07 12:15:53 +03:00
|
|
|
NS_IMETHOD Init(nsIAtom* aName, mozilla::SelectionState* aSelState,
|
2012-07-23 14:27:22 +04:00
|
|
|
nsEditor* aEditor) = 0;
|
2015-05-28 18:58:42 +03:00
|
|
|
|
1999-09-30 00:07:32 +04:00
|
|
|
NS_IMETHOD EndPlaceHolderBatch()=0;
|
2015-05-28 18:58:42 +03:00
|
|
|
|
1999-09-30 00:07:32 +04:00
|
|
|
NS_IMETHOD GetTxnName(nsIAtom **aName)=0;
|
|
|
|
|
2016-07-07 12:15:53 +03:00
|
|
|
NS_IMETHOD StartSelectionEquals(mozilla::SelectionState* aSelState,
|
|
|
|
bool* aResult) = 0;
|
1999-09-30 00:07:32 +04:00
|
|
|
|
|
|
|
NS_IMETHOD ForwardEndBatchTo(nsIAbsorbingTransaction *aForwardingAddress)=0;
|
2015-05-28 18:58:42 +03:00
|
|
|
|
1999-10-26 22:54:47 +04:00
|
|
|
NS_IMETHOD Commit()=0;
|
1999-09-30 00:07:32 +04:00
|
|
|
};
|
|
|
|
|
2005-11-11 17:36:26 +03:00
|
|
|
NS_DEFINE_STATIC_IID_ACCESSOR(nsIAbsorbingTransaction,
|
|
|
|
NS_IABSORBINGTRANSACTION_IID)
|
|
|
|
|
1999-09-30 00:07:32 +04:00
|
|
|
#endif // nsIAbsorbingTransaction_h__
|
|
|
|
|