home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 January / macformat-020.iso / Shareware City / Developers / apps.to.go / DTS.Lib / DTS.Lib.headers / TSMTE.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-12  |  1.7 KB  |  87 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        TSMTE.h
  3.  
  4.     Contains:    Definitions for TSMTE
  5.  
  6.     Written by:    Kida Yasuo, Hara Keisuke
  7.  
  8.     Copyright:    ©1991, 1992 Apple Operations and Technologies Japan, Inc.
  9.                 All rights reserved.
  10. */
  11.  
  12. #ifndef    __TSMTE__
  13. #define    __TSMTE__
  14.  
  15. #ifndef    __TEXTEDIT__
  16. #include <TextEdit.h>
  17. #endif
  18. #ifndef __DIALOGS__
  19. #include <Dialogs.h>
  20. #endif
  21.  
  22. #ifndef    __TEXTSERVICES__
  23. #include "TextServices.h"
  24. #endif
  25.  
  26.  
  27.  
  28. // Signature, interface types.
  29.  
  30. #define kTSMTESignature            'tmTE'
  31. #define kTSMTEInterfaceType        kTSMTESignature
  32. #define kTSMTEDialog            'tmDI'
  33.  
  34.  
  35. // Gestalt
  36.  
  37. #define gestaltTSMTEAttr        kTSMTESignature
  38. #define gestaltTSMTE            0
  39. #define gestaltTSMTEVersion        'tmTV'
  40. #define kTSMTEVersion            0x100 
  41.  
  42.  
  43. // Callback procedure definitions
  44.  
  45. typedef pascal void ( *TSMPreUpdateProcPtr)(
  46.     TEHandle    textH,
  47.     long        refCon);
  48.  
  49. typedef pascal void ( *TSMPostUpdateProcPtr)(
  50.     TEHandle    textH,
  51.     long        fixLen,
  52.     long        inputAreaStart,
  53.     long        inputAreaEnd,
  54.     long        pinStart,
  55.     long        pinEnd,
  56.     long        refCon);
  57.  
  58.  
  59. // TSMTERec
  60.  
  61. enum {
  62.     kTSMTEAutoScroll    = 1                //    auto scroll on
  63. };
  64.  
  65. typedef struct
  66. {
  67.     TEHandle                textH;            // TEHandle
  68.     TSMPreUpdateProcPtr        preUpdateProc;    // if not nil, this is called before updating text
  69.     TSMPostUpdateProcPtr    postUpdateProc;    // if not nil, this is called after updating text
  70.     long                    updateFlag;        // flags described above
  71.     long                    refCon;            // reference constant used by application
  72. } TSMTERec, *TSMTERecPtr, **TSMTERecHandle;
  73.  
  74.  
  75. // TSMDalogRecord
  76.  
  77. typedef struct TSMDialogRecord
  78. {
  79.     DialogRecord        fDialog;        // Dialog Record
  80.     TSMDocumentID        fDocID;            // TSMDocument ID
  81.     TSMTERecHandle        fTsmteRecH;        // Handle to the TSMTERec
  82.     long                fTSMTERsvd[3];    // •Internally used•
  83. } TSMDialogRecord, *TSMDialogPeek;
  84.  
  85.  
  86. #endif
  87.