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