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

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

Issue 17856004: refactoring for pdf viewer lib (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__SkPdfTransitionDictionary 1 #ifndef __DEFINED__SkPdfTransitionDictionary
2 #define __DEFINED__SkPdfTransitionDictionary 2 #define __DEFINED__SkPdfTransitionDictionary
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 a transition dictionary 9 // Entries in a transition dictionary
10 class SkPdfTransitionDictionary : public SkPdfDictionary { 10 class SkPdfTransitionDictionary : public SkPdfDictionary {
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 525
526 SkPdfTransitionDictionary& operator=(const SkPdfTransitionDictionary& from) {t his->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *t his;} 526 SkPdfTransitionDictionary& operator=(const SkPdfTransitionDictionary& from) {t his->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *t his;}
527 527
528 /** (Optional) The type of PDF object that this dictionary describes; if present , must be 528 /** (Optional) The type of PDF object that this dictionary describes; if present , must be
529 * Trans for a transition dictionary. 529 * Trans for a transition dictionary.
530 **/ 530 **/
531 bool has_Type() const { 531 bool has_Type() const {
532 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type" , "", NULL)); 532 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type" , "", NULL));
533 } 533 }
534 534
535 std::string Type() const { 535 std::string Type() const;
536 std::string ret;
537 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret;
538 // TODO(edisonn): warn about missing required field, assert for known good p dfs
539 return "";
540 }
541
542 /** (Optional) The duration of the transition effect, in seconds. Default value: 1. 536 /** (Optional) The duration of the transition effect, in seconds. Default value: 1.
543 **/ 537 **/
544 bool has_D() const { 538 bool has_D() const {
545 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", " ", NULL)); 539 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", " ", NULL));
546 } 540 }
547 541
548 double D() const { 542 double D() const;
549 double ret;
550 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", & ret)) return ret;
551 // TODO(edisonn): warn about missing required field, assert for known good p dfs
552 return 0;
553 }
554
555 /** (Optional) The transition style to use when moving to this page from another during a 543 /** (Optional) The transition style to use when moving to this page from another during a
556 * presentation: 544 * presentation:
557 * Split Two lines sweep across the screen, revealing the new page. Th e lines may 545 * Split Two lines sweep across the screen, revealing the new page. Th e lines may
558 * be either horizontal or vertical and may move inward from the edges of 546 * be either horizontal or vertical and may move inward from the edges of
559 * the page or outward from the center, as specified by the Dm a nd M 547 * the page or outward from the center, as specified by the Dm a nd M
560 * entries, respectively. 548 * entries, respectively.
561 * Blinds Multiple lines, evenly spaced across the screen, synchronousl y sweep in 549 * Blinds Multiple lines, evenly spaced across the screen, synchronousl y sweep in
562 * the same direction to reveal the new page. The lines may be e ither hori- 550 * the same direction to reveal the new page. The lines may be e ither hori-
563 * zontal or vertical, as specified by the Dm entry. Horizontal lines move 551 * zontal or vertical, as specified by the Dm entry. Horizontal lines move
564 * downward, vertical lines to the right. 552 * downward, vertical lines to the right.
565 * Box A rectangular box sweeps inward from the edges of the page or outward 553 * Box A rectangular box sweeps inward from the edges of the page or outward
566 * from the center, as specified by the M entry, revealing the n ew page. 554 * from the center, as specified by the M entry, revealing the n ew page.
567 * Wipe A single line sweeps across the screen from one edge to the o ther in the 555 * Wipe A single line sweeps across the screen from one edge to the o ther in the
568 * direction specified by the Di entry, revealing the new page. 556 * direction specified by the Di entry, revealing the new page.
569 * Dissolve The old page "dissolves" gradually to reveal the new one. 557 * Dissolve The old page "dissolves" gradually to reveal the new one.
570 * Glitter Similar to Dissolve, except that the effect sweeps across the page in a 558 * Glitter Similar to Dissolve, except that the effect sweeps across the page in a
571 * wide band moving from one side of the screen to the other in the direc- 559 * wide band moving from one side of the screen to the other in the direc-
572 * tion specified by the Di entry. 560 * tion specified by the Di entry.
573 * R The new page simply replaces the old one with no special tran sition ef- 561 * R The new page simply replaces the old one with no special tran sition ef-
574 * fect; the D entry is ignored. 562 * fect; the D entry is ignored.
575 * Default value: R. 563 * Default value: R.
576 **/ 564 **/
577 bool has_S() const { 565 bool has_S() const {
578 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", " ", NULL)); 566 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", " ", NULL));
579 } 567 }
580 568
581 std::string S() const { 569 std::string S() const;
582 std::string ret;
583 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &re t)) return ret;
584 // TODO(edisonn): warn about missing required field, assert for known good p dfs
585 return "";
586 }
587
588 /** (Optional; Split and Blinds transition styles only) The dimension in which t he specified 570 /** (Optional; Split and Blinds transition styles only) The dimension in which t he specified
589 * transition effect occurs: 571 * transition effect occurs:
590 * H Horizontal 572 * H Horizontal
591 * V Vertical 573 * V Vertical
592 * Default value: H. 574 * Default value: H.
593 **/ 575 **/
594 bool has_Dm() const { 576 bool has_Dm() const {
595 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Dm", "", NULL)); 577 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Dm", "", NULL));
596 } 578 }
597 579
598 std::string Dm() const { 580 std::string Dm() const;
599 std::string ret;
600 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Dm", "", &r et)) return ret;
601 // TODO(edisonn): warn about missing required field, assert for known good p dfs
602 return "";
603 }
604
605 /** (Optional; Split and Box transition styles only) The direction of motion for the specified 581 /** (Optional; Split and Box transition styles only) The direction of motion for the specified
606 * transition effect: 582 * transition effect:
607 * I Inward from the edges of the page 583 * I Inward from the edges of the page
608 * O Outward from the center of the page 584 * O Outward from the center of the page
609 * Default value: I. 585 * Default value: I.
610 **/ 586 **/
611 bool has_M() const { 587 bool has_M() const {
612 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "M", " ", NULL)); 588 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "M", " ", NULL));
613 } 589 }
614 590
615 std::string M() const { 591 std::string M() const;
616 std::string ret;
617 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "M", "", &re t)) return ret;
618 // TODO(edisonn): warn about missing required field, assert for known good p dfs
619 return "";
620 }
621
622 /** (Optional; Wipe and Glitter transition styles only) The direction in which t he specified 592 /** (Optional; Wipe and Glitter transition styles only) The direction in which t he specified
623 * transition effect moves, expressed in degrees counterclockwise starting from a left-to- 593 * transition effect moves, expressed in degrees counterclockwise starting from a left-to-
624 * right direction. (Note that this differs from the page object's Rotate entry , which is 594 * right direction. (Note that this differs from the page object's Rotate entry , which is
625 * measured clockwise from the top.) Only the following values are valid: 595 * measured clockwise from the top.) Only the following values are valid:
626 * 0 Left to right 596 * 0 Left to right
627 * 90 Bottom to top (Wipe only) 597 * 90 Bottom to top (Wipe only)
628 * 180 Right to left (Wipe only) 598 * 180 Right to left (Wipe only)
629 * 270 Top to bottom 599 * 270 Top to bottom
630 * 315 Top-left to bottom-right (Glitter only) 600 * 315 Top-left to bottom-right (Glitter only)
631 * Default value: 0. 601 * Default value: 0.
632 **/ 602 **/
633 bool has_Di() const { 603 bool has_Di() const {
634 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Di", "", NULL)); 604 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Di", "", NULL));
635 } 605 }
636 606
637 double Di() const { 607 double Di() const;
638 double ret;
639 if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Di", "", &ret)) return ret;
640 // TODO(edisonn): warn about missing required field, assert for known good p dfs
641 return 0;
642 }
643
644 }; 608 };
645 609
646 #endif // __DEFINED__SkPdfTransitionDictionary 610 #endif // __DEFINED__SkPdfTransitionDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698