Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Side by Side Diff: experimental/PdfViewer/SkPdfMarkedContentReferenceDictionary_autogen.h

Issue 16975013: Deal with ca and CA transparency operators in pdf. add comments to generated classes. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #ifndef __DEFINED__SkPdfMarkedContentReferenceDictionary 1 #ifndef __DEFINED__SkPdfMarkedContentReferenceDictionary
2 #define __DEFINED__SkPdfMarkedContentReferenceDictionary 2 #define __DEFINED__SkPdfMarkedContentReferenceDictionary
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 marked-content reference dictionary
8 class SkPdfMarkedContentReferenceDictionary : public SkPdfDictionary { 9 class SkPdfMarkedContentReferenceDictionary : public SkPdfDictionary {
9 public: 10 public:
10 virtual SkPdfObjectType getType() const { return kMarkedContentReferenceDictio nary_SkPdfObjectType;} 11 virtual SkPdfObjectType getType() const { return kMarkedContentReferenceDictio nary_SkPdfObjectType;}
11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kMarkedC ontentReferenceDictionary_SkPdfObjectType + 1);} 12 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kMarkedC ontentReferenceDictionary_SkPdfObjectType + 1);}
12 public: 13 public:
13 virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDiction ary() {return this;} 14 virtual SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceDiction ary() {return this;}
14 virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceD ictionary() const {return this;} 15 virtual const SkPdfMarkedContentReferenceDictionary* asMarkedContentReferenceD ictionary() 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
514 515
515 public: 516 public:
516 private: 517 private:
517 public: 518 public:
518 SkPdfMarkedContentReferenceDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} 519 SkPdfMarkedContentReferenceDictionary(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 SkPdfMarkedContentReferenceDictionary& operator=(const SkPdfMarkedContentRefer enceDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = fr om.fPodofoObj; return *this;} 523 SkPdfMarkedContentReferenceDictionary& operator=(const SkPdfMarkedContentRefer enceDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = fr om.fPodofoObj; return *this;}
523 524
525 /** (Required) The type of PDF object that this dictionary describes; must be MC R
526 * for a marked-content reference.
527 **/
528 bool has_Type() const {
529 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type" , "", NULL));
530 }
531
524 std::string Type() const { 532 std::string Type() const {
525 std::string ret; 533 std::string ret;
526 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; 534 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) 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; must be an indirect reference) The page object representing the p age on
540 * which the graphics objects in the marked-content sequence are rendered. This
541 * entry overrides any Pg entry in the structure element containing the marked-
542 * content reference; it is required if the structure element has no such entry .
543 **/
544 bool has_Pg() const {
545 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Pg", "", NULL));
546 }
547
531 SkPdfDictionary* Pg() const { 548 SkPdfDictionary* Pg() const {
532 SkPdfDictionary* ret; 549 SkPdfDictionary* ret;
533 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Pg", "", &ret)) return ret; 550 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Pg", "", &ret)) return ret;
534 // TODO(edisonn): warn about missing required field, assert for known good p dfs 551 // TODO(edisonn): warn about missing required field, assert for known good p dfs
535 return NULL; 552 return NULL;
536 } 553 }
537 554
555 /** (Optional; must be an indirect reference) The content stream containing the
556 * marked-content sequence. This entry is needed only if the marked-content
557 * sequence resides in some other content stream associated with the page-for
558 * example, in a form XObject (see Section 4.9, "Form XObjects") or an annota-
559 * tion's appearance stream (Section 8.4.4, "Appearance Streams"). Default valu e:
560 * the content stream of the page identified by Pg.
561 **/
562 bool has_Stm() const {
563 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Stm", "", NULL));
564 }
565
538 SkPdfStream Stm() const { 566 SkPdfStream Stm() const {
539 SkPdfStream ret; 567 SkPdfStream ret;
540 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Stm", "", &ret)) return ret; 568 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Stm", "", &ret)) return ret;
541 // TODO(edisonn): warn about missing required field, assert for known good p dfs 569 // TODO(edisonn): warn about missing required field, assert for known good p dfs
542 return SkPdfStream(); 570 return SkPdfStream();
543 } 571 }
544 572
573 /** (Optional; must be an indirect reference) The PDF object owning the stream
574 * identified by Stm-for example, the annotation to which an appearance stream
575 * belongs.
576 **/
577 bool has_StmOwn() const {
578 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StmOw n", "", NULL));
579 }
580
545 SkPdfObject* StmOwn() const { 581 SkPdfObject* StmOwn() const {
546 SkPdfObject* ret; 582 SkPdfObject* ret;
547 if (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StmOwn", "", &ret)) return ret; 583 if (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StmOwn", "", &ret)) return ret;
548 // TODO(edisonn): warn about missing required field, assert for known good p dfs 584 // TODO(edisonn): warn about missing required field, assert for known good p dfs
549 return NULL; 585 return NULL;
550 } 586 }
551 587
588 /** (Required) The marked-content identifier of the marked-content sequence with -
589 * in its content stream.
590 **/
591 bool has_MCID() const {
592 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MCID" , "", NULL));
593 }
594
552 long MCID() const { 595 long MCID() const {
553 long ret; 596 long ret;
554 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MCID", "", &ret)) return ret; 597 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MCID", "", &ret)) return ret;
555 // TODO(edisonn): warn about missing required field, assert for known good p dfs 598 // TODO(edisonn): warn about missing required field, assert for known good p dfs
556 return 0; 599 return 0;
557 } 600 }
558 601
559 }; 602 };
560 603
561 #endif // __DEFINED__SkPdfMarkedContentReferenceDictionary 604 #endif // __DEFINED__SkPdfMarkedContentReferenceDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698