-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathStyleHeaders.h
More file actions
114 lines (92 loc) · 3.12 KB
/
Copy pathStyleHeaders.h
File metadata and controls
114 lines (92 loc) · 3.12 KB
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
#pragma once
#import "ImageData.h"
#import "LinkData.h"
#import "MentionParams.h"
#import "StyleBase.h"
@class EnrichedConfig;
@interface BoldStyle : StyleBase
@end
@interface ItalicStyle : StyleBase
@end
@interface UnderlineStyle : StyleBase
@end
@interface StrikethroughStyle : StyleBase
@end
@interface InlineCodeStyle : StyleBase
@end
@interface LinkStyle : StyleBase
- (void)addLink:(LinkData *)linkData
range:(NSRange)range
withSelection:(BOOL)withSelection;
- (LinkData *)getLinkDataAt:(NSUInteger)location;
- (NSRange)getFullLinkRangeAt:(NSUInteger)location;
- (void)handleAutomaticLinks:(NSString *)word inRange:(NSRange)wordRange;
- (void)handleManualLinks:(NSString *)word inRange:(NSRange)wordRange;
- (void)applyLinkMetaWithData:(LinkData *)linkData range:(NSRange)range;
+ (BOOL)matchesLinkRegexWithConfig:(NSString *)url
config:(EnrichedConfig *)config;
@end
@interface MentionStyle : StyleBase
- (void)addMention:(NSString *)indicator
text:(NSString *)text
attributes:(NSString *)attributes;
- (void)addMentionAtRange:(NSRange)range params:(MentionParams *)params;
- (void)startMentionWithIndicator:(NSString *)indicator;
- (void)handleExistingMentions;
- (void)manageMentionEditing;
- (MentionParams *)getMentionParamsAt:(NSUInteger)location;
- (NSRange)getFullMentionRangeAt:(NSUInteger)location;
- (NSValue *)getActiveMentionRange;
- (void)applyMentionMeta:(MentionParams *)params range:(NSRange)range;
@end
@interface HeadingStyleBase : StyleBase
- (CGFloat)getHeadingFontSize;
- (BOOL)isHeadingBold;
- (BOOL)handleNewlinesInRange:(NSRange)range replacementText:(NSString *)text;
@end
@interface H1Style : HeadingStyleBase
@end
@interface H2Style : HeadingStyleBase
@end
@interface H3Style : HeadingStyleBase
@end
@interface H4Style : HeadingStyleBase
@end
@interface H5Style : HeadingStyleBase
@end
@interface H6Style : HeadingStyleBase
@end
@interface UnorderedListStyle : StyleBase
@end
@interface OrderedListStyle : StyleBase
@end
@interface CheckboxListStyle : StyleBase
- (void)toggleWithChecked:(BOOL)checked range:(NSRange)range;
- (void)addWithChecked:(BOOL)checked
range:(NSRange)range
withTyping:(BOOL)withTyping
withDirtyRange:(BOOL)withDirtyRange;
- (void)toggleCheckedAt:(NSUInteger)location
withDirtyRange:(BOOL)withDirtyRange;
- (BOOL)getCheckboxStateAt:(NSUInteger)location;
- (BOOL)handleNewlinesInRange:(NSRange)range replacementText:(NSString *)text;
@end
@interface AlignmentStyle : StyleBase
- (void)addAlignment:(NSTextAlignment)alignment
range:(NSRange)range
withTyping:(BOOL)withTyping
withDirtyRange:(BOOL)withDirtyRange;
- (NSString *)getStyleState;
@end
@interface BlockQuoteStyle : StyleBase
@end
@interface CodeBlockStyle : StyleBase
@end
@interface ImageStyle : StyleBase
- (void)addImage:(NSString *)uri width:(CGFloat)width height:(CGFloat)height;
- (void)addImageAtRange:(NSRange)range
imageData:(ImageData *)imageData
withSelection:(BOOL)withSelection
withDirtyRange:(BOOL)withDirtyRange;
- (ImageData *)getImageDataAt:(NSUInteger)location;
@end