| OLD | NEW |
| 1 #ifndef __DEFINED__SkPdfArray | 1 #ifndef __DEFINED__SkPdfArray |
| 2 #define __DEFINED__SkPdfArray | 2 #define __DEFINED__SkPdfArray |
| 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 SkPdfArray : public SkPdfObject { | 8 class SkPdfArray : public SkPdfObject { |
| 9 public: | 9 public: |
| 10 virtual SkPdfObjectType getType() const { return kArray_SkPdfObjectType;} | 10 virtual SkPdfObjectType getType() const { return kArray_SkPdfObjectType;} |
| (...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 540 virtual const SkPdfStream* asStream() const {return NULL;} | 540 virtual const SkPdfStream* asStream() const {return NULL;} |
| 541 | 541 |
| 542 virtual SkPdfString* asString() {return NULL;} | 542 virtual SkPdfString* asString() {return NULL;} |
| 543 virtual const SkPdfString* asString() const {return NULL;} | 543 virtual const SkPdfString* asString() const {return NULL;} |
| 544 | 544 |
| 545 virtual SkPdfHexString* asHexString() {return NULL;} | 545 virtual SkPdfHexString* asHexString() {return NULL;} |
| 546 virtual const SkPdfHexString* asHexString() const {return NULL;} | 546 virtual const SkPdfHexString* asHexString() const {return NULL;} |
| 547 | 547 |
| 548 public: | 548 public: |
| 549 const int size() const {return fPodofoObj->GetArray().GetSize();} | 549 const int size() const {return fPodofoObj->GetArray().GetSize();} |
| 550 SkPdfObject* operator[](int i) const {return new SkPdfObject(fPodofoDoc, &fPod
ofoObj->GetArray()[i]);} | 550 SkPdfObject* operator[](int i) const { SkPdfObject* ret = NULL; skpdfmap(*fPo
dofoDoc, fPodofoObj->GetArray()[i], &ret); return ret; } |
| 551 private: | 551 private: |
| 552 public: | 552 public: |
| 553 SkPdfArray(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj
= NULL) : SkPdfObject(podofoDoc, podofoObj) {} | 553 SkPdfArray(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj
= NULL) : SkPdfObject(podofoDoc, podofoObj) {} |
| 554 | 554 |
| 555 virtual bool valid() const {return true;} | 555 virtual bool valid() const {return true;} |
| 556 | 556 |
| 557 SkPdfArray& operator=(const SkPdfArray& from) {this->fPodofoDoc = from.fPodofo
Doc; this->fPodofoObj = from.fPodofoObj; return *this;} | 557 SkPdfArray& operator=(const SkPdfArray& from) {this->fPodofoDoc = from.fPodofo
Doc; this->fPodofoObj = from.fPodofoObj; return *this;} |
| 558 | 558 |
| 559 }; | 559 }; |
| 560 | 560 |
| 561 #endif // __DEFINED__SkPdfArray | 561 #endif // __DEFINED__SkPdfArray |
| OLD | NEW |