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

Side by Side Diff: experimental/PdfViewer/autogen/SkPdfAnnotationActionsDictionary_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__SkPdfAnnotationActionsDictionary 1 #ifndef __DEFINED__SkPdfAnnotationActionsDictionary
2 #define __DEFINED__SkPdfAnnotationActionsDictionary 2 #define __DEFINED__SkPdfAnnotationActionsDictionary
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 an annotation's additional-actions dictionary 9 // Entries in an annotation's additional-actions dictionary
10 class SkPdfAnnotationActionsDictionary : public SkPdfDictionary { 10 class SkPdfAnnotationActionsDictionary : public SkPdfDictionary {
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 525
526 SkPdfAnnotationActionsDictionary& operator=(const SkPdfAnnotationActionsDictio nary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofo Obj; return *this;} 526 SkPdfAnnotationActionsDictionary& operator=(const SkPdfAnnotationActionsDictio nary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofo Obj; return *this;}
527 527
528 /** (Optional; PDF 1.2) An action to be performed when the cursor enters the ann otation's 528 /** (Optional; PDF 1.2) An action to be performed when the cursor enters the ann otation's
529 * active area. 529 * active area.
530 **/ 530 **/
531 bool has_E() const { 531 bool has_E() const {
532 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "E", " ", NULL)); 532 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "E", " ", NULL));
533 } 533 }
534 534
535 SkPdfDictionary* E() const { 535 SkPdfDictionary* E() const;
536 SkPdfDictionary* ret;
537 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "E", " ", &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.2) An action to be performed when the cursor exits the anno tation's 536 /** (Optional; PDF 1.2) An action to be performed when the cursor exits the anno tation's
543 * active area. 537 * active area.
544 **/ 538 **/
545 bool has_X() const { 539 bool has_X() const {
546 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "X", " ", NULL)); 540 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "X", " ", NULL));
547 } 541 }
548 542
549 SkPdfDictionary* X() const { 543 SkPdfDictionary* X() const;
550 SkPdfDictionary* ret;
551 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "X", " ", &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.2) An action to be performed when the mouse button is press ed 544 /** (Optional; PDF 1.2) An action to be performed when the mouse button is press ed
557 * inside the annotation's active area. (The name D stands for "down.") 545 * inside the annotation's active area. (The name D stands for "down.")
558 **/ 546 **/
559 bool has_D() const { 547 bool has_D() const {
560 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", " ", NULL)); 548 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", " ", NULL));
561 } 549 }
562 550
563 SkPdfDictionary* D() const { 551 SkPdfDictionary* D() const;
564 SkPdfDictionary* ret;
565 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", " ", &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.2) An action to be performed when the mouse button is relea sed 552 /** (Optional; PDF 1.2) An action to be performed when the mouse button is relea sed
571 * inside the annotation's active area. (The name U stands for "up.") 553 * inside the annotation's active area. (The name U stands for "up.")
572 * Note: For backward compatibility, the A entry in an annotation dictionary, i f present, 554 * Note: For backward compatibility, the A entry in an annotation dictionary, i f present,
573 * takes precedence over this entry (see Table 8.10 on page 490). 555 * takes precedence over this entry (see Table 8.10 on page 490).
574 **/ 556 **/
575 bool has_U() const { 557 bool has_U() const {
576 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "U", " ", NULL)); 558 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "U", " ", NULL));
577 } 559 }
578 560
579 SkPdfDictionary* U() const { 561 SkPdfDictionary* U() const;
580 SkPdfDictionary* ret;
581 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "U", " ", &ret)) return ret;
582 // TODO(edisonn): warn about missing required field, assert for known good p dfs
583 return NULL;
584 }
585
586 /** (Optional; PDF 1.2; widget annotations only) An action to be performed when the 562 /** (Optional; PDF 1.2; widget annotations only) An action to be performed when the
587 * annotation receives the input focus. 563 * annotation receives the input focus.
588 **/ 564 **/
589 bool has_Fo() const { 565 bool has_Fo() const {
590 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Fo", "", NULL)); 566 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Fo", "", NULL));
591 } 567 }
592 568
593 SkPdfDictionary* Fo() const { 569 SkPdfDictionary* Fo() const;
594 SkPdfDictionary* ret;
595 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Fo", "", &ret)) return ret;
596 // TODO(edisonn): warn about missing required field, assert for known good p dfs
597 return NULL;
598 }
599
600 /** (Optional; PDF 1.2; widget annotations only) (Uppercase B, lowercase L) An a ction to 570 /** (Optional; PDF 1.2; widget annotations only) (Uppercase B, lowercase L) An a ction to
601 * be performed when the annotation loses the input focus. (The name Bl stands for 571 * be performed when the annotation loses the input focus. (The name Bl stands for
602 * "blurred.") 572 * "blurred.")
603 **/ 573 **/
604 bool has_Bl() const { 574 bool has_Bl() const {
605 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Bl", "", NULL)); 575 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Bl", "", NULL));
606 } 576 }
607 577
608 SkPdfDictionary* Bl() const { 578 SkPdfDictionary* Bl() const;
609 SkPdfDictionary* ret;
610 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Bl", "", &ret)) return ret;
611 // TODO(edisonn): warn about missing required field, assert for known good p dfs
612 return NULL;
613 }
614
615 }; 579 };
616 580
617 #endif // __DEFINED__SkPdfAnnotationActionsDictionary 581 #endif // __DEFINED__SkPdfAnnotationActionsDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698