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

Side by Side Diff: experimental/PdfViewer/SkPdfType1PatternDictionary_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__SkPdfType1PatternDictionary 1 #ifndef __DEFINED__SkPdfType1PatternDictionary
2 #define __DEFINED__SkPdfType1PatternDictionary 2 #define __DEFINED__SkPdfType1PatternDictionary
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 type 1 pattern dictionary
8 class SkPdfType1PatternDictionary : public SkPdfDictionary { 9 class SkPdfType1PatternDictionary : public SkPdfDictionary {
9 public: 10 public:
10 virtual SkPdfObjectType getType() const { return kType1PatternDictionary_SkPdf ObjectType;} 11 virtual SkPdfObjectType getType() const { return kType1PatternDictionary_SkPdf ObjectType;}
11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kType1Pa tternDictionary_SkPdfObjectType + 1);} 12 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kType1Pa tternDictionary_SkPdfObjectType + 1);}
12 public: 13 public:
13 virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return this;} 14 virtual SkPdfType1PatternDictionary* asType1PatternDictionary() {return this;}
14 virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {r eturn this;} 15 virtual const SkPdfType1PatternDictionary* asType1PatternDictionary() const {r eturn 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 SkPdfType1PatternDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfO bject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} 519 SkPdfType1PatternDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfO bject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {}
519 520
520 virtual bool valid() const {return true;} 521 virtual bool valid() const {return true;}
521 522
522 SkPdfType1PatternDictionary& operator=(const SkPdfType1PatternDictionary& from ) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; retur n *this;} 523 SkPdfType1PatternDictionary& operator=(const SkPdfType1PatternDictionary& from ) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; retur n *this;}
523 524
525 /** (Optional) The type of PDF object that this dictionary describes; if present ,
526 * must be Pattern for a pattern 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) A code identifying the type of pattern that this dictionary de-
540 * scribes; must be 1 for a tiling pattern.
541 **/
542 bool has_PatternType() const {
543 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Patte rnType", "", NULL));
544 }
545
531 long PatternType() const { 546 long PatternType() const {
532 long ret; 547 long ret;
533 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PatternType ", "", &ret)) return ret; 548 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PatternType ", "", &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 0; 550 return 0;
536 } 551 }
537 552
553 /** (Required) A code that determines how the color of the pattern cell is to be
554 * specified:
555 * 1 Colored tiling pattern. The pattern's content stream itself specifi es the
556 * colors used to paint the pattern cell. When the content stream begi ns
557 * execution, the current color is the one that was initially in effec t in the
558 * pattern's parent content stream. (This is similar to the definition of the
559 * pattern matrix; see Section 4.6.1, "General Properties of Patterns. ")
560 * 2 Uncolored tiling pattern. The pattern's content stream does not spe ci-
561 * fy any color information. Instead, the entire pattern cell is paint ed
562 * with a separately specified color each time the pattern is used. Es sen-
563 * tially, the content stream describes a stencil through which the cu r-
564 **/
565 bool has_PaintType() const {
566 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Paint Type", "", NULL));
567 }
568
538 long PaintType() const { 569 long PaintType() const {
539 long ret; 570 long ret;
540 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PaintType", "", &ret)) return ret; 571 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "PaintType", "", &ret)) return ret;
541 // TODO(edisonn): warn about missing required field, assert for known good p dfs 572 // TODO(edisonn): warn about missing required field, assert for known good p dfs
542 return 0; 573 return 0;
543 } 574 }
544 575
545 }; 576 };
546 577
547 #endif // __DEFINED__SkPdfType1PatternDictionary 578 #endif // __DEFINED__SkPdfType1PatternDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698