File:  [mozdev] / chimera / Attic / RDFOutlineTranslator.mm
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Fri Feb 8 03:12:54 2002 UTC (17 years, 9 months ago) by hyatt
Branches: MAIN
CVS tags: HEAD
Going for bookmarks.

    1: /*
    2:  *  RDFOutlineTranslator.mm
    3:  *  Chimera
    4:  *
    5:  *  Created by David Hyatt on Thu Feb 07 2002.
    6:  *  Copyright (c) 2001 __MyCompanyName__. All rights reserved.
    7:  *
    8:  */
    9: 
   10: #include <Carbon/Carbon.h>
   11: #include "nsCOMPtr.h"
   12: #include "RDFOutlineTranslator.h"
   13: 
   14: //////////////////////////////////////////////////
   15: // nsIOutlinerBoxObject implementation
   16: //////////////////////////////////////////////////
   17: 
   18: NS_IMETHODIMP
   19: RDFOutlineTranslator::GetView(nsIOutlinerView** aResult)
   20: {
   21:     *aResult = mBuilder;
   22:     NS_IF_ADDREF(*aResult);
   23:     return NS_OK;
   24: }
   25: 
   26: NS_IMETHODIMP
   27: RDFOutlineTranslator::SetView(nsIOutlinerView * aView)
   28: {
   29:     mBuilder = aView;
   30:     return NS_OK;
   31: }
   32: 
   33: /**
   34: * Get the index of the specified column.
   35: */
   36: /* long getColumnIndex (in wstring colID); */
   37: NS_IMETHODIMP
   38: RDFOutlineTranslator::GetColumnIndex(const PRUnichar *colID, PRInt32 *_retval)
   39: {
   40:     return NS_OK;
   41: }
   42: 
   43: /**
   44: * Invalidation methods for fine-grained painting control.
   45: */
   46: /* void invalidate (); */
   47: NS_IMETHODIMP
   48: RDFOutlineTranslator::Invalidate(void)
   49: {
   50:     [mDataSource invalidate];
   51:     return NS_OK;
   52: }
   53: 
   54: /* void invalidateColumn (in wstring colID); */
   55: NS_IMETHODIMP
   56: RDFOutlineTranslator::InvalidateColumn(const PRUnichar *colID)
   57: {
   58:     [mDataSource invalidateColumn: colID];
   59:     return NS_OK;
   60: }
   61: 
   62: /* void invalidateRow (in long index); */
   63: NS_IMETHODIMP
   64: RDFOutlineTranslator::InvalidateRow(PRInt32 index)
   65: {
   66:     [mDataSource invalidateRow: index];
   67:     return NS_OK;
   68: }
   69: 
   70: /* void invalidateCell (in long row, in wstring colID); */
   71: NS_IMETHODIMP
   72: RDFOutlineTranslator::InvalidateCell(PRInt32 index, const PRUnichar *colID)
   73: {
   74:     [mDataSource invalidateCell: index atColumn: colID];
   75:     return NS_OK;
   76: }
   77: 
   78: /* void invalidatePrimaryCell (in long row); */
   79: NS_IMETHODIMP
   80: RDFOutlineTranslator::InvalidatePrimaryCell(PRInt32 row)
   81: {
   82:     [mDataSource invalidatePrimaryCell: row];
   83:     return NS_OK;
   84: }
   85: 
   86: /* void invalidateRange (in long startIndex, in long endIndex); */
   87: NS_IMETHODIMP
   88: RDFOutlineTranslator::InvalidateRange(PRInt32 startIndex, PRInt32 endIndex)
   89: {
   90:     [mDataSource invalidateRange: startIndex ending: endIndex];
   91:     return NS_OK;
   92: }
   93: 
   94: /**
   95: * The view is responsible for calling these notification methods when
   96: * rows are added or removed.  Index is the position at which the new
   97: * rows were added or at which rows were removed.  For
   98: * non-contiguous additions/removals, this method should be called multiple times.
   99: */
  100: /* void rowCountChanged (in long index, in long count); */
  101: NS_IMETHODIMP
  102: RDFOutlineTranslator::RowCountChanged(PRInt32 index, PRInt32 count)
  103: {
  104:     [mDataSource rowCountChanged: index byCount: count];
  105:     return NS_OK;
  106: }
  107: 
  108: 
  109: /**
  110: * [IRRELEVANT METHODS]
  111: */
  112: NS_IMETHODIMP
  113: RDFOutlineTranslator::GetFocused(PRBool *aFocused) { return NS_OK; }
  114: NS_IMETHODIMP
  115: RDFOutlineTranslator::SetFocused(PRBool aFocused) { return NS_OK; }
  116: NS_IMETHODIMP
  117: RDFOutlineTranslator::GetOutlinerBody(nsIDOMElement * *aOutlinerBody) { return NS_OK; }
  118: NS_IMETHODIMP
  119: RDFOutlineTranslator::GetSelection(nsIOutlinerSelection * *aSelection) { return NS_OK; }
  120: NS_IMETHODIMP
  121: RDFOutlineTranslator::GetRowHeight(PRInt32 *aRowHeight) { return NS_OK; }
  122: NS_IMETHODIMP
  123: RDFOutlineTranslator::GetFirstVisibleRow(PRInt32 *_retval) { return NS_OK; }
  124: NS_IMETHODIMP
  125: RDFOutlineTranslator::GetLastVisibleRow(PRInt32 *_retval) { return NS_OK; }
  126: NS_IMETHODIMP
  127: RDFOutlineTranslator::GetPageCount(PRInt32 *_retval) { return NS_OK; }
  128: NS_IMETHODIMP
  129: RDFOutlineTranslator::EnsureRowIsVisible(PRInt32 index) { return NS_OK; }
  130: NS_IMETHODIMP
  131: RDFOutlineTranslator::ScrollToRow(PRInt32 index) { return NS_OK; }
  132: NS_IMETHODIMP
  133: RDFOutlineTranslator::ScrollByLines(PRInt32 numLines) { return NS_OK; }
  134: NS_IMETHODIMP
  135: RDFOutlineTranslator::ScrollByPages(PRInt32 numPages) { return NS_OK; }
  136: NS_IMETHODIMP
  137: RDFOutlineTranslator::GetCellAt(PRInt32 x, PRInt32 y, PRInt32 *row, PRUnichar **colID, PRUnichar **childElt) { return NS_OK; }
  138: NS_IMETHODIMP
  139: RDFOutlineTranslator::GetCoordsForCellItem(PRInt32 row, const PRUnichar *colID, const PRUnichar *element, PRInt32 *x, PRInt32 *y, PRInt32 *width, PRInt32 *height) { return NS_OK; }
  140: NS_IMETHODIMP
  141: RDFOutlineTranslator::IsCellCropped(PRInt32 row, const nsAString & colID, PRBool *_retval) { return NS_OK; }
  142: NS_IMETHODIMP
  143: RDFOutlineTranslator::OnDragEnter(nsIDOMEvent *event) { return NS_OK; }
  144: NS_IMETHODIMP
  145: RDFOutlineTranslator::OnDragExit(nsIDOMEvent *event) { return NS_OK; }
  146: NS_IMETHODIMP
  147: RDFOutlineTranslator::OnDragOver(nsIDOMEvent *event) { return NS_OK; }
  148: NS_IMETHODIMP
  149: RDFOutlineTranslator::OnDragDrop(nsIDOMEvent *event) { return NS_OK; }
  150: NS_IMETHODIMP
  151: RDFOutlineTranslator::ClearStyleAndImageCaches(void) { return NS_OK; }
  152: NS_IMETHODIMP RDFOutlineTranslator::InvalidateScrollbar(void) { return NS_OK; }
  153: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>