| OLD | NEW |
| 1 #ifndef __DEFINED__SkPdfString | 1 #ifndef __DEFINED__SkPdfString |
| 2 #define __DEFINED__SkPdfString | 2 #define __DEFINED__SkPdfString |
| 3 | 3 |
| 4 #include "SkPdfEnums_autogen.h" | 4 #include "SkPdfEnums_autogen.h" |
| 5 #include "SkPdfArray_autogen.h" | 5 #include "SkPdfArray_autogen.h" |
| 6 #include "SkPdfObject_autogen.h" | 6 #include "SkPdfObject_autogen.h" |
| 7 | 7 |
| 8 class SkPdfString : public SkPdfObject { | 8 class SkPdfString : public SkPdfObject { |
| 9 public: | 9 public: |
| 10 virtual SkPdfObjectType getType() const { return kObjectString_SkPdfObjectType
;} | 10 virtual SkPdfObjectType getType() const { return kString_SkPdfObjectType;} |
| 11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kObjectS
tring_SkPdfObjectType + 1);} | 11 virtual SkPdfObjectType getTypeEnd() const { return kString__End_SkPdfObjectTy
pe;} |
| 12 public: | 12 public: |
| 13 virtual SkPdfString* asString() {return this;} | 13 virtual SkPdfString* asString() {return this;} |
| 14 virtual const SkPdfString* asString() const {return this;} | 14 virtual const SkPdfString* asString() const {return this;} |
| 15 | 15 |
| 16 private: | 16 private: |
| 17 virtual SkPdfArray* asArray() {return NULL;} | 17 virtual SkPdfArray* asArray() {return NULL;} |
| 18 virtual const SkPdfArray* asArray() const {return NULL;} | 18 virtual const SkPdfArray* asArray() const {return NULL;} |
| 19 | 19 |
| 20 virtual SkPdfBoolean* asBoolean() {return NULL;} | 20 virtual SkPdfBoolean* asBoolean() {return NULL;} |
| 21 virtual const SkPdfBoolean* asBoolean() const {return NULL;} | 21 virtual const SkPdfBoolean* asBoolean() const {return NULL;} |
| (...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 517 | 517 |
| 518 virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} | 518 virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} |
| 519 virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL
;} | 519 virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL
;} |
| 520 | 520 |
| 521 virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} | 521 virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} |
| 522 virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} | 522 virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} |
| 523 | 523 |
| 524 virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} | 524 virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} |
| 525 virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return
NULL;} | 525 virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return
NULL;} |
| 526 | 526 |
| 527 virtual SkPdfHexString* asHexString() {return NULL;} | |
| 528 virtual const SkPdfHexString* asHexString() const {return NULL;} | |
| 529 | |
| 530 virtual SkPdfInteger* asInteger() {return NULL;} | 527 virtual SkPdfInteger* asInteger() {return NULL;} |
| 531 virtual const SkPdfInteger* asInteger() const {return NULL;} | 528 virtual const SkPdfInteger* asInteger() const {return NULL;} |
| 532 | 529 |
| 530 virtual SkPdfNumber* asNumber() {return NULL;} |
| 531 virtual const SkPdfNumber* asNumber() const {return NULL;} |
| 532 |
| 533 virtual SkPdfName* asName() {return NULL;} | 533 virtual SkPdfName* asName() {return NULL;} |
| 534 virtual const SkPdfName* asName() const {return NULL;} | 534 virtual const SkPdfName* asName() const {return NULL;} |
| 535 | 535 |
| 536 virtual SkPdfNull* asNull() {return NULL;} | 536 virtual SkPdfNull* asNull() {return NULL;} |
| 537 virtual const SkPdfNull* asNull() const {return NULL;} | 537 virtual const SkPdfNull* asNull() const {return NULL;} |
| 538 | 538 |
| 539 virtual SkPdfNumber* asNumber() {return NULL;} | |
| 540 virtual const SkPdfNumber* asNumber() const {return NULL;} | |
| 541 | |
| 542 virtual SkPdfReference* asReference() {return NULL;} | 539 virtual SkPdfReference* asReference() {return NULL;} |
| 543 virtual const SkPdfReference* asReference() const {return NULL;} | 540 virtual const SkPdfReference* asReference() const {return NULL;} |
| 544 | 541 |
| 545 public: | 542 public: |
| 546 const std::string& value() const {return fPodofoObj->GetString().GetStringUtf8
();} | 543 const std::string& value() const {return fPodofoObj->GetString().GetStringUtf8
();} |
| 547 private: | 544 private: |
| 548 public: | 545 public: |
| 549 SkPdfString(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj
= NULL) : SkPdfObject(podofoDoc, podofoObj) {} | 546 SkPdfString(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj
= NULL) : SkPdfObject(podofoDoc, podofoObj) {} |
| 550 | 547 |
| 551 virtual bool valid() const {return true;} | 548 virtual bool valid() const {return true;} |
| 552 | 549 |
| 553 SkPdfString& operator=(const SkPdfString& from) {this->fPodofoDoc = from.fPodo
foDoc; this->fPodofoObj = from.fPodofoObj; return *this;} | 550 SkPdfString& operator=(const SkPdfString& from) {this->fPodofoDoc = from.fPodo
foDoc; this->fPodofoObj = from.fPodofoObj; return *this;} |
| 554 | 551 |
| 555 }; | 552 }; |
| 556 | 553 |
| 557 #endif // __DEFINED__SkPdfString | 554 #endif // __DEFINED__SkPdfString |
| OLD | NEW |