| OLD | NEW |
| 1 #ifndef __DEFINED__SkPdfPrinterMarkAnnotationDictionary | 1 #ifndef __DEFINED__SkPdfPrinterMarkAnnotationDictionary |
| 2 #define __DEFINED__SkPdfPrinterMarkAnnotationDictionary | 2 #define __DEFINED__SkPdfPrinterMarkAnnotationDictionary |
| 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 printer's mark annotation | 9 // Additional entries specific to a printer's mark annotation |
| 10 class SkPdfPrinterMarkAnnotationDictionary : public SkPdfDictionary { | 10 class SkPdfPrinterMarkAnnotationDictionary : public SkPdfDictionary { |
| (...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 | 525 |
| 526 SkPdfPrinterMarkAnnotationDictionary& operator=(const SkPdfPrinterMarkAnnotati
onDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from
.fPodofoObj; return *this;} | 526 SkPdfPrinterMarkAnnotationDictionary& operator=(const SkPdfPrinterMarkAnnotati
onDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from
.fPodofoObj; return *this;} |
| 527 | 527 |
| 528 /** (Required) The type of annotation that this dictionary describes; must be Pr
inter- | 528 /** (Required) The type of annotation that this dictionary describes; must be Pr
inter- |
| 529 * Mark for a printer's mark annotation. | 529 * Mark for a printer's mark annotation. |
| 530 **/ | 530 **/ |
| 531 bool has_Subtype() const { | 531 bool has_Subtype() const { |
| 532 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subty
pe", "", NULL)); | 532 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subty
pe", "", NULL)); |
| 533 } | 533 } |
| 534 | 534 |
| 535 std::string Subtype() const { | 535 std::string Subtype() const; |
| 536 std::string ret; | |
| 537 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "
", &ret)) return ret; | |
| 538 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 539 return ""; | |
| 540 } | |
| 541 | |
| 542 /** (Optional) An arbitrary name identifying the type of printer's mark, such as
Color- | 536 /** (Optional) An arbitrary name identifying the type of printer's mark, such as
Color- |
| 543 * Bar or RegistrationTarget. | 537 * Bar or RegistrationTarget. |
| 544 **/ | 538 **/ |
| 545 bool has_MN() const { | 539 bool has_MN() const { |
| 546 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MN",
"", NULL)); | 540 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MN",
"", NULL)); |
| 547 } | 541 } |
| 548 | 542 |
| 549 std::string MN() const { | 543 std::string MN() const; |
| 550 std::string ret; | |
| 551 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MN", "", &r
et)) return ret; | |
| 552 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 553 return ""; | |
| 554 } | |
| 555 | |
| 556 }; | 544 }; |
| 557 | 545 |
| 558 #endif // __DEFINED__SkPdfPrinterMarkAnnotationDictionary | 546 #endif // __DEFINED__SkPdfPrinterMarkAnnotationDictionary |
| OLD | NEW |