home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 August: Technology Seed / ADC Seed CD - August 1999.toast / Carbon SDK 1.0d10c3 / Sample Code / SimpleText / TextFile.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-05-04  |  1.8 KB  |  82 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        TextFile.h
  3.  
  4.     Contains:    Text file support for simple text application
  5.  
  6.     Version:    xxx put the technology version here xxx
  7.  
  8.     Written by:    Tom Dowdy
  9.  
  10.     Copyright:    © 1993, 1995-1996 by Apple Computer, Inc., all rights reserved.
  11.  
  12.     File Ownership:
  13.  
  14.         DRI:                Tom Dowdy
  15.  
  16.         Other Contact:        xxx put alternate contact (owner’s functional manager) here xxx
  17.  
  18.         Technology:            xxx put the technology group name here xxx
  19.  
  20.     Writers:
  21.  
  22.         (ted)    Tom Dowdy
  23.         (TD)    Tom Dowdy
  24.  
  25.     Change History (most recent first):
  26.  
  27.     $Log: TextFile.h,v $
  28.     Revision 1.1.1.1  1998/03/18 22:56:12  ivory
  29.     Initial checkin of SimpleText.
  30.  
  31.         
  32.         1     7/28/97 11:24 AM Duane Byram
  33.         first added to Source Safe project
  34.  
  35.          <3>     5/31/96    ted        fixing clik loop for PPC
  36.          <2>     9/19/95    TD        fixing up undo with selection behavior
  37.          <1>     8/21/95    TD        First checked in.
  38.  
  39. */
  40.  
  41. #include "SimpleText.h"
  42.  
  43. #define kTextStrings             kTextBaseID
  44. #define iSpeakSelection                1
  45. #define iSpeakAll                    2
  46. #define iStationeryHelp                3
  47. #define iStationerySelectedHelp        4
  48. #define iDocumentHelp                 5
  49. #define iDocumentSelectedHelp        6
  50. #define iPictureMarker1                7
  51. #define iPictureMarker2                8
  52.  
  53. #define kTextSaveAsDialogID     kTextBaseID+1
  54. #define iTextDocumentItem        14
  55. #define iStationeryDocumentItem    15
  56. #define iTextUserItem            16
  57. #define iStationeryUserItem        17
  58.  
  59. #define kMaxLength                31*1024
  60.  
  61.  
  62. #ifndef REZ
  63.     struct TextDataRecord
  64.         {
  65.         WindowDataRecord        w;
  66.         
  67.         Boolean                    insideClickLoop;    // inside the click loop
  68.         TEClickLoopUPP            docClick;            // old click loop value
  69.         TEHandle                hTE;                // text editing area
  70.         Handle                    soundHandle;        // sound associated with this machine
  71.         
  72.         // undo support items
  73.         short                    prevCommandID;
  74.         Handle                    prevText;
  75.         Handle                    prevStyle;
  76.         short                    prevLength;
  77.         short                    prevSelStart;
  78.         short                    beforeSelStart, beforeSelEnd;
  79.         };
  80.     typedef struct TextDataRecord TextDataRecord, *TextDataPtr;    
  81. #endif
  82.