OLD | NEW |
1 #include "SkPdfPodofoMapper_autogen.h" | 1 #include "SkPdfPodofoMapper_autogen.h" |
2 bool mapObject(const SkPdfObject& in, SkPdfObject** out) { | 2 bool mapObject(const SkPdfObject& in, SkPdfObject** out) { |
3 return mapObject(*in.doc(), *in.podofo(), out); | 3 return mapObject(*in.doc(), *in.podofo(), out); |
4 } | 4 } |
5 | 5 |
6 bool mapObject(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPd
fObject** out) { | 6 bool mapObject(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, SkPd
fObject** out) { |
7 if (!isObject(podofoDoc, podofoObj)) return false; | 7 if (!isObject(podofoDoc, podofoObj)) return false; |
8 | 8 |
9 if (mapArray(podofoDoc, podofoObj, (SkPdfArray**)out)) return true; | 9 if (mapArray(podofoDoc, podofoObj, (SkPdfArray**)out)) return true; |
10 if (mapBoolean(podofoDoc, podofoObj, (SkPdfBoolean**)out)) return true; | 10 if (mapBoolean(podofoDoc, podofoObj, (SkPdfBoolean**)out)) return true; |
(...skipping 3458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3469 return mapType0FontDictionary(*pdfDoc, *value, (SkPdfType0FontDictionary**)dat
a); | 3469 return mapType0FontDictionary(*pdfDoc, *value, (SkPdfType0FontDictionary**)dat
a); |
3470 } | 3470 } |
3471 | 3471 |
3472 bool Type0FontDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDi
ctionary& dict, const char* key, const char* abr, SkPdfType0FontDictionary** dat
a) { | 3472 bool Type0FontDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const PdfDi
ctionary& dict, const char* key, const char* abr, SkPdfType0FontDictionary** dat
a) { |
3473 if (Type0FontDictionaryFromDictionary(pdfDoc, dict, key, data)) return true; | 3473 if (Type0FontDictionaryFromDictionary(pdfDoc, dict, key, data)) return true; |
3474 if (abr == NULL || *abr == '\0') return false; | 3474 if (abr == NULL || *abr == '\0') return false; |
3475 return Type0FontDictionaryFromDictionary(pdfDoc, dict, abr, data); | 3475 return Type0FontDictionaryFromDictionary(pdfDoc, dict, abr, data); |
3476 } | 3476 } |
3477 | 3477 |
3478 bool isFontDescriptorDictionary(const PdfMemDocument& podofoDoc, const PdfObject
& podofoObj) { | 3478 bool isFontDescriptorDictionary(const PdfMemDocument& podofoDoc, const PdfObject
& podofoObj) { |
| 3479 std::string Type; |
| 3480 if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Type", "", &Ty
pe)) return false; |
| 3481 if ((Type != "FontDescriptor")) return false; |
| 3482 |
3479 return true; | 3483 return true; |
3480 } | 3484 } |
3481 | 3485 |
3482 bool FontDescriptorDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const
PdfDictionary& dict, const char* key, SkPdfFontDescriptorDictionary** data) { | 3486 bool FontDescriptorDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const
PdfDictionary& dict, const char* key, SkPdfFontDescriptorDictionary** data) { |
3483 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(ke
y)), true); | 3487 const PdfObject* value = resolveReferenceObject(pdfDoc, dict.GetKey(PdfName(ke
y)), true); |
3484 if (value == NULL) { return false; } | 3488 if (value == NULL) { return false; } |
3485 if (data == NULL) { return true; } | 3489 if (data == NULL) { return true; } |
3486 return mapFontDescriptorDictionary(*pdfDoc, *value, (SkPdfFontDescriptorDictio
nary**)data); | 3490 return mapFontDescriptorDictionary(*pdfDoc, *value, (SkPdfFontDescriptorDictio
nary**)data); |
3487 } | 3491 } |
3488 | 3492 |
(...skipping 1904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5393 if (data == NULL) { return true; } | 5397 if (data == NULL) { return true; } |
5394 return mapMultiMasterFontDictionary(*pdfDoc, *value, (SkPdfMultiMasterFontDict
ionary**)data); | 5398 return mapMultiMasterFontDictionary(*pdfDoc, *value, (SkPdfMultiMasterFontDict
ionary**)data); |
5395 } | 5399 } |
5396 | 5400 |
5397 bool MultiMasterFontDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const
PdfDictionary& dict, const char* key, const char* abr, SkPdfMultiMasterFontDict
ionary** data) { | 5401 bool MultiMasterFontDictionaryFromDictionary(const PdfMemDocument* pdfDoc, const
PdfDictionary& dict, const char* key, const char* abr, SkPdfMultiMasterFontDict
ionary** data) { |
5398 if (MultiMasterFontDictionaryFromDictionary(pdfDoc, dict, key, data)) return t
rue; | 5402 if (MultiMasterFontDictionaryFromDictionary(pdfDoc, dict, key, data)) return t
rue; |
5399 if (abr == NULL || *abr == '\0') return false; | 5403 if (abr == NULL || *abr == '\0') return false; |
5400 return MultiMasterFontDictionaryFromDictionary(pdfDoc, dict, abr, data); | 5404 return MultiMasterFontDictionaryFromDictionary(pdfDoc, dict, abr, data); |
5401 } | 5405 } |
5402 | 5406 |
OLD | NEW |