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

Side by Side Diff: experimental/PdfViewer/SkPdfDocumentCatalogActionsDictionary_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__SkPdfDocumentCatalogActionsDictionary 1 #ifndef __DEFINED__SkPdfDocumentCatalogActionsDictionary
2 #define __DEFINED__SkPdfDocumentCatalogActionsDictionary 2 #define __DEFINED__SkPdfDocumentCatalogActionsDictionary
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 the document catalog's additional-actions dictionary
8 class SkPdfDocumentCatalogActionsDictionary : public SkPdfDictionary { 9 class SkPdfDocumentCatalogActionsDictionary : public SkPdfDictionary {
9 public: 10 public:
10 virtual SkPdfObjectType getType() const { return kDocumentCatalogActionsDictio nary_SkPdfObjectType;} 11 virtual SkPdfObjectType getType() const { return kDocumentCatalogActionsDictio nary_SkPdfObjectType;}
11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kDocumen tCatalogActionsDictionary_SkPdfObjectType + 1);} 12 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kDocumen tCatalogActionsDictionary_SkPdfObjectType + 1);}
12 public: 13 public:
13 virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDiction ary() {return this;} 14 virtual SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsDiction ary() {return this;}
14 virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsD ictionary() const {return this;} 15 virtual const SkPdfDocumentCatalogActionsDictionary* asDocumentCatalogActionsD ictionary() 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 SkPdfDocumentCatalogActionsDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} 519 SkPdfDocumentCatalogActionsDictionary(const PdfMemDocument* podofoDoc = NULL, const 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 SkPdfDocumentCatalogActionsDictionary& operator=(const SkPdfDocumentCatalogAct ionsDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = fr om.fPodofoObj; return *this;} 523 SkPdfDocumentCatalogActionsDictionary& operator=(const SkPdfDocumentCatalogAct ionsDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = fr om.fPodofoObj; return *this;}
523 524
525 /** (Optional; PDF 1.4) A JavaScript action to be performed before closing a doc ument.
526 * (The name DC stands for "document close.")
527 **/
528 bool has_DC() const {
529 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DC", "", NULL));
530 }
531
524 SkPdfDictionary* DC() const { 532 SkPdfDictionary* DC() const {
525 SkPdfDictionary* ret; 533 SkPdfDictionary* ret;
526 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DC", "", &ret)) return ret; 534 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DC", "", &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 NULL; 536 return NULL;
529 } 537 }
530 538
539 /** (Optional; PDF 1.4) A JavaScript action to be performed before saving a docu ment.
540 * (The name WS stands for "will save.")
541 **/
542 bool has_WS() const {
543 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "WS", "", NULL));
544 }
545
531 SkPdfDictionary* WS() const { 546 SkPdfDictionary* WS() const {
532 SkPdfDictionary* ret; 547 SkPdfDictionary* ret;
533 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "WS", "", &ret)) return ret; 548 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "WS", "", &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 NULL; 550 return NULL;
536 } 551 }
537 552
553 /** (Optional; PDF 1.4) A JavaScript action to be performed after saving a docum ent. (The
554 * name DS stands for "did save.")
555 **/
556 bool has_DS() const {
557 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DS", "", NULL));
558 }
559
538 SkPdfDictionary* DS() const { 560 SkPdfDictionary* DS() const {
539 SkPdfDictionary* ret; 561 SkPdfDictionary* ret;
540 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DS", "", &ret)) return ret; 562 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DS", "", &ret)) return ret;
541 // TODO(edisonn): warn about missing required field, assert for known good p dfs 563 // TODO(edisonn): warn about missing required field, assert for known good p dfs
542 return NULL; 564 return NULL;
543 } 565 }
544 566
567 /** (Optional; PDF 1.4) A JavaScript action to be performed before printing a do cument.
568 * (The name WP stands for "will print.")
569 **/
570 bool has_WP() const {
571 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "WP", "", NULL));
572 }
573
545 SkPdfDictionary* WP() const { 574 SkPdfDictionary* WP() const {
546 SkPdfDictionary* ret; 575 SkPdfDictionary* ret;
547 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "WP", "", &ret)) return ret; 576 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "WP", "", &ret)) return ret;
548 // TODO(edisonn): warn about missing required field, assert for known good p dfs 577 // TODO(edisonn): warn about missing required field, assert for known good p dfs
549 return NULL; 578 return NULL;
550 } 579 }
551 580
581 /** (Optional; PDF 1.4) A JavaScript action to be performed after printing a doc ument.
582 * (The name DP stands for "did print.")
583 **/
584 bool has_DP() const {
585 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DP", "", NULL));
586 }
587
552 SkPdfDictionary* DP() const { 588 SkPdfDictionary* DP() const {
553 SkPdfDictionary* ret; 589 SkPdfDictionary* ret;
554 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DP", "", &ret)) return ret; 590 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DP", "", &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 NULL; 592 return NULL;
557 } 593 }
558 594
559 }; 595 };
560 596
561 #endif // __DEFINED__SkPdfDocumentCatalogActionsDictionary 597 #endif // __DEFINED__SkPdfDocumentCatalogActionsDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698