aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/PdfViewer/SkPdfDictionary_autogen.h
blob: 07fcd3b23b13cd32c72a40c2e626e36712ae0e34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#ifndef __DEFINED__SkPdfDictionary
#define __DEFINED__SkPdfDictionary

#include "SkPdfEnums_autogen.h"
#include "SkPdfArray_autogen.h"
#include "SkPdfObject_autogen.h"

class SkPdfDictionary : public SkPdfObject {
public:
  virtual SkPdfObjectType getType() const { return kDictionary_SkPdfObjectType;}
  virtual SkPdfObjectType getTypeEnd() const { return kDictionary__End_SkPdfObjectType;}
public:
  virtual SkPdfDictionary* asDictionary() {return this;}
  virtual const SkPdfDictionary* asDictionary() const {return this;}

private:
  virtual SkPdfArray* asArray() {return NULL;}
  virtual const SkPdfArray* asArray() const {return NULL;}

  virtual SkPdfBoolean* asBoolean() {return NULL;}
  virtual const SkPdfBoolean* asBoolean() const {return NULL;}

  virtual SkPdfInteger* asInteger() {return NULL;}
  virtual const SkPdfInteger* asInteger() const {return NULL;}

  virtual SkPdfNumber* asNumber() {return NULL;}
  virtual const SkPdfNumber* asNumber() const {return NULL;}

  virtual SkPdfName* asName() {return NULL;}
  virtual const SkPdfName* asName() const {return NULL;}

  virtual SkPdfNull* asNull() {return NULL;}
  virtual const SkPdfNull* asNull() const {return NULL;}

  virtual SkPdfReference* asReference() {return NULL;}
  virtual const SkPdfReference* asReference() const {return NULL;}

  virtual SkPdfStream* asStream() {return NULL;}
  virtual const SkPdfStream* asStream() const {return NULL;}

  virtual SkPdfString* asString() {return NULL;}
  virtual const SkPdfString* asString() const {return NULL;}

  virtual SkPdfHexString* asHexString() {return NULL;}
  virtual const SkPdfHexString* asHexString() const {return NULL;}

public:
  const SkPdfObject get(const char* dictionaryKeyName) const {return SkPdfObject(fPodofoDoc, resolveReferenceObject(fPodofoDoc, fPodofoObj->GetDictionary().GetKey(PdfName(dictionaryKeyName))));}
  SkPdfObject get(const char* dictionaryKeyName) {return SkPdfObject(fPodofoDoc, resolveReferenceObject(fPodofoDoc, fPodofoObj->GetDictionary().GetKey(PdfName(dictionaryKeyName))));}
private:
public:
  SkPdfDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfObject(podofoDoc, podofoObj) {}

  virtual bool valid() const {return true;}

  SkPdfDictionary& operator=(const SkPdfDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;}

};

#endif  // __DEFINED__SkPdfDictionary