Logo Search packages:      
Sourcecode: xulrunner-1.9 version File versions  Download package

nsAttributeTextNode Class Reference

Inheritance diagram for nsAttributeTextNode:

nsTextNode nsStubMutationObserver nsIDOMText nsIMutationObserver nsIContent nsIDOMCharacterData nsISupports nsINode nsIDOMNode nsISupports nsISupports

List of all members.


Detailed Description

class used to implement attr() generated content

Definition at line 85 of file nsTextNode.cpp.


Public Types

enum  { ATTR_MISSING = -1, ATTR_VALUE_NO_MATCH = -2 }
enum  {
  IME_STATUS_NONE = 0x0000, IME_STATUS_ENABLE = 0x0001, IME_STATUS_DISABLE = 0x0002, IME_STATUS_PASSWORD = 0x0004,
  IME_STATUS_OPEN = 0x0008, IME_STATUS_CLOSE = 0x0010
}
enum  { IME_STATUS_MASK_ENABLED, IME_STATUS_MASK_OPENED = IME_STATUS_OPEN | IME_STATUS_CLOSE }
enum  {
  eCONTENT = 1 << 0, eDOCUMENT = 1 << 1, eATTRIBUTE = 1 << 2, eELEMENT = 1 << 3,
  eTEXT = 1 << 4, ePROCESSING_INSTRUCTION = 1 << 5, eCOMMENT = 1 << 6, eHTML = 1 << 7,
  eHTML_FORM_CONTROL = 1 << 8, eXUL = 1 << 9, eSVG = 1 << 10, eDOCUMENT_FRAGMENT = 1 << 11,
  eDATA_NODE = 1 << 12, eMATHML = 1 << 13
}
typedef nsIAtom *const *const AttrValuesArray
enum  ETabFocusType { eTabFocus_formElementsMask = (1<<1), eTabFocus_linksMask = (1<<2), eTabFocus_any = 1 + (1<<1) + (1<<2) }

Public Member Functions

