OLD | NEW |
1 #ifndef __DEFINED__SkPdfFDFPageDictionary | 1 #ifndef __DEFINED__SkPdfFDFPageDictionary |
2 #define __DEFINED__SkPdfFDFPageDictionary | 2 #define __DEFINED__SkPdfFDFPageDictionary |
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 an FDF page dictionary | 9 // Entries in an FDF page dictionary |
10 class SkPdfFDFPageDictionary : public SkPdfDictionary { | 10 class SkPdfFDFPageDictionary : public SkPdfDictionary { |
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 | 525 |
526 SkPdfFDFPageDictionary& operator=(const SkPdfFDFPageDictionary& from) {this->f
PodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} | 526 SkPdfFDFPageDictionary& operator=(const SkPdfFDFPageDictionary& from) {this->f
PodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} |
527 | 527 |
528 /** (Required) An array of FDF template dictionaries (see Table 8.75) describing
the | 528 /** (Required) An array of FDF template dictionaries (see Table 8.75) describing
the |
529 * named pages that serve as templates on the page. | 529 * named pages that serve as templates on the page. |
530 **/ | 530 **/ |
531 bool has_Templates() const { | 531 bool has_Templates() const { |
532 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Templ
ates", "", NULL)); | 532 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Templ
ates", "", NULL)); |
533 } | 533 } |
534 | 534 |
535 SkPdfArray* Templates() const { | 535 SkPdfArray* Templates() const; |
536 SkPdfArray* ret; | |
537 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Templates"
, "", &ret)) return ret; | |
538 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
539 return NULL; | |
540 } | |
541 | |
542 /** (Optional) An FDF page information dictionary containing additional informa- | 536 /** (Optional) An FDF page information dictionary containing additional informa- |
543 * tion about the page. At the time of publication, no entries have been define
d for | 537 * tion about the page. At the time of publication, no entries have been define
d for |
544 * this dictionary. | 538 * this dictionary. |
545 **/ | 539 **/ |
546 bool has_Info() const { | 540 bool has_Info() const { |
547 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Info"
, "", NULL)); | 541 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Info"
, "", NULL)); |
548 } | 542 } |
549 | 543 |
550 SkPdfDictionary* Info() const { | 544 SkPdfDictionary* Info() const; |
551 SkPdfDictionary* ret; | |
552 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Info"
, "", &ret)) return ret; | |
553 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
554 return NULL; | |
555 } | |
556 | |
557 }; | 545 }; |
558 | 546 |
559 #endif // __DEFINED__SkPdfFDFPageDictionary | 547 #endif // __DEFINED__SkPdfFDFPageDictionary |
OLD | NEW |