edisonn@google.com | 131d4ee | 2013-06-26 17:48:12 +0000 | [diff] [blame] | 1 | #include "SkPdfSignatureDictionary_autogen.h" |
| 2 | |
| 3 | std::string SkPdfSignatureDictionary::Type() const { |
| 4 | std::string ret; |
| 5 | if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; |
| 6 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 7 | return ""; |
| 8 | } |
| 9 | |
| 10 | std::string SkPdfSignatureDictionary::Filter() const { |
| 11 | std::string ret; |
| 12 | if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Filter", "", &ret)) return ret; |
| 13 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 14 | return ""; |
| 15 | } |
| 16 | |
| 17 | std::string SkPdfSignatureDictionary::SubFilter() const { |
| 18 | std::string ret; |
| 19 | if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "SubFilter", "", &ret)) return ret; |
| 20 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 21 | return ""; |
| 22 | } |
| 23 | |
| 24 | SkPdfArray* SkPdfSignatureDictionary::ByteRange() const { |
| 25 | SkPdfArray* ret; |
| 26 | if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ByteRange", "", &ret)) return ret; |
| 27 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 28 | return NULL; |
| 29 | } |
| 30 | |
| 31 | std::string SkPdfSignatureDictionary::Contents() const { |
| 32 | std::string ret; |
| 33 | if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", &ret)) return ret; |
| 34 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 35 | return ""; |
| 36 | } |
| 37 | |
| 38 | std::string SkPdfSignatureDictionary::Name() const { |
| 39 | std::string ret; |
| 40 | if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Name", "", &ret)) return ret; |
| 41 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 42 | return ""; |
| 43 | } |
| 44 | |
| 45 | SkPdfDate SkPdfSignatureDictionary::M() const { |
| 46 | SkPdfDate ret; |
| 47 | if (DateFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "M", "", &ret)) return ret; |
| 48 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 49 | return SkPdfDate(); |
| 50 | } |
| 51 | |
| 52 | std::string SkPdfSignatureDictionary::Location() const { |
| 53 | std::string ret; |
| 54 | if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Location", "", &ret)) return ret; |
| 55 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 56 | return ""; |
| 57 | } |
| 58 | |
| 59 | std::string SkPdfSignatureDictionary::Reason() const { |
| 60 | std::string ret; |
| 61 | if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Reason", "", &ret)) return ret; |
| 62 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 63 | return ""; |
| 64 | } |