home *** CD-ROM | disk | FTP | other *** search
/ HyperLib 1997 Winter - Disc 1 / HYPERLIB-1997-Winter-CD1.ISO.7z / HYPERLIB-1997-Winter-CD1.ISO / オンラインウェア / PRG / ListPrint.sit / ListPrint / ListPrint.h < prev    next >
Text File  |  1995-02-24  |  3KB  |  104 lines

  1. //******************************************************************************
  2. //
  3. //    Macintosh プログラム作成の勉強
  4. //    This Program is lesson for Macintohs.
  5. //    1994/ 1/26 By SAGAWA KAZUYOSHI
  6. //    1994/ 4/26 By SAGAWA KAZUYOSHI
  7. //    1994/ 9/20 By SAGAWA KAZUYOSHI
  8. //    1994/11/12 By SAGAWA KAZUYOSHI
  9. //
  10. //******************************************************************************
  11. #include    <PrintTraps.h>
  12.  
  13.  
  14. /**************************************************************************
  15.  *
  16.  *    外部ワーク宣言
  17.  *
  18.  **************************************************************************/
  19. extern WindowRecord    wRecord;        /**/
  20. extern EventRecord    event;            /* イベント取得用        */
  21. //extern WindowPtr    masterWindow;
  22. extern WindowPtr    CurrentWindow;
  23.  
  24. extern int        fontItemNow, sizeItemNow, tabsItemNow;
  25.  
  26. extern ControlHandle    hControl[controlNumber];    /* コントロール部品ハンドル値の保存用 */
  27.  
  28. extern ListInfoData    listData;    /* スクローリングリスト情報データ        */
  29.  
  30. extern THPrint        hPrint;        /* プリントレコード                */
  31. extern Handle        hFileIn;    /* ファイル読み込み用ハンドル        */
  32.  
  33. extern TEHandle    TEHtab;        /* タブ値(テキストエディットハンドル)    */
  34. extern Rect        destRect;    /* 文字列を表示する枠をRectで指定        */
  35. extern Rect        viewRect;    /* TextEditを表示する枠をRectで指定        */
  36.  
  37. extern CiconInfoData    cIconData[];    /* カラーアイコン情報データ            */
  38.  
  39. extern int        linesInFolder;
  40. extern ControlHandle    vScroll;
  41. extern Cursor        waitCursor;
  42. ////extern MenuHandle    mystyleMenus[];    /**/
  43.  
  44. /**************************************************************************
  45.  *
  46.  *    関数プロトタイプ宣言
  47.  *
  48.  **************************************************************************/
  49. void    ListPrintScreenDisp    (void);
  50. void    ListPrint_MacInitial    (void);
  51. void    ListPrint_SetSystemCursor(int);
  52. int    ListPrint_MainEvent    (void);
  53. int    ListPrint_DoKey    (void);
  54. void    DoMenu            (long);
  55.  
  56. int    ListPrint_window_SetUp(void);
  57.  
  58. void    CheckFontMenu        (int);
  59. void    CheckSizeMenu        (int);
  60. void    ActiveFileItem        (short, int);
  61. void    ActiveStyleItem    (short, int);
  62. void    ActiveSourceItem    (short, int);
  63. void    DoButtonHilite        (void);
  64.  
  65. void    TrashWindow        (WindowPtr);
  66. void    DoAction        (void);
  67. void    DoTab            (char);
  68. void    DoScrollList        (char);
  69. void    DoContent        (WindowPtr);
  70. void    DoContentPopUpMenu    (ControlHandle);
  71. void    DoContentCheckBox    (ControlHandle);
  72. void    DoContentButton    (ControlHandle);
  73. void    DoContentColorIconButton(void);
  74. void    DoDrag            (WindowPtr);
  75. void    DoGrow            (WindowPtr);
  76. void    DoGoAway        (WindowPtr, Point);
  77. void    DoZoom            (WindowPtr, Point, int);
  78. void    ValidGrowArea        (Rect *);
  79.  
  80. void    DoOpenCommand        (void);
  81. void    DoPageSetupCommand    (void);
  82. void    DoPrintCommand        (void);
  83. void    DoQuitCommand        (void);
  84.  
  85. void    DoAddDialog        (void);
  86.  
  87. void    ScrollListSetUp    (void);
  88. void    ScrollListSetCell    (short, Str255, ListHandle);
  89. int    ScrollListDelCell    (ListInfoData *);
  90. void    ScrollListAddCell    (Str255, ListInfoData *);
  91.  
  92. void    SetTabsFontDialog    (void);
  93. void    DrawDefault        (DialogPtr, short);
  94.  
  95. int    PrintDoc        (Handle, Str63);
  96. int    PrintDataEdit        (long, Ptr, Ptr);
  97. void    TabMoveDrawText    (Ptr, int, int);
  98. void    LineNumberDrawText    (int);
  99.  
  100. void    SelectFileSetUp    (FSSpec, ListInfoData *);
  101. void    SelectFileDelete    (int, ListInfoData *);
  102. void    SelectFileAllDelete    (ListInfoData *);
  103. Handle    ReadFileData        (FSSpec);
  104.