OLD | NEW |
1 #ifndef __DEFINED__SkPdfWebCaptureInformationDictionary | 1 #ifndef __DEFINED__SkPdfWebCaptureInformationDictionary |
2 #define __DEFINED__SkPdfWebCaptureInformationDictionary | 2 #define __DEFINED__SkPdfWebCaptureInformationDictionary |
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 the Web Capture information dictionary | 9 // Entries in the Web Capture information dictionary |
10 class SkPdfWebCaptureInformationDictionary : public SkPdfDictionary { | 10 class SkPdfWebCaptureInformationDictionary : public SkPdfDictionary { |
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 SkPdfWebCaptureInformationDictionary& operator=(const SkPdfWebCaptureInformati
onDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from
.fPodofoObj; return *this;} | 526 SkPdfWebCaptureInformationDictionary& operator=(const SkPdfWebCaptureInformati
onDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from
.fPodofoObj; return *this;} |
527 | 527 |
528 /** (Required) The Web Capture version number. For PDF 1.3, the version number i
s 1.0. | 528 /** (Required) The Web Capture version number. For PDF 1.3, the version number i
s 1.0. |
529 * Note: This value is a single real number, not a major and minor version numb
er. Thus, for | 529 * Note: This value is a single real number, not a major and minor version numb
er. Thus, for |
530 * example, a version number of 1.2 would be considered greater than 1.15. | 530 * example, a version number of 1.2 would be considered greater than 1.15. |
531 **/ | 531 **/ |
532 bool has_V() const { | 532 bool has_V() const { |
533 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "V", "
", NULL)); | 533 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "V", "
", NULL)); |
534 } | 534 } |
535 | 535 |
536 double V() const { | 536 double V() const; |
537 double ret; | |
538 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "V", "", &
ret)) return ret; | |
539 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
540 return 0; | |
541 } | |
542 | |
543 /** (Optional) An array of indirect references to Web Capture command dictionari
es (see | 537 /** (Optional) An array of indirect references to Web Capture command dictionari
es (see |
544 * "Command Dictionaries" on page 672) describing commands that were used in bu
ilding | 538 * "Command Dictionaries" on page 672) describing commands that were used in bu
ilding |
545 * the PDF file. The commands appear in the array in the order in which they we
re executed | 539 * the PDF file. The commands appear in the array in the order in which they we
re executed |
546 * in building the file. | 540 * in building the file. |
547 **/ | 541 **/ |
548 bool has_C() const { | 542 bool has_C() const { |
549 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "
", NULL)); | 543 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "
", NULL)); |
550 } | 544 } |
551 | 545 |
552 SkPdfArray* C() const { | 546 SkPdfArray* C() const; |
553 SkPdfArray* ret; | |
554 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "", &r
et)) return ret; | |
555 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
556 return NULL; | |
557 } | |
558 | |
559 }; | 547 }; |
560 | 548 |
561 #endif // __DEFINED__SkPdfWebCaptureInformationDictionary | 549 #endif // __DEFINED__SkPdfWebCaptureInformationDictionary |
OLD | NEW |