mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 14:46:02 +00:00
comment fixes and cleanups. bug 266098, patch by allan@beaufour.dk, r=bryner
This commit is contained in:
parent
5be43ebb5f
commit
6a131d4b93
@ -38,12 +38,11 @@
|
||||
|
||||
#include "nsISupports.idl"
|
||||
|
||||
interface nsIDOMDocument;
|
||||
|
||||
/**
|
||||
* Private interface implemented by the instance element.
|
||||
*/
|
||||
|
||||
interface nsIDOMDocument;
|
||||
|
||||
[uuid(8c9dd10d-4189-4a7b-a2eb-fd695cf33b27)]
|
||||
interface nsIInstanceElementPrivate : nsISupports
|
||||
{
|
||||
|
@ -36,17 +36,16 @@
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
/**
|
||||
* Private interface implemented by the model element for other
|
||||
* elements to use.
|
||||
*/
|
||||
|
||||
#include "nsIXFormsModelElement.idl"
|
||||
|
||||
interface nsIXFormsControl;
|
||||
interface nsISchemaType;
|
||||
interface nsIInstanceElementPrivate;
|
||||
|
||||
/**
|
||||
* Private interface implemented by the model element for other
|
||||
* elements to use.
|
||||
*/
|
||||
[uuid(b21b65d3-3305-4ce0-a604-3648cff61aca)]
|
||||
interface nsIModelElementPrivate : nsIXFormsModelElement
|
||||
{
|
||||
|
@ -36,12 +36,11 @@
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
#include "nsISupports.idl"
|
||||
|
||||
/**
|
||||
* Interface implemented by all XForms form control classes.
|
||||
*/
|
||||
|
||||
#include "nsISupports.idl"
|
||||
|
||||
[uuid(8377c845-5d55-4eee-9a76-0f86751dcbc8)]
|
||||
interface nsIXFormsControl : nsISupports
|
||||
{
|
||||
|
@ -38,19 +38,18 @@
|
||||
|
||||
#include "domstubs.idl"
|
||||
|
||||
interface nsIDOMDocument;
|
||||
interface nsIDOMDOMException;
|
||||
|
||||
/**
|
||||
* The nsIXFormsModelElement interface defines scriptable methods for
|
||||
* manipulating instance data and updating computed and displayed values.
|
||||
* Defines scriptable methods for manipulating instance data
|
||||
* and updating computed and displayed values.
|
||||
*
|
||||
* For more information on this interface please see
|
||||
* http://www.w3.org/TR/xforms/
|
||||
*
|
||||
* @status FROZEN
|
||||
*/
|
||||
|
||||
interface nsIDOMDocument;
|
||||
interface nsIDOMDOMException;
|
||||
|
||||
[scriptable, uuid(e891d132-46f8-464c-b93b-1fb883fa03da)]
|
||||
interface nsIXFormsModelElement : nsISupports
|
||||
{
|
||||
|
@ -38,6 +38,9 @@
|
||||
|
||||
#include "nsStaticAtom.h"
|
||||
|
||||
/**
|
||||
* Class for singleton XForms nsIAtom pointers
|
||||
*/
|
||||
class nsXFormsAtoms
|
||||
{
|
||||
public:
|
||||
|
@ -41,6 +41,9 @@
|
||||
#define NS_XFORMSELEMENTFACTORY_CID \
|
||||
{0xc068f682, 0x03b5, 0x4e96, {0x81, 0xe1, 0x60, 0x13, 0xf9, 0x12, 0x88, 0xb2}}
|
||||
|
||||
/**
|
||||
* Factory class for all XForms elements
|
||||
*/
|
||||
class nsXFormsElementFactory : public nsIXTFElementFactory
|
||||
{
|
||||
public:
|
||||
|
@ -63,6 +63,9 @@ static const nsIID sScriptingIIDs[] = {
|
||||
NS_IDOM3NODE_IID
|
||||
};
|
||||
|
||||
/**
|
||||
* Implementation of the XForms \<input\> element.
|
||||
*/
|
||||
class nsXFormsInputElement : public nsIXTFXMLVisual,
|
||||
public nsIDOMFocusListener,
|
||||
public nsIXFormsControl
|
||||
|
@ -36,12 +36,6 @@
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
/**
|
||||
* nsXFormsInstanceElement implements the xforms <instance> element.
|
||||
* It creates an instance document by either cloning the inline instance data
|
||||
* or loading an external xml document given by the src attribute.
|
||||
*/
|
||||
|
||||
#ifndef nsXFormsInstanceElement_h_
|
||||
#define nsXFormsInstanceElement_h_
|
||||
|
||||
@ -54,6 +48,12 @@
|
||||
|
||||
class nsIDOMElement;
|
||||
|
||||
/**
|
||||
* Implementation of the XForms \<instance\> element.
|
||||
* It creates an instance document by either cloning the inline instance data
|
||||
* or loading an external xml document given by the src attribute.
|
||||
*/
|
||||
|
||||
class nsXFormsInstanceElement : public nsXFormsStubElement,
|
||||
public nsIInstanceElementPrivate,
|
||||
public nsIDOMLoadListener
|
||||
|
@ -57,6 +57,11 @@ class nsIDOMNode;
|
||||
class nsIDOMXPathEvaluator;
|
||||
class nsXFormsControl;
|
||||
|
||||
/**
|
||||
* XForms event types
|
||||
*
|
||||
* @see http://www.w3.org/TR/xforms/slice4.html#rpm-events
|
||||
*/
|
||||
enum nsXFormsModelEvent {
|
||||
eEvent_ModelConstruct,
|
||||
eEvent_ModelConstructDone,
|
||||
@ -73,6 +78,14 @@ enum nsXFormsModelEvent {
|
||||
eEvent_ComputeException
|
||||
};
|
||||
|
||||
/**
|
||||
* Implementation of the XForms \<model\> element.
|
||||
*
|
||||
* This includes all of the code for loading the model's external resources and
|
||||
* initializing the model and its controls.
|
||||
*
|
||||
* @see http://www.w3.org/TR/xforms/slice3.html#structure-model
|
||||
*/
|
||||
class nsXFormsModelElement : public nsXFormsStubElement,
|
||||
public nsIModelElementPrivate,
|
||||
public nsISchemaLoadListener,
|
||||
|
@ -41,6 +41,12 @@
|
||||
|
||||
#include "nsIXTFGenericElement.h"
|
||||
|
||||
/**
|
||||
* An implementation of a generic non-UI XForms element.
|
||||
*
|
||||
* This is used for e.g. bind so that the id attribute works correctly for
|
||||
* these nodes.
|
||||
*/
|
||||
class nsXFormsStubElement : public nsIXTFGenericElement
|
||||
{
|
||||
NS_DECL_ISUPPORTS
|
||||
|
@ -54,6 +54,11 @@ class nsString;
|
||||
|
||||
class SubmissionAttachmentArray;
|
||||
|
||||
/**
|
||||
* Implementation of the XForms \<submission\> element.
|
||||
*
|
||||
* @see http://www.w3.org/TR/xforms/slice3.html#structure-model-submission
|
||||
*/
|
||||
class nsXFormsSubmissionElement : public nsXFormsStubElement,
|
||||
public nsIRequestObserver
|
||||
{
|
||||
|
@ -39,6 +39,9 @@
|
||||
#ifndef __NSXFORMSTYPES_H__
|
||||
#define __NSXFORMSTYPES_H__
|
||||
|
||||
/**
|
||||
* The types of Model Item Properties (MIP) in XForms
|
||||
*/
|
||||
enum ModelItemPropName
|
||||
{
|
||||
eModel_type,
|
||||
|
@ -39,11 +39,6 @@
|
||||
#ifndef nsXFormsUtils_h_
|
||||
#define nsXFormsUtils_h_
|
||||
|
||||
/**
|
||||
* This class has static helper methods that don't fit into a specific place
|
||||
* in the class hierarchy.
|
||||
*/
|
||||
|
||||
#include "prtypes.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsIDOMXPathResult.h"
|
||||
@ -58,6 +53,10 @@ class nsString;
|
||||
#define NS_NAMESPACE_XML_SCHEMA "http://www.w3.org/2001/XMLSchema"
|
||||
#define NS_NAMESPACE_XML_SCHEMA_INSTANCE "http://www.w3.org/2001/XMLSchema-instance"
|
||||
|
||||
/**
|
||||
* This class has static helper methods that don't fit into a specific place
|
||||
* in the class hierarchy.
|
||||
*/
|
||||
class nsXFormsUtils
|
||||
{
|
||||
public:
|
||||
@ -82,7 +81,7 @@ public:
|
||||
|
||||
/**
|
||||
* Locate the model that |aElement| is bound to, and if applicable, the
|
||||
* <bind> element that it uses. The model is returned and the
|
||||
* \<bind\> element that it uses. The model is returned and the
|
||||
* bind element is returned (addrefed) in |aBindElement|.
|
||||
*/
|
||||
static NS_HIDDEN_(nsIDOMNode*)
|
||||
|
@ -40,7 +40,7 @@
|
||||
#include "nsString.h"
|
||||
|
||||
/**
|
||||
* Misc. utility functions for determining the class of a character, used by
|
||||
* Miscellaneous utility functions for determining the class of a character, used by
|
||||
* nsXFormsXPathScanner.
|
||||
*
|
||||
* @note Should be reimplemented and moved to Transformiix
|
||||
|
Loading…
x
Reference in New Issue
Block a user