edisonn@google.com | 131d4ee | 2013-06-26 17:48:12 +0000 | [diff] [blame] | 1 | #include "SkPdfCIDFontDictionary_autogen.h" |
| 2 | |
| 3 | std::string SkPdfCIDFontDictionary::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 SkPdfCIDFontDictionary::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 pdfs |
| 14 | return ""; |
| 15 | } |
| 16 | |
| 17 | std::string SkPdfCIDFontDictionary::BaseFont() const { |
| 18 | std::string ret; |
| 19 | if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BaseFont", "", &ret)) return ret; |
| 20 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 21 | return ""; |
| 22 | } |
| 23 | |
| 24 | SkPdfDictionary* SkPdfCIDFontDictionary::CIDSystemInfo() const { |
| 25 | SkPdfDictionary* ret; |
| 26 | if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CIDSystemInfo", "", &ret)) return ret; |
| 27 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 28 | return NULL; |
| 29 | } |
| 30 | |
edisonn@google.com | 6e49c34 | 2013-06-27 20:03:43 +0000 | [diff] [blame] | 31 | SkPdfFontDescriptorDictionary* SkPdfCIDFontDictionary::FontDescriptor() const { |
| 32 | SkPdfFontDescriptorDictionary* ret; |
| 33 | if (FontDescriptorDictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontDescriptor", "", &ret)) return ret; |
edisonn@google.com | 131d4ee | 2013-06-26 17:48:12 +0000 | [diff] [blame] | 34 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 35 | return NULL; |
| 36 | } |
| 37 | |
| 38 | long SkPdfCIDFontDictionary::DW() const { |
| 39 | long ret; |
| 40 | if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DW", "", &ret)) return ret; |
| 41 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 42 | return 0; |
| 43 | } |
| 44 | |
| 45 | SkPdfArray* SkPdfCIDFontDictionary::W() const { |
| 46 | SkPdfArray* ret; |
| 47 | if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "W", "", &ret)) return ret; |
| 48 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 49 | return NULL; |
| 50 | } |
| 51 | |
| 52 | SkPdfArray* SkPdfCIDFontDictionary::DW2() const { |
| 53 | SkPdfArray* ret; |
| 54 | if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DW2", "", &ret)) return ret; |
| 55 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 56 | return NULL; |
| 57 | } |
| 58 | |
| 59 | SkPdfArray* SkPdfCIDFontDictionary::W2() const { |
| 60 | SkPdfArray* ret; |
| 61 | if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "W2", "", &ret)) return ret; |
| 62 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 63 | return NULL; |
| 64 | } |
| 65 | |
| 66 | SkPdfStream* SkPdfCIDFontDictionary::getCIDToGIDMapAsStream() const { |
| 67 | SkPdfStream* ret = NULL; |
| 68 | if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CIDToGIDMap", "", &ret)) return ret; |
| 69 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 70 | return NULL; |
| 71 | } |
| 72 | |
| 73 | std::string SkPdfCIDFontDictionary::getCIDToGIDMapAsName() const { |
| 74 | std::string ret = ""; |
| 75 | if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CIDToGIDMap", "", &ret)) return ret; |
| 76 | // TODO(edisonn): warn about missing required field, assert for known good pdfs |
| 77 | return ""; |
| 78 | } |