OLD | NEW |
1 #ifndef __DEFINED__SkPdfOpiVersionDictionary | 1 #ifndef __DEFINED__SkPdfOpiVersionDictionary |
2 #define __DEFINED__SkPdfOpiVersionDictionary | 2 #define __DEFINED__SkPdfOpiVersionDictionary |
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 // Entry in an OPI version dictionary | 9 // Entry in an OPI version dictionary |
10 class SkPdfOpiVersionDictionary : public SkPdfDictionary { | 10 class SkPdfOpiVersionDictionary : public SkPdfDictionary { |
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 SkPdfOpiVersionDictionary& operator=(const SkPdfOpiVersionDictionary& from) {t
his->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *t
his;} | 526 SkPdfOpiVersionDictionary& operator=(const SkPdfOpiVersionDictionary& from) {t
his->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *t
his;} |
527 | 527 |
528 /** (Required; PDF 1.2) An OPI dictionary specifying the attributes of this prox
y | 528 /** (Required; PDF 1.2) An OPI dictionary specifying the attributes of this prox
y |
529 * (see Tables 9.50 and 9.51). The key for this entry must be the name 1.3 or 2
.0, | 529 * (see Tables 9.50 and 9.51). The key for this entry must be the name 1.3 or 2
.0, |
530 * identifying the version of OPI to which the proxy corresponds. | 530 * identifying the version of OPI to which the proxy corresponds. |
531 **/ | 531 **/ |
532 bool has_version_number() const { | 532 bool has_version_number() const { |
533 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "versi
on_number", "", NULL)); | 533 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "versi
on_number", "", NULL)); |
534 } | 534 } |
535 | 535 |
536 SkPdfDictionary* version_number() const { | 536 SkPdfDictionary* version_number() const; |
537 SkPdfDictionary* ret; | |
538 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "versi
on_number", "", &ret)) return ret; | |
539 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
540 return NULL; | |
541 } | |
542 | |
543 }; | 537 }; |
544 | 538 |
545 #endif // __DEFINED__SkPdfOpiVersionDictionary | 539 #endif // __DEFINED__SkPdfOpiVersionDictionary |
OLD | NEW |