home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Tools - Objects / MacApp / MacApp 3.0a2 / Libraries / Editions.r < prev    next >
Encoding:
Text File  |  1991-05-01  |  4.7 KB  |  247 lines  |  [TEXT/MPS ]

  1. /*
  2.     Editions.r
  3.     MacApp® Edition Manager Resources
  4.     Copyright © 1990 Apple Computer, Inc.    All rights reserved.
  5.     
  6.     Usage
  7.     =====
  8.     If your application supports the Edition Manager, then include the following line in your
  9.     application's ".r" file:
  10.     
  11. include "Editions.rsrc";                            // Grab the required Edition Manager resources
  12.  
  13.     If your application uses the default Edition Manager Edit menu supplied by MacApp, then 
  14.     include the following line in your application's ".r" file:
  15.     
  16. include "Defaults.rsrc" 'CMNU' (mEditionMgrEdit);    // Grab the default Edition Manager Edit menu
  17.  
  18.     
  19.     Open Issues
  20.     ===========
  21.     There are 4 buzz strings in the kIDBuzzString 'STR#' resource for Edition Mgr support,
  22.     these should probably be broken out of the default buzz string resource, but where should
  23.     they go?
  24.     
  25.     The Edition Mgr default Edit menu is in Defaults.r and should probably remain there (rather
  26.     than moving it here) since it's optional, whereas the resources in this file are mandatory.
  27. */
  28.  
  29. /* • Auto-Include the requirements for this source */
  30. #ifndef __TYPES.R__
  31. #include "Types.r"
  32. #endif
  33.  
  34. #ifndef __MacAppTypes__
  35. #include "MacAppTypes.r"
  36. #endif
  37.  
  38. #ifndef __ViewTypes__
  39. #include "ViewTypes.r"
  40. #endif
  41.  
  42. // Edition Manager Apple Event support
  43. resource 'aedt' (kAEEditionsDispatchTable)
  44. {
  45.     {
  46.     sectionEventMsgClass, sectionReadMsgID, cSectionRead;
  47.     sectionEventMsgClass, sectionWriteMsgID, cSectionWrite;
  48.     sectionEventMsgClass, sectionScrollMsgID, cSectionScroll;
  49.     sectionEventMsgClass, sectionCancelMsgID, cSectionCancel;
  50.     }
  51. };
  52.  
  53. /* Used when closing a document in which the user has created a publisher but hasn't
  54.    modified any of the document's DATA */
  55.  
  56. resource 'DITL' (phNewPublisherAlert,
  57. #if qNames
  58.     "phNewPublisherAlert",
  59. #endif
  60.     purgeable) {
  61.     {    /* array DITLarray: 6 elements */
  62.         /* [1] */
  63.         {121, 279, 141, 362},
  64.         Button {
  65.             enabled,
  66.             "Save"
  67.         },
  68.         /* [2] */
  69.         {121, 183, 141, 266},
  70.         Button {
  71.             enabled,
  72.             "Cancel"
  73.         },
  74.         /* [3] */
  75.         {121, 65, 141, 148},
  76.         Button {
  77.             enabled,
  78.             "Don't Save"
  79.         },
  80.         /* [4] */
  81.         {10, 65, 59, 363},
  82.         StaticText {
  83.             disabled,
  84.             "This document contains new Publishers.  "
  85.             "You must save this document to keep them"
  86.             "."
  87.         },
  88.         /* [5] */
  89.         {75, 65, 108, 332},
  90.         StaticText {
  91.             disabled,
  92.             "Save “^0” before ^1?"
  93.         },
  94.         /* [6] */
  95.         {10, 20, 42, 52},
  96.         Icon {
  97.             disabled,
  98.             2
  99.         }
  100.     }
  101. };
  102.  
  103. /* Used when a document has multiple publishers to the same edition. */
  104.  
  105. resource 'DITL' (phMultPublisherWrn,
  106. #if qNames
  107.     "phMultPublisherWrn",
  108. #endif
  109.     purgeable) {
  110.     {    /* array DITLarray: 4 elements */
  111.         /* [1] */
  112.         {121, 290, 141, 348},
  113.         Button {
  114.             enabled,
  115.             "OK"
  116.         },
  117.         /* [2] */
  118.         {10, 65, 41, 338},
  119.         StaticText {
  120.             disabled,
  121.             "There is another Publisher open to the E"
  122.             "dition “^0.”"
  123.         },
  124.         /* [3] */
  125.         {57, 65, 108, 340},
  126.         StaticText {
  127.             disabled,
  128.             "If there is more than one Publisher to a"
  129.             "n Edition, the Edition’s contents aren’t"
  130.             " predictable."
  131.         },
  132.         /* [4] */
  133.         {10, 20, 42, 52},
  134.         Icon {
  135.             disabled,
  136.             2
  137.         }
  138.     }
  139. };
  140.  
  141. /* Used when a document tries to save multiple publishers to the same edition. */
  142.  
  143. resource 'DITL' (phSavingMultPublisherWrn,
  144. #if qNames
  145.     "phSavingMultPublisherWrn",
  146. #endif
  147.     purgeable) {
  148.     {    /* array DITLarray: 4 elements */
  149.         /* [1] */
  150.         {121, 290, 141, 348},
  151.         Button {
  152.             enabled,
  153.             "OK"
  154.         },
  155.         /* [2] */
  156.         {10, 65, 41, 338},
  157.         StaticText {
  158.             disabled,
  159.             "“^1” contains two Publishers to the Edit"
  160.             "ion “^0.”"
  161.         },
  162.         /* [3] */
  163.         {57, 65, 108, 340},
  164.         StaticText {
  165.             disabled,
  166.             "If there is more than one Publisher to a"
  167.             "n Edition, the Edition’s contents aren’t"
  168.             " predictable."
  169.         },
  170.         /* [4] */
  171.         {10, 20, 42, 52},
  172.         Icon {
  173.             disabled,
  174.             2
  175.         }
  176.     }
  177. };
  178.  
  179. resource 'ALRT' (phNewPublisherAlert,
  180. #if qNames
  181.     "phNewPublisherAlert",
  182. #endif
  183.     purgeable) {
  184.     {86, 60, 236, 432},
  185.     phNewPublisherAlert,
  186.     {    /* array: 4 elements */
  187.         /* [1] */
  188.         OK, visible, silent,
  189.         /* [2] */
  190.         OK, visible, silent,
  191.         /* [3] */
  192.         OK, visible, silent,
  193.         /* [4] */
  194.         OK, visible, silent
  195.     }
  196. #if SystemSevenOrLater
  197.     ,
  198.     alertPositionMainScreen
  199. #endif
  200. };
  201.  
  202. resource 'ALRT' (phMultPublisherWrn,
  203. #if qNames
  204.     "phMultPublisherWrn",
  205. #endif
  206.     purgeable) {
  207.     {100, 110, 252, 468},
  208.     phMultPublisherWrn,
  209.     {    /* array: 4 elements */
  210.         /* [1] */
  211.         OK, visible, silent,
  212.         /* [2] */
  213.         OK, visible, silent,
  214.         /* [3] */
  215.         OK, visible, silent,
  216.         /* [4] */
  217.         OK, visible, silent
  218.     }
  219. #if SystemSevenOrLater
  220.     ,
  221.     alertPositionMainScreen
  222. #endif
  223. };
  224.  
  225. resource 'ALRT' (phSavingMultPublisherWrn,
  226. #if qNames
  227.     "phSavingMultPublisherWrn",
  228. #endif
  229.     purgeable) {
  230.     {100, 110, 252, 468},
  231.     phSavingMultPublisherWrn,
  232.     {    /* array: 4 elements */
  233.         /* [1] */
  234.         OK, visible, silent,
  235.         /* [2] */
  236.         OK, visible, silent,
  237.         /* [3] */
  238.         OK, visible, silent,
  239.         /* [4] */
  240.         OK, visible, silent
  241.     }
  242. #if SystemSevenOrLater
  243.     ,
  244.     alertPositionMainScreen
  245. #endif
  246. };
  247.