| OLD | NEW |
| 1 #ifndef __DEFINED__SkPdfFDFCatalogDictionary | 1 #ifndef __DEFINED__SkPdfFDFCatalogDictionary |
| 2 #define __DEFINED__SkPdfFDFCatalogDictionary | 2 #define __DEFINED__SkPdfFDFCatalogDictionary |
| 3 | 3 |
| 4 #include "SkPdfUtils.h" | 4 #include "SkPdfUtils.h" |
| 5 #include "SkPdfEnums_autogen.h" | 5 #include "SkPdfEnums_autogen.h" |
| 6 #include "SkPdfArray_autogen.h" | 6 #include "SkPdfArray_autogen.h" |
| 7 #include "SkPdfDictionary_autogen.h" | 7 #include "SkPdfDictionary_autogen.h" |
| 8 | 8 |
| 9 // Entries in the FDF catalog dictionary | 9 // Entries in the FDF catalog dictionary |
| 10 class SkPdfFDFCatalogDictionary : public SkPdfDictionary { | 10 class SkPdfFDFCatalogDictionary : public SkPdfDictionary { |
| (...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 * header specifies a later version, or if this entry is absent, the docu- | 531 * header specifies a later version, or if this entry is absent, the docu- |
| 532 * ment conforms to the version specified in the header. | 532 * ment conforms to the version specified in the header. |
| 533 * Note: The value of this entry is a name object, not a number, and so | 533 * Note: The value of this entry is a name object, not a number, and so |
| 534 * must be preceded by a slash character (/) when written in the FDF file | 534 * must be preceded by a slash character (/) when written in the FDF file |
| 535 * (for example, /1.4). | 535 * (for example, /1.4). |
| 536 **/ | 536 **/ |
| 537 bool has_Version() const { | 537 bool has_Version() const { |
| 538 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Versi
on", "", NULL)); | 538 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Versi
on", "", NULL)); |
| 539 } | 539 } |
| 540 | 540 |
| 541 std::string Version() const { | 541 std::string Version() const; |
| 542 std::string ret; | |
| 543 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Version", "
", &ret)) return ret; | |
| 544 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 545 return ""; | |
| 546 } | |
| 547 | |
| 548 /** (Required) The FDF dictionary for this file (see Table 8.69). | 542 /** (Required) The FDF dictionary for this file (see Table 8.69). |
| 549 **/ | 543 **/ |
| 550 bool has_FDF() const { | 544 bool has_FDF() const { |
| 551 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FDF",
"", NULL)); | 545 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FDF",
"", NULL)); |
| 552 } | 546 } |
| 553 | 547 |
| 554 SkPdfDictionary* FDF() const { | 548 SkPdfDictionary* FDF() const; |
| 555 SkPdfDictionary* ret; | |
| 556 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FDF",
"", &ret)) return ret; | |
| 557 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 558 return NULL; | |
| 559 } | |
| 560 | |
| 561 }; | 549 }; |
| 562 | 550 |
| 563 #endif // __DEFINED__SkPdfFDFCatalogDictionary | 551 #endif // __DEFINED__SkPdfFDFCatalogDictionary |
| OLD | NEW |