| OLD | NEW |
| 1 #ifndef __DEFINED__SkPdfPrinterMarkFormDictionary | 1 #ifndef __DEFINED__SkPdfPrinterMarkFormDictionary |
| 2 #define __DEFINED__SkPdfPrinterMarkFormDictionary | 2 #define __DEFINED__SkPdfPrinterMarkFormDictionary |
| 3 | 3 |
| 4 #include "SkPdfEnums_autogen.h" | 4 #include "SkPdfEnums_autogen.h" |
| 5 #include "SkPdfArray_autogen.h" | 5 #include "SkPdfArray_autogen.h" |
| 6 #include "SkPdfDictionary_autogen.h" | 6 #include "SkPdfDictionary_autogen.h" |
| 7 | 7 |
| 8 // Additional entries specific to a printer's mark form dictionary |
| 8 class SkPdfPrinterMarkFormDictionary : public SkPdfDictionary { | 9 class SkPdfPrinterMarkFormDictionary : public SkPdfDictionary { |
| 9 public: | 10 public: |
| 10 virtual SkPdfObjectType getType() const { return kPrinterMarkFormDictionary_Sk
PdfObjectType;} | 11 virtual SkPdfObjectType getType() const { return kPrinterMarkFormDictionary_Sk
PdfObjectType;} |
| 11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kPrinter
MarkFormDictionary_SkPdfObjectType + 1);} | 12 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kPrinter
MarkFormDictionary_SkPdfObjectType + 1);} |
| 12 public: | 13 public: |
| 13 virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return
this;} | 14 virtual SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() {return
this;} |
| 14 virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() co
nst {return this;} | 15 virtual const SkPdfPrinterMarkFormDictionary* asPrinterMarkFormDictionary() co
nst {return this;} |
| 15 | 16 |
| 16 private: | 17 private: |
| 17 virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return
NULL;} | 18 virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return
NULL;} |
| (...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 | 515 |
| 515 public: | 516 public: |
| 516 private: | 517 private: |
| 517 public: | 518 public: |
| 518 SkPdfPrinterMarkFormDictionary(const PdfMemDocument* podofoDoc = NULL, const P
dfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} | 519 SkPdfPrinterMarkFormDictionary(const PdfMemDocument* podofoDoc = NULL, const P
dfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} |
| 519 | 520 |
| 520 virtual bool valid() const {return true;} | 521 virtual bool valid() const {return true;} |
| 521 | 522 |
| 522 SkPdfPrinterMarkFormDictionary& operator=(const SkPdfPrinterMarkFormDictionary
& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj;
return *this;} | 523 SkPdfPrinterMarkFormDictionary& operator=(const SkPdfPrinterMarkFormDictionary
& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj;
return *this;} |
| 523 | 524 |
| 525 /** (Optional; PDF 1.4) A text string representing the printer's mark in |
| 526 * human-readable form, suitable for presentation to the user on the screen. |
| 527 **/ |
| 528 bool has_MarkStyle() const { |
| 529 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MarkS
tyle", "", NULL)); |
| 530 } |
| 531 |
| 524 std::string MarkStyle() const { | 532 std::string MarkStyle() const { |
| 525 std::string ret; | 533 std::string ret; |
| 526 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MarkStyle
", "", &ret)) return ret; | 534 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MarkStyle
", "", &ret)) return ret; |
| 527 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 535 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 528 return ""; | 536 return ""; |
| 529 } | 537 } |
| 530 | 538 |
| 539 /** (Optional; PDF 1.4) A dictionary identifying the individual colorants |
| 540 * associated with a printer's mark such as a color bar. For each entry in this |
| 541 * dictionary, the key is a colorant name and the value is an array defining a |
| 542 * Separation color space for that colorant (see "Separation Color Spaces" |
| 543 * on page 201). The key must match the colorant name given in that color |
| 544 * space. |
| 545 **/ |
| 546 bool has_Colorants() const { |
| 547 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Color
ants", "", NULL)); |
| 548 } |
| 549 |
| 531 SkPdfDictionary* Colorants() const { | 550 SkPdfDictionary* Colorants() const { |
| 532 SkPdfDictionary* ret; | 551 SkPdfDictionary* ret; |
| 533 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Color
ants", "", &ret)) return ret; | 552 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Color
ants", "", &ret)) return ret; |
| 534 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 553 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 535 return NULL; | 554 return NULL; |
| 536 } | 555 } |
| 537 | 556 |
| 538 }; | 557 }; |
| 539 | 558 |
| 540 #endif // __DEFINED__SkPdfPrinterMarkFormDictionary | 559 #endif // __DEFINED__SkPdfPrinterMarkFormDictionary |
| OLD | NEW |