Back to index

lightning-sunbird  0.9+nobinonly
Classes | Enumerations | Functions
nsXFormsStubElement.h File Reference
#include "nsIXTFGenericElement.h"
#include "nsIXTFBindableElement.h"
#include "nsIXFormsControlBase.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nsXFormsStubElement
 An implementation of a generic non-UI XForms element. More...
class  nsXFormsBindableStub
 An implementation of an XForms bindable control. More...

Enumerations

enum  nsRepeatState { eType_Unknown, eType_Template, eType_GeneratedContent, eType_NotApplicable }
 nsRepeatState is used to indicate whether the element is inside a <repeat> or <itemset> template. More...

Functions

 NS_NewXFormsStubElement (nsIXTFElement **aResult)
 NS_NewXFormsBindableStub (nsIXTFElement **aResult)

Enumeration Type Documentation

nsRepeatState is used to indicate whether the element is inside a <repeat> or <itemset> template.

If it is, there is no need to refresh the widget bound to the element.

eType_Unknown - repeat state has yet to be determined eType_Template - element lives inside the template (an original element from the document that is hidden from the user) eType_GeneratedContent - A generated clone of an element from the template. It is generated as the repeat or itemset processes the nodeset that it is bound to. For every node in the nodeset, the repeat or itemset will go through its template and create a clone for every element in the template. A user will see these elements. eType_NotApplicable - element lives in the DOM and is not contained by a repeat or an itemset

Enumerator:
eType_Unknown 
eType_Template 
eType_GeneratedContent 
eType_NotApplicable 

Definition at line 63 of file nsXFormsStubElement.h.


Function Documentation

Definition at line 461 of file nsXFormsStubElement.cpp.

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

  NS_ADDREF(*aResult);
  return NS_OK;
}

Here is the call graph for this function:

Definition at line 303 of file nsXFormsStubElement.cpp.

{
  *aResult = new nsXFormsStubElement();
  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: