OLD | NEW |
1 #ifndef __DEFINED__SkPdfPagePieceDictionary | 1 #ifndef __DEFINED__SkPdfPagePieceDictionary |
2 #define __DEFINED__SkPdfPagePieceDictionary | 2 #define __DEFINED__SkPdfPagePieceDictionary |
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 // Entries in a page-piece dictionary |
8 class SkPdfPagePieceDictionary : public SkPdfDictionary { | 9 class SkPdfPagePieceDictionary : public SkPdfDictionary { |
9 public: | 10 public: |
10 virtual SkPdfObjectType getType() const { return kPagePieceDictionary_SkPdfObj
ectType;} | 11 virtual SkPdfObjectType getType() const { return kPagePieceDictionary_SkPdfObj
ectType;} |
11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kPagePie
ceDictionary_SkPdfObjectType + 1);} | 12 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kPagePie
ceDictionary_SkPdfObjectType + 1);} |
12 public: | 13 public: |
13 virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return this;} | 14 virtual SkPdfPagePieceDictionary* asPagePieceDictionary() {return this;} |
14 virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return
this;} | 15 virtual const SkPdfPagePieceDictionary* asPagePieceDictionary() const {return
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 SkPdfPagePieceDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObje
ct* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} | 519 SkPdfPagePieceDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObje
ct* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} |
519 | 520 |
520 virtual bool valid() const {return true;} | 521 virtual bool valid() const {return true;} |
521 | 522 |
522 SkPdfPagePieceDictionary& operator=(const SkPdfPagePieceDictionary& from) {thi
s->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *thi
s;} | 523 SkPdfPagePieceDictionary& operator=(const SkPdfPagePieceDictionary& from) {thi
s->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *thi
s;} |
523 | 524 |
| 525 /** ()An application data dictionary (see Table 9.7). |
| 526 **/ |
524 /* | 527 /* |
525 bool has_[any_application_name_or_well_known_data_type]() const { | 528 bool has_[any_application_name_or_well_known_data_type]() const { |
526 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "[any_
application_name_or_well_known_data_type]", "", NULL)); | 529 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "[any_
application_name_or_well_known_data_type]", "", NULL)); |
527 } | 530 } |
| 531 |
528 SkPdfDictionary* [any_application_name_or_well_known_data_type]() const { | 532 SkPdfDictionary* [any_application_name_or_well_known_data_type]() const { |
529 SkPdfDictionary* ret; | 533 SkPdfDictionary* ret; |
530 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "[any_
application_name_or_well_known_data_type]", "", &ret)) return ret; | 534 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "[any_
application_name_or_well_known_data_type]", "", &ret)) return ret; |
531 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 535 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
532 return NULL; | 536 return NULL; |
533 } | 537 } |
534 | 538 |
535 */ | 539 */ |
536 }; | 540 }; |
537 | 541 |
538 #endif // __DEFINED__SkPdfPagePieceDictionary | 542 #endif // __DEFINED__SkPdfPagePieceDictionary |
OLD | NEW |