home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-05-01 | 4.7 KB | 247 lines | [TEXT/MPS ] |
- /*
- Editions.r
- MacApp® Edition Manager Resources
- Copyright © 1990 Apple Computer, Inc. All rights reserved.
-
- Usage
- =====
- If your application supports the Edition Manager, then include the following line in your
- application's ".r" file:
-
- include "Editions.rsrc"; // Grab the required Edition Manager resources
-
- If your application uses the default Edition Manager Edit menu supplied by MacApp, then
- include the following line in your application's ".r" file:
-
- include "Defaults.rsrc" 'CMNU' (mEditionMgrEdit); // Grab the default Edition Manager Edit menu
-
-
- Open Issues
- ===========
- There are 4 buzz strings in the kIDBuzzString 'STR#' resource for Edition Mgr support,
- these should probably be broken out of the default buzz string resource, but where should
- they go?
-
- The Edition Mgr default Edit menu is in Defaults.r and should probably remain there (rather
- than moving it here) since it's optional, whereas the resources in this file are mandatory.
- */
-
- /* • Auto-Include the requirements for this source */
- #ifndef __TYPES.R__
- #include "Types.r"
- #endif
-
- #ifndef __MacAppTypes__
- #include "MacAppTypes.r"
- #endif
-
- #ifndef __ViewTypes__
- #include "ViewTypes.r"
- #endif
-
- // Edition Manager Apple Event support
- resource 'aedt' (kAEEditionsDispatchTable)
- {
- {
- sectionEventMsgClass, sectionReadMsgID, cSectionRead;
- sectionEventMsgClass, sectionWriteMsgID, cSectionWrite;
- sectionEventMsgClass, sectionScrollMsgID, cSectionScroll;
- sectionEventMsgClass, sectionCancelMsgID, cSectionCancel;
- }
- };
-
- /* Used when closing a document in which the user has created a publisher but hasn't
- modified any of the document's DATA */
-
- resource 'DITL' (phNewPublisherAlert,
- #if qNames
- "phNewPublisherAlert",
- #endif
- purgeable) {
- { /* array DITLarray: 6 elements */
- /* [1] */
- {121, 279, 141, 362},
- Button {
- enabled,
- "Save"
- },
- /* [2] */
- {121, 183, 141, 266},
- Button {
- enabled,
- "Cancel"
- },
- /* [3] */
- {121, 65, 141, 148},
- Button {
- enabled,
- "Don't Save"
- },
- /* [4] */
- {10, 65, 59, 363},
- StaticText {
- disabled,
- "This document contains new Publishers. "
- "You must save this document to keep them"
- "."
- },
- /* [5] */
- {75, 65, 108, 332},
- StaticText {
- disabled,
- "Save “^0” before ^1?"
- },
- /* [6] */
- {10, 20, 42, 52},
- Icon {
- disabled,
- 2
- }
- }
- };
-
- /* Used when a document has multiple publishers to the same edition. */
-
- resource 'DITL' (phMultPublisherWrn,
- #if qNames
- "phMultPublisherWrn",
- #endif
- purgeable) {
- { /* array DITLarray: 4 elements */
- /* [1] */
- {121, 290, 141, 348},
- Button {
- enabled,
- "OK"
- },
- /* [2] */
- {10, 65, 41, 338},
- StaticText {
- disabled,
- "There is another Publisher open to the E"
- "dition “^0.”"
- },
- /* [3] */
- {57, 65, 108, 340},
- StaticText {
- disabled,
- "If there is more than one Publisher to a"
- "n Edition, the Edition’s contents aren’t"
- " predictable."
- },
- /* [4] */
- {10, 20, 42, 52},
- Icon {
- disabled,
- 2
- }
- }
- };
-
- /* Used when a document tries to save multiple publishers to the same edition. */
-
- resource 'DITL' (phSavingMultPublisherWrn,
- #if qNames
- "phSavingMultPublisherWrn",
- #endif
- purgeable) {
- { /* array DITLarray: 4 elements */
- /* [1] */
- {121, 290, 141, 348},
- Button {
- enabled,
- "OK"
- },
- /* [2] */
- {10, 65, 41, 338},
- StaticText {
- disabled,
- "“^1” contains two Publishers to the Edit"
- "ion “^0.”"
- },
- /* [3] */
- {57, 65, 108, 340},
- StaticText {
- disabled,
- "If there is more than one Publisher to a"
- "n Edition, the Edition’s contents aren’t"
- " predictable."
- },
- /* [4] */
- {10, 20, 42, 52},
- Icon {
- disabled,
- 2
- }
- }
- };
-
- resource 'ALRT' (phNewPublisherAlert,
- #if qNames
- "phNewPublisherAlert",
- #endif
- purgeable) {
- {86, 60, 236, 432},
- phNewPublisherAlert,
- { /* array: 4 elements */
- /* [1] */
- OK, visible, silent,
- /* [2] */
- OK, visible, silent,
- /* [3] */
- OK, visible, silent,
- /* [4] */
- OK, visible, silent
- }
- #if SystemSevenOrLater
- ,
- alertPositionMainScreen
- #endif
- };
-
- resource 'ALRT' (phMultPublisherWrn,
- #if qNames
- "phMultPublisherWrn",
- #endif
- purgeable) {
- {100, 110, 252, 468},
- phMultPublisherWrn,
- { /* array: 4 elements */
- /* [1] */
- OK, visible, silent,
- /* [2] */
- OK, visible, silent,
- /* [3] */
- OK, visible, silent,
- /* [4] */
- OK, visible, silent
- }
- #if SystemSevenOrLater
- ,
- alertPositionMainScreen
- #endif
- };
-
- resource 'ALRT' (phSavingMultPublisherWrn,
- #if qNames
- "phSavingMultPublisherWrn",
- #endif
- purgeable) {
- {100, 110, 252, 468},
- phSavingMultPublisherWrn,
- { /* array: 4 elements */
- /* [1] */
- OK, visible, silent,
- /* [2] */
- OK, visible, silent,
- /* [3] */
- OK, visible, silent,
- /* [4] */
- OK, visible, silent
- }
- #if SystemSevenOrLater
- ,
- alertPositionMainScreen
- #endif
- };
-