OLD | NEW |
1 #ifndef __DEFINED__SkPdfWebCaptureInformationDictionary | 1 #ifndef __DEFINED__SkPdfWebCaptureInformationDictionary |
2 #define __DEFINED__SkPdfWebCaptureInformationDictionary | 2 #define __DEFINED__SkPdfWebCaptureInformationDictionary |
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 the Web Capture information dictionary |
8 class SkPdfWebCaptureInformationDictionary : public SkPdfDictionary { | 9 class SkPdfWebCaptureInformationDictionary : public SkPdfDictionary { |
9 public: | 10 public: |
10 virtual SkPdfObjectType getType() const { return kWebCaptureInformationDiction
ary_SkPdfObjectType;} | 11 virtual SkPdfObjectType getType() const { return kWebCaptureInformationDiction
ary_SkPdfObjectType;} |
11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kWebCapt
ureInformationDictionary_SkPdfObjectType + 1);} | 12 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kWebCapt
ureInformationDictionary_SkPdfObjectType + 1);} |
12 public: | 13 public: |
13 virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionar
y() {return this;} | 14 virtual SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDictionar
y() {return this;} |
14 virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDic
tionary() const {return this;} | 15 virtual const SkPdfWebCaptureInformationDictionary* asWebCaptureInformationDic
tionary() 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 SkPdfWebCaptureInformationDictionary(const PdfMemDocument* podofoDoc = NULL, c
onst PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} | 519 SkPdfWebCaptureInformationDictionary(const PdfMemDocument* podofoDoc = NULL, c
onst PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} |
519 | 520 |
520 virtual bool valid() const {return true;} | 521 virtual bool valid() const {return true;} |
521 | 522 |
522 SkPdfWebCaptureInformationDictionary& operator=(const SkPdfWebCaptureInformati
onDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from
.fPodofoObj; return *this;} | 523 SkPdfWebCaptureInformationDictionary& operator=(const SkPdfWebCaptureInformati
onDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from
.fPodofoObj; return *this;} |
523 | 524 |
| 525 /** (Required) The Web Capture version number. For PDF 1.3, the version number i
s 1.0. |
| 526 * Note: This value is a single real number, not a major and minor version numb
er. Thus, for |
| 527 * example, a version number of 1.2 would be considered greater than 1.15. |
| 528 **/ |
| 529 bool has_V() const { |
| 530 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "V", "
", NULL)); |
| 531 } |
| 532 |
524 double V() const { | 533 double V() const { |
525 double ret; | 534 double ret; |
526 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "V", "", &
ret)) return ret; | 535 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "V", "", &
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 0; | 537 return 0; |
529 } | 538 } |
530 | 539 |
| 540 /** (Optional) An array of indirect references to Web Capture command dictionari
es (see |
| 541 * "Command Dictionaries" on page 672) describing commands that were used in bu
ilding |
| 542 * the PDF file. The commands appear in the array in the order in which they we
re executed |
| 543 * in building the file. |
| 544 **/ |
| 545 bool has_C() const { |
| 546 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "
", NULL)); |
| 547 } |
| 548 |
531 SkPdfArray C() const { | 549 SkPdfArray C() const { |
532 SkPdfArray ret; | 550 SkPdfArray ret; |
533 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "", &r
et)) return ret; | 551 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "", &r
et)) return ret; |
534 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 552 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
535 return SkPdfArray(); | 553 return SkPdfArray(); |
536 } | 554 } |
537 | 555 |
538 }; | 556 }; |
539 | 557 |
540 #endif // __DEFINED__SkPdfWebCaptureInformationDictionary | 558 #endif // __DEFINED__SkPdfWebCaptureInformationDictionary |
OLD | NEW |