Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsXFormsCaseElement.cpp File Reference
#include "nsXFormsStubElement.h"
#include "nsXFormsAtoms.h"
#include "nsXFormsUtils.h"
#include "nsIXFormsCaseElement.h"
#include "nsIXFormsCaseUIElement.h"
#include "nsIXFormsSwitchElement.h"
#include "nsCOMPtr.h"
#include "nsIDOMElement.h"
#include "nsString.h"
#include "nsIXTFBindableElementWrapper.h"

Go to the source code of this file.

Classes

class  nsXFormsCaseElement
 Implementation of the XForms case element. More...

Functions

 NS_IMPL_ISUPPORTS_INHERITED1 (nsXFormsCaseElement, nsXFormsBindableStub, nsIXFormsCaseElement) NS_IMETHODIMP nsXFormsCaseElement
 NS_NewXFormsCaseElement (nsIXTFElement **aResult)

Function Documentation

Definition at line 76 of file nsXFormsCaseElement.cpp.

{
  nsresult rv = nsXFormsBindableStub::OnCreated(aWrapper);
  NS_ENSURE_SUCCESS(rv, rv);

  aWrapper->SetNotificationMask(nsIXTFElement::NOTIFY_DONE_ADDING_CHILDREN);

  nsCOMPtr<nsIDOMElement> node;
  aWrapper->GetElementNode(getter_AddRefs(node));

  // It's ok to keep a pointer to mElement.  mElement will have an
  // owning reference to this object, so as long as we null out mElement in
  // OnDestroyed, it will always be valid.

  mElement = node;

  return NS_OK;
}

Here is the call graph for this function:

Definition at line 154 of file nsXFormsCaseElement.cpp.

{
  *aResult = new nsXFormsCaseElement();
  if (!*aResult)
    return NS_ERROR_OUT_OF_MEMORY;

  NS_ADDREF(*aResult);
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function: