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

Side by Side Diff: experimental/PdfViewer/SkPdfEmbeddedFileParameterDictionary_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__SkPdfEmbeddedFileParameterDictionary 1 #ifndef __DEFINED__SkPdfEmbeddedFileParameterDictionary
2 #define __DEFINED__SkPdfEmbeddedFileParameterDictionary 2 #define __DEFINED__SkPdfEmbeddedFileParameterDictionary
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 an embedded file parameter dictionary
8 class SkPdfEmbeddedFileParameterDictionary : public SkPdfDictionary { 9 class SkPdfEmbeddedFileParameterDictionary : public SkPdfDictionary {
9 public: 10 public:
10 virtual SkPdfObjectType getType() const { return kEmbeddedFileParameterDiction ary_SkPdfObjectType;} 11 virtual SkPdfObjectType getType() const { return kEmbeddedFileParameterDiction ary_SkPdfObjectType;}
11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kEmbedde dFileParameterDictionary_SkPdfObjectType + 1);} 12 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kEmbedde dFileParameterDictionary_SkPdfObjectType + 1);}
12 public: 13 public:
13 virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionar y() {return this;} 14 virtual SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDictionar y() {return this;}
14 virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDic tionary() const {return this;} 15 virtual const SkPdfEmbeddedFileParameterDictionary* asEmbeddedFileParameterDic tionary() 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 SkPdfEmbeddedFileParameterDictionary(const PdfMemDocument* podofoDoc = NULL, c onst PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} 519 SkPdfEmbeddedFileParameterDictionary(const PdfMemDocument* podofoDoc = NULL, c onst 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 SkPdfEmbeddedFileParameterDictionary& operator=(const SkPdfEmbeddedFileParamet erDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from .fPodofoObj; return *this;} 523 SkPdfEmbeddedFileParameterDictionary& operator=(const SkPdfEmbeddedFileParamet erDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from .fPodofoObj; return *this;}
523 524
525 /** (Optional) The size of the embedded file, in bytes.
526 **/
527 bool has_Size() const {
528 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Size" , "", NULL));
529 }
530
524 long Size() const { 531 long Size() const {
525 long ret; 532 long ret;
526 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Size", "", &ret)) return ret; 533 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Size", "", &ret)) return ret;
527 // TODO(edisonn): warn about missing required field, assert for known good p dfs 534 // TODO(edisonn): warn about missing required field, assert for known good p dfs
528 return 0; 535 return 0;
529 } 536 }
530 537
538 /** (Optional) The date and time when the embedded file was created.
539 **/
540 bool has_CreationDate() const {
541 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Creat ionDate", "", NULL));
542 }
543
531 SkPdfDate CreationDate() const { 544 SkPdfDate CreationDate() const {
532 SkPdfDate ret; 545 SkPdfDate ret;
533 if (DateFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CreationDat e", "", &ret)) return ret; 546 if (DateFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CreationDat e", "", &ret)) return ret;
534 // TODO(edisonn): warn about missing required field, assert for known good p dfs 547 // TODO(edisonn): warn about missing required field, assert for known good p dfs
535 return SkPdfDate(); 548 return SkPdfDate();
536 } 549 }
537 550
551 /** (Optional) The date and time when the embedded file was last modified.
552 **/
553 bool has_ModDate() const {
554 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ModDa te", "", NULL));
555 }
556
538 SkPdfDate ModDate() const { 557 SkPdfDate ModDate() const {
539 SkPdfDate ret; 558 SkPdfDate ret;
540 if (DateFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ModDate", " ", &ret)) return ret; 559 if (DateFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ModDate", " ", &ret)) return ret;
541 // TODO(edisonn): warn about missing required field, assert for known good p dfs 560 // TODO(edisonn): warn about missing required field, assert for known good p dfs
542 return SkPdfDate(); 561 return SkPdfDate();
543 } 562 }
544 563
564 /** (Optional) A subdictionary containing additional information specific to
565 * Mac OS files (see Table 3.35).
566 **/
567 bool has_Mac() const {
568 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Mac", "", NULL));
569 }
570
545 SkPdfDictionary* Mac() const { 571 SkPdfDictionary* Mac() const {
546 SkPdfDictionary* ret; 572 SkPdfDictionary* ret;
547 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Mac", "", &ret)) return ret; 573 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Mac", "", &ret)) return ret;
548 // TODO(edisonn): warn about missing required field, assert for known good p dfs 574 // TODO(edisonn): warn about missing required field, assert for known good p dfs
549 return NULL; 575 return NULL;
550 } 576 }
551 577
578 /** (Optional) A 16-byte string that is the checksum of the bytes of the uncom-
579 * pressed embedded file. The checksum is calculated by applying the standard
580 * MD5 message-digest algorithm (described in Internet RFC 1321, The MD5
581 * Message-Digest Algorithm; see the Bibliography) to the bytes of the embedded
582 * file stream.
583 **/
584 bool has_CheckSum() const {
585 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Check Sum", "", NULL));
586 }
587
552 std::string CheckSum() const { 588 std::string CheckSum() const {
553 std::string ret; 589 std::string ret;
554 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CheckSum" , "", &ret)) return ret; 590 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CheckSum" , "", &ret)) return ret;
555 // TODO(edisonn): warn about missing required field, assert for known good p dfs 591 // TODO(edisonn): warn about missing required field, assert for known good p dfs
556 return ""; 592 return "";
557 } 593 }
558 594
559 }; 595 };
560 596
561 #endif // __DEFINED__SkPdfEmbeddedFileParameterDictionary 597 #endif // __DEFINED__SkPdfEmbeddedFileParameterDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698