OLD | NEW |
1 #ifndef __DEFINED__SkPdfWebCapturePageSetDictionary | 1 #ifndef __DEFINED__SkPdfWebCapturePageSetDictionary |
2 #define __DEFINED__SkPdfWebCapturePageSetDictionary | 2 #define __DEFINED__SkPdfWebCapturePageSetDictionary |
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 // Additional entries specific to a Web Capture page set |
8 class SkPdfWebCapturePageSetDictionary : public SkPdfDictionary { | 9 class SkPdfWebCapturePageSetDictionary : public SkPdfDictionary { |
9 public: | 10 public: |
10 virtual SkPdfObjectType getType() const { return kWebCapturePageSetDictionary_
SkPdfObjectType;} | 11 virtual SkPdfObjectType getType() const { return kWebCapturePageSetDictionary_
SkPdfObjectType;} |
11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kWebCapt
urePageSetDictionary_SkPdfObjectType + 1);} | 12 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kWebCapt
urePageSetDictionary_SkPdfObjectType + 1);} |
12 public: | 13 public: |
13 virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {ret
urn this;} | 14 virtual SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary() {ret
urn this;} |
14 virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary(
) const {return this;} | 15 virtual const SkPdfWebCapturePageSetDictionary* asWebCapturePageSetDictionary(
) 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 SkPdfWebCapturePageSetDictionary(const PdfMemDocument* podofoDoc = NULL, const
PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} | 519 SkPdfWebCapturePageSetDictionary(const PdfMemDocument* podofoDoc = NULL, const
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 SkPdfWebCapturePageSetDictionary& operator=(const SkPdfWebCapturePageSetDictio
nary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofo
Obj; return *this;} | 523 SkPdfWebCapturePageSetDictionary& operator=(const SkPdfWebCapturePageSetDictio
nary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofo
Obj; return *this;} |
523 | 524 |
| 525 /** (Required) The subtype of content set that this dictionary describes; must b
e SPS |
| 526 * ("Spider page set") for a page set. |
| 527 **/ |
| 528 bool has_S() const { |
| 529 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "
", NULL)); |
| 530 } |
| 531 |
524 std::string S() const { | 532 std::string S() const { |
525 std::string ret; | 533 std::string ret; |
526 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &re
t)) return ret; | 534 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &re
t)) return ret; |
527 // 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 |
528 return ""; | 536 return ""; |
529 } | 537 } |
530 | 538 |
| 539 /** (Optional) The title of the page set, a text string representing it in human
-readable |
| 540 * form. |
| 541 **/ |
| 542 bool has_T() const { |
| 543 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "T", "
", NULL)); |
| 544 } |
| 545 |
531 std::string T() const { | 546 std::string T() const { |
532 std::string ret; | 547 std::string ret; |
533 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "T", "", &
ret)) return ret; | 548 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "T", "", &
ret)) return ret; |
534 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 549 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
535 return ""; | 550 return ""; |
536 } | 551 } |
537 | 552 |
| 553 /** (Optional) A text identifier generated from the text of the page set, as des
cribed in |
| 554 * "Digital Identifiers" on page 664. |
| 555 **/ |
| 556 bool has_TID() const { |
| 557 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TID",
"", NULL)); |
| 558 } |
| 559 |
538 std::string TID() const { | 560 std::string TID() const { |
539 std::string ret; | 561 std::string ret; |
540 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TID", "",
&ret)) return ret; | 562 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TID", "",
&ret)) return ret; |
541 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 563 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
542 return ""; | 564 return ""; |
543 } | 565 } |
544 | 566 |
545 }; | 567 }; |
546 | 568 |
547 #endif // __DEFINED__SkPdfWebCapturePageSetDictionary | 569 #endif // __DEFINED__SkPdfWebCapturePageSetDictionary |
OLD | NEW |