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

Side by Side Diff: experimental/PdfViewer/SkPdfBeadDictionary_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__SkPdfBeadDictionary 1 #ifndef __DEFINED__SkPdfBeadDictionary
2 #define __DEFINED__SkPdfBeadDictionary 2 #define __DEFINED__SkPdfBeadDictionary
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 bead dictionary
8 class SkPdfBeadDictionary : public SkPdfDictionary { 9 class SkPdfBeadDictionary : public SkPdfDictionary {
9 public: 10 public:
10 virtual SkPdfObjectType getType() const { return kBeadDictionary_SkPdfObjectTy pe;} 11 virtual SkPdfObjectType getType() const { return kBeadDictionary_SkPdfObjectTy pe;}
11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kBeadDic tionary_SkPdfObjectType + 1);} 12 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kBeadDic tionary_SkPdfObjectType + 1);}
12 public: 13 public:
13 virtual SkPdfBeadDictionary* asBeadDictionary() {return this;} 14 virtual SkPdfBeadDictionary* asBeadDictionary() {return this;}
14 virtual const SkPdfBeadDictionary* asBeadDictionary() const {return this;} 15 virtual const SkPdfBeadDictionary* asBeadDictionary() 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 SkPdfBeadDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* p odofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} 519 SkPdfBeadDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* p odofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {}
519 520
520 virtual bool valid() const {return true;} 521 virtual bool valid() const {return true;}
521 522
522 SkPdfBeadDictionary& operator=(const SkPdfBeadDictionary& from) {this->fPodofo Doc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} 523 SkPdfBeadDictionary& operator=(const SkPdfBeadDictionary& from) {this->fPodofo Doc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;}
523 524
525 /** (Optional) The type of PDF object that this dictionary describes; if present , must be
526 * Bead for a bead dictionary.
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 /** (Required for the first bead of a thread; optional for all others; must be a n indirect refer-
540 * ence) The thread to which this bead belongs.
541 * Note: In PDF 1.1, this entry is permitted only for the first bead of a threa d. In PDF 1.2
542 * and higher, it is permitted for any bead but required only for the first.
543 **/
544 bool has_T() const {
545 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "T", " ", NULL));
546 }
547
531 SkPdfDictionary* T() const { 548 SkPdfDictionary* T() const {
532 SkPdfDictionary* ret; 549 SkPdfDictionary* ret;
533 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "T", " ", &ret)) return ret; 550 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "T", " ", &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 /** (Required; must be an indirect reference) The next bead in the thread. In th e last bead,
556 * this entry points to the first.
557 **/
558 bool has_N() const {
559 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "N", " ", NULL));
560 }
561
538 SkPdfDictionary* N() const { 562 SkPdfDictionary* N() const {
539 SkPdfDictionary* ret; 563 SkPdfDictionary* ret;
540 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "N", " ", &ret)) return ret; 564 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "N", " ", &ret)) return ret;
541 // TODO(edisonn): warn about missing required field, assert for known good p dfs 565 // TODO(edisonn): warn about missing required field, assert for known good p dfs
542 return NULL; 566 return NULL;
543 } 567 }
544 568
569 /** (Required; must be an indirect reference) The previous bead in the thread. I n the first
570 * bead, this entry points to the last.
571 **/
572 bool has_V() const {
573 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "V", " ", NULL));
574 }
575
545 SkPdfDictionary* V() const { 576 SkPdfDictionary* V() const {
546 SkPdfDictionary* ret; 577 SkPdfDictionary* ret;
547 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "V", " ", &ret)) return ret; 578 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "V", " ", &ret)) return ret;
548 // TODO(edisonn): warn about missing required field, assert for known good p dfs 579 // TODO(edisonn): warn about missing required field, assert for known good p dfs
549 return NULL; 580 return NULL;
550 } 581 }
551 582
583 /** (Required; must be an indirect reference) The page object representing the p age on
584 * which this bead appears.
585 **/
586 bool has_P() const {
587 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", " ", NULL));
588 }
589
552 SkPdfDictionary* P() const { 590 SkPdfDictionary* P() const {
553 SkPdfDictionary* ret; 591 SkPdfDictionary* ret;
554 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", " ", &ret)) return ret; 592 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", " ", &ret)) return ret;
555 // TODO(edisonn): warn about missing required field, assert for known good p dfs 593 // TODO(edisonn): warn about missing required field, assert for known good p dfs
556 return NULL; 594 return NULL;
557 } 595 }
558 596
597 /** (Required) A rectangle specifying the location of this bead on the page.
598 **/
599 bool has_R() const {
600 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "R", " ", NULL));
601 }
602
559 SkRect R() const { 603 SkRect R() const {
560 SkRect ret; 604 SkRect ret;
561 if (SkRectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "R", "", & ret)) return ret; 605 if (SkRectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "R", "", & ret)) return ret;
562 // TODO(edisonn): warn about missing required field, assert for known good p dfs 606 // TODO(edisonn): warn about missing required field, assert for known good p dfs
563 return SkRect(); 607 return SkRect();
564 } 608 }
565 609
566 }; 610 };
567 611
568 #endif // __DEFINED__SkPdfBeadDictionary 612 #endif // __DEFINED__SkPdfBeadDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698