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

Side by Side Diff: experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfFieldDictionary_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 "SkPdfFieldDictionary_autogen.h"
2
3
4 #include "SkPdfNativeDoc.h"
5 SkString SkPdfFieldDictionary::FT(SkPdfNativeDoc* doc) {
6 SkPdfNativeObject* ret = get("FT", "");
7 if (doc) {ret = doc->resolveReference(ret);}
8 if ((ret != NULL && ret->isName()) || (doc == NULL && ret != NULL && ret->isRe ference())) return ret->nameValue2();
9 // TODO(edisonn): warn about missing default value for optional fields
10 return SkString();
11 }
12
13 bool SkPdfFieldDictionary::has_FT() const {
14 return get("FT", "") != NULL;
15 }
16
17 SkPdfDictionary* SkPdfFieldDictionary::Parent(SkPdfNativeDoc* doc) {
18 SkPdfNativeObject* ret = get("Parent", "");
19 if (doc) {ret = doc->resolveReference(ret);}
20 if ((ret != NULL && ret->isDictionary()) || (doc == NULL && ret != NULL && ret ->isReference())) return (SkPdfDictionary*)ret;
21 // TODO(edisonn): warn about missing default value for optional fields
22 return NULL;
23 }
24
25 bool SkPdfFieldDictionary::has_Parent() const {
26 return get("Parent", "") != NULL;
27 }
28
29 SkPdfArray* SkPdfFieldDictionary::Kids(SkPdfNativeDoc* doc) {
30 SkPdfNativeObject* ret = get("Kids", "");
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 SkPdfFieldDictionary::has_Kids() const {
38 return get("Kids", "") != NULL;
39 }
40
41 SkString SkPdfFieldDictionary::T(SkPdfNativeDoc* doc) {
42 SkPdfNativeObject* ret = get("T", "");
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 SkPdfFieldDictionary::has_T() const {
50 return get("T", "") != NULL;
51 }
52
53 SkString SkPdfFieldDictionary::TU(SkPdfNativeDoc* doc) {
54 SkPdfNativeObject* ret = get("TU", "");
55 if (doc) {ret = doc->resolveReference(ret);}
56 if ((ret != NULL && ret->isAnyString()) || (doc == NULL && ret != NULL && ret- >isReference())) return ret->stringValue2();
57 // TODO(edisonn): warn about missing default value for optional fields
58 return SkString();
59 }
60
61 bool SkPdfFieldDictionary::has_TU() const {
62 return get("TU", "") != NULL;
63 }
64
65 SkString SkPdfFieldDictionary::TM(SkPdfNativeDoc* doc) {
66 SkPdfNativeObject* ret = get("TM", "");
67 if (doc) {ret = doc->resolveReference(ret);}
68 if ((ret != NULL && ret->isAnyString()) || (doc == NULL && ret != NULL && ret- >isReference())) return ret->stringValue2();
69 // TODO(edisonn): warn about missing default value for optional fields
70 return SkString();
71 }
72
73 bool SkPdfFieldDictionary::has_TM() const {
74 return get("TM", "") != NULL;
75 }
76
77 int64_t SkPdfFieldDictionary::Ff(SkPdfNativeDoc* doc) {
78 SkPdfNativeObject* ret = get("Ff", "");
79 if (doc) {ret = doc->resolveReference(ret);}
80 if ((ret != NULL && ret->isInteger()) || (doc == NULL && ret != NULL && ret->i sReference())) return ret->intValue();
81 // TODO(edisonn): warn about missing default value for optional fields
82 return 0;
83 }
84
85 bool SkPdfFieldDictionary::has_Ff() const {
86 return get("Ff", "") != NULL;
87 }
88
89 SkPdfNativeObject* SkPdfFieldDictionary::V(SkPdfNativeDoc* doc) {
90 SkPdfNativeObject* ret = get("V", "");
91 if (doc) {ret = doc->resolveReference(ret);}
92 if ((ret != NULL && true) || (doc == NULL && ret != NULL && ret->isReference() )) return ret;
93 // TODO(edisonn): warn about missing default value for optional fields
94 return NULL;
95 }
96
97 bool SkPdfFieldDictionary::has_V() const {
98 return get("V", "") != NULL;
99 }
100
101 SkPdfNativeObject* SkPdfFieldDictionary::DV(SkPdfNativeDoc* doc) {
102 SkPdfNativeObject* ret = get("DV", "");
103 if (doc) {ret = doc->resolveReference(ret);}
104 if ((ret != NULL && true) || (doc == NULL && ret != NULL && ret->isReference() )) return ret;
105 // TODO(edisonn): warn about missing default value for optional fields
106 return NULL;
107 }
108
109 bool SkPdfFieldDictionary::has_DV() const {
110 return get("DV", "") != NULL;
111 }
112
113 SkPdfDictionary* SkPdfFieldDictionary::AA(SkPdfNativeDoc* doc) {
114 SkPdfNativeObject* ret = get("AA", "");
115 if (doc) {ret = doc->resolveReference(ret);}
116 if ((ret != NULL && ret->isDictionary()) || (doc == NULL && ret != NULL && ret ->isReference())) return (SkPdfDictionary*)ret;
117 // TODO(edisonn): warn about missing default value for optional fields
118 return NULL;
119 }
120
121 bool SkPdfFieldDictionary::has_AA() const {
122 return get("AA", "") != NULL;
123 }
124
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698