| OLD | NEW |
| 1 #ifndef __DEFINED__SkPdfMarkInformationDictionary | 1 #ifndef __DEFINED__SkPdfMarkInformationDictionary |
| 2 #define __DEFINED__SkPdfMarkInformationDictionary | 2 #define __DEFINED__SkPdfMarkInformationDictionary |
| 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 // Entry in the mark information dictionary |
| 8 class SkPdfMarkInformationDictionary : public SkPdfDictionary { | 9 class SkPdfMarkInformationDictionary : public SkPdfDictionary { |
| 9 public: | 10 public: |
| 10 virtual SkPdfObjectType getType() const { return kMarkInformationDictionary_Sk
PdfObjectType;} | 11 virtual SkPdfObjectType getType() const { return kMarkInformationDictionary_Sk
PdfObjectType;} |
| 11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kMarkInf
ormationDictionary_SkPdfObjectType + 1);} | 12 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kMarkInf
ormationDictionary_SkPdfObjectType + 1);} |
| 12 public: | 13 public: |
| 13 virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return
this;} | 14 virtual SkPdfMarkInformationDictionary* asMarkInformationDictionary() {return
this;} |
| 14 virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() co
nst {return this;} | 15 virtual const SkPdfMarkInformationDictionary* asMarkInformationDictionary() 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 SkPdfMarkInformationDictionary(const PdfMemDocument* podofoDoc = NULL, const P
dfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} | 519 SkPdfMarkInformationDictionary(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 SkPdfMarkInformationDictionary& operator=(const SkPdfMarkInformationDictionary
& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj;
return *this;} | 523 SkPdfMarkInformationDictionary& operator=(const SkPdfMarkInformationDictionary
& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj;
return *this;} |
| 523 | 524 |
| 525 /** (Optional) A flag indicating whether the document conforms to Tagged PDF |
| 526 * conventions. Default value: false. |
| 527 **/ |
| 528 bool has_Marked() const { |
| 529 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Marke
d", "", NULL)); |
| 530 } |
| 531 |
| 524 bool Marked() const { | 532 bool Marked() const { |
| 525 bool ret; | 533 bool ret; |
| 526 if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Marked", ""
, &ret)) return ret; | 534 if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Marked", ""
, &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 false; | 536 return false; |
| 529 } | 537 } |
| 530 | 538 |
| 531 }; | 539 }; |
| 532 | 540 |
| 533 #endif // __DEFINED__SkPdfMarkInformationDictionary | 541 #endif // __DEFINED__SkPdfMarkInformationDictionary |
| OLD | NEW |