OLD | NEW |
1 #ifndef __DEFINED__SkPdfPodofoMapper | 1 #ifndef __DEFINED__SkPdfPodofoMapper |
2 #define __DEFINED__SkPdfPodofoMapper | 2 #define __DEFINED__SkPdfPodofoMapper |
3 | 3 |
4 #include "SkPdfHeaders_autogen.h" | 4 #include "SkPdfHeaders_autogen.h" |
5 class PodofoMapper { | 5 class PodofoMapper { |
6 public: | 6 public: |
7 static bool map(const SkPdfObject& in, SkPdfObject** out) { | 7 static bool map(const SkPdfObject& in, SkPdfObject** out) { |
8 return map(*in.doc(), *in.podofo(), out); | 8 return map(*in.doc(), *in.podofo(), out); |
9 } | 9 } |
10 | 10 |
11 static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, S
kPdfObject** out) { | 11 static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, S
kPdfObject** out) { |
12 if (!isObject(podofoDoc, podofoObj)) return false; | 12 if (!isObject(podofoDoc, podofoObj)) return false; |
13 | 13 |
14 if (map(podofoDoc, podofoObj, (SkPdfArray**)out)) return true; | 14 if (map(podofoDoc, podofoObj, (SkPdfArray**)out)) return true; |
15 if (map(podofoDoc, podofoObj, (SkPdfBoolean**)out)) return true; | 15 if (map(podofoDoc, podofoObj, (SkPdfBoolean**)out)) return true; |
16 if (map(podofoDoc, podofoObj, (SkPdfDictionary**)out)) return true; | 16 if (map(podofoDoc, podofoObj, (SkPdfDictionary**)out)) return true; |
17 if (map(podofoDoc, podofoObj, (SkPdfInteger**)out)) return true; | 17 if (map(podofoDoc, podofoObj, (SkPdfInteger**)out)) return true; |
18 if (map(podofoDoc, podofoObj, (SkPdfName**)out)) return true; | 18 if (map(podofoDoc, podofoObj, (SkPdfName**)out)) return true; |
19 if (map(podofoDoc, podofoObj, (SkPdfNull**)out)) return true; | 19 if (map(podofoDoc, podofoObj, (SkPdfNull**)out)) return true; |
20 if (map(podofoDoc, podofoObj, (SkPdfReference**)out)) return true; | 20 if (map(podofoDoc, podofoObj, (SkPdfReference**)out)) return true; |
21 if (map(podofoDoc, podofoObj, (SkPdfString**)out)) return true; | 21 if (map(podofoDoc, podofoObj, (SkPdfString**)out)) return true; |
| 22 if (map(podofoDoc, podofoObj, (SkPdfStream**)out)) return true; |
22 | 23 |
23 *out = new SkPdfObject(&podofoDoc, &podofoObj); | 24 *out = new SkPdfObject(&podofoDoc, &podofoObj); |
24 return true; | 25 return true; |
25 } | 26 } |
26 | 27 |
27 static bool map(const SkPdfObject& in, SkPdfNull** out) { | 28 static bool map(const SkPdfObject& in, SkPdfNull** out) { |
28 return map(*in.doc(), *in.podofo(), out); | 29 return map(*in.doc(), *in.podofo(), out); |
29 } | 30 } |
30 | 31 |
31 static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, S
kPdfNull** out) { | 32 static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, S
kPdfNull** out) { |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 if (map(podofoDoc, podofoObj, (SkPdfWebCaptureInformationDictionary**)out))
return true; | 293 if (map(podofoDoc, podofoObj, (SkPdfWebCaptureInformationDictionary**)out))
return true; |
293 if (map(podofoDoc, podofoObj, (SkPdfWebCapturePageSetDictionary**)out)) retu
rn true; | 294 if (map(podofoDoc, podofoObj, (SkPdfWebCapturePageSetDictionary**)out)) retu
rn true; |
294 if (map(podofoDoc, podofoObj, (SkPdfWidgetAnnotationDictionary**)out)) retur
n true; | 295 if (map(podofoDoc, podofoObj, (SkPdfWidgetAnnotationDictionary**)out)) retur
n true; |
295 if (map(podofoDoc, podofoObj, (SkPdfWindowsLaunchActionDictionary**)out)) re
turn true; | 296 if (map(podofoDoc, podofoObj, (SkPdfWindowsLaunchActionDictionary**)out)) re
turn true; |
296 if (map(podofoDoc, podofoObj, (SkPdfXObjectDictionary**)out)) return true; | 297 if (map(podofoDoc, podofoObj, (SkPdfXObjectDictionary**)out)) return true; |
297 | 298 |
298 *out = new SkPdfDictionary(&podofoDoc, &podofoObj); | 299 *out = new SkPdfDictionary(&podofoDoc, &podofoObj); |
299 return true; | 300 return true; |
300 } | 301 } |
301 | 302 |
| 303 static bool map(const SkPdfObject& in, SkPdfStream** out) { |
| 304 return map(*in.doc(), *in.podofo(), out); |
| 305 } |
| 306 |
| 307 static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, S
kPdfStream** out) { |
| 308 if (!isStream(podofoDoc, podofoObj)) return false; |
| 309 |
| 310 |
| 311 *out = new SkPdfStream(&podofoDoc, &podofoObj); |
| 312 return true; |
| 313 } |
| 314 |
302 static bool map(const SkPdfObject& in, SkPdfXObjectDictionary** out) { | 315 static bool map(const SkPdfObject& in, SkPdfXObjectDictionary** out) { |
303 return map(*in.doc(), *in.podofo(), out); | 316 return map(*in.doc(), *in.podofo(), out); |
304 } | 317 } |
305 | 318 |
306 static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, S
kPdfXObjectDictionary** out) { | 319 static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, S
kPdfXObjectDictionary** out) { |
307 if (!isXObjectDictionary(podofoDoc, podofoObj)) return false; | 320 if (!isXObjectDictionary(podofoDoc, podofoObj)) return false; |
308 | 321 |
309 if (map(podofoDoc, podofoObj, (SkPdfImageDictionary**)out)) return true; | 322 if (map(podofoDoc, podofoObj, (SkPdfImageDictionary**)out)) return true; |
310 if (map(podofoDoc, podofoObj, (SkPdfType1FormDictionary**)out)) return true; | 323 if (map(podofoDoc, podofoObj, (SkPdfType1FormDictionary**)out)) return true; |
311 | 324 |
312 *out = new SkPdfXObjectDictionary(&podofoDoc, &podofoObj); | 325 *out = new SkPdfXObjectDictionary(&podofoDoc, &podofoObj); |
313 return true; | 326 return true; |
314 } | 327 } |
315 | 328 |
316 static bool map(const SkPdfObject& in, SkPdfFontDictionary** out) { | 329 static bool map(const SkPdfObject& in, SkPdfFontDictionary** out) { |
317 return map(*in.doc(), *in.podofo(), out); | 330 return map(*in.doc(), *in.podofo(), out); |
318 } | 331 } |
319 | 332 |
320 static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, S
kPdfFontDictionary** out) { | 333 static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, S
kPdfFontDictionary** out) { |
321 if (!isFontDictionary(podofoDoc, podofoObj)) return false; | 334 if (!isFontDictionary(podofoDoc, podofoObj)) return false; |
322 | 335 |
323 if (map(podofoDoc, podofoObj, (SkPdfCIDFontDictionary**)out)) return true; | 336 if (map(podofoDoc, podofoObj, (SkPdfCIDFontDictionary**)out)) return true; |
324 if (map(podofoDoc, podofoObj, (SkPdfTrueTypeFontDictionary**)out)) return tr
ue; | |
325 if (map(podofoDoc, podofoObj, (SkPdfType0FontDictionary**)out)) return true; | 337 if (map(podofoDoc, podofoObj, (SkPdfType0FontDictionary**)out)) return true; |
326 if (map(podofoDoc, podofoObj, (SkPdfType1FontDictionary**)out)) return true; | 338 if (map(podofoDoc, podofoObj, (SkPdfType1FontDictionary**)out)) return true; |
327 if (map(podofoDoc, podofoObj, (SkPdfType3FontDictionary**)out)) return true; | |
328 | 339 |
329 *out = new SkPdfFontDictionary(&podofoDoc, &podofoObj); | 340 *out = new SkPdfFontDictionary(&podofoDoc, &podofoObj); |
330 return true; | 341 return true; |
331 } | 342 } |
332 | 343 |
333 static bool map(const SkPdfObject& in, SkPdfTrueTypeFontDictionary** out) { | 344 static bool map(const SkPdfObject& in, SkPdfTrueTypeFontDictionary** out) { |
334 return map(*in.doc(), *in.podofo(), out); | 345 return map(*in.doc(), *in.podofo(), out); |
335 } | 346 } |
336 | 347 |
337 static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, S
kPdfTrueTypeFontDictionary** out) { | 348 static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, S
kPdfTrueTypeFontDictionary** out) { |
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
877 } | 888 } |
878 | 889 |
879 static bool map(const SkPdfObject& in, SkPdfType1FontDictionary** out) { | 890 static bool map(const SkPdfObject& in, SkPdfType1FontDictionary** out) { |
880 return map(*in.doc(), *in.podofo(), out); | 891 return map(*in.doc(), *in.podofo(), out); |
881 } | 892 } |
882 | 893 |
883 static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, S
kPdfType1FontDictionary** out) { | 894 static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, S
kPdfType1FontDictionary** out) { |
884 if (!isType1FontDictionary(podofoDoc, podofoObj)) return false; | 895 if (!isType1FontDictionary(podofoDoc, podofoObj)) return false; |
885 | 896 |
886 if (map(podofoDoc, podofoObj, (SkPdfMultiMasterFontDictionary**)out)) return
true; | 897 if (map(podofoDoc, podofoObj, (SkPdfMultiMasterFontDictionary**)out)) return
true; |
| 898 if (map(podofoDoc, podofoObj, (SkPdfTrueTypeFontDictionary**)out)) return tr
ue; |
887 | 899 |
888 *out = new SkPdfType1FontDictionary(&podofoDoc, &podofoObj); | 900 *out = new SkPdfType1FontDictionary(&podofoDoc, &podofoObj); |
889 return true; | 901 return true; |
890 } | 902 } |
891 | 903 |
892 static bool map(const SkPdfObject& in, SkPdfType3FontDictionary** out) { | 904 static bool map(const SkPdfObject& in, SkPdfType3FontDictionary** out) { |
893 return map(*in.doc(), *in.podofo(), out); | 905 return map(*in.doc(), *in.podofo(), out); |
894 } | 906 } |
895 | 907 |
896 static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, S
kPdfType3FontDictionary** out) { | 908 static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, S
kPdfType3FontDictionary** out) { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
949 return true; | 961 return true; |
950 } | 962 } |
951 | 963 |
952 static bool map(const SkPdfObject& in, SkPdfType0FontDictionary** out) { | 964 static bool map(const SkPdfObject& in, SkPdfType0FontDictionary** out) { |
953 return map(*in.doc(), *in.podofo(), out); | 965 return map(*in.doc(), *in.podofo(), out); |
954 } | 966 } |
955 | 967 |
956 static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, S
kPdfType0FontDictionary** out) { | 968 static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, S
kPdfType0FontDictionary** out) { |
957 if (!isType0FontDictionary(podofoDoc, podofoObj)) return false; | 969 if (!isType0FontDictionary(podofoDoc, podofoObj)) return false; |
958 | 970 |
| 971 if (map(podofoDoc, podofoObj, (SkPdfType3FontDictionary**)out)) return true; |
959 | 972 |
960 *out = new SkPdfType0FontDictionary(&podofoDoc, &podofoObj); | 973 *out = new SkPdfType0FontDictionary(&podofoDoc, &podofoObj); |
961 return true; | 974 return true; |
962 } | 975 } |
963 | 976 |
964 static bool map(const SkPdfObject& in, SkPdfFontDescriptorDictionary** out) { | 977 static bool map(const SkPdfObject& in, SkPdfFontDescriptorDictionary** out) { |
965 return map(*in.doc(), *in.podofo(), out); | 978 return map(*in.doc(), *in.podofo(), out); |
966 } | 979 } |
967 | 980 |
968 static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, S
kPdfFontDescriptorDictionary** out) { | 981 static bool map(const PdfMemDocument& podofoDoc, const PdfObject& podofoObj, S
kPdfFontDescriptorDictionary** out) { |
(...skipping 1385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2354 } | 2367 } |
2355 | 2368 |
2356 static bool isHexString(const PdfMemDocument& podofoDoc, const PdfObject& podo
foObj) { | 2369 static bool isHexString(const PdfMemDocument& podofoDoc, const PdfObject& podo
foObj) { |
2357 return podofoObj.GetDataType() == ePdfDataType_HexString; | 2370 return podofoObj.GetDataType() == ePdfDataType_HexString; |
2358 } | 2371 } |
2359 | 2372 |
2360 static bool isDictionary(const PdfMemDocument& podofoDoc, const PdfObject& pod
ofoObj) { | 2373 static bool isDictionary(const PdfMemDocument& podofoDoc, const PdfObject& pod
ofoObj) { |
2361 return podofoObj.GetDataType() == ePdfDataType_Dictionary; | 2374 return podofoObj.GetDataType() == ePdfDataType_Dictionary; |
2362 } | 2375 } |
2363 | 2376 |
| 2377 static bool isStream(const PdfMemDocument& podofoDoc, const PdfObject& podofoO
bj) { |
| 2378 return true; |
| 2379 } |
| 2380 |
2364 static bool isXObjectDictionary(const PdfMemDocument& podofoDoc, const PdfObje
ct& podofoObj) { | 2381 static bool isXObjectDictionary(const PdfMemDocument& podofoDoc, const PdfObje
ct& podofoObj) { |
2365 return true; | 2382 return true; |
2366 } | 2383 } |
2367 | 2384 |
2368 static bool isFontDictionary(const PdfMemDocument& podofoDoc, const PdfObject&
podofoObj) { | 2385 static bool isFontDictionary(const PdfMemDocument& podofoDoc, const PdfObject&
podofoObj) { |
2369 return true; | 2386 return true; |
2370 } | 2387 } |
2371 | 2388 |
2372 static bool isTrueTypeFontDictionary(const PdfMemDocument& podofoDoc, const Pd
fObject& podofoObj) { | 2389 static bool isTrueTypeFontDictionary(const PdfMemDocument& podofoDoc, const Pd
fObject& podofoObj) { |
| 2390 std::string Subtype; |
| 2391 if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", ""
, &Subtype)) return false; |
| 2392 if ((Subtype != "TrueType")) return false; |
| 2393 |
2373 return true; | 2394 return true; |
2374 } | 2395 } |
2375 | 2396 |
2376 static bool isStreamCommonDictionary(const PdfMemDocument& podofoDoc, const Pd
fObject& podofoObj) { | 2397 static bool isStreamCommonDictionary(const PdfMemDocument& podofoDoc, const Pd
fObject& podofoObj) { |
2377 return true; | 2398 return true; |
2378 } | 2399 } |
2379 | 2400 |
2380 static bool isLzwdecodeAndFlatedecodeFiltersDictionary(const PdfMemDocument& p
odofoDoc, const PdfObject& podofoObj) { | 2401 static bool isLzwdecodeAndFlatedecodeFiltersDictionary(const PdfMemDocument& p
odofoDoc, const PdfObject& podofoObj) { |
2381 return true; | 2402 return true; |
2382 } | 2403 } |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2521 return true; | 2542 return true; |
2522 } | 2543 } |
2523 | 2544 |
2524 static bool isType6ShadingDictionary(const PdfMemDocument& podofoDoc, const Pd
fObject& podofoObj) { | 2545 static bool isType6ShadingDictionary(const PdfMemDocument& podofoDoc, const Pd
fObject& podofoObj) { |
2525 return true; | 2546 return true; |
2526 } | 2547 } |
2527 | 2548 |
2528 static bool isImageDictionary(const PdfMemDocument& podofoDoc, const PdfObject
& podofoObj) { | 2549 static bool isImageDictionary(const PdfMemDocument& podofoDoc, const PdfObject
& podofoObj) { |
2529 std::string Subtype; | 2550 std::string Subtype; |
2530 if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", ""
, &Subtype)) return false; | 2551 if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", ""
, &Subtype)) return false; |
2531 if (Subtype != "Image") return false; | 2552 if ((Subtype != "Image")) return false; |
2532 | 2553 |
2533 return true; | 2554 return true; |
2534 } | 2555 } |
2535 | 2556 |
2536 static bool isAlternateImageDictionary(const PdfMemDocument& podofoDoc, const
PdfObject& podofoObj) { | 2557 static bool isAlternateImageDictionary(const PdfMemDocument& podofoDoc, const
PdfObject& podofoObj) { |
2537 return true; | 2558 return true; |
2538 } | 2559 } |
2539 | 2560 |
2540 static bool isType1FormDictionary(const PdfMemDocument& podofoDoc, const PdfOb
ject& podofoObj) { | 2561 static bool isType1FormDictionary(const PdfMemDocument& podofoDoc, const PdfOb
ject& podofoObj) { |
2541 std::string Subtype; | 2562 std::string Subtype; |
2542 if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", ""
, &Subtype)) return false; | 2563 if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", ""
, &Subtype)) return false; |
2543 if (Subtype != "Form") return false; | 2564 if ((Subtype != "Form")) return false; |
2544 | 2565 |
2545 return true; | 2566 return true; |
2546 } | 2567 } |
2547 | 2568 |
2548 static bool isGroupAttributesDictionary(const PdfMemDocument& podofoDoc, const
PdfObject& podofoObj) { | 2569 static bool isGroupAttributesDictionary(const PdfMemDocument& podofoDoc, const
PdfObject& podofoObj) { |
2549 return true; | 2570 return true; |
2550 } | 2571 } |
2551 | 2572 |
2552 static bool isReferenceDictionary(const PdfMemDocument& podofoDoc, const PdfOb
ject& podofoObj) { | 2573 static bool isReferenceDictionary(const PdfMemDocument& podofoDoc, const PdfOb
ject& podofoObj) { |
2553 return true; | 2574 return true; |
2554 } | 2575 } |
2555 | 2576 |
2556 static bool isPSXobjectDictionary(const PdfMemDocument& podofoDoc, const PdfOb
ject& podofoObj) { | 2577 static bool isPSXobjectDictionary(const PdfMemDocument& podofoDoc, const PdfOb
ject& podofoObj) { |
2557 return true; | 2578 return true; |
2558 } | 2579 } |
2559 | 2580 |
2560 static bool isType1FontDictionary(const PdfMemDocument& podofoDoc, const PdfOb
ject& podofoObj) { | 2581 static bool isType1FontDictionary(const PdfMemDocument& podofoDoc, const PdfOb
ject& podofoObj) { |
| 2582 std::string Subtype; |
| 2583 if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", ""
, &Subtype)) return false; |
| 2584 if ((Subtype != "MMType1") && (Subtype != "TrueType") && (Subtype != "Type1"
)) return false; |
| 2585 |
2561 return true; | 2586 return true; |
2562 } | 2587 } |
2563 | 2588 |
2564 static bool isType3FontDictionary(const PdfMemDocument& podofoDoc, const PdfOb
ject& podofoObj) { | 2589 static bool isType3FontDictionary(const PdfMemDocument& podofoDoc, const PdfOb
ject& podofoObj) { |
| 2590 std::string Subtype; |
| 2591 if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", ""
, &Subtype)) return false; |
| 2592 if ((Subtype != "Type3")) return false; |
| 2593 |
2565 return true; | 2594 return true; |
2566 } | 2595 } |
2567 | 2596 |
2568 static bool isEncodingDictionary(const PdfMemDocument& podofoDoc, const PdfObj
ect& podofoObj) { | 2597 static bool isEncodingDictionary(const PdfMemDocument& podofoDoc, const PdfObj
ect& podofoObj) { |
2569 return true; | 2598 return true; |
2570 } | 2599 } |
2571 | 2600 |
2572 static bool isCIDSystemInfoDictionary(const PdfMemDocument& podofoDoc, const P
dfObject& podofoObj) { | 2601 static bool isCIDSystemInfoDictionary(const PdfMemDocument& podofoDoc, const P
dfObject& podofoObj) { |
2573 return true; | 2602 return true; |
2574 } | 2603 } |
2575 | 2604 |
2576 static bool isCIDFontDictionary(const PdfMemDocument& podofoDoc, const PdfObje
ct& podofoObj) { | 2605 static bool isCIDFontDictionary(const PdfMemDocument& podofoDoc, const PdfObje
ct& podofoObj) { |
| 2606 std::string Subtype; |
| 2607 if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", ""
, &Subtype)) return false; |
| 2608 if ((Subtype != "CIDFontType0") && (Subtype != "CIDFontType2")) return false
; |
| 2609 |
2577 return true; | 2610 return true; |
2578 } | 2611 } |
2579 | 2612 |
2580 static bool isCMapDictionary(const PdfMemDocument& podofoDoc, const PdfObject&
podofoObj) { | 2613 static bool isCMapDictionary(const PdfMemDocument& podofoDoc, const PdfObject&
podofoObj) { |
2581 return true; | 2614 return true; |
2582 } | 2615 } |
2583 | 2616 |
2584 static bool isType0FontDictionary(const PdfMemDocument& podofoDoc, const PdfOb
ject& podofoObj) { | 2617 static bool isType0FontDictionary(const PdfMemDocument& podofoDoc, const PdfOb
ject& podofoObj) { |
| 2618 std::string Subtype; |
| 2619 if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", ""
, &Subtype)) return false; |
| 2620 if ((Subtype != "Type3") && (Subtype != "Type0")) return false; |
| 2621 |
2585 return true; | 2622 return true; |
2586 } | 2623 } |
2587 | 2624 |
2588 static bool isFontDescriptorDictionary(const PdfMemDocument& podofoDoc, const
PdfObject& podofoObj) { | 2625 static bool isFontDescriptorDictionary(const PdfMemDocument& podofoDoc, const
PdfObject& podofoObj) { |
2589 return true; | 2626 return true; |
2590 } | 2627 } |
2591 | 2628 |
2592 static bool isCIDFontDescriptorDictionary(const PdfMemDocument& podofoDoc, con
st PdfObject& podofoObj) { | 2629 static bool isCIDFontDescriptorDictionary(const PdfMemDocument& podofoDoc, con
st PdfObject& podofoObj) { |
2593 return true; | 2630 return true; |
2594 } | 2631 } |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3029 return true; | 3066 return true; |
3030 } | 3067 } |
3031 | 3068 |
3032 static bool isOpiVersionDictionary(const PdfMemDocument& podofoDoc, const PdfO
bject& podofoObj) { | 3069 static bool isOpiVersionDictionary(const PdfMemDocument& podofoDoc, const PdfO
bject& podofoObj) { |
3033 return true; | 3070 return true; |
3034 } | 3071 } |
3035 | 3072 |
3036 static bool isMultiMasterFontDictionary(const PdfMemDocument& podofoDoc, const
PdfObject& podofoObj) { | 3073 static bool isMultiMasterFontDictionary(const PdfMemDocument& podofoDoc, const
PdfObject& podofoObj) { |
3037 std::string Subtype; | 3074 std::string Subtype; |
3038 if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", ""
, &Subtype)) return false; | 3075 if (!NameFromDictionary(&podofoDoc, podofoObj.GetDictionary(), "Subtype", ""
, &Subtype)) return false; |
3039 if (Subtype != "MMType1") return false; | 3076 if ((Subtype != "MMType1")) return false; |
3040 | 3077 |
3041 return true; | 3078 return true; |
3042 } | 3079 } |
3043 | 3080 |
3044 }; | 3081 }; |
3045 | 3082 |
3046 #endif // __DEFINED__SkPdfPodofoMapper | 3083 #endif // __DEFINED__SkPdfPodofoMapper |
OLD | NEW |