-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathNSTextFinder.h
executable file
·164 lines (154 loc) · 5.04 KB
/
NSTextFinder.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
/*
* NSTextFinder.h
* Notation
*
* Created by class-dump (Steve Nygard) from AppKit framework in 10.4
*
*/
#import <Cocoa/Cocoa.h>
enum {LAST_FIND_UNKNOWN, LAST_FIND_NO, LAST_FIND_YES};
@interface NSTextFinder : NSObject
{
#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5
//10.6
NSComboBox *findComboBox;
NSComboBox *replaceComboBox;
NSTextField *statusField;
NSButton *ignoreCaseButton;
NSButton *replaceAllButton;
NSButton *replaceButton;
NSButton *findNextButton;
NSButton *findPreviousButton;
NSButton *replaceAndFindButton;
NSButton *wrapAroundButton;
NSPopUpButton *matchPopUp;
NSTextView *fieldEditor;
NSString *findString;
BOOL lastFindWasSuccessful;
BOOL findStringChangedInUI;
BOOL findStringNeedsToBeRefreshedFromPB;
NSInteger lastChangeCount;
BOOL caseInsensitiveSearchDefault;
NSInteger substringMatchDefault;
NSMutableArray *recentFindStrings;
NSMutableArray *recentFindOptions;
NSMutableArray *recentReplaceStrings;
NSInteger numberOfRecentStrings;
#else
// 10.4
NSTextField *findTextField;
NSTextField *replaceTextField;
NSTextField *statusField;
NSButton *ignoreCaseButton;
NSButton *replaceAllButton;
NSButton *replaceButton;
NSButton *findNextButton;
NSButton *findPreviousButton;
NSButton *replaceAndFindButton;
NSButton *wrapAroundButton;
NSPopUpButton *matchPopUp;
NSTextView *fieldEditor;
NSString *findString;
@public
BOOL lastFindWasSuccessful;
BOOL findStringChangedInUI;
BOOL findStringNeedsToBeRefreshedFromPB;
#endif
}
+ (id)sharedTextFinder;
- (id)init;
- (void)dealloc;
- (void)finalize;
- (id)windowWillReturnFieldEditor:(id)fp8 toObject:(id)fp12;
- (void)appDidActivate:(id)fp8;
- (BOOL)loadFindStringFromPasteboard;
- (void)loadFindStringToPasteboard;
- (void)loadUI;
- (void)controlTextDidChange:(id)fp8;
- (id)findString;
- (void)setFindString:(id)fp8 writeToPasteboard:(BOOL)fp12 updateUI:(BOOL)fp16;
- (id)textObjectToSearchIn;
- (id)findPanel:(BOOL)fp8;
- (void)takeFindStringFromView:(id)fp8;
- (unsigned int)optionsFromPanel;
- (BOOL)findInView:(id)fp8 forward:(BOOL)fp12;
- (BOOL)replaceInView:(id)fp8;
- (BOOL)replaceAndFindInView:(id)fp8;
- (int)replaceAllInView:(id)fp8 selectionOnly:(BOOL)fp12;
- (BOOL)selectAllInView:(id)fp8 selectionOnly:(BOOL)fp12;
- (void)orderFrontFindPanel:(id)fp8;
- (void)findNextAndOrderFindPanelOut:(id)fp8;
- (void)performFindPanelAction:(id)fp8;
- (void)performFindPanelAction:(int)fp8 forClient:(id)fp12;
- (BOOL)validateFindPanelAction:(int)fp8 forClient:(id)fp12;
- (void)windowDidUpdate:(id)fp8;
@end
@interface NSTextFinder (LastFind)
- (int)nv_lastFindWasSuccessful;
@end
// Dump from 10.6 x86_64
#if 0
@interface NSTextFinder : NSObject <NSWindowDelegate, NSComboBoxDelegate>
{
NSComboBox *findComboBox;
NSComboBox *replaceComboBox;
NSTextField *statusField;
NSButton *ignoreCaseButton;
NSButton *replaceAllButton;
NSButton *replaceButton;
NSButton *findNextButton;
NSButton *findPreviousButton;
NSButton *replaceAndFindButton;
NSButton *wrapAroundButton;
NSPopUpButton *matchPopUp;
NSTextView *fieldEditor;
NSString *findString;
BOOL lastFindWasSuccessful;
BOOL findStringChangedInUI;
BOOL findStringNeedsToBeRefreshedFromPB;
long long lastChangeCount;
BOOL caseInsensitiveSearchDefault;
long long substringMatchDefault;
NSMutableArray *recentFindStrings;
NSMutableArray *recentFindOptions;
NSMutableArray *recentReplaceStrings;
long long numberOfRecentStrings;
}
+ (id)sharedTextFinder;
- (id)init;
- (void)awakeFromNib;
- (void)dealloc;
- (id)windowWillReturnFieldEditor:(id)arg1 toObject:(id)arg2;
- (BOOL)needToRefreshFromPasteboard;
- (void)appDidActivate:(id)arg1;
- (BOOL)loadFindStringFromPasteboard;
- (void)loadFindStringToPasteboard;
- (void)restoreDefaultSearchOptions;
- (void)makeCurrentSearchOptionsDefault;
- (void)setDefaultSearchOptions:(id)arg1;
- (void)loadUI;
- (void)controlTextDidChange:(id)arg1;
- (void)addStringToRecentSearchStrings:(id)arg1;
- (void)addStringToRecentReplaceStrings:(id)arg1;
- (id)comboBox:(id)arg1 objectValueForItemAtIndex:(long long)arg2;
- (long long)numberOfItemsInComboBox:(id)arg1;
- (void)comboBoxSelectionDidChange:(id)arg1;
- (id)findString;
- (void)setFindString:(id)arg1 writeToPasteboard:(BOOL)arg2 updateUI:(BOOL)arg3;
- (id)textObjectToSearchIn;
- (id)findPanel:(BOOL)arg1;
- (void)takeFindStringFromView:(id)arg1;
- (unsigned long long)optionsFromPanel;
- (BOOL)findInView:(id)arg1 forward:(BOOL)arg2;
- (BOOL)replaceInView:(id)arg1;
- (BOOL)replaceAndFindInView:(id)arg1;
- (long long)replaceAllInView:(id)arg1 selectionOnly:(BOOL)arg2;
- (BOOL)selectAllInView:(id)arg1 selectionOnly:(BOOL)arg2;
- (void)orderFrontFindPanel:(id)arg1;
- (void)findNextAndOrderFindPanelOut:(id)arg1;
- (void)performFindPanelAction:(id)arg1;
- (void)performFindPanelAction:(unsigned long long)arg1 forClient:(id)arg2;
- (BOOL)validateFindPanelAction:(unsigned long long)arg1 forClient:(id)arg2;
- (void)windowDidUpdate:(id)arg1;
@end
#endif