OLD | NEW |
1 #ifndef __DEFINED__SkPdfDictionary | 1 #ifndef __DEFINED__SkPdfDictionary |
2 #define __DEFINED__SkPdfDictionary | 2 #define __DEFINED__SkPdfDictionary |
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 SkPdfDictionary : public SkPdfObject { | 8 class SkPdfDictionary : public SkPdfObject { |
9 public: | 9 public: |
10 virtual SkPdfObjectType getType() const { return kObjectDictionary_SkPdfObject
Type;} | 10 virtual SkPdfObjectType getType() const { return kDictionary_SkPdfObjectType;} |
11 virtual SkPdfObjectType getTypeEnd() const { return kObjectDictionary__End_SkP
dfObjectType;} | 11 virtual SkPdfObjectType getTypeEnd() const { return kDictionary__End_SkPdfObje
ctType;} |
12 public: | 12 public: |
13 virtual SkPdfDictionary* asDictionary() {return this;} | 13 virtual SkPdfDictionary* asDictionary() {return this;} |
14 virtual const SkPdfDictionary* asDictionary() const {return this;} | 14 virtual const SkPdfDictionary* asDictionary() 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;} |
22 | 22 |
23 virtual SkPdfHexString* asHexString() {return NULL;} | |
24 virtual const SkPdfHexString* asHexString() const {return NULL;} | |
25 | |
26 virtual SkPdfInteger* asInteger() {return NULL;} | 23 virtual SkPdfInteger* asInteger() {return NULL;} |
27 virtual const SkPdfInteger* asInteger() const {return NULL;} | 24 virtual const SkPdfInteger* asInteger() const {return NULL;} |
28 | 25 |
| 26 virtual SkPdfNumber* asNumber() {return NULL;} |
| 27 virtual const SkPdfNumber* asNumber() const {return NULL;} |
| 28 |
29 virtual SkPdfName* asName() {return NULL;} | 29 virtual SkPdfName* asName() {return NULL;} |
30 virtual const SkPdfName* asName() const {return NULL;} | 30 virtual const SkPdfName* asName() const {return NULL;} |
31 | 31 |
32 virtual SkPdfNull* asNull() {return NULL;} | 32 virtual SkPdfNull* asNull() {return NULL;} |
33 virtual const SkPdfNull* asNull() const {return NULL;} | 33 virtual const SkPdfNull* asNull() const {return NULL;} |
34 | 34 |
35 virtual SkPdfNumber* asNumber() {return NULL;} | |
36 virtual const SkPdfNumber* asNumber() const {return NULL;} | |
37 | |
38 virtual SkPdfReference* asReference() {return NULL;} | 35 virtual SkPdfReference* asReference() {return NULL;} |
39 virtual const SkPdfReference* asReference() const {return NULL;} | 36 virtual const SkPdfReference* asReference() const {return NULL;} |
40 | 37 |
41 virtual SkPdfString* asString() {return NULL;} | 38 virtual SkPdfString* asString() {return NULL;} |
42 virtual const SkPdfString* asString() const {return NULL;} | 39 virtual const SkPdfString* asString() const {return NULL;} |
43 | 40 |
| 41 virtual SkPdfHexString* asHexString() {return NULL;} |
| 42 virtual const SkPdfHexString* asHexString() const {return NULL;} |
| 43 |
44 public: | 44 public: |
| 45 const SkPdfObject get(const char* dictionaryKeyName) const {return SkPdfObject
(fPodofoDoc, resolveReferenceObject(fPodofoDoc, fPodofoObj->GetDictionary().GetK
ey(PdfName(dictionaryKeyName))));} |
| 46 SkPdfObject get(const char* dictionaryKeyName) {return SkPdfObject(fPodofoDoc,
resolveReferenceObject(fPodofoDoc, fPodofoObj->GetDictionary().GetKey(PdfName(d
ictionaryKeyName))));} |
45 private: | 47 private: |
46 public: | 48 public: |
47 SkPdfDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podof
oObj = NULL) : SkPdfObject(podofoDoc, podofoObj) {} | 49 SkPdfDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podof
oObj = NULL) : SkPdfObject(podofoDoc, podofoObj) {} |
48 | 50 |
49 virtual bool valid() const {return true;} | 51 virtual bool valid() const {return true;} |
50 | 52 |
51 SkPdfDictionary& operator=(const SkPdfDictionary& from) {this->fPodofoDoc = fr
om.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} | 53 SkPdfDictionary& operator=(const SkPdfDictionary& from) {this->fPodofoDoc = fr
om.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} |
52 | 54 |
53 }; | 55 }; |
54 | 56 |
55 #endif // __DEFINED__SkPdfDictionary | 57 #endif // __DEFINED__SkPdfDictionary |
OLD | NEW |