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

  1. #ifndef __L2DTS__
  2. #define __L2DTS__
  3.  
  4. #include "DTS.Lib.h"
  5.  
  6. #ifndef __LISTCONTROL__
  7. #include "ListControl.h"
  8. #endif
  9.  
  10. #ifndef __TEXTEDITCONTROL__
  11. #include "TextEditControl.h"
  12. #endif
  13.  
  14. #ifndef __TYPES__
  15. #include <Types.h>
  16. #endif
  17.  
  18. #ifndef __TREEOBJ__
  19. #include "TreeObj.h"
  20. #endif
  21.  
  22. #ifdef powerc
  23. #pragma options align=mac68k
  24. #endif
  25. typedef struct {
  26.     DocHeaderInfo    fhInfo;
  27.     TreeObjHndl        root;            /***** End of application framework file info. *****/
  28. } TheDoc;
  29. #ifdef powerc
  30. #pragma options align=reset
  31. #endif
  32.  
  33. #ifdef powerc
  34. #pragma options align=mac68k
  35. #endif
  36. typedef struct {
  37.     DocHeaderInfo    fhInfo;
  38.     TreeObjHndl        root;            /***** Start of custom file info. *****/
  39.     TEHandle        dump;
  40.     TEHandle        display;
  41.     ListHandle        plist;
  42.     ListHandle        clist;
  43.     ControlHandle    newView;
  44. } ViewDoc;
  45. #ifdef powerc
  46. #pragma options align=reset
  47. #endif
  48.  
  49. #ifdef powerc
  50. #pragma options align=mac68k
  51. #endif
  52. typedef struct FileRec {
  53.     FileStateRec    fileState;
  54.     ConnectRec        connect;
  55.     union {
  56.         TheDoc    doc;
  57.         ViewDoc    vh;
  58.     } d;
  59. } FileRec;
  60. #ifdef powerc
  61. #pragma options align=reset
  62. #endif
  63.  
  64. #ifdef powerc
  65. #pragma options align=mac68k
  66. #endif
  67. typedef struct {
  68.     TreeObjHndl    undo;
  69.     FileRecHndl    frHndl;
  70. } RootObj;
  71. #ifdef powerc
  72. #pragma options align=reset
  73. #endif
  74.  
  75. #define mDerefRoot(hndl)     ((RootObj*)((*hndl) + 1))
  76.  
  77. #endif
  78.