Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Side by Side Diff: experimental/PdfViewer/autogen/SkPdfPodofoMapper_autogen.cpp

Issue 18117005: more work on pdf fonts, more to come (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 if (mapAppearanceDictionary(podofoDoc, podofoObj, (SkPdfAppearanceDictionary** )out)) return true; 146 if (mapAppearanceDictionary(podofoDoc, podofoObj, (SkPdfAppearanceDictionary** )out)) return true;
147 if (mapApplicationDataDictionary(podofoDoc, podofoObj, (SkPdfApplicationDataDi ctionary**)out)) return true; 147 if (mapApplicationDataDictionary(podofoDoc, podofoObj, (SkPdfApplicationDataDi ctionary**)out)) return true;
148 if (mapArtifactsDictionary(podofoDoc, podofoObj, (SkPdfArtifactsDictionary**)o ut)) return true; 148 if (mapArtifactsDictionary(podofoDoc, podofoObj, (SkPdfArtifactsDictionary**)o ut)) return true;
149 if (mapAttributeObjectDictionary(podofoDoc, podofoObj, (SkPdfAttributeObjectDi ctionary**)out)) return true; 149 if (mapAttributeObjectDictionary(podofoDoc, podofoObj, (SkPdfAttributeObjectDi ctionary**)out)) return true;
150 if (mapBeadDictionary(podofoDoc, podofoObj, (SkPdfBeadDictionary**)out)) retur n true; 150 if (mapBeadDictionary(podofoDoc, podofoObj, (SkPdfBeadDictionary**)out)) retur n true;
151 if (mapBlockLevelStructureElementsDictionary(podofoDoc, podofoObj, (SkPdfBlock LevelStructureElementsDictionary**)out)) return true; 151 if (mapBlockLevelStructureElementsDictionary(podofoDoc, podofoObj, (SkPdfBlock LevelStructureElementsDictionary**)out)) return true;
152 if (mapBorderStyleDictionary(podofoDoc, podofoObj, (SkPdfBorderStyleDictionary **)out)) return true; 152 if (mapBorderStyleDictionary(podofoDoc, podofoObj, (SkPdfBorderStyleDictionary **)out)) return true;
153 if (mapBoxColorInformationDictionary(podofoDoc, podofoObj, (SkPdfBoxColorInfor mationDictionary**)out)) return true; 153 if (mapBoxColorInformationDictionary(podofoDoc, podofoObj, (SkPdfBoxColorInfor mationDictionary**)out)) return true;
154 if (mapBoxStyleDictionary(podofoDoc, podofoObj, (SkPdfBoxStyleDictionary**)out )) return true; 154 if (mapBoxStyleDictionary(podofoDoc, podofoObj, (SkPdfBoxStyleDictionary**)out )) return true;
155 if (mapCIDFontDescriptorDictionary(podofoDoc, podofoObj, (SkPdfCIDFontDescript orDictionary**)out)) return true; 155 if (mapCIDFontDescriptorDictionary(podofoDoc, podofoObj, (SkPdfCIDFontDescript orDictionary**)out)) return true;
156 if (mapCIDFontDictionary(podofoDoc, podofoObj, (SkPdfCIDFontDictionary**)out)) return true;
156 if (mapCIDSystemInfoDictionary(podofoDoc, podofoObj, (SkPdfCIDSystemInfoDictio nary**)out)) return true; 157 if (mapCIDSystemInfoDictionary(podofoDoc, podofoObj, (SkPdfCIDSystemInfoDictio nary**)out)) return true;
157 if (mapCMapDictionary(podofoDoc, podofoObj, (SkPdfCMapDictionary**)out)) retur n true; 158 if (mapCMapDictionary(podofoDoc, podofoObj, (SkPdfCMapDictionary**)out)) retur n true;
158 if (mapCalgrayColorSpaceDictionary(podofoDoc, podofoObj, (SkPdfCalgrayColorSpa ceDictionary**)out)) return true; 159 if (mapCalgrayColorSpaceDictionary(podofoDoc, podofoObj, (SkPdfCalgrayColorSpa ceDictionary**)out)) return true;
159 if (mapCalrgbColorSpaceDictionary(podofoDoc, podofoObj, (SkPdfCalrgbColorSpace Dictionary**)out)) return true; 160 if (mapCalrgbColorSpaceDictionary(podofoDoc, podofoObj, (SkPdfCalrgbColorSpace Dictionary**)out)) return true;
160 if (mapCatalogDictionary(podofoDoc, podofoObj, (SkPdfCatalogDictionary**)out)) return true; 161 if (mapCatalogDictionary(podofoDoc, podofoObj, (SkPdfCatalogDictionary**)out)) return true;
161 if (mapCcittfaxdecodeFilterDictionary(podofoDoc, podofoObj, (SkPdfCcittfaxdeco deFilterDictionary**)out)) return true; 162 if (mapCcittfaxdecodeFilterDictionary(podofoDoc, podofoObj, (SkPdfCcittfaxdeco deFilterDictionary**)out)) return true;
162 if (mapCheckboxFieldDictionary(podofoDoc, podofoObj, (SkPdfCheckboxFieldDictio nary**)out)) return true; 163 if (mapCheckboxFieldDictionary(podofoDoc, podofoObj, (SkPdfCheckboxFieldDictio nary**)out)) return true;
163 if (mapChoiceFieldDictionary(podofoDoc, podofoObj, (SkPdfChoiceFieldDictionary **)out)) return true; 164 if (mapChoiceFieldDictionary(podofoDoc, podofoObj, (SkPdfChoiceFieldDictionary **)out)) return true;
164 if (mapComponentsWithMetadataDictionary(podofoDoc, podofoObj, (SkPdfComponents WithMetadataDictionary**)out)) return true; 165 if (mapComponentsWithMetadataDictionary(podofoDoc, podofoObj, (SkPdfComponents WithMetadataDictionary**)out)) return true;
165 if (mapDctdecodeFilterDictionary(podofoDoc, podofoObj, (SkPdfDctdecodeFilterDi ctionary**)out)) return true; 166 if (mapDctdecodeFilterDictionary(podofoDoc, podofoObj, (SkPdfDctdecodeFilterDi ctionary**)out)) return true;
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 return true; 322 return true;
322 } 323 }
323 324
324 bool mapFontDictionary(const SkPdfObject& in, SkPdfFontDictionary** out) { 325 bool mapFontDictionary(const SkPdfObject& in, SkPdfFontDictionary** out) {
325 return mapFontDictionary(*in.doc(), *in.podofo(), out); 326 return mapFontDictionary(*in.doc(), *in.podofo(), out);
326 } 327 }
327 328
328 bool mapFontDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoO bj, SkPdfFontDictionary** out) { 329 bool mapFontDictionary(const PdfMemDocument& podofoDoc, const PdfObject& podofoO bj, SkPdfFontDictionary** out) {
329 if (!isFontDictionary(podofoDoc, podofoObj)) return false; 330 if (!isFontDictionary(podofoDoc, podofoObj)) return false;
330 331
331 if (mapCIDFontDictionary(podofoDoc, podofoObj, (SkPdfCIDFontDictionary**)out)) return true;
332 if (mapType0FontDictionary(podofoDoc, podofoObj, (SkPdfType0FontDictionary**)o ut)) return true; 332 if (mapType0FontDictionary(podofoDoc, podofoObj, (SkPdfType0FontDictionary**)o ut)) return true;
333 if (mapType1FontDictionary(podofoDoc, podofoObj, (SkPdfType1FontDictionary**)o ut)) return true; 333 if (mapType1FontDictionary(podofoDoc, podofoObj, (SkPdfType1FontDictionary**)o ut)) return true;
334 334
335 *out = new SkPdfFontDictionary(&podofoDoc, &podofoObj); 335 *out = new SkPdfFontDictionary(&podofoDoc, &podofoObj);
336 return true; 336 return true;
337 } 337 }
338 338
339 bool mapTrueTypeFontDictionary(const SkPdfObject& in, SkPdfTrueTypeFontDictionar y** out) { 339 bool mapTrueTypeFontDictionary(const SkPdfObject& in, SkPdfTrueTypeFontDictionar y** out) {
340 return mapTrueTypeFontDictionary(*in.doc(), *in.podofo(), out); 340 return mapTrueTypeFontDictionary(*in.doc(), *in.podofo(), out);
341 } 341 }
(...skipping 5054 matching lines...) Expand 10 before | Expand all | Expand 10 after
5396 if (value == NULL) { return false; } 5396 if (value == NULL) { return false; }
5397 if (data == NULL) { return true; } 5397 if (data == NULL) { return true; }
5398 return mapMultiMasterFontDictionary(*pdfDoc, *value, (SkPdfMultiMasterFontDict ionary**)data); 5398 return mapMultiMasterFontDictionary(*pdfDoc, *value, (SkPdfMultiMasterFontDict ionary**)data);
5399 } 5399 }
5400 5400
5401 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) {
5402 if (MultiMasterFontDictionaryFromDictionary(pdfDoc, dict, key, data)) return t rue; 5402 if (MultiMasterFontDictionaryFromDictionary(pdfDoc, dict, key, data)) return t rue;
5403 if (abr == NULL || *abr == '\0') return false; 5403 if (abr == NULL || *abr == '\0') return false;
5404 return MultiMasterFontDictionaryFromDictionary(pdfDoc, dict, abr, data); 5404 return MultiMasterFontDictionaryFromDictionary(pdfDoc, dict, abr, data);
5405 } 5405 }
5406
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698