Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(606)

Side by Side Diff: experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfFDFDictionary_autogen.cpp

Issue 22900010: pdfviewer: check in pdfapi classes (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 #include "SkPdfFDFDictionary_autogen.h"
2
3
4 #include "SkPdfNativeDoc.h"
5 SkPdfFileSpec SkPdfFDFDictionary::F(SkPdfNativeDoc* doc) {
6 SkPdfNativeObject* ret = get("F", "");
7 if (doc) {ret = doc->resolveReference(ret);}
8 if ((ret != NULL && false) || (doc == NULL && ret != NULL && ret->isReference( ))) return ret->fileSpecValue();
9 // TODO(edisonn): warn about missing default value for optional fields
10 return SkPdfFileSpec();
11 }
12
13 bool SkPdfFDFDictionary::has_F() const {
14 return get("F", "") != NULL;
15 }
16
17 SkPdfArray* SkPdfFDFDictionary::ID(SkPdfNativeDoc* doc) {
18 SkPdfNativeObject* ret = get("ID", "");
19 if (doc) {ret = doc->resolveReference(ret);}
20 if ((ret != NULL && ret->isArray()) || (doc == NULL && ret != NULL && ret->isR eference())) return (SkPdfArray*)ret;
21 // TODO(edisonn): warn about missing default value for optional fields
22 return NULL;
23 }
24
25 bool SkPdfFDFDictionary::has_ID() const {
26 return get("ID", "") != NULL;
27 }
28
29 SkPdfArray* SkPdfFDFDictionary::Fields(SkPdfNativeDoc* doc) {
30 SkPdfNativeObject* ret = get("Fields", "");
31 if (doc) {ret = doc->resolveReference(ret);}
32 if ((ret != NULL && ret->isArray()) || (doc == NULL && ret != NULL && ret->isR eference())) return (SkPdfArray*)ret;
33 // TODO(edisonn): warn about missing default value for optional fields
34 return NULL;
35 }
36
37 bool SkPdfFDFDictionary::has_Fields() const {
38 return get("Fields", "") != NULL;
39 }
40
41 SkString SkPdfFDFDictionary::Status(SkPdfNativeDoc* doc) {
42 SkPdfNativeObject* ret = get("Status", "");
43 if (doc) {ret = doc->resolveReference(ret);}
44 if ((ret != NULL && ret->isAnyString()) || (doc == NULL && ret != NULL && ret- >isReference())) return ret->stringValue2();
45 // TODO(edisonn): warn about missing default value for optional fields
46 return SkString();
47 }
48
49 bool SkPdfFDFDictionary::has_Status() const {
50 return get("Status", "") != NULL;
51 }
52
53 SkPdfArray* SkPdfFDFDictionary::Pages(SkPdfNativeDoc* doc) {
54 SkPdfNativeObject* ret = get("Pages", "");
55 if (doc) {ret = doc->resolveReference(ret);}
56 if ((ret != NULL && ret->isArray()) || (doc == NULL && ret != NULL && ret->isR eference())) return (SkPdfArray*)ret;
57 // TODO(edisonn): warn about missing default value for optional fields
58 return NULL;
59 }
60
61 bool SkPdfFDFDictionary::has_Pages() const {
62 return get("Pages", "") != NULL;
63 }
64
65 SkString SkPdfFDFDictionary::Encoding(SkPdfNativeDoc* doc) {
66 SkPdfNativeObject* ret = get("Encoding", "");
67 if (doc) {ret = doc->resolveReference(ret);}
68 if ((ret != NULL && ret->isName()) || (doc == NULL && ret != NULL && ret->isRe ference())) return ret->nameValue2();
69 // TODO(edisonn): warn about missing default value for optional fields
70 return SkString();
71 }
72
73 bool SkPdfFDFDictionary::has_Encoding() const {
74 return get("Encoding", "") != NULL;
75 }
76
77 SkPdfArray* SkPdfFDFDictionary::Annots(SkPdfNativeDoc* doc) {
78 SkPdfNativeObject* ret = get("Annots", "");
79 if (doc) {ret = doc->resolveReference(ret);}
80 if ((ret != NULL && ret->isArray()) || (doc == NULL && ret != NULL && ret->isR eference())) return (SkPdfArray*)ret;
81 // TODO(edisonn): warn about missing default value for optional fields
82 return NULL;
83 }
84
85 bool SkPdfFDFDictionary::has_Annots() const {
86 return get("Annots", "") != NULL;
87 }
88
89 SkPdfStream* SkPdfFDFDictionary::Differences(SkPdfNativeDoc* doc) {
90 SkPdfNativeObject* ret = get("Differences", "");
91 if (doc) {ret = doc->resolveReference(ret);}
92 if ((ret != NULL && ret->hasStream()) || (doc == NULL && ret != NULL && ret->i sReference())) return ret->getStream();
93 // TODO(edisonn): warn about missing default value for optional fields
94 return NULL;
95 }
96
97 bool SkPdfFDFDictionary::has_Differences() const {
98 return get("Differences", "") != NULL;
99 }
100
101 SkString SkPdfFDFDictionary::Target(SkPdfNativeDoc* doc) {
102 SkPdfNativeObject* ret = get("Target", "");
103 if (doc) {ret = doc->resolveReference(ret);}
104 if ((ret != NULL && ret->isAnyString()) || (doc == NULL && ret != NULL && ret- >isReference())) return ret->stringValue2();
105 // TODO(edisonn): warn about missing default value for optional fields
106 return SkString();
107 }
108
109 bool SkPdfFDFDictionary::has_Target() const {
110 return get("Target", "") != NULL;
111 }
112
113 SkPdfArray* SkPdfFDFDictionary::EmbeddedFDFs(SkPdfNativeDoc* doc) {
114 SkPdfNativeObject* ret = get("EmbeddedFDFs", "");
115 if (doc) {ret = doc->resolveReference(ret);}
116 if ((ret != NULL && ret->isArray()) || (doc == NULL && ret != NULL && ret->isR eference())) return (SkPdfArray*)ret;
117 // TODO(edisonn): warn about missing default value for optional fields
118 return NULL;
119 }
120
121 bool SkPdfFDFDictionary::has_EmbeddedFDFs() const {
122 return get("EmbeddedFDFs", "") != NULL;
123 }
124
125 SkPdfDictionary* SkPdfFDFDictionary::JavaScript(SkPdfNativeDoc* doc) {
126 SkPdfNativeObject* ret = get("JavaScript", "");
127 if (doc) {ret = doc->resolveReference(ret);}
128 if ((ret != NULL && ret->isDictionary()) || (doc == NULL && ret != NULL && ret ->isReference())) return (SkPdfDictionary*)ret;
129 // TODO(edisonn): warn about missing default value for optional fields
130 return NULL;
131 }
132
133 bool SkPdfFDFDictionary::has_JavaScript() const {
134 return get("JavaScript", "") != NULL;
135 }
136
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698