OLD | NEW |
1 #ifndef __DEFINED__SkPdfMarkInformationDictionary | 1 #ifndef __DEFINED__SkPdfMarkInformationDictionary |
2 #define __DEFINED__SkPdfMarkInformationDictionary | 2 #define __DEFINED__SkPdfMarkInformationDictionary |
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 // Entry in the mark information dictionary | 9 // Entry in the mark information dictionary |
10 class SkPdfMarkInformationDictionary : public SkPdfDictionary { | 10 class SkPdfMarkInformationDictionary : public SkPdfDictionary { |
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 | 525 |
526 SkPdfMarkInformationDictionary& operator=(const SkPdfMarkInformationDictionary
& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj;
return *this;} | 526 SkPdfMarkInformationDictionary& operator=(const SkPdfMarkInformationDictionary
& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj;
return *this;} |
527 | 527 |
528 /** (Optional) A flag indicating whether the document conforms to Tagged PDF | 528 /** (Optional) A flag indicating whether the document conforms to Tagged PDF |
529 * conventions. Default value: false. | 529 * conventions. Default value: false. |
530 **/ | 530 **/ |
531 bool has_Marked() const { | 531 bool has_Marked() const { |
532 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Marke
d", "", NULL)); | 532 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Marke
d", "", NULL)); |
533 } | 533 } |
534 | 534 |
535 bool Marked() const { | 535 bool Marked() const; |
536 bool ret; | |
537 if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Marked", ""
, &ret)) return ret; | |
538 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
539 return false; | |
540 } | |
541 | |
542 }; | 536 }; |
543 | 537 |
544 #endif // __DEFINED__SkPdfMarkInformationDictionary | 538 #endif // __DEFINED__SkPdfMarkInformationDictionary |
OLD | NEW |