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

Side by Side Diff: experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfAppearanceCharacteristicsDictionary_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 "SkPdfAppearanceCharacteristicsDictionary_autogen.h"
2
3
4 #include "SkPdfNativeDoc.h"
5 int64_t SkPdfAppearanceCharacteristicsDictionary::R(SkPdfNativeDoc* doc) {
6 SkPdfNativeObject* ret = get("R", "");
7 if (doc) {ret = doc->resolveReference(ret);}
8 if ((ret != NULL && ret->isInteger()) || (doc == NULL && ret != NULL && ret->i sReference())) return ret->intValue();
9 // TODO(edisonn): warn about missing default value for optional fields
10 return 0;
11 }
12
13 bool SkPdfAppearanceCharacteristicsDictionary::has_R() const {
14 return get("R", "") != NULL;
15 }
16
17 SkPdfArray* SkPdfAppearanceCharacteristicsDictionary::BC(SkPdfNativeDoc* doc) {
18 SkPdfNativeObject* ret = get("BC", "");
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 SkPdfAppearanceCharacteristicsDictionary::has_BC() const {
26 return get("BC", "") != NULL;
27 }
28
29 SkPdfArray* SkPdfAppearanceCharacteristicsDictionary::BG(SkPdfNativeDoc* doc) {
30 SkPdfNativeObject* ret = get("BG", "");
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 SkPdfAppearanceCharacteristicsDictionary::has_BG() const {
38 return get("BG", "") != NULL;
39 }
40
41 SkString SkPdfAppearanceCharacteristicsDictionary::CA(SkPdfNativeDoc* doc) {
42 SkPdfNativeObject* ret = get("CA", "");
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 SkPdfAppearanceCharacteristicsDictionary::has_CA() const {
50 return get("CA", "") != NULL;
51 }
52
53 SkString SkPdfAppearanceCharacteristicsDictionary::RC(SkPdfNativeDoc* doc) {
54 SkPdfNativeObject* ret = get("RC", "");
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 SkPdfAppearanceCharacteristicsDictionary::has_RC() const {
62 return get("RC", "") != NULL;
63 }
64
65 SkString SkPdfAppearanceCharacteristicsDictionary::AC(SkPdfNativeDoc* doc) {
66 SkPdfNativeObject* ret = get("AC", "");
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 SkPdfAppearanceCharacteristicsDictionary::has_AC() const {
74 return get("AC", "") != NULL;
75 }
76
77 SkPdfStream* SkPdfAppearanceCharacteristicsDictionary::I(SkPdfNativeDoc* doc) {
78 SkPdfNativeObject* ret = get("I", "");
79 if (doc) {ret = doc->resolveReference(ret);}
80 if ((ret != NULL && ret->hasStream()) || (doc == NULL && ret != NULL && ret->i sReference())) return ret->getStream();
81 // TODO(edisonn): warn about missing default value for optional fields
82 return NULL;
83 }
84
85 bool SkPdfAppearanceCharacteristicsDictionary::has_I() const {
86 return get("I", "") != NULL;
87 }
88
89 SkPdfStream* SkPdfAppearanceCharacteristicsDictionary::RI(SkPdfNativeDoc* doc) {
90 SkPdfNativeObject* ret = get("RI", "");
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 SkPdfAppearanceCharacteristicsDictionary::has_RI() const {
98 return get("RI", "") != NULL;
99 }
100
101 SkPdfStream* SkPdfAppearanceCharacteristicsDictionary::IX(SkPdfNativeDoc* doc) {
102 SkPdfNativeObject* ret = get("IX", "");
103 if (doc) {ret = doc->resolveReference(ret);}
104 if ((ret != NULL && ret->hasStream()) || (doc == NULL && ret != NULL && ret->i sReference())) return ret->getStream();
105 // TODO(edisonn): warn about missing default value for optional fields
106 return NULL;
107 }
108
109 bool SkPdfAppearanceCharacteristicsDictionary::has_IX() const {
110 return get("IX", "") != NULL;
111 }
112
113 SkPdfDictionary* SkPdfAppearanceCharacteristicsDictionary::IF(SkPdfNativeDoc* do c) {
114 SkPdfNativeObject* ret = get("IF", "");
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 SkPdfAppearanceCharacteristicsDictionary::has_IF() const {
122 return get("IF", "") != NULL;
123 }
124
125 int64_t SkPdfAppearanceCharacteristicsDictionary::TP(SkPdfNativeDoc* doc) {
126 SkPdfNativeObject* ret = get("TP", "");
127 if (doc) {ret = doc->resolveReference(ret);}
128 if ((ret != NULL && ret->isInteger()) || (doc == NULL && ret != NULL && ret->i sReference())) return ret->intValue();
129 // TODO(edisonn): warn about missing default value for optional fields
130 return 0;
131 }
132
133 bool SkPdfAppearanceCharacteristicsDictionary::has_TP() const {
134 return get("TP", "") != NULL;
135 }
136
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698