| OLD | NEW |
| 1 #ifndef __DEFINED__SkPdfOpiVersionDictionary | 1 #ifndef __DEFINED__SkPdfOpiVersionDictionary |
| 2 #define __DEFINED__SkPdfOpiVersionDictionary | 2 #define __DEFINED__SkPdfOpiVersionDictionary |
| 3 | 3 |
| 4 #include "SkPdfEnums_autogen.h" | 4 #include "SkPdfEnums_autogen.h" |
| 5 #include "SkPdfArray_autogen.h" | 5 #include "SkPdfArray_autogen.h" |
| 6 #include "SkPdfDictionary_autogen.h" | 6 #include "SkPdfDictionary_autogen.h" |
| 7 | 7 |
| 8 // Entry in an OPI version dictionary |
| 8 class SkPdfOpiVersionDictionary : public SkPdfDictionary { | 9 class SkPdfOpiVersionDictionary : public SkPdfDictionary { |
| 9 public: | 10 public: |
| 10 virtual SkPdfObjectType getType() const { return kOpiVersionDictionary_SkPdfOb
jectType;} | 11 virtual SkPdfObjectType getType() const { return kOpiVersionDictionary_SkPdfOb
jectType;} |
| 11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kOpiVers
ionDictionary_SkPdfObjectType + 1);} | 12 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kOpiVers
ionDictionary_SkPdfObjectType + 1);} |
| 12 public: | 13 public: |
| 13 virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return this;} | 14 virtual SkPdfOpiVersionDictionary* asOpiVersionDictionary() {return this;} |
| 14 virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {retur
n this;} | 15 virtual const SkPdfOpiVersionDictionary* asOpiVersionDictionary() const {retur
n this;} |
| 15 | 16 |
| 16 private: | 17 private: |
| 17 virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return
NULL;} | 18 virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return
NULL;} |
| (...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 | 515 |
| 515 public: | 516 public: |
| 516 private: | 517 private: |
| 517 public: | 518 public: |
| 518 SkPdfOpiVersionDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObj
ect* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} | 519 SkPdfOpiVersionDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObj
ect* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} |
| 519 | 520 |
| 520 virtual bool valid() const {return true;} | 521 virtual bool valid() const {return true;} |
| 521 | 522 |
| 522 SkPdfOpiVersionDictionary& operator=(const SkPdfOpiVersionDictionary& from) {t
his->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *t
his;} | 523 SkPdfOpiVersionDictionary& operator=(const SkPdfOpiVersionDictionary& from) {t
his->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *t
his;} |
| 523 | 524 |
| 525 /** (Required; PDF 1.2) An OPI dictionary specifying the attributes of this prox
y |
| 526 * (see Tables 9.50 and 9.51). The key for this entry must be the name 1.3 or 2
.0, |
| 527 * identifying the version of OPI to which the proxy corresponds. |
| 528 **/ |
| 529 bool has_version_number() const { |
| 530 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "versi
on_number", "", NULL)); |
| 531 } |
| 532 |
| 524 SkPdfDictionary* version_number() const { | 533 SkPdfDictionary* version_number() const { |
| 525 SkPdfDictionary* ret; | 534 SkPdfDictionary* ret; |
| 526 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "versi
on_number", "", &ret)) return ret; | 535 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "versi
on_number", "", &ret)) return ret; |
| 527 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 536 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 528 return NULL; | 537 return NULL; |
| 529 } | 538 } |
| 530 | 539 |
| 531 }; | 540 }; |
| 532 | 541 |
| 533 #endif // __DEFINED__SkPdfOpiVersionDictionary | 542 #endif // __DEFINED__SkPdfOpiVersionDictionary |
| OLD | NEW |