home *** CD-ROM | disk | FTP | other *** search
- /*
- File: TextFile.h
-
- Contains: Text file support for simple text application
-
- Version: xxx put the technology version here xxx
-
- Written by: Tom Dowdy
-
- Copyright: © 1993, 1995-1996 by Apple Computer, Inc., all rights reserved.
-
- File Ownership:
-
- DRI: Tom Dowdy
-
- Other Contact: xxx put alternate contact (owner’s functional manager) here xxx
-
- Technology: xxx put the technology group name here xxx
-
- Writers:
-
- (ted) Tom Dowdy
- (TD) Tom Dowdy
-
- Change History (most recent first):
-
- $Log: TextFile.h,v $
- Revision 1.1.1.1 1998/03/18 22:56:12 ivory
- Initial checkin of SimpleText.
-
-
- 1 7/28/97 11:24 AM Duane Byram
- first added to Source Safe project
-
- <3> 5/31/96 ted fixing clik loop for PPC
- <2> 9/19/95 TD fixing up undo with selection behavior
- <1> 8/21/95 TD First checked in.
-
- */
-
- #include "SimpleText.h"
-
- #define kTextStrings kTextBaseID
- #define iSpeakSelection 1
- #define iSpeakAll 2
- #define iStationeryHelp 3
- #define iStationerySelectedHelp 4
- #define iDocumentHelp 5
- #define iDocumentSelectedHelp 6
- #define iPictureMarker1 7
- #define iPictureMarker2 8
-
- #define kTextSaveAsDialogID kTextBaseID+1
- #define iTextDocumentItem 14
- #define iStationeryDocumentItem 15
- #define iTextUserItem 16
- #define iStationeryUserItem 17
-
- #define kMaxLength 31*1024
-
-
- #ifndef REZ
- struct TextDataRecord
- {
- WindowDataRecord w;
-
- Boolean insideClickLoop; // inside the click loop
- TEClickLoopUPP docClick; // old click loop value
- TEHandle hTE; // text editing area
- Handle soundHandle; // sound associated with this machine
-
- // undo support items
- short prevCommandID;
- Handle prevText;
- Handle prevStyle;
- short prevLength;
- short prevSelStart;
- short beforeSelStart, beforeSelEnd;
- };
- typedef struct TextDataRecord TextDataRecord, *TextDataPtr;
- #endif
-