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

Side by Side Diff: experimental/PdfViewer/SkPdfMacOsFileInformationDictionary_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__SkPdfMacOsFileInformationDictionary 1 #ifndef __DEFINED__SkPdfMacOsFileInformationDictionary
2 #define __DEFINED__SkPdfMacOsFileInformationDictionary 2 #define __DEFINED__SkPdfMacOsFileInformationDictionary
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 Mac OS file information dictionary
8 class SkPdfMacOsFileInformationDictionary : public SkPdfDictionary { 9 class SkPdfMacOsFileInformationDictionary : public SkPdfDictionary {
9 public: 10 public:
10 virtual SkPdfObjectType getType() const { return kMacOsFileInformationDictiona ry_SkPdfObjectType;} 11 virtual SkPdfObjectType getType() const { return kMacOsFileInformationDictiona ry_SkPdfObjectType;}
11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kMacOsFi leInformationDictionary_SkPdfObjectType + 1);} 12 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kMacOsFi leInformationDictionary_SkPdfObjectType + 1);}
12 public: 13 public:
13 virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary( ) {return this;} 14 virtual SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDictionary( ) {return this;}
14 virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDicti onary() const {return this;} 15 virtual const SkPdfMacOsFileInformationDictionary* asMacOsFileInformationDicti onary() 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 SkPdfMacOsFileInformationDictionary(const PdfMemDocument* podofoDoc = NULL, co nst PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} 519 SkPdfMacOsFileInformationDictionary(const PdfMemDocument* podofoDoc = NULL, co nst 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 SkPdfMacOsFileInformationDictionary& operator=(const SkPdfMacOsFileInformation Dictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.f PodofoObj; return *this;} 523 SkPdfMacOsFileInformationDictionary& operator=(const SkPdfMacOsFileInformation Dictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.f PodofoObj; return *this;}
523 524
525 /** (Optional) The embedded file's file type.
526 **/
527 bool has_Subtype() const {
528 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subty pe", "", NULL));
529 }
530
524 std::string Subtype() const { 531 std::string Subtype() const {
525 std::string ret; 532 std::string ret;
526 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret; 533 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &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 ""; 535 return "";
529 } 536 }
530 537
538 /** (Optional) The embedded file's creator signature.
539 **/
540 bool has_Creator() const {
541 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Creat or", "", NULL));
542 }
543
531 std::string Creator() const { 544 std::string Creator() const {
532 std::string ret; 545 std::string ret;
533 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Creator", "", &ret)) return ret; 546 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Creator", "", &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 ""; 548 return "";
536 } 549 }
537 550
551 /** (Optional) The binary contents of the embedded file's resource fork.
552 **/
553 bool has_ResFork() const {
554 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ResFo rk", "", NULL));
555 }
556
538 SkPdfStream ResFork() const { 557 SkPdfStream ResFork() const {
539 SkPdfStream ret; 558 SkPdfStream ret;
540 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ResFork", "", &ret)) return ret; 559 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ResFork", "", &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 SkPdfStream(); 561 return SkPdfStream();
543 } 562 }
544 563
545 }; 564 };
546 565
547 #endif // __DEFINED__SkPdfMacOsFileInformationDictionary 566 #endif // __DEFINED__SkPdfMacOsFileInformationDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698