home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Technology Seed / Jan. '98 ATS.toast / NavServices1.0b3 / Navigation Services SDK / Examples / SimpleText / SimpleText ƒ / NavigationServicesSupport.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-01-12  |  1.9 KB  |  61 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        NavigationServicesSupport.h
  3.  
  4.     Contains:    xxx put contents here xxx
  5.  
  6.     Version:    xxx put the technology version here xxx
  7.  
  8.     Copyright:    © 1997 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     File Ownership:
  11.  
  12.         DRI:                Yan Arrouye
  13.  
  14.         Other Contact:        xxx put alternate contact (owner’s functional manager) here xxx
  15.  
  16.         Technology:            xxx put the technology group name here xxx
  17.  
  18.     Writers:
  19.  
  20.         (Yan)    Yan Arrouye
  21.  
  22.     Change History (most recent first):
  23.  
  24.          <4>    /19/1997    Yan        Mixed mode support
  25.          <3>     5/08/97    Yan        Renamed HandleFileTranslation -> CompleteSave
  26. */
  27.  
  28. #include <Files.h>
  29. #include <Navigation.h>
  30.  
  31.  
  32. #define dontSaveChanges    3
  33.  
  34.  
  35.  
  36. OSStatus OpenFileDialog(OSType applicationSignature, short numTypes, OSType typeList[], NavEventProcPtr eventProc, FSSpec* fileSpec, OSType* fileType);
  37. // Displays the NavGet dialog and returns the selected file location.
  38. // To enable multiple document opening through AppleEvents pass NULL as the fileSpec anf fileType.
  39.  
  40.  
  41.  
  42. short ConfirmSaveDialog(StringPtr documentName, Boolean quitting, NavEventProcPtr eventProc);
  43. // Displays the save confirmation dialog anmd returns {ok, cancel, dontSaveChanges}
  44.  
  45.  
  46.  
  47. OSStatus SaveFileDialog(StringPtr fileName, OSType filetype, OSType fileCreator, NavEventProcPtr eventProc, FSSpec* fileSpec, Boolean* stationery, Boolean* replacing, NavReplyRecord* reply);
  48. // Displays the NavPut dialog and returns the selected file location and replacing info.
  49.  
  50.  
  51.  
  52. OSStatus CompleteSave(const FSSpec* fileSpec, NavReplyRecord* reply);
  53. // Call this routine after savibg a document passing back the fileSpec and reply returned by SaveFileDialog
  54. // This call performs any file tranlation needed and disposes the reply
  55.  
  56.  
  57.  
  58. pascal void MyEventProc(const NavEventCallbackMessage callBackSelector, 
  59.                         NavCBRecPtr callBackParms, 
  60.                         NavCallBackUserData callBackUD);
  61. // Callback to handle event passing betwwn the navigation dialogs and the applicatio