aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfLaunchActionDictionary_autogen.cpp
blob: 1bc192f4d10eb2b140facbc60fd0487138c58e28 (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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#include "SkPdfLaunchActionDictionary_autogen.h"


#include "SkPdfNativeDoc.h"
SkString SkPdfLaunchActionDictionary::S(SkPdfNativeDoc* doc) {
  SkPdfNativeObject* ret = get("S", "");
  if (doc) {ret = doc->resolveReference(ret);}
  if ((ret != NULL && ret->isName()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->nameValue2();
  // TODO(edisonn): warn about missing required field, assert for known good pdfs
  return SkString();
}

bool SkPdfLaunchActionDictionary::has_S() const {
  return get("S", "") != NULL;
}

SkPdfFileSpec SkPdfLaunchActionDictionary::F(SkPdfNativeDoc* doc) {
  SkPdfNativeObject* ret = get("F", "");
  if (doc) {ret = doc->resolveReference(ret);}
  if ((ret != NULL && false) || (doc == NULL && ret != NULL && ret->isReference())) return ret->fileSpecValue();
  // TODO(edisonn): warn about missing default value for optional fields
  return SkPdfFileSpec();
}

bool SkPdfLaunchActionDictionary::has_F() const {
  return get("F", "") != NULL;
}

SkPdfDictionary* SkPdfLaunchActionDictionary::Win(SkPdfNativeDoc* doc) {
  SkPdfNativeObject* ret = get("Win", "");
  if (doc) {ret = doc->resolveReference(ret);}
  if ((ret != NULL && ret->isDictionary()) || (doc == NULL && ret != NULL && ret->isReference())) return (SkPdfDictionary*)ret;
  // TODO(edisonn): warn about missing default value for optional fields
  return NULL;
}

bool SkPdfLaunchActionDictionary::has_Win() const {
  return get("Win", "") != NULL;
}

SkPdfNativeObject* SkPdfLaunchActionDictionary::Mac(SkPdfNativeDoc* doc) {
  SkPdfNativeObject* ret = get("Mac", "");
  if (doc) {ret = doc->resolveReference(ret);}
  if ((ret != NULL && true) || (doc == NULL && ret != NULL && ret->isReference())) return ret;
  // TODO(edisonn): warn about missing default value for optional fields
  return NULL;
}

bool SkPdfLaunchActionDictionary::has_Mac() const {
  return get("Mac", "") != NULL;
}

SkPdfNativeObject* SkPdfLaunchActionDictionary::Unix(SkPdfNativeDoc* doc) {
  SkPdfNativeObject* ret = get("Unix", "");
  if (doc) {ret = doc->resolveReference(ret);}
  if ((ret != NULL && true) || (doc == NULL && ret != NULL && ret->isReference())) return ret;
  // TODO(edisonn): warn about missing default value for optional fields
  return NULL;
}

bool SkPdfLaunchActionDictionary::has_Unix() const {
  return get("Unix", "") != NULL;
}

bool SkPdfLaunchActionDictionary::NewWindow(SkPdfNativeDoc* doc) {
  SkPdfNativeObject* ret = get("NewWindow", "");
  if (doc) {ret = doc->resolveReference(ret);}
  if ((ret != NULL && ret->isBoolean()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->boolValue();
  // TODO(edisonn): warn about missing default value for optional fields
  return false;
}

bool SkPdfLaunchActionDictionary::has_NewWindow() const {
  return get("NewWindow", "") != NULL;
}