home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc / OpenDoc Development / Debugging Support / OpenDoc Source Code / DocShell / DraftWLD.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-22  |  1.5 KB  |  73 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        DraftWLD.cpp
  3.  
  4.     Contains:    Implemementation of LDEF for Drafts dialog.
  5.  
  6.     Owned by:    Eric House
  7.  
  8.     Copyright:    © 1994 - 1995 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <6>     8/25/95    eeh        1230007: don't do hilite here
  13.          <5>     5/10/95    eeh        1215536: cleanup
  14.          <4>     3/24/95    eeh        1229961: change callbacks to use IText*
  15.          <3>    12/19/94    eeh        1192626: pass in column starts; code review
  16.                                     changes
  17.          <2>     7/23/94    TÇ        use DraftWLD.h
  18.          <1>     6/27/94    TÇ        first checked in
  19.          <0>     6/27/94    SV        SOMverted
  20.          <1>      5/3/94    eeh        first checked in (bug #1155857)
  21.  
  22.     To Do:
  23. */
  24.  
  25. #ifndef __LISTS__
  26. #include <Lists.h>
  27. #endif
  28.  
  29. #ifndef _DRAFTWLD_
  30. #include "DraftWLD.h"
  31. #endif
  32.  
  33. ////////////////////////////////////////////////////////////////////////////////
  34. //
  35. //    Drafts Window LDEF
  36. //
  37. ////////////////////////////////////////////////////////////////////////////////
  38.  
  39.  
  40. pascal void DRAFTWINDOWLDEF( short lMessage, Boolean lSelect, const Rect* lRect,
  41.         Cell lCell, short /*lDataOffset*/, short /*lDataLen*/, ListHandle lHandle )
  42. {
  43.     switch( lMessage )
  44.     {
  45.         case lInitMsg :
  46.         case lCloseMsg :
  47.             return ;
  48.  
  49.         case lDrawMsg :
  50.         case lHiliteMsg :
  51.         {
  52.             if ( lCell.h != 0 )
  53.                 return ;
  54.  
  55.             EraseRect( lRect ) ;
  56.             
  57.             DraftLDEFCallbackInfo* hc =
  58.                     (DraftLDEFCallbackInfo*)(*lHandle)->refCon ;
  59.             (*hc->stringsProc)( hc, lCell.v, lRect );
  60. /*
  61.             if ( lSelect )
  62.             {
  63.                 short oldPenMode = (*lHandle)->port->pnMode;
  64.                 PenMode( hilitetransfermode );
  65.                 PaintRect( lRect ) ;
  66.                 PenMode( oldPenMode );
  67.             }
  68. */
  69.             break ;
  70.         }
  71.     }
  72. }    // DRAFTWINDOWLDEF
  73.