Back to index

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

#include <nsSelectionState.h>

Collaboration diagram for nsRangeStore:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsRangeStore ()
 ~nsRangeStore ()
nsresult StoreRange (nsIDOMRange *aRange)
nsresult GetRange (nsCOMPtr< nsIDOMRange > *outRange)

Public Attributes

nsCOMPtr< nsIDOMNodestartNode
PRInt32 startOffset
nsCOMPtr< nsIDOMNodeendNode
PRInt32 endOffset

Detailed Description

Definition at line 56 of file nsSelectionState.h.


Constructor & Destructor Documentation

Definition at line 680 of file nsSelectionState.cpp.

{ 
  // DEBUG: n++;  printf("range store alloc count=%d\n", n); 
}

Definition at line 684 of file nsSelectionState.cpp.

{
  // DEBUG: n--;  printf("range store alloc count=%d\n", n); 
}

Member Function Documentation

Definition at line 699 of file nsSelectionState.cpp.

{
  if (!outRange) return NS_ERROR_NULL_POINTER;
  nsresult res;
  *outRange = do_CreateInstance("@mozilla.org/content/range;1", &res);
  if(NS_FAILED(res)) return res;

  res = (*outRange)->SetStart(startNode, startOffset);
  if(NS_FAILED(res)) return res;

  res = (*outRange)->SetEnd(endNode, endOffset);
  return res;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 689 of file nsSelectionState.cpp.

{
  if (!aRange) return NS_ERROR_NULL_POINTER;
  aRange->GetStartContainer(getter_AddRefs(startNode));
  aRange->GetEndContainer(getter_AddRefs(endNode));
  aRange->GetStartOffset(&startOffset);
  aRange->GetEndOffset(&endOffset);
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 65 of file nsSelectionState.h.

Definition at line 66 of file nsSelectionState.h.

Definition at line 63 of file nsSelectionState.h.

Definition at line 64 of file nsSelectionState.h.


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