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

Side by Side Diff: experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfAppearanceDictionary_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 "SkPdfAppearanceDictionary_autogen.h"
2
3
4 #include "SkPdfNativeDoc.h"
5 bool SkPdfAppearanceDictionary::isNAStream(SkPdfNativeDoc* doc) {
6 SkPdfNativeObject* ret = get("N", "");
7 if (doc) {ret = doc->resolveReference(ret);}
8 return ret != NULL && ret->hasStream();
9 }
10
11 SkPdfStream* SkPdfAppearanceDictionary::getNAsStream(SkPdfNativeDoc* doc) {
12 SkPdfNativeObject* ret = get("N", "");
13 if (doc) {ret = doc->resolveReference(ret);}
14 if ((ret != NULL && ret->hasStream()) || (doc == NULL && ret != NULL && ret->i sReference())) return ret->getStream();
15 // TODO(edisonn): warn about missing required field, assert for known good pdf s
16 return NULL;
17 }
18
19 bool SkPdfAppearanceDictionary::isNADictionary(SkPdfNativeDoc* doc) {
20 SkPdfNativeObject* ret = get("N", "");
21 if (doc) {ret = doc->resolveReference(ret);}
22 return ret != NULL && ret->isDictionary();
23 }
24
25 SkPdfDictionary* SkPdfAppearanceDictionary::getNAsDictionary(SkPdfNativeDoc* doc ) {
26 SkPdfNativeObject* ret = get("N", "");
27 if (doc) {ret = doc->resolveReference(ret);}
28 if ((ret != NULL && ret->isDictionary()) || (doc == NULL && ret != NULL && ret ->isReference())) return (SkPdfDictionary*)ret;
29 // TODO(edisonn): warn about missing required field, assert for known good pdf s
30 return NULL;
31 }
32
33 bool SkPdfAppearanceDictionary::has_N() const {
34 return get("N", "") != NULL;
35 }
36
37 bool SkPdfAppearanceDictionary::isRAStream(SkPdfNativeDoc* doc) {
38 SkPdfNativeObject* ret = get("R", "");
39 if (doc) {ret = doc->resolveReference(ret);}
40 return ret != NULL && ret->hasStream();
41 }
42
43 SkPdfStream* SkPdfAppearanceDictionary::getRAsStream(SkPdfNativeDoc* doc) {
44 SkPdfNativeObject* ret = get("R", "");
45 if (doc) {ret = doc->resolveReference(ret);}
46 if ((ret != NULL && ret->hasStream()) || (doc == NULL && ret != NULL && ret->i sReference())) return ret->getStream();
47 // TODO(edisonn): warn about missing default value for optional fields
48 return NULL;
49 }
50
51 bool SkPdfAppearanceDictionary::isRADictionary(SkPdfNativeDoc* doc) {
52 SkPdfNativeObject* ret = get("R", "");
53 if (doc) {ret = doc->resolveReference(ret);}
54 return ret != NULL && ret->isDictionary();
55 }
56
57 SkPdfDictionary* SkPdfAppearanceDictionary::getRAsDictionary(SkPdfNativeDoc* doc ) {
58 SkPdfNativeObject* ret = get("R", "");
59 if (doc) {ret = doc->resolveReference(ret);}
60 if ((ret != NULL && ret->isDictionary()) || (doc == NULL && ret != NULL && ret ->isReference())) return (SkPdfDictionary*)ret;
61 // TODO(edisonn): warn about missing default value for optional fields
62 return NULL;
63 }
64
65 bool SkPdfAppearanceDictionary::has_R() const {
66 return get("R", "") != NULL;
67 }
68
69 bool SkPdfAppearanceDictionary::isDAStream(SkPdfNativeDoc* doc) {
70 SkPdfNativeObject* ret = get("D", "");
71 if (doc) {ret = doc->resolveReference(ret);}
72 return ret != NULL && ret->hasStream();
73 }
74
75 SkPdfStream* SkPdfAppearanceDictionary::getDAsStream(SkPdfNativeDoc* doc) {
76 SkPdfNativeObject* ret = get("D", "");
77 if (doc) {ret = doc->resolveReference(ret);}
78 if ((ret != NULL && ret->hasStream()) || (doc == NULL && ret != NULL && ret->i sReference())) return ret->getStream();
79 // TODO(edisonn): warn about missing default value for optional fields
80 return NULL;
81 }
82
83 bool SkPdfAppearanceDictionary::isDADictionary(SkPdfNativeDoc* doc) {
84 SkPdfNativeObject* ret = get("D", "");
85 if (doc) {ret = doc->resolveReference(ret);}
86 return ret != NULL && ret->isDictionary();
87 }
88
89 SkPdfDictionary* SkPdfAppearanceDictionary::getDAsDictionary(SkPdfNativeDoc* doc ) {
90 SkPdfNativeObject* ret = get("D", "");
91 if (doc) {ret = doc->resolveReference(ret);}
92 if ((ret != NULL && ret->isDictionary()) || (doc == NULL && ret != NULL && ret ->isReference())) return (SkPdfDictionary*)ret;
93 // TODO(edisonn): warn about missing default value for optional fields
94 return NULL;
95 }
96
97 bool SkPdfAppearanceDictionary::has_D() const {
98 return get("D", "") != NULL;
99 }
100
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698