| OLD | NEW |
| 1 #ifndef __DEFINED__SkPdfCIDSystemInfoDictionary | 1 #ifndef __DEFINED__SkPdfCIDSystemInfoDictionary |
| 2 #define __DEFINED__SkPdfCIDSystemInfoDictionary | 2 #define __DEFINED__SkPdfCIDSystemInfoDictionary |
| 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 // Entries in a CIDSystemInfo dictionary |
| 8 class SkPdfCIDSystemInfoDictionary : public SkPdfDictionary { | 9 class SkPdfCIDSystemInfoDictionary : public SkPdfDictionary { |
| 9 public: | 10 public: |
| 10 virtual SkPdfObjectType getType() const { return kCIDSystemInfoDictionary_SkPd
fObjectType;} | 11 virtual SkPdfObjectType getType() const { return kCIDSystemInfoDictionary_SkPd
fObjectType;} |
| 11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kCIDSyst
emInfoDictionary_SkPdfObjectType + 1);} | 12 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kCIDSyst
emInfoDictionary_SkPdfObjectType + 1);} |
| 12 public: | 13 public: |
| 13 virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return this
;} | 14 virtual SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() {return this
;} |
| 14 virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const
{return this;} | 15 virtual const SkPdfCIDSystemInfoDictionary* asCIDSystemInfoDictionary() const
{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 SkPdfCIDSystemInfoDictionary(const PdfMemDocument* podofoDoc = NULL, const Pdf
Object* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} | 519 SkPdfCIDSystemInfoDictionary(const PdfMemDocument* podofoDoc = NULL, const Pdf
Object* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} |
| 519 | 520 |
| 520 virtual bool valid() const {return true;} | 521 virtual bool valid() const {return true;} |
| 521 | 522 |
| 522 SkPdfCIDSystemInfoDictionary& operator=(const SkPdfCIDSystemInfoDictionary& fr
om) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; ret
urn *this;} | 523 SkPdfCIDSystemInfoDictionary& operator=(const SkPdfCIDSystemInfoDictionary& fr
om) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; ret
urn *this;} |
| 523 | 524 |
| 525 /** (Required) A string identifying the issuer of the character collection-for e
xam- |
| 526 * ple, Adobe. For information about assigning a registry identifier, consult t
he ASN |
| 527 * Developer Program Web site or contact the Adobe Solutions Network (see the |
| 528 * Bibliography). |
| 529 **/ |
| 530 bool has_Registry() const { |
| 531 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Regis
try", "", NULL)); |
| 532 } |
| 533 |
| 524 std::string Registry() const { | 534 std::string Registry() const { |
| 525 std::string ret; | 535 std::string ret; |
| 526 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Registry"
, "", &ret)) return ret; | 536 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Registry"
, "", &ret)) return ret; |
| 527 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 537 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 528 return ""; | 538 return ""; |
| 529 } | 539 } |
| 530 | 540 |
| 541 /** (Required) A string that uniquely names the character collection within the
speci- |
| 542 * fied registry-for example, Japan1. |
| 543 **/ |
| 544 bool has_Ordering() const { |
| 545 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Order
ing", "", NULL)); |
| 546 } |
| 547 |
| 531 std::string Ordering() const { | 548 std::string Ordering() const { |
| 532 std::string ret; | 549 std::string ret; |
| 533 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Ordering"
, "", &ret)) return ret; | 550 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Ordering"
, "", &ret)) return ret; |
| 534 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 551 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 535 return ""; | 552 return ""; |
| 536 } | 553 } |
| 537 | 554 |
| 555 /** (Required) The supplement number of the character collection. An original ch
arac- |
| 556 * ter collection has a supplement number of 0. Whenever additional CIDs are |
| 557 * assigned in a character collection, the supplement number is increased. Supp
le- |
| 558 * ments do not alter the ordering of existing CIDs in the character collection
. This |
| 559 * value is not used in determining compatibility between character collections
. |
| 560 **/ |
| 561 bool has_Supplement() const { |
| 562 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Suppl
ement", "", NULL)); |
| 563 } |
| 564 |
| 538 long Supplement() const { | 565 long Supplement() const { |
| 539 long ret; | 566 long ret; |
| 540 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Supplement"
, "", &ret)) return ret; | 567 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Supplement"
, "", &ret)) return ret; |
| 541 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 568 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 542 return 0; | 569 return 0; |
| 543 } | 570 } |
| 544 | 571 |
| 545 }; | 572 }; |
| 546 | 573 |
| 547 #endif // __DEFINED__SkPdfCIDSystemInfoDictionary | 574 #endif // __DEFINED__SkPdfCIDSystemInfoDictionary |
| OLD | NEW |