| OLD | NEW |
| (Empty) |
| 1 #ifndef __DEFINED__SkPdfDictionary | |
| 2 #define __DEFINED__SkPdfDictionary | |
| 3 | |
| 4 #include "SkPdfEnums_autogen.h" | |
| 5 #include "SkPdfArray_autogen.h" | |
| 6 #include "SkPdfObject_autogen.h" | |
| 7 | |
| 8 class SkPdfDictionary : public SkPdfObject { | |
| 9 public: | |
| 10 virtual SkPdfObjectType getType() const { return kDictionary_SkPdfObjectType;} | |
| 11 virtual SkPdfObjectType getTypeEnd() const { return kDictionary__End_SkPdfObje
ctType;} | |
| 12 public: | |
| 13 virtual SkPdfDictionary* asDictionary() {return this;} | |
| 14 virtual const SkPdfDictionary* asDictionary() const {return this;} | |
| 15 | |
| 16 private: | |
| 17 virtual SkPdfArray* asArray() {return NULL;} | |
| 18 virtual const SkPdfArray* asArray() const {return NULL;} | |
| 19 | |
| 20 virtual SkPdfBoolean* asBoolean() {return NULL;} | |
| 21 virtual const SkPdfBoolean* asBoolean() const {return NULL;} | |
| 22 | |
| 23 virtual SkPdfInteger* asInteger() {return NULL;} | |
| 24 virtual const SkPdfInteger* asInteger() const {return NULL;} | |
| 25 | |
| 26 virtual SkPdfNumber* asNumber() {return NULL;} | |
| 27 virtual const SkPdfNumber* asNumber() const {return NULL;} | |
| 28 | |
| 29 virtual SkPdfName* asName() {return NULL;} | |
| 30 virtual const SkPdfName* asName() const {return NULL;} | |
| 31 | |
| 32 virtual SkPdfNull* asNull() {return NULL;} | |
| 33 virtual const SkPdfNull* asNull() const {return NULL;} | |
| 34 | |
| 35 virtual SkPdfReference* asReference() {return NULL;} | |
| 36 virtual const SkPdfReference* asReference() const {return NULL;} | |
| 37 | |
| 38 virtual SkPdfStream* asStream() {return NULL;} | |
| 39 virtual const SkPdfStream* asStream() const {return NULL;} | |
| 40 | |
| 41 virtual SkPdfString* asString() {return NULL;} | |
| 42 virtual const SkPdfString* asString() const {return NULL;} | |
| 43 | |
| 44 virtual SkPdfHexString* asHexString() {return NULL;} | |
| 45 virtual const SkPdfHexString* asHexString() const {return NULL;} | |
| 46 | |
| 47 public: | |
| 48 const SkPdfObject get(const char* dictionaryKeyName) const {return SkPdfObject
(fPodofoDoc, resolveReferenceObject(fPodofoDoc, fPodofoObj->GetDictionary().GetK
ey(PdfName(dictionaryKeyName))));} | |
| 49 SkPdfObject get(const char* dictionaryKeyName) {return SkPdfObject(fPodofoDoc,
resolveReferenceObject(fPodofoDoc, fPodofoObj->GetDictionary().GetKey(PdfName(d
ictionaryKeyName))));} | |
| 50 private: | |
| 51 public: | |
| 52 SkPdfDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podof
oObj = NULL) : SkPdfObject(podofoDoc, podofoObj) {} | |
| 53 | |
| 54 virtual bool valid() const {return true;} | |
| 55 | |
| 56 SkPdfDictionary& operator=(const SkPdfDictionary& from) {this->fPodofoDoc = fr
om.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} | |
| 57 | |
| 58 }; | |
| 59 | |
| 60 #endif // __DEFINED__SkPdfDictionary | |
| OLD | NEW |