OLD | NEW |
1 #ifndef __DEFINED__SkPdfImportDataActionDictionary | 1 #ifndef __DEFINED__SkPdfImportDataActionDictionary |
2 #define __DEFINED__SkPdfImportDataActionDictionary | 2 #define __DEFINED__SkPdfImportDataActionDictionary |
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 an import-data action | 9 // Additional entries specific to an import-data action |
10 class SkPdfImportDataActionDictionary : public SkPdfDictionary { | 10 class SkPdfImportDataActionDictionary : public SkPdfDictionary { |
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 | 525 |
526 SkPdfImportDataActionDictionary& operator=(const SkPdfImportDataActionDictiona
ry& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoOb
j; return *this;} | 526 SkPdfImportDataActionDictionary& operator=(const SkPdfImportDataActionDictiona
ry& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoOb
j; return *this;} |
527 | 527 |
528 /** (Required) The type of action that this dictionary describes; must be Import
Data | 528 /** (Required) The type of action that this dictionary describes; must be Import
Data |
529 * for an import-data action. | 529 * for an import-data 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 /** (Required) The FDF file from which to import the data. (See implementation | 536 /** (Required) The FDF file from which to import the data. (See implementation |
543 * notes 87 and 88 in Appendix H.) | 537 * notes 87 and 88 in Appendix H.) |
544 **/ | 538 **/ |
545 bool has_F() const { | 539 bool has_F() const { |
546 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "
", NULL)); | 540 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "
", NULL)); |
547 } | 541 } |
548 | 542 |
549 SkPdfFileSpec F() const { | 543 SkPdfFileSpec F() const; |
550 SkPdfFileSpec ret; | |
551 if (FileSpecFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "",
&ret)) return ret; | |
552 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
553 return SkPdfFileSpec(); | |
554 } | |
555 | |
556 }; | 544 }; |
557 | 545 |
558 #endif // __DEFINED__SkPdfImportDataActionDictionary | 546 #endif // __DEFINED__SkPdfImportDataActionDictionary |
OLD | NEW |