| OLD | NEW |
| 1 #ifndef __DEFINED__SkPdfPageObjectActionsDictionary | 1 #ifndef __DEFINED__SkPdfPageObjectActionsDictionary |
| 2 #define __DEFINED__SkPdfPageObjectActionsDictionary | 2 #define __DEFINED__SkPdfPageObjectActionsDictionary |
| 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 page object's additional-actions dictionary | 9 // Entries in a page object's additional-actions dictionary |
| 10 class SkPdfPageObjectActionsDictionary : public SkPdfDictionary { | 10 class SkPdfPageObjectActionsDictionary : public SkPdfDictionary { |
| (...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 528 /** (Optional; PDF 1.2) An action to be performed when the page is opened (for e
xample, | 528 /** (Optional; PDF 1.2) An action to be performed when the page is opened (for e
xample, |
| 529 * when the user navigates to it from the next or previous page or via a link a
nnotation or | 529 * when the user navigates to it from the next or previous page or via a link a
nnotation or |
| 530 * outline item). This action is independent of any that may be defined by the
Open- | 530 * outline item). This action is independent of any that may be defined by the
Open- |
| 531 * Action entry in the document catalog (see Section 3.6.1, "Document Catalog")
, and is | 531 * Action entry in the document catalog (see Section 3.6.1, "Document Catalog")
, and is |
| 532 * executed after such an action. (See implementation note 72 in Appendix H.) | 532 * executed after such an action. (See implementation note 72 in Appendix H.) |
| 533 **/ | 533 **/ |
| 534 bool has_O() const { | 534 bool has_O() const { |
| 535 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "O", "
", NULL)); | 535 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "O", "
", NULL)); |
| 536 } | 536 } |
| 537 | 537 |
| 538 SkPdfDictionary* O() const { | 538 SkPdfDictionary* O() const; |
| 539 SkPdfDictionary* ret; | |
| 540 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "O", "
", &ret)) return ret; | |
| 541 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 542 return NULL; | |
| 543 } | |
| 544 | |
| 545 /** (Optional; PDF 1.2) An action to be performed when the page is closed (for e
xample, | 539 /** (Optional; PDF 1.2) An action to be performed when the page is closed (for e
xample, |
| 546 * when the user navigates to the next or previous page or follows a link annot
ation or an | 540 * when the user navigates to the next or previous page or follows a link annot
ation or an |
| 547 * outline item). This action applies to the page being closed, and is executed
before any | 541 * outline item). This action applies to the page being closed, and is executed
before any |
| 548 * other page is opened. (See implementation note 72 in Appendix H.) | 542 * other page is opened. (See implementation note 72 in Appendix H.) |
| 549 **/ | 543 **/ |
| 550 bool has_C() const { | 544 bool has_C() const { |
| 551 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "
", NULL)); | 545 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "
", NULL)); |
| 552 } | 546 } |
| 553 | 547 |
| 554 SkPdfDictionary* C() const { | 548 SkPdfDictionary* C() const; |
| 555 SkPdfDictionary* ret; | |
| 556 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "
", &ret)) return ret; | |
| 557 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 558 return NULL; | |
| 559 } | |
| 560 | |
| 561 }; | 549 }; |
| 562 | 550 |
| 563 #endif // __DEFINED__SkPdfPageObjectActionsDictionary | 551 #endif // __DEFINED__SkPdfPageObjectActionsDictionary |
| OLD | NEW |