virtual nsresult AddEventListenerByIID (nsIDOMEventListener *aListener, const nsIID &aIID)
virtual void AddMutationObserver (nsIMutationObserver *aMutationObserver)
nsIDOMNode appendChild (in nsIDOMNode newChild) raises (DOMException)
nsresult AppendChild (nsIDOMNode *aNewChild, nsIDOMNode **aReturn)
nsresult AppendChildTo (nsIContent *aKid, PRBool aNotify)
void appendData (in DOMString arg) raises (DOMException)
nsresult AppendData (const nsAString &aArg)
virtual nsresult AppendText (const PRUnichar *aBuffer, PRUint32 aLength, PRBool aNotify)
virtual void AppendTextTo (nsAString &aResult)
virtual void AttributeChanged (nsIDocument *aDocument, nsIContent *aContent, PRInt32 aNameSpaceID, nsIAtom *aAttribute, PRInt32 aModType, PRUint32 aStateMask)=0
virtual PRBool AttrValueIs (PRInt32 aNameSpaceID, nsIAtom *aName, nsIAtom *aValue, nsCaseTreatment aCaseSensitive) const
virtual PRBool AttrValueIs (PRInt32 aNameSpaceID, nsIAtom *aName, const nsAString &aValue, nsCaseTreatment aCaseSensitive) const
virtual void BeginAddingChildren ()
virtual nsresult BindToTree (nsIDocument *aDocument, nsIContent *aParent, nsIContent *aBindingParent, PRBool aCompileEventHandlers)
virtual void CharacterDataChanged (nsIDocument *aDocument, nsIContent *aContent, CharacterDataChangeInfo *aInfo)=0
virtual void CharacterDataWillChange (nsIDocument *aDocument, nsIContent *aContent, CharacterDataChangeInfo *aInfo)=0
virtual nsresult Clone (nsINodeInfo *aNodeInfo, nsINode **aResult) const
virtual
NS_DECL_NSIMUTATIONOBSERVER_ATTRIBUTECHANGED
nsGenericDOMDataNode * 
CloneDataNode (nsINodeInfo *aNodeInfo, PRBool aCloneText) const
nsIDOMNode cloneNode (in boolean deep)
virtual void ContentAppended (nsIDocument *aDocument, nsIContent *aContainer, PRInt32 aNewIndexInContainer)=0
virtual void ContentInserted (nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild, PRInt32 aIndexInContainer)=0
virtual void ContentRemoved (nsIDocument *aDocument, nsIContent *aContainer, nsIContent *aChild, PRInt32 aIndexInContainer)=0
void deleteData (in unsigned long offset, in unsigned long count) raises (DOMException)
nsresult DeleteData (PRUint32 aOffset, PRUint32 aCount)
virtual nsresult DeleteProperty (PRUint16 aCategory, nsIAtom *aPropertyName)
nsresult DeleteProperty (nsIAtom *aPropertyName)
virtual void DestroyContent ()
virtual nsresult DispatchDOMEvent (nsEvent *aEvent, nsIDOMEvent *aDOMEvent, nsPresContext *aPresContext, nsEventStatus *aEventStatus)
virtual nsresult DoneAddingChildren (PRBool aHaveNotified)
virtual void DoneCreatingElement ()
virtual PRInt32 FindAttrValueIn (PRInt32 aNameSpaceID, nsIAtom *aName, AttrValuesArray *aValues, nsCaseTreatment aCaseSensitive) const
virtual nsIContentFindFirstNonNativeAnonymous () const
virtual PRBool GetAttr (PRInt32 aNameSpaceID, nsIAtom *aAttribute, nsAString &aResult) const
virtual PRUint32 GetAttrCount () const
virtual nsChangeHint GetAttributeChangeHint (const nsIAtom *aAttribute, PRInt32 aModType) const
nsresult GetAttributes (nsIDOMNamedNodeMap **aAttributes)
virtual const nsAttrName * GetAttrNameAt (PRUint32 aIndex) const
virtual already_AddRefed< nsIURI > GetBaseURI () const
nsresult GetBaseURI (nsAString &aURI)
virtual nsIContentGetBindingParent () const
virtual nsIContentGetChildAt (PRUint32 aIndex) const
virtual PRUint32 GetChildCount () const
nsresult GetChildNodes (nsIDOMNodeList **aChildNodes)
virtual nsIAtom * GetClassAttributeName () const
virtual const nsAttrValue * GetClasses () const
nsIDocument * GetCurrentDoc () const
nsresult GetData (nsAString &aData) const
virtual PRUint32 GetDesiredIMEState ()
nsIDocument * GetDocument () const
virtual already_AddRefed
< nsINodeInfo > 
GetExistingAttrNameFromQName (const nsAString &aStr) const
nsresult GetFirstChild (nsIDOMNode **aFirstChild)
PtrBits GetFlags () const
virtual nsIAtom * GetID () const
virtual nsIAtom * GetIDAttributeName () const
virtual nsICSSStyleRule * GetInlineStyleRule ()
nsresult GetLastChild (nsIDOMNode **aLastChild)
nsresult GetLength (PRUint32 *aLength)
virtual nsresult GetListenerManager (PRBool aCreateIfNotFound, nsIEventListenerManager **aResult)
nsresult GetLocalName (nsAString &aLocalName)
PRInt32 GetNameSpaceID () const
nsresult GetNamespaceURI (nsAString &aNamespaceURI)
nsresult GetNextSibling (nsIDOMNode **aNextSibling)
nsINodeGetNodeParent () const
nsresult GetNodeValue (nsAString &aNodeValue)
nsIDocument * GetOwnerDoc () const
nsresult GetOwnerDocument (nsIDOMDocument **aOwnerDocument)
nsIContentGetParent () const
nsresult GetParentNode (nsIDOMNode **aParentNode)
nsresult GetPrefix (nsAString &aPrefix)
nsresult GetPreviousSibling (nsIDOMNode **aPreviousSibling)
virtual void * GetProperty (PRUint16 aCategory, nsIAtom *aPropertyName, nsresult *aStatus=nsnull) const
void * GetProperty (nsIAtom *aPropertyName, nsresult *aStatus=nsnull) const
virtual PRUint32 GetScriptTypeID () const
nsIContentGetSelectionRootContent (nsIPresShell *aPresShell)
virtual nsresult GetSystemEventGroup (nsIDOMEventGroup **aGroup)
virtual nsPIDOMEventTarget * GetTargetForDOMEvent ()
virtual nsPIDOMEventTarget * GetTargetForEventTargetChain ()
virtual const nsTextFragmentGetText ()
nsIContentGetTextEditorRootContent (nsIEditor **aEditor=nsnull)
virtual PRBool HasAttr (PRInt32 aNameSpaceID, nsIAtom *aAttribute) const
boolean hasAttributes ()
nsresult HasAttributes (PRBool *aHasAttributes)
boolean hasChildNodes ()
nsresult HasChildNodes (PRBool *aHasChildNodes)
PRBool HasFlag (PtrBits aFlag) const
PRBool HasProperties () const
PRBool HasSameOwnerDoc (nsINode *aOther)
virtual PRInt32 IndexOf (nsINode *aPossibleChild) const
nsIDOMNode insertBefore (in nsIDOMNode newChild, in nsIDOMNode refChild) raises (DOMException)
nsresult InsertBefore (nsIDOMNode *aNewChild, nsIDOMNode *aRefChild, nsIDOMNode **aReturn)
virtual nsresult InsertChildAt (nsIContent *aKid, PRUint32 aIndex, PRBool aNotify)
void insertData (in unsigned long offset, in DOMString arg) raises (DOMException)
nsresult InsertData (PRUint32 aOffset, const nsAString &aArg)
virtual PRInt32 IntrinsicState () const
virtual PRBool IsDoneAddingChildren ()
PRBool IsEditable () const
virtual PRBool IsFocusable (PRInt32 *aTabIndex=nsnull)
PRBool IsInDoc () const
PRBool IsInNativeAnonymousSubtree () const
virtual PRBool IsLink (nsIURI **aURI) const
PRBool IsNativeAnonymous () const
NS_DECL_ISUPPORTS_INHERITED
virtual
NS_IMPL_NSIDOMNODE_USING_GENERIC_DOM_DATA
PRBool 
IsNodeOfType (PRUint32 aFlags) const
boolean isSupported (in DOMString feature, in DOMString version)
nsresult IsSupported (const nsAString &aFeature, const nsAString &aVersion, PRBool *aReturn)
nsresult LookupNamespaceURI (const nsAString &aNamespacePrefix, nsAString &aNamespaceURI)
nsresult LookupPrefix (const nsAString &aNamespaceURI, nsAString &aPrefix)
virtual nsresult MaybeTriggerAutoLink (nsIDocShell *aShell)
virtual PRBool MayHaveFrame () const
nsINodeInfo * NodeInfo () const
nsIPrincipalNodePrincipal () const
virtual void NodeWillBeDestroyed (const nsINode *aNode)=0
void normalize ()
nsresult Normalize ()
 NS_IMETHOD_ (PRBool) IsAttributeMapped(const nsIAtom *aAttribute) const
