-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathETTeXHandlers.h
74 lines (61 loc) · 1.3 KB
/
ETTeXHandlers.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
#import <EtoileText/ETTeXScanner.h>
@class NSURL, NSMutableString;
@interface ETTeXSimpleHandler : ETTeXHandler
{
BOOL isStarted;
}
+ (void)setTextType: (NSString*)aType forTeXCommand: (NSString*)aCommand;
@end
@interface ETTeXNonNestedHandler : ETTeXSimpleHandler
{
int depth;
}
@end
@interface ETTeXIgnoreHandler : ETTeXHandler @end
@interface ETTeXIgnoreHandler2 : ETTeXIgnoreHandler
{
int count;
}
@end
@interface ETTeXNestableHandler : ETTeXSimpleHandler @end
@interface ETTeXEnvironmentHandler : ETTeXHandler
{
NSString *environmentName;
BOOL isVerbatim;
BOOL inBegin;
BOOL inEnd;
}
+ (void)setTextType: (NSString*)aType forTeXEnvironment: (NSString*)aCommand;
+ (void)addVerbatimEnvironment: (NSString*)anEnvironment;
@end
/**
* Parser for the subset of LaTeX that I use.
*/
@interface ETTeXSectionHandler : ETTeXHandler
@end
@interface ETTeXHREFHandler : ETTeXHandler
{
NSURL *url;
NSString *buffer;
}
@end
@interface ETTeXLinkHandler : ETTeXHandler
{
NSMutableDictionary *attributes;
}
@end
@interface ETTeXIndexHandler : ETTeXLinkHandler
{
int depth;
NSMutableString *buffer;
}
@end
@interface ETTeXRefHandler : ETTeXLinkHandler @end
@interface ETTeXLabelHandler : ETTeXLinkHandler @end
@interface ETTeXItemHandler : ETTeXHandler
{
BOOL inOptArg;
BOOL hasOptArg;
BOOL startedBody;
}
@end