Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions
nsTreeSelection.cpp File Reference
#include "nsCOMPtr.h"
#include "nsTreeSelection.h"
#include "nsIBoxObject.h"
#include "nsITreeBoxObject.h"
#include "nsITreeView.h"
#include "nsString.h"
#include "nsIDOMElement.h"
#include "nsIDOMClassInfo.h"
#include "nsIPresShell.h"
#include "nsPresContext.h"
#include "nsIContent.h"
#include "nsIDocument.h"
#include "nsGUIEvent.h"
#include "nsINameSpaceManager.h"
#include "nsXULAtoms.h"
#include "nsPLDOMEvent.h"

Go to the source code of this file.

Classes

struct  nsTreeRange

Defines

#define ADD_NEW_RANGE(macro_range, macro_selection, macro_start, macro_end)

Functions

nsresult NS_NewTreeSelection (nsITreeBoxObject *aTree, nsITreeSelection **aResult)

Define Documentation

#define ADD_NEW_RANGE (   macro_range,
  macro_selection,
  macro_start,
  macro_end 
)
Value:
{ \
    nsTreeRange* macro_new_range = new nsTreeRange(macro_selection, (macro_start), (macro_end)); \
    if (macro_range) \
      macro_range->Insert(macro_new_range); \
    else \
      macro_range = macro_new_range; \
  }

Definition at line 632 of file nsTreeSelection.cpp.


Function Documentation

Definition at line 808 of file nsTreeSelection.cpp.

{
  *aResult = new nsTreeSelection(aTree);
  if (!*aResult)
    return NS_ERROR_OUT_OF_MEMORY;
  NS_ADDREF(*aResult);
  return NS_OK;
}

Here is the call graph for this function: