home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / AppleScript / Development Tools / Sample Code / 7Edit 3.1 / Sources / SVEditWindow.h < prev    next >
Encoding:
Text File  |  1995-11-20  |  2.1 KB  |  75 lines  |  [TEXT/MPS ]

  1. // SVEditWindow.h
  2. //
  3. // 7Edit 3.1d1. Original version by Jon Lansdell and Nigel Humphreys.
  4. // 3.1 updates by Greg Sutton.
  5. // ©Apple Computer Inc 1995, all rights reserved.
  6.  
  7.     
  8. #ifndef __SVEDITWINDOW__
  9. #define __SVEDITWINDOW__
  10.     
  11. #include <Memory.h>
  12. #include <Types.h>
  13. #include <Quickdraw.h>
  14. #include <Fonts.h>
  15. #include <ToolUtils.h>
  16. #include <Traps.h>
  17. #include "SVEditGlobals.h"
  18. #include "SVEditUtils.h"
  19. #include "SVAppleEvents.h"
  20.  
  21. DPtr        DPtrFromWindowPtr(WindowPtr theWindow);
  22.  
  23. pascal void MyGrowWindow(WindowPtr w,
  24.                          Point     p);
  25.  
  26. pascal void GetPageEnds(short          pageHeight,
  27.                                               TEHandle       theText,
  28.                                               PageEndsArray  pageBounds,
  29.                                               short          *nPages);
  30.  
  31. pascal void DoZoom(WindowPtr w, short c, Point p);
  32.  
  33. pascal void DoContent(WindowPtr theWindow, EventRecord theEvent);
  34.  
  35. pascal OSErr DoActivate(WindowPtr theWindow, Boolean   activate);
  36.  
  37. pascal void DoUpdate(WindowPtr theWindow);
  38.  
  39. DPtr        NewDocument(Boolean isForOldDoc, WindowPtr behindWindow);
  40.  
  41. pascal void CloseMyWindow(WindowPtr aWindow);
  42.  
  43. pascal void ShowSelect(DPtr theDoc);
  44.  
  45. pascal void AdjustScrollbars(DPtr theDoc, Boolean needsResize);
  46.                                                      
  47. pascal void GetWinContentRect(WindowPtr theWindow, Rect *r);
  48.  
  49. pascal void ResizeWindow(DPtr theDoc);
  50.  
  51. pascal void ResizePageSetupForDocument(DPtr theDoc);
  52.  
  53. pascal void InvalidateDocument(DPtr theDoc);
  54.  
  55. pascal void DrawPageExtras(DPtr theDoc);
  56.  
  57. pascal void PrintWindow(DPtr theDoc, Boolean askUser);
  58.  
  59. pascal void VActionProc(ControlHandle control, short part);
  60.  
  61. pascal void HActionProc(ControlHandle control, short part);
  62.  
  63. pascal void AdjustTE(DPtr theDoc);
  64. pascal void AdjustHV(Boolean isVert, ControlHandle control, DPtr theDoc, Boolean canRedraw);
  65. pascal void AdjustScrollValues(DPtr theDoc, Boolean canRedraw);
  66. pascal void GetTERect(WindowPtr window, Rect *teRect);
  67. pascal void AdjustScrollSizes(DPtr theDoc);
  68. pascal void CommonAction(ControlHandle control, short *amount);
  69. pascal void OffsetWindow(WindowPtr aWindow);
  70. pascal void GetLocalUpdateRgn(WindowPtr window, RgnHandle localRgn);
  71. void                 DoBackgroundContent ( WindowPtr theWindow, EventRecord theEvent);
  72. pascal void DrawPageBreaks(DPtr theDoc);
  73.  
  74.  
  75. #endif