OLD | NEW |
(Empty) | |
| 1 #include "SkPdfOutlineItemDictionary_autogen.h" |
| 2 |
| 3 std::string SkPdfOutlineItemDictionary::Title() const { |
| 4 std::string ret; |
| 5 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Title", "",
&ret)) return ret; |
| 6 // TODO(edisonn): warn about missing required field, assert for known good pdf
s |
| 7 return ""; |
| 8 } |
| 9 |
| 10 SkPdfDictionary* SkPdfOutlineItemDictionary::Parent() const { |
| 11 SkPdfDictionary* ret; |
| 12 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Parent"
, "", &ret)) return ret; |
| 13 // TODO(edisonn): warn about missing required field, assert for known good pdf
s |
| 14 return NULL; |
| 15 } |
| 16 |
| 17 SkPdfDictionary* SkPdfOutlineItemDictionary::Prev() const { |
| 18 SkPdfDictionary* ret; |
| 19 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Prev",
"", &ret)) return ret; |
| 20 // TODO(edisonn): warn about missing required field, assert for known good pdf
s |
| 21 return NULL; |
| 22 } |
| 23 |
| 24 SkPdfDictionary* SkPdfOutlineItemDictionary::Next() const { |
| 25 SkPdfDictionary* ret; |
| 26 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Next",
"", &ret)) return ret; |
| 27 // TODO(edisonn): warn about missing required field, assert for known good pdf
s |
| 28 return NULL; |
| 29 } |
| 30 |
| 31 SkPdfDictionary* SkPdfOutlineItemDictionary::First() const { |
| 32 SkPdfDictionary* ret; |
| 33 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "First",
"", &ret)) return ret; |
| 34 // TODO(edisonn): warn about missing required field, assert for known good pdf
s |
| 35 return NULL; |
| 36 } |
| 37 |
| 38 SkPdfDictionary* SkPdfOutlineItemDictionary::Last() const { |
| 39 SkPdfDictionary* ret; |
| 40 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Last",
"", &ret)) return ret; |
| 41 // TODO(edisonn): warn about missing required field, assert for known good pdf
s |
| 42 return NULL; |
| 43 } |
| 44 |
| 45 long SkPdfOutlineItemDictionary::Count() const { |
| 46 long ret; |
| 47 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Count", "", &
ret)) return ret; |
| 48 // TODO(edisonn): warn about missing required field, assert for known good pdf
s |
| 49 return 0; |
| 50 } |
| 51 |
| 52 std::string SkPdfOutlineItemDictionary::getDestAsName() const { |
| 53 std::string ret = ""; |
| 54 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Dest", "", &r
et)) return ret; |
| 55 // TODO(edisonn): warn about missing required field, assert for known good pdf
s |
| 56 return ""; |
| 57 } |
| 58 |
| 59 std::string SkPdfOutlineItemDictionary::getDestAsString() const { |
| 60 std::string ret = ""; |
| 61 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Dest", "",
&ret)) return ret; |
| 62 // TODO(edisonn): warn about missing required field, assert for known good pdf
s |
| 63 return ""; |
| 64 } |
| 65 |
| 66 SkPdfArray* SkPdfOutlineItemDictionary::getDestAsArray() const { |
| 67 SkPdfArray* ret = NULL; |
| 68 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Dest", "", &
ret)) return ret; |
| 69 // TODO(edisonn): warn about missing required field, assert for known good pdf
s |
| 70 return NULL; |
| 71 } |
| 72 |
| 73 SkPdfDictionary* SkPdfOutlineItemDictionary::A() const { |
| 74 SkPdfDictionary* ret; |
| 75 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "A", "",
&ret)) return ret; |
| 76 // TODO(edisonn): warn about missing required field, assert for known good pdf
s |
| 77 return NULL; |
| 78 } |
| 79 |
| 80 SkPdfDictionary* SkPdfOutlineItemDictionary::SE() const { |
| 81 SkPdfDictionary* ret; |
| 82 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SE", ""
, &ret)) return ret; |
| 83 // TODO(edisonn): warn about missing required field, assert for known good pdf
s |
| 84 return NULL; |
| 85 } |
| 86 |
| 87 SkPdfArray* SkPdfOutlineItemDictionary::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 long SkPdfOutlineItemDictionary::F() const { |
| 95 long ret; |
| 96 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", &ret)
) return ret; |
| 97 // TODO(edisonn): warn about missing required field, assert for known good pdf
s |
| 98 return 0; |
| 99 } |
| 100 |
OLD | NEW |