OLD | NEW |
| (Empty) |
1 #include "SkPdfType5HalftoneDictionary_autogen.h" | |
2 | |
3 std::string SkPdfType5HalftoneDictionary::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 double SkPdfType5HalftoneDictionary::HalftoneType() const { | |
11 double ret; | |
12 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HalftoneTyp
e", "", &ret)) return ret; | |
13 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
14 return 0; | |
15 } | |
16 | |
17 std::string SkPdfType5HalftoneDictionary::HalftoneName() const { | |
18 std::string ret; | |
19 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HalftoneNam
e", "", &ret)) return ret; | |
20 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
21 return ""; | |
22 } | |
23 | |
24 /* | |
25 SkPdfDictionary* SkPdfType5HalftoneDictionary::get[any_colorant_name]AsDictionar
y() const { | |
26 SkPdfDictionary* ret = NULL; | |
27 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "[any_co
lorant_name]", "", &ret)) return ret; | |
28 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
29 return NULL; | |
30 } | |
31 | |
32 SkPdfStream* SkPdfType5HalftoneDictionary::get[any_colorant_name]AsStream() cons
t { | |
33 SkPdfStream* ret = NULL; | |
34 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "[any_colora
nt_name]", "", &ret)) return ret; | |
35 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
36 return NULL; | |
37 } | |
38 | |
39 */ | |
40 SkPdfDictionary* SkPdfType5HalftoneDictionary::getDefaultAsDictionary() const { | |
41 SkPdfDictionary* ret = NULL; | |
42 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Default
", "", &ret)) return ret; | |
43 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
44 return NULL; | |
45 } | |
46 | |
47 SkPdfStream* SkPdfType5HalftoneDictionary::getDefaultAsStream() const { | |
48 SkPdfStream* ret = NULL; | |
49 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Default", "
", &ret)) return ret; | |
50 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
51 return NULL; | |
52 } | |
OLD | NEW |