OLD | NEW |
| (Empty) |
1 #include "SkPdfAnnotationDictionary_autogen.h" | |
2 | |
3 std::string SkPdfAnnotationDictionary::Type() const { | |
4 std::string ret; | |
5 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &r
et)) return ret; | |
6 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
7 return ""; | |
8 } | |
9 | |
10 std::string SkPdfAnnotationDictionary::Subtype() const { | |
11 std::string ret; | |
12 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "",
&ret)) return ret; | |
13 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
14 return ""; | |
15 } | |
16 | |
17 std::string SkPdfAnnotationDictionary::Contents() const { | |
18 std::string ret; | |
19 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents",
"", &ret)) return ret; | |
20 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
21 return ""; | |
22 } | |
23 | |
24 SkPdfDictionary* SkPdfAnnotationDictionary::P() const { | |
25 SkPdfDictionary* ret; | |
26 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", "",
&ret)) return ret; | |
27 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
28 return NULL; | |
29 } | |
30 | |
31 SkRect* SkPdfAnnotationDictionary::Rect() const { | |
32 SkRect* ret; | |
33 if (SkRectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Rect", "",
&ret)) return ret; | |
34 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
35 return NULL; | |
36 } | |
37 | |
38 SkPdfDate SkPdfAnnotationDictionary::getMAsDate() const { | |
39 SkPdfDate ret = SkPdfDate(); | |
40 if (DateFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "M", "", &ret)
) return ret; | |
41 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
42 return SkPdfDate(); | |
43 } | |
44 | |
45 std::string SkPdfAnnotationDictionary::getMAsString() const { | |
46 std::string ret = ""; | |
47 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "M", "", &re
t)) return ret; | |
48 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
49 return ""; | |
50 } | |
51 | |
52 long SkPdfAnnotationDictionary::F() const { | |
53 long ret; | |
54 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", &ret)
) return ret; | |
55 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
56 return 0; | |
57 } | |
58 | |
59 SkPdfDictionary* SkPdfAnnotationDictionary::BS() const { | |
60 SkPdfDictionary* ret; | |
61 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BS", ""
, &ret)) return ret; | |
62 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
63 return NULL; | |
64 } | |
65 | |
66 SkPdfArray* SkPdfAnnotationDictionary::Border() const { | |
67 SkPdfArray* ret; | |
68 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Border", "",
&ret)) return ret; | |
69 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
70 return NULL; | |
71 } | |
72 | |
73 SkPdfDictionary* SkPdfAnnotationDictionary::AP() const { | |
74 SkPdfDictionary* ret; | |
75 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AP", ""
, &ret)) return ret; | |
76 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
77 return NULL; | |
78 } | |
79 | |
80 std::string SkPdfAnnotationDictionary::AS() const { | |
81 std::string ret; | |
82 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AS", "", &ret
)) return ret; | |
83 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
84 return ""; | |
85 } | |
86 | |
87 SkPdfArray* SkPdfAnnotationDictionary::C() const { | |
88 SkPdfArray* ret; | |
89 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "", &ret
)) return ret; | |
90 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
91 return NULL; | |
92 } | |
93 | |
94 double SkPdfAnnotationDictionary::CA() const { | |
95 double ret; | |
96 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CA", "", &r
et)) return ret; | |
97 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
98 return 0; | |
99 } | |
100 | |
101 std::string SkPdfAnnotationDictionary::T() const { | |
102 std::string ret; | |
103 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "T", "", &re
t)) return ret; | |
104 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
105 return ""; | |
106 } | |
107 | |
108 SkPdfDictionary* SkPdfAnnotationDictionary::Popup() const { | |
109 SkPdfDictionary* ret; | |
110 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Popup",
"", &ret)) return ret; | |
111 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
112 return NULL; | |
113 } | |
114 | |
115 SkPdfDictionary* SkPdfAnnotationDictionary::A() const { | |
116 SkPdfDictionary* ret; | |
117 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "A", "",
&ret)) return ret; | |
118 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
119 return NULL; | |
120 } | |
121 | |
122 SkPdfDictionary* SkPdfAnnotationDictionary::AA() const { | |
123 SkPdfDictionary* ret; | |
124 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AA", ""
, &ret)) return ret; | |
125 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
126 return NULL; | |
127 } | |
128 | |
129 long SkPdfAnnotationDictionary::StructParent() const { | |
130 long ret; | |
131 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StructParent"
, "", &ret)) return ret; | |
132 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
133 return 0; | |
134 } | |
OLD | NEW |