blob: d297a07a06322b62dd4a5c9ca7c913120565ccd8 (
plain)
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
|
class PdfName:
def __init__(self, name, abr=''):
self.fName = name
self.fAbr = abr
def toCpp(self):
return '\"' + self.fName + '\"'
class PdfString:
def __init__(self, value):
self.fValue = value
def toCpp(self):
return '\"' + self.fValue + '\"'
class PdfInteger:
def __init__(self, value):
self.fValue = value
def toCpp(self):
return str(self.fValue)
class PdfNumber:
def __init__(self, value):
self.fValue = value
def toCpp(self):
return str(self.fValue)
class PdfString:
def __init__(self, value):
self.fValue = value
def toCpp(self):
return self.fValue
class PdfBoolean:
def __init__(self, value):
self.fValue = value
def toCpp(self):
return self.fValue
class CppNull:
def toCpp(self):
return 'NULL'
class PdfDateNever:
def toCpp(self):
return 'SkPdfDate()'
class FileSpecNone:
def toCpp(self):
return 'SkPdfFileSpec()'
class EmptyRect:
def toCpp(self):
return 'SkRect::MakeEmpty()'
class IdentityMatrix:
def toCpp(self):
return 'SkMatrix::I()'
class PdfEmptyStream:
def toCpp(self):
return 'SkPdfStream()'
class PdfArrayNone:
def toCpp(self):
return 'SkPdfArray()'
class PdfFunctionNone:
def toCpp(self):
return 'SkPdfFunction()'
class EmptyTree:
def toCpp(self):
return 'SkPdfTree()'
|