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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
|
#include "SkPdfMovieActivationDictionary_autogen.h"
#include "SkPdfNativeDoc.h"
SkPdfNativeObject* SkPdfMovieActivationDictionary::Start(SkPdfNativeDoc* doc) {
SkPdfNativeObject* ret = get("Start", "");
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 SkPdfMovieActivationDictionary::has_Start() const {
return get("Start", "") != NULL;
}
SkPdfNativeObject* SkPdfMovieActivationDictionary::Duration(SkPdfNativeDoc* doc) {
SkPdfNativeObject* ret = get("Duration", "");
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 SkPdfMovieActivationDictionary::has_Duration() const {
return get("Duration", "") != NULL;
}
double SkPdfMovieActivationDictionary::Rate(SkPdfNativeDoc* doc) {
SkPdfNativeObject* ret = get("Rate", "");
if (doc) {ret = doc->resolveReference(ret);}
if ((ret != NULL && ret->isNumber()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->numberValue();
// TODO(edisonn): warn about missing default value for optional fields
return 0;
}
bool SkPdfMovieActivationDictionary::has_Rate() const {
return get("Rate", "") != NULL;
}
double SkPdfMovieActivationDictionary::Volume(SkPdfNativeDoc* doc) {
SkPdfNativeObject* ret = get("Volume", "");
if (doc) {ret = doc->resolveReference(ret);}
if ((ret != NULL && ret->isNumber()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->numberValue();
// TODO(edisonn): warn about missing default value for optional fields
return 0;
}
bool SkPdfMovieActivationDictionary::has_Volume() const {
return get("Volume", "") != NULL;
}
bool SkPdfMovieActivationDictionary::ShowControls(SkPdfNativeDoc* doc) {
SkPdfNativeObject* ret = get("ShowControls", "");
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 SkPdfMovieActivationDictionary::has_ShowControls() const {
return get("ShowControls", "") != NULL;
}
SkString SkPdfMovieActivationDictionary::Mode(SkPdfNativeDoc* doc) {
SkPdfNativeObject* ret = get("Mode", "");
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 default value for optional fields
return SkString();
}
bool SkPdfMovieActivationDictionary::has_Mode() const {
return get("Mode", "") != NULL;
}
bool SkPdfMovieActivationDictionary::Synchronous(SkPdfNativeDoc* doc) {
SkPdfNativeObject* ret = get("Synchronous", "");
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 SkPdfMovieActivationDictionary::has_Synchronous() const {
return get("Synchronous", "") != NULL;
}
SkPdfArray* SkPdfMovieActivationDictionary::FWScale(SkPdfNativeDoc* doc) {
SkPdfNativeObject* ret = get("FWScale", "");
if (doc) {ret = doc->resolveReference(ret);}
if ((ret != NULL && ret->isArray()) || (doc == NULL && ret != NULL && ret->isReference())) return (SkPdfArray*)ret;
// TODO(edisonn): warn about missing default value for optional fields
return NULL;
}
bool SkPdfMovieActivationDictionary::has_FWScale() const {
return get("FWScale", "") != NULL;
}
SkPdfArray* SkPdfMovieActivationDictionary::FWPosition(SkPdfNativeDoc* doc) {
SkPdfNativeObject* ret = get("FWPosition", "");
if (doc) {ret = doc->resolveReference(ret);}
if ((ret != NULL && ret->isArray()) || (doc == NULL && ret != NULL && ret->isReference())) return (SkPdfArray*)ret;
// TODO(edisonn): warn about missing default value for optional fields
return NULL;
}
bool SkPdfMovieActivationDictionary::has_FWPosition() const {
return get("FWPosition", "") != NULL;
}
|