-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy pathStyleHeaders.h
More file actions
73 lines (59 loc) · 2.4 KB
/
Copy pathStyleHeaders.h
File metadata and controls
73 lines (59 loc) · 2.4 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
#pragma once
#import "BaseStyleProtocol.h"
#import "LinkData.h"
#import "MentionParams.h"
@interface BoldStyle : NSObject <BaseStyleProtocol>
@end
@interface ItalicStyle : NSObject <BaseStyleProtocol>
@end
@interface UnderlineStyle : NSObject <BaseStyleProtocol>
@end
@interface StrikethroughStyle : NSObject <BaseStyleProtocol>
@end
@interface InlineCodeStyle : NSObject <BaseStyleProtocol>
- (void)handleNewlines;
@end
@interface LinkStyle : NSObject <BaseStyleProtocol>
- (void)addLink:(NSString*)text url:(NSString*)url range:(NSRange)range manual:(BOOL)manual;
- (LinkData *)getLinkDataAt:(NSUInteger)location;
- (NSRange)getFullLinkRangeAt:(NSUInteger)location;
- (void)manageLinkTypingAttributes;
- (void)handleAutomaticLinks:(NSString *)word inRange:(NSRange)wordRange;
- (void)handleManualLinks:(NSString *)word inRange:(NSRange)wordRange;
- (BOOL)handleLeadingLinkReplacement:(NSRange)range replacementText:(NSString *)text;
@end
@interface MentionStyle : NSObject<BaseStyleProtocol>
- (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;
- (void)manageMentionTypingAttributes;
- (BOOL)handleLeadingMentionReplacement:(NSRange)range replacementText:(NSString *)text;
- (MentionParams *)getMentionParamsAt:(NSUInteger)location;
- (NSRange)getFullMentionRangeAt:(NSUInteger)location;
- (NSValue *)getActiveMentionRange;
@end
@interface HeadingStyleBase : NSObject<BaseStyleProtocol> {
id editor;
}
- (CGFloat)getHeadingFontSize;
@end
@interface H1Style : HeadingStyleBase
@end
@interface H2Style : HeadingStyleBase
@end
@interface H3Style : HeadingStyleBase
@end
@interface UnorderedListStyle : NSObject<BaseStyleProtocol>
- (BOOL)handleBackspaceInRange:(NSRange)range replacementText:(NSString *)text;
- (BOOL)tryHandlingListShorcutInRange:(NSRange)range replacementText:(NSString *)text;
- (void)handleListItemWithChangeRange:(NSRange)range;
@end
@interface OrderedListStyle : NSObject<BaseStyleProtocol>
- (BOOL)handleBackspaceInRange:(NSRange)range replacementText:(NSString *)text;
- (BOOL)tryHandlingListShorcutInRange:(NSRange)range replacementText:(NSString *)text;
- (void)handleListItemWithChangeRange:(NSRange)range;
@end
@interface BlockQuoteStyle : NSObject<BaseStyleProtocol>
@end