|
|
1.1 root 1: /*
2: * This class represents a change to a text object caused by the user
3: * typing characters or deleting characters with the delete key.
4: */
5:
6: @interface TypingTextChange : WholeTextChange
7: {
8: int insertionPoint; /* position of the cursor during change */
9: int insertionMin; /* low water mark of insertion point */
10: int insertionMax; /* high water mark of insertion point */
11: TypingTextChange *subsumingChange;
12: BOOL firstKeyDown; /* YES if we haven't seen the first key yet */
13: BOOL finished;
14: }
15:
16: /* Creation method */
17:
18: - initView:aView;
19:
20: /* Public Methods */
21:
22: - saveBeforeChange;
23: - saveAfterChange;
24: - (BOOL)subsumeChange:change;
25: - finishChange;
26: - subsumedBy:change;
27: - (BOOL)canBeExtended;
28: - deleteCharacter;
29: - addCharacter:(int)ch;
30:
31: @end
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.