/
DTCSSListStyle.h
56 lines (46 loc) · 1.51 KB
/
DTCSSListStyle.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
//
// DTCSSListStyle.h
// CoreTextExtensions
//
// Created by Oliver Drobnik on 8/11/11.
// Copyright 2011 Drobnik.com. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef enum
{
DTCSSListStyleTypeInherit = 0,
DTCSSListStyleTypeNone,
DTCSSListStyleTypeCircle,
DTCSSListStyleTypeDecimal,
DTCSSListStyleTypeDecimalLeadingZero,
DTCSSListStyleTypeDisc,
DTCSSListStyleTypeUpperAlpha,
DTCSSListStyleTypeUpperLatin,
DTCSSListStyleTypeLowerAlpha,
DTCSSListStyleTypeLowerLatin,
DTCSSListStyleTypePlus,
DTCSSListStyleTypeUnderscore,
DTCSSListStyleTypeImage,
DTCSSListStyleTypeInvalid = NSIntegerMax
} DTCSSListStyleType;
typedef enum
{
DTCSSListStylePositionInherit = 0,
DTCSSListStylePositionInside,
DTCSSListStylePositionOutside,
DTCSSListStylePositionInvalid = NSIntegerMax
} DTCSSListStylePosition;
@interface DTCSSListStyle : NSObject
@property (nonatomic, assign) BOOL inherit;
@property (nonatomic, assign) DTCSSListStyleType type;
@property (nonatomic, assign) DTCSSListStylePosition position;
@property (nonatomic, copy) NSString *imageName;
+ (DTCSSListStyle *)listStyleWithStyles:(NSDictionary *)styles;
+ (DTCSSListStyle *)decimalListStyle;
+ (DTCSSListStyle *)discListStyle;
+ (DTCSSListStyle *)inheritedListStyle;
+ (DTCSSListStyleType)listStyleTypeFromString:(NSString *)string;
+ (DTCSSListStylePosition)listStylePositionFromString:(NSString *)string;
- (id)initWithStyles:(NSDictionary *)styles;
- (NSString *)prefixWithCounter:(NSInteger)counter;
@end