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

Side by Side Diff: experimental/PdfViewer/SkPdfEmbeddedFileStreamDictionary_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__SkPdfEmbeddedFileStreamDictionary 1 #ifndef __DEFINED__SkPdfEmbeddedFileStreamDictionary
2 #define __DEFINED__SkPdfEmbeddedFileStreamDictionary 2 #define __DEFINED__SkPdfEmbeddedFileStreamDictionary
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 in an embedded file stream dictionary
8 class SkPdfEmbeddedFileStreamDictionary : public SkPdfDictionary { 9 class SkPdfEmbeddedFileStreamDictionary : public SkPdfDictionary {
9 public: 10 public:
10 virtual SkPdfObjectType getType() const { return kEmbeddedFileStreamDictionary _SkPdfObjectType;} 11 virtual SkPdfObjectType getType() const { return kEmbeddedFileStreamDictionary _SkPdfObjectType;}
11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kEmbedde dFileStreamDictionary_SkPdfObjectType + 1);} 12 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kEmbedde dFileStreamDictionary_SkPdfObjectType + 1);}
12 public: 13 public:
13 virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {r eturn this;} 14 virtual SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionary() {r eturn this;}
14 virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionar y() const {return this;} 15 virtual const SkPdfEmbeddedFileStreamDictionary* asEmbeddedFileStreamDictionar y() 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 SkPdfEmbeddedFileStreamDictionary(const PdfMemDocument* podofoDoc = NULL, cons t PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} 519 SkPdfEmbeddedFileStreamDictionary(const PdfMemDocument* podofoDoc = NULL, cons t 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 SkPdfEmbeddedFileStreamDictionary& operator=(const SkPdfEmbeddedFileStreamDict ionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodo foObj; return *this;} 523 SkPdfEmbeddedFileStreamDictionary& operator=(const SkPdfEmbeddedFileStreamDict ionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodo foObj; return *this;}
523 524
525 /** (Optional) The type of PDF object that this dictionary describes; if present ,
526 * must be EmbeddedFile for an embedded file stream.
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) The subtype of the embedded file. The value of this entry must be
540 * a first-class name, as defined in Appendix E. Names without a registered pre -
541 * fix must conform to the MIME media type names defined in Internet RFC
542 * 2046, Multipurpose Internet Mail Extensions (MIME), Part Two: Media Types
543 * (see the Bibliography), with the provision that characters not allowed in
544 * names must use the 2-character hexadecimal code format described in Sec-
545 * tion 3.2.4, "Name Objects."
546 **/
547 bool has_Subtype() const {
548 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subty pe", "", NULL));
549 }
550
531 std::string Subtype() const { 551 std::string Subtype() const {
532 std::string ret; 552 std::string ret;
533 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", " ", &ret)) return ret; 553 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", " ", &ret)) return ret;
534 // TODO(edisonn): warn about missing required field, assert for known good p dfs 554 // TODO(edisonn): warn about missing required field, assert for known good p dfs
535 return ""; 555 return "";
536 } 556 }
537 557
558 /** (Optional) An embedded file parameter dictionary containing additional, file -
559 * specific information (see Table 3.34).
560 **/
561 bool has_Params() const {
562 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Param s", "", NULL));
563 }
564
538 SkPdfDictionary* Params() const { 565 SkPdfDictionary* Params() const {
539 SkPdfDictionary* ret; 566 SkPdfDictionary* ret;
540 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Param s", "", &ret)) return ret; 567 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Param s", "", &ret)) return ret;
541 // TODO(edisonn): warn about missing required field, assert for known good p dfs 568 // TODO(edisonn): warn about missing required field, assert for known good p dfs
542 return NULL; 569 return NULL;
543 } 570 }
544 571
545 }; 572 };
546 573
547 #endif // __DEFINED__SkPdfEmbeddedFileStreamDictionary 574 #endif // __DEFINED__SkPdfEmbeddedFileStreamDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698