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

Side by Side Diff: experimental/PdfViewer/autogen/SkPdfDocumentCatalogActionsDictionary_autogen.h

Issue 17856004: refactoring for pdf viewer lib (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 5 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 "SkPdfUtils.h" 4 #include "SkPdfUtils.h"
5 #include "SkPdfEnums_autogen.h" 5 #include "SkPdfEnums_autogen.h"
6 #include "SkPdfArray_autogen.h" 6 #include "SkPdfArray_autogen.h"
7 #include "SkPdfDictionary_autogen.h" 7 #include "SkPdfDictionary_autogen.h"
8 8
9 // Entries in the document catalog's additional-actions dictionary 9 // Entries in the document catalog's additional-actions dictionary
10 class SkPdfDocumentCatalogActionsDictionary : public SkPdfDictionary { 10 class SkPdfDocumentCatalogActionsDictionary : public SkPdfDictionary {
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 525
526 SkPdfDocumentCatalogActionsDictionary& operator=(const SkPdfDocumentCatalogAct ionsDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = fr om.fPodofoObj; return *this;} 526 SkPdfDocumentCatalogActionsDictionary& operator=(const SkPdfDocumentCatalogAct ionsDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = fr om.fPodofoObj; return *this;}
527 527
528 /** (Optional; PDF 1.4) A JavaScript action to be performed before closing a doc ument. 528 /** (Optional; PDF 1.4) A JavaScript action to be performed before closing a doc ument.
529 * (The name DC stands for "document close.") 529 * (The name DC stands for "document close.")
530 **/ 530 **/
531 bool has_DC() const { 531 bool has_DC() const {
532 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DC", "", NULL)); 532 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DC", "", NULL));
533 } 533 }
534 534
535 SkPdfDictionary* DC() const { 535 SkPdfDictionary* DC() const;
536 SkPdfDictionary* ret;
537 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DC", "", &ret)) return ret;
538 // TODO(edisonn): warn about missing required field, assert for known good p dfs
539 return NULL;
540 }
541
542 /** (Optional; PDF 1.4) A JavaScript action to be performed before saving a docu ment. 536 /** (Optional; PDF 1.4) A JavaScript action to be performed before saving a docu ment.
543 * (The name WS stands for "will save.") 537 * (The name WS stands for "will save.")
544 **/ 538 **/
545 bool has_WS() const { 539 bool has_WS() const {
546 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "WS", "", NULL)); 540 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "WS", "", NULL));
547 } 541 }
548 542
549 SkPdfDictionary* WS() const { 543 SkPdfDictionary* WS() const;
550 SkPdfDictionary* ret;
551 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "WS", "", &ret)) return ret;
552 // TODO(edisonn): warn about missing required field, assert for known good p dfs
553 return NULL;
554 }
555
556 /** (Optional; PDF 1.4) A JavaScript action to be performed after saving a docum ent. (The 544 /** (Optional; PDF 1.4) A JavaScript action to be performed after saving a docum ent. (The
557 * name DS stands for "did save.") 545 * name DS stands for "did save.")
558 **/ 546 **/
559 bool has_DS() const { 547 bool has_DS() const {
560 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DS", "", NULL)); 548 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DS", "", NULL));
561 } 549 }
562 550
563 SkPdfDictionary* DS() const { 551 SkPdfDictionary* DS() const;
564 SkPdfDictionary* ret;
565 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DS", "", &ret)) return ret;
566 // TODO(edisonn): warn about missing required field, assert for known good p dfs
567 return NULL;
568 }
569
570 /** (Optional; PDF 1.4) A JavaScript action to be performed before printing a do cument. 552 /** (Optional; PDF 1.4) A JavaScript action to be performed before printing a do cument.
571 * (The name WP stands for "will print.") 553 * (The name WP stands for "will print.")
572 **/ 554 **/
573 bool has_WP() const { 555 bool has_WP() const {
574 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "WP", "", NULL)); 556 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "WP", "", NULL));
575 } 557 }
576 558
577 SkPdfDictionary* WP() const { 559 SkPdfDictionary* WP() const;
578 SkPdfDictionary* ret;
579 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "WP", "", &ret)) return ret;
580 // TODO(edisonn): warn about missing required field, assert for known good p dfs
581 return NULL;
582 }
583
584 /** (Optional; PDF 1.4) A JavaScript action to be performed after printing a doc ument. 560 /** (Optional; PDF 1.4) A JavaScript action to be performed after printing a doc ument.
585 * (The name DP stands for "did print.") 561 * (The name DP stands for "did print.")
586 **/ 562 **/
587 bool has_DP() const { 563 bool has_DP() const {
588 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DP", "", NULL)); 564 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DP", "", NULL));
589 } 565 }
590 566
591 SkPdfDictionary* DP() const { 567 SkPdfDictionary* DP() const;
592 SkPdfDictionary* ret;
593 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DP", "", &ret)) return ret;
594 // TODO(edisonn): warn about missing required field, assert for known good p dfs
595 return NULL;
596 }
597
598 }; 568 };
599 569
600 #endif // __DEFINED__SkPdfDocumentCatalogActionsDictionary 570 #endif // __DEFINED__SkPdfDocumentCatalogActionsDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698