OLD | NEW |
| (Empty) |
1 #include "SkPdfType1HalftoneDictionary_autogen.h" | |
2 | |
3 std::string SkPdfType1HalftoneDictionary::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 long SkPdfType1HalftoneDictionary::HalftoneType() const { | |
11 long ret; | |
12 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HalftoneType"
, "", &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 SkPdfType1HalftoneDictionary::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 double SkPdfType1HalftoneDictionary::Frequency() const { | |
25 double ret; | |
26 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Frequency",
"", &ret)) return ret; | |
27 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
28 return 0; | |
29 } | |
30 | |
31 double SkPdfType1HalftoneDictionary::Angle() const { | |
32 double ret; | |
33 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Angle", "",
&ret)) return ret; | |
34 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
35 return 0; | |
36 } | |
37 | |
38 SkPdfFunction SkPdfType1HalftoneDictionary::getSpotFunctionAsFunction() const { | |
39 SkPdfFunction ret = SkPdfFunction(); | |
40 if (FunctionFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SpotFunct
ion", "", &ret)) return ret; | |
41 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
42 return SkPdfFunction(); | |
43 } | |
44 | |
45 std::string SkPdfType1HalftoneDictionary::getSpotFunctionAsName() const { | |
46 std::string ret = ""; | |
47 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SpotFunction"
, "", &ret)) return ret; | |
48 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
49 return ""; | |
50 } | |
51 | |
52 bool SkPdfType1HalftoneDictionary::AccurateScreens() const { | |
53 bool ret; | |
54 if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AccurateScree
ns", "", &ret)) return ret; | |
55 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
56 return false; | |
57 } | |
58 | |
59 SkPdfFunction SkPdfType1HalftoneDictionary::getTransferFunctionAsFunction() cons
t { | |
60 SkPdfFunction ret = SkPdfFunction(); | |
61 if (FunctionFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TransferF
unction", "", &ret)) return ret; | |
62 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
63 return SkPdfFunction(); | |
64 } | |
65 | |
66 std::string SkPdfType1HalftoneDictionary::getTransferFunctionAsName() const { | |
67 std::string ret = ""; | |
68 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TransferFunct
ion", "", &ret)) return ret; | |
69 // TODO(edisonn): warn about missing required field, assert for known good pdf
s | |
70 return ""; | |
71 } | |
OLD | NEW |