Back to index

lightning-sunbird  0.9+nobinonly
Public Types | Public Member Functions | Public Attributes
nsCounterNode Struct Reference

#include <nsCounterManager.h>

Inheritance diagram for nsCounterNode:
Inheritance graph
[legend]
Collaboration diagram for nsCounterNode:
Collaboration graph
[legend]

List of all members.

Public Types

enum  Type { RESET, INCREMENT, USE }

Public Member Functions

nsCounterUseNodeUseNode ()
nsCounterChangeNodeChangeNode ()
 nsCounterNode (nsIFrame *aPseudoFrame, PRInt32 aContentIndex, Type aType)
void Calc (nsCounterList *aList)

Public Attributes

Type mType
PRInt32 mValueAfter
nsCounterNodemScopeStart
nsCounterNodemScopePrev
nsIFrame *const mPseudoFrame
const PRInt32 mContentIndex
nsCOMPtr< nsIDOMCharacterDatamText

Detailed Description

Definition at line 49 of file nsCounterManager.h.


Member Enumeration Documentation

Enumerator:
RESET 
INCREMENT 
USE 

Definition at line 50 of file nsCounterManager.h.

              {
        RESET,     // a "counter number" pair in 'counter-reset'
        INCREMENT, // a "counter number" pair in 'counter-increment'
        USE        // counter() or counters() in 'content'
    };

Constructor & Destructor Documentation

nsCounterNode::nsCounterNode ( nsIFrame aPseudoFrame,
PRInt32  aContentIndex,
Type  aType 
) [inline]

Definition at line 92 of file nsCounterManager.h.

        : nsGenConNode(aPseudoFrame, aContentIndex)
        , mType(aType)
        , mValueAfter(0)
        , mScopeStart(nsnull)
        , mScopePrev(nsnull)
    {
    }

Member Function Documentation

void nsCounterNode::Calc ( nsCounterList aList) [inline]

Reimplemented in nsCounterChangeNode, and nsCounterUseNode.

Definition at line 176 of file nsCounterManager.h.

{
    if (mType == USE)
        UseNode()->Calc(aList);
    else
        ChangeNode()->Calc(aList);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 170 of file nsCounterManager.h.

{
    NS_ASSERTION(mType == INCREMENT || mType == RESET, "wrong type");
    return NS_STATIC_CAST(nsCounterChangeNode*, this);
}

Here is the caller graph for this function:

Definition at line 164 of file nsCounterManager.h.

{
    NS_ASSERTION(mType == USE, "wrong type");
    return NS_STATIC_CAST(nsCounterUseNode*, this);
}

Here is the caller graph for this function:


Member Data Documentation

Definition at line 56 of file nsGenConList.h.

Definition at line 51 of file nsGenConList.h.

Definition at line 81 of file nsCounterManager.h.

Definition at line 70 of file nsCounterManager.h.

Definition at line 60 of file nsGenConList.h.

Definition at line 56 of file nsCounterManager.h.

Definition at line 59 of file nsCounterManager.h.


The documentation for this struct was generated from the following file: