Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsXFormsUtilityService Class Reference

#include <nsXFormsUtilityService.h>

List of all members.

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_NSIXFORMSUTILITYSERVICE
NS_IMETHOD 
GetBuiltinTypeName (nsIDOMNode *aElement, nsAString &aName)

Detailed Description

Definition at line 41 of file nsXFormsUtilityService.h.


Member Function Documentation

NS_IMETHODIMP nsXFormsUtilityService::GetBuiltinTypeName ( nsIDOMNode aElement,
nsAString &  aName 
)

Definition at line 74 of file nsXFormsUtilityService.cpp.

{
  nsCOMPtr<nsIDOMElement> element(do_QueryInterface(aElement));
  NS_ENSURE_TRUE(element, NS_ERROR_FAILURE);

  nsCOMPtr<nsIModelElementPrivate> model = nsXFormsUtils::GetModel(element);
  NS_ENSURE_TRUE(model, NS_ERROR_FAILURE);

  nsCOMPtr<nsIXFormsControl> control(do_QueryInterface(element));
  return model->GetBuiltinTypeNameForControl(control, aName);
}

Here is the call graph for this function:


The documentation for this class was generated from the following files: