OLD | NEW |
1 #ifndef __DEFINED__SkPdfMovieActionDictionary | 1 #ifndef __DEFINED__SkPdfMovieActionDictionary |
2 #define __DEFINED__SkPdfMovieActionDictionary | 2 #define __DEFINED__SkPdfMovieActionDictionary |
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 // Additional entries specific to a movie action | 9 // Additional entries specific to a movie action |
10 class SkPdfMovieActionDictionary : public SkPdfDictionary { | 10 class SkPdfMovieActionDictionary : public SkPdfDictionary { |
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 | 525 |
526 SkPdfMovieActionDictionary& operator=(const SkPdfMovieActionDictionary& from)
{this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return
*this;} | 526 SkPdfMovieActionDictionary& operator=(const SkPdfMovieActionDictionary& from)
{this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return
*this;} |
527 | 527 |
528 /** (Required) The type of action that this dictionary describes; must be Movie | 528 /** (Required) The type of action that this dictionary describes; must be Movie |
529 * for a movie action. | 529 * for a movie action. |
530 **/ | 530 **/ |
531 bool has_S() const { | 531 bool has_S() const { |
532 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "
", NULL)); | 532 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "
", NULL)); |
533 } | 533 } |
534 | 534 |
535 std::string S() const { | 535 std::string S() const; |
536 std::string ret; | |
537 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &re
t)) return ret; | |
538 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
539 return ""; | |
540 } | |
541 | |
542 /** (Optional) An indirect reference to a movie annotation identifying the movie | 536 /** (Optional) An indirect reference to a movie annotation identifying the movie |
543 * to be played. | 537 * to be played. |
544 **/ | 538 **/ |
545 bool has_Annot() const { | 539 bool has_Annot() const { |
546 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Annot
", "", NULL)); | 540 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Annot
", "", NULL)); |
547 } | 541 } |
548 | 542 |
549 SkPdfDictionary* Annot() const { | 543 SkPdfDictionary* Annot() const; |
550 SkPdfDictionary* ret; | |
551 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Annot
", "", &ret)) return ret; | |
552 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
553 return NULL; | |
554 } | |
555 | |
556 /** (Optional) The title of a movie annotation identifying the movie to be | 544 /** (Optional) The title of a movie annotation identifying the movie to be |
557 * played. | 545 * played. |
558 * Note: The dictionary must include either an Annot or a T entry, but not both
. | 546 * Note: The dictionary must include either an Annot or a T entry, but not both
. |
559 **/ | 547 **/ |
560 bool has_T() const { | 548 bool has_T() const { |
561 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "T", "
", NULL)); | 549 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "T", "
", NULL)); |
562 } | 550 } |
563 | 551 |
564 std::string T() const { | 552 std::string T() const; |
565 std::string ret; | |
566 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "T", "", &
ret)) return ret; | |
567 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
568 return ""; | |
569 } | |
570 | |
571 /** (Optional) The operation to be performed on the movie: | 553 /** (Optional) The operation to be performed on the movie: |
572 * Play Start playing the movie, using the play mode specified by th
e | 554 * Play Start playing the movie, using the play mode specified by th
e |
573 * dictionary's Mode entry (see Table 8.79 on page 571). If the | 555 * dictionary's Mode entry (see Table 8.79 on page 571). If the |
574 * movie is currently paused, it is repositioned to the beginni
ng | 556 * movie is currently paused, it is repositioned to the beginni
ng |
575 * before playing (or to the starting point specified by the di
c- | 557 * before playing (or to the starting point specified by the di
c- |
576 * tionary's Start entry, if present). | 558 * tionary's Start entry, if present). |
577 * Stop Stop playing the movie. | 559 * Stop Stop playing the movie. |
578 * Pause Pause a playing movie. | 560 * Pause Pause a playing movie. |
579 * Resume Resume a paused movie. | 561 * Resume Resume a paused movie. |
580 * Default value: Play. | 562 * Default value: Play. |
581 **/ | 563 **/ |
582 bool has_Operation() const { | 564 bool has_Operation() const { |
583 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Opera
tion", "", NULL)); | 565 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Opera
tion", "", NULL)); |
584 } | 566 } |
585 | 567 |
586 std::string Operation() const { | 568 std::string Operation() const; |
587 std::string ret; | |
588 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Operation",
"", &ret)) return ret; | |
589 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
590 return ""; | |
591 } | |
592 | |
593 }; | 569 }; |
594 | 570 |
595 #endif // __DEFINED__SkPdfMovieActionDictionary | 571 #endif // __DEFINED__SkPdfMovieActionDictionary |
OLD | NEW |