Diff for /chimera/Attic/RDFOutlineTranslator.mm between versions 1.1 and 1.2

version 1.1, 2002/02/08 02:19:20 version 1.2, 2002/02/08 03:12:54
Line 8 Line 8
  */   */
   
 #include <Carbon/Carbon.h>  #include <Carbon/Carbon.h>
   #include "nsCOMPtr.h"
 #include "RDFOutlineTranslator.h"  #include "RDFOutlineTranslator.h"
   
   //////////////////////////////////////////////////
   // nsIOutlinerBoxObject implementation
   //////////////////////////////////////////////////
   
   NS_IMETHODIMP
   RDFOutlineTranslator::GetView(nsIOutlinerView** aResult)
   {
       *aResult = mBuilder;
       NS_IF_ADDREF(*aResult);
       return NS_OK;
   }
   
   NS_IMETHODIMP
   RDFOutlineTranslator::SetView(nsIOutlinerView * aView)
   {
       mBuilder = aView;
       return NS_OK;
   }
   
   /**
   * Get the index of the specified column.
   */
   /* long getColumnIndex (in wstring colID); */
   NS_IMETHODIMP
   RDFOutlineTranslator::GetColumnIndex(const PRUnichar *colID, PRInt32 *_retval)
   {
       return NS_OK;
   }
   
   /**
   * Invalidation methods for fine-grained painting control.
   */
   /* void invalidate (); */
   NS_IMETHODIMP
   RDFOutlineTranslator::Invalidate(void)
   {
       [mDataSource invalidate];
       return NS_OK;
   }
   
   /* void invalidateColumn (in wstring colID); */
   NS_IMETHODIMP
   RDFOutlineTranslator::InvalidateColumn(const PRUnichar *colID)
   {
       [mDataSource invalidateColumn: colID];
       return NS_OK;
   }
   
   /* void invalidateRow (in long index); */
   NS_IMETHODIMP
   RDFOutlineTranslator::InvalidateRow(PRInt32 index)
   {
       [mDataSource invalidateRow: index];
       return NS_OK;
   }
   
   /* void invalidateCell (in long row, in wstring colID); */
   NS_IMETHODIMP
   RDFOutlineTranslator::InvalidateCell(PRInt32 index, const PRUnichar *colID)
   {
       [mDataSource invalidateCell: index atColumn: colID];
       return NS_OK;
   }
   
   /* void invalidatePrimaryCell (in long row); */
   NS_IMETHODIMP
   RDFOutlineTranslator::InvalidatePrimaryCell(PRInt32 row)
   {
       [mDataSource invalidatePrimaryCell: row];
       return NS_OK;
   }
   
   /* void invalidateRange (in long startIndex, in long endIndex); */
   NS_IMETHODIMP
   RDFOutlineTranslator::InvalidateRange(PRInt32 startIndex, PRInt32 endIndex)
   {
       [mDataSource invalidateRange: startIndex ending: endIndex];
       return NS_OK;
   }
   
   /**
   * The view is responsible for calling these notification methods when
   * rows are added or removed.  Index is the position at which the new
   * rows were added or at which rows were removed.  For
   * non-contiguous additions/removals, this method should be called multiple times.
   */
   /* void rowCountChanged (in long index, in long count); */
   NS_IMETHODIMP
   RDFOutlineTranslator::RowCountChanged(PRInt32 index, PRInt32 count)
   {
       [mDataSource rowCountChanged: index byCount: count];
       return NS_OK;
   }
   
   
   /**
   * [IRRELEVANT METHODS]
   */
   NS_IMETHODIMP
   RDFOutlineTranslator::GetFocused(PRBool *aFocused) { return NS_OK; }
   NS_IMETHODIMP
   RDFOutlineTranslator::SetFocused(PRBool aFocused) { return NS_OK; }
   NS_IMETHODIMP
   RDFOutlineTranslator::GetOutlinerBody(nsIDOMElement * *aOutlinerBody) { return NS_OK; }
   NS_IMETHODIMP
   RDFOutlineTranslator::GetSelection(nsIOutlinerSelection * *aSelection) { return NS_OK; }
   NS_IMETHODIMP
   RDFOutlineTranslator::GetRowHeight(PRInt32 *aRowHeight) { return NS_OK; }
   NS_IMETHODIMP
   RDFOutlineTranslator::GetFirstVisibleRow(PRInt32 *_retval) { return NS_OK; }
   NS_IMETHODIMP
   RDFOutlineTranslator::GetLastVisibleRow(PRInt32 *_retval) { return NS_OK; }
   NS_IMETHODIMP
   RDFOutlineTranslator::GetPageCount(PRInt32 *_retval) { return NS_OK; }
   NS_IMETHODIMP
   RDFOutlineTranslator::EnsureRowIsVisible(PRInt32 index) { return NS_OK; }
   NS_IMETHODIMP
   RDFOutlineTranslator::ScrollToRow(PRInt32 index) { return NS_OK; }
   NS_IMETHODIMP
   RDFOutlineTranslator::ScrollByLines(PRInt32 numLines) { return NS_OK; }
   NS_IMETHODIMP
   RDFOutlineTranslator::ScrollByPages(PRInt32 numPages) { return NS_OK; }
   NS_IMETHODIMP
   RDFOutlineTranslator::GetCellAt(PRInt32 x, PRInt32 y, PRInt32 *row, PRUnichar **colID, PRUnichar **childElt) { return NS_OK; }
   NS_IMETHODIMP
   RDFOutlineTranslator::GetCoordsForCellItem(PRInt32 row, const PRUnichar *colID, const PRUnichar *element, PRInt32 *x, PRInt32 *y, PRInt32 *width, PRInt32 *height) { return NS_OK; }
   NS_IMETHODIMP
   RDFOutlineTranslator::IsCellCropped(PRInt32 row, const nsAString & colID, PRBool *_retval) { return NS_OK; }
   NS_IMETHODIMP
   RDFOutlineTranslator::OnDragEnter(nsIDOMEvent *event) { return NS_OK; }
   NS_IMETHODIMP
   RDFOutlineTranslator::OnDragExit(nsIDOMEvent *event) { return NS_OK; }
   NS_IMETHODIMP
   RDFOutlineTranslator::OnDragOver(nsIDOMEvent *event) { return NS_OK; }
   NS_IMETHODIMP
   RDFOutlineTranslator::OnDragDrop(nsIDOMEvent *event) { return NS_OK; }
   NS_IMETHODIMP
   RDFOutlineTranslator::ClearStyleAndImageCaches(void) { return NS_OK; }
   NS_IMETHODIMP RDFOutlineTranslator::InvalidateScrollbar(void) { return NS_OK; }
   

Removed from v.1.1  
changed lines
  Added in v.1.2


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