NS_DECL_ISUPPORTS_INHERITED nsAttributeTextNode (nsINodeInfo *aNodeInfo, PRInt32 aNameSpaceID, nsIAtom *aAttrName)
virtual void ParentChainChanged (nsIContent *aContent)=0
virtual void PerformAccesskey (PRBool aKeyCausesActivation, PRBool aIsTrustedEvent)
virtual nsresult PostHandleEvent (nsEventChainPostVisitor &aVisitor)
virtual nsresult PreHandleEvent (nsEventChainPreVisitor &aVisitor)
nsIDOMNode removeChild (in nsIDOMNode oldChild) raises (DOMException)
nsresult RemoveChild (nsIDOMNode *aOldChild, nsIDOMNode **aReturn)
virtual nsresult RemoveChildAt (PRUint32 aIndex, PRBool aNotify)
virtual nsresult RemoveEventListenerByIID (nsIDOMEventListener *aListener, const nsIID &aIID)
virtual void RemoveFocus (nsPresContext *aPresContext)
virtual void RemoveMutationObserver (nsIMutationObserver *aMutationObserver)
nsIDOMNode replaceChild (in nsIDOMNode newChild, in nsIDOMNode oldChild) raises (DOMException)
nsresult ReplaceChild (nsIDOMNode *aNewChild, nsIDOMNode *aOldChild, nsIDOMNode **aReturn)
void replaceData (in unsigned long offset, in unsigned long count, in DOMString arg) raises (DOMException)
nsresult ReplaceData (PRUint32 aOffset, PRUint32 aCount, const nsAString &aArg)
virtual void SaveSubtreeState ()
virtual nsresult SetAttr (PRInt32 aNameSpaceID, nsIAtom *aAttribute, nsIAtom *aPrefix, const nsAString &aValue, PRBool aNotify)
nsresult SetAttr (PRInt32 aNameSpaceID, nsIAtom *aName, const nsAString &aValue, PRBool aNotify)
nsresult SetData (const nsAString &aData)
void SetEditableFlag (PRBool aEditable)
void SetFlags (PtrBits aFlagsToSet)
virtual void SetFocus (nsPresContext *aPresContext)
NS_IMETHOD SetInlineStyleRule (nsICSSStyleRule *aStyleRule, PRBool aNotify)
virtual void SetMayHaveFrame (PRBool aMayHaveFrame)
void SetNativeAnonymous ()
nsresult SetNodeValue (const nsAString &aNodeValue)
nsresult SetPrefix (const nsAString &aPrefix)
virtual nsresult SetProperty (PRUint16 aCategory, nsIAtom *aPropertyName, void *aValue, NSPropertyDtorFunc aDtor=nsnull, PRBool aTransfer=PR_FALSE, void **aOldValue=nsnull)
nsresult SetProperty (nsIAtom *aPropertyName, void *aValue, NSPropertyDtorFunc aDtor=nsnull, PRBool aTransfer=PR_FALSE)
virtual nsresult SetScriptTypeID (PRUint32 aLang)
nsresult SetText (const nsAString &aStr, PRBool aNotify)
virtual nsresult SetText (const PRUnichar *aBuffer, PRUint32 aLength, PRBool aNotify)
nsIDOMText splitText (in unsigned long offset) raises (DOMException)
DOMString substringData (in unsigned long offset, in unsigned long count) raises (DOMException)
nsresult SubstringData (PRUint32 aOffset, PRUint32 aCount, nsAString &aReturn)
nsIAtom * Tag () const
virtual PRBool TextIsOnlyWhitespace ()
virtual PRUint32 TextLength ()
virtual void UnbindFromTree (PRBool aDeep=PR_TRUE, PRBool aNullParent=PR_TRUE)
virtual nsresult UnsetAttr (PRInt32 aNameSpaceID, nsIAtom *aAttribute, PRBool aNotify)
void UnsetFlags (PtrBits aFlagsToUnset)
virtual void * UnsetProperty (PRUint16 aCategory, nsIAtom *aPropertyName, nsresult *aStatus=nsnull)
void * UnsetProperty (nsIAtom *aPropertyName, nsresult *aStatus=nsnull)
virtual void UpdateEditableState ()
void UpdateText ()
NS_IMETHOD WalkContentStyleRules (nsRuleWalker *aRuleWalker)
virtual nsresult WillHandleEvent (nsEventChainPostVisitor &aVisitor)
Methods
 NS_IMETHOD_ (nsrefcnt) AddRef(void)=0
NS_IMETHOD QueryInterface (REFNSIID aIID, void **aInstancePtr)=0

Public Attributes

const unsigned short ATTRIBUTE_NODE = 2
readonly attribute
nsIDOMNamedNodeMap 
attributes
const unsigned short CDATA_SECTION_NODE = 4
readonly attribute nsIDOMNodeList childNodes
const unsigned short COMMENT_NODE = 8
attribute DOMString data
const unsigned short DOCUMENT_FRAGMENT_NODE = 11
const unsigned short DOCUMENT_NODE = 9
const unsigned short DOCUMENT_TYPE_NODE = 10
const unsigned short ELEMENT_NODE = 1
const unsigned short ENTITY_NODE = 6
const unsigned short ENTITY_REFERENCE_NODE = 5
readonly attribute nsIDOMNode firstChild
readonly attribute nsIDOMNode lastChild
readonly attribute unsigned long length
readonly attribute DOMString localName
readonly attribute DOMString namespaceURI
readonly attribute nsIDOMNode nextSibling
readonly attribute DOMString nodeName
readonly attribute unsigned short nodeType
attribute DOMString nodeValue
const unsigned short NOTATION_NODE = 12
readonly attribute nsIDOMDocument ownerDocument
readonly attribute nsIDOMNode parentNode
attribute DOMString prefix
readonly attribute nsIDOMNode previousSibling
const unsigned short PROCESSING_INSTRUCTION_NODE = 7
const unsigned short TEXT_NODE = 3

Static Public Attributes

static PRInt32 sTabFocusModel = eTabFocus_any
static PRBool sTabFocusModelAppliesToXUL = PR_FALSE

Protected Types

enum  { PARENT_BIT_INDOCUMENT = 1 << 0, PARENT_BIT_PARENT_IS_CONTENT = 1 << 1 }
enum  { kParentBitMask = 0x3 }

Protected Member Functions

virtual nsINode::nsSlots * CreateSlots ()
nsSlots * FlagsAsSlots () const
nsDataSlotsGetDataSlots ()
nsDataSlotsGetExistingDataSlots () const
nsSlots * GetExistingSlots () const
nsTObserverArray
< nsIMutationObserver * > * 
GetMutationObservers ()
nsSlots * GetSlots ()
PRBool HasSlots () const
virtual PRBool IsEditableExternal () const
PRBool IsEditableInternal () const
nsresult SetTextInternal (PRUint32 aOffset, PRUint32 aCount, const PRUnichar *aBuffer, PRUint32 aLength, PRBool aNotify)
nsresult SplitText (PRUint32 aOffset, nsIDOMText **aReturn)

Protected Attributes

PtrBits mFlagsOrSlots
nsCOMPtr< nsINodeInfo > mNodeInfo
PtrBits mParentPtrBits
nsTextFragment mText

Private Member Functions

void DetachListener ()
void UpdateText (PRBool aNotify)

Private Attributes

nsCOMPtr< nsIAtom > mAttrName
PRInt32 mNameSpaceID

Friends

class nsNodeSupportsWeakRefTearoff
class nsNodeUtils
class nsNodeWeakReference

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

Generated by  Doxygen 1.6.0   Back to index