Logo Search packages:      
Sourcecode: firefox-3.5 version File versions  Download package

NS_IMETHODIMP nsEditor::CreateTxnForInsertElement ( nsIDOMNode aNode,
nsIDOMNode aParent,
PRInt32  aOffset,
InsertElementTxn **  aTxn 
) [protected, inherited]

create a transaction for inserting aNode as a child of aParent.

Definition at line 4734 of file nsEditor.cpp.

References TransactionFactory::GetNewTransaction().

  nsresult result = NS_ERROR_NULL_POINTER;
  if (aNode && aParent && aTxn)
    result = TransactionFactory::GetNewTransaction(InsertElementTxn::GetCID(), (EditTxn **)aTxn);
    if (NS_SUCCEEDED(result)) {
      result = (*aTxn)->Init(aNode, aParent, aPosition, this);
  return result;

Generated by  Doxygen 1.6.0   Back to index