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

Side by Side Diff: experimental/PdfViewer/autogen/SkPdfType3FontDictionary_autogen.cpp

Issue 17856004: refactoring for pdf viewer lib (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 5 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 "SkPdfType3FontDictionary_autogen.h"
2
3 std::string SkPdfType3FontDictionary::Type() const {
4 std::string ret;
5 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &r et)) return ret;
6 // TODO(edisonn): warn about missing required field, assert for known good pdf s
7 return "";
8 }
9
10 std::string SkPdfType3FontDictionary::Subtype() const {
11 std::string ret;
12 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret;
13 // TODO(edisonn): warn about missing required field, assert for known good pdf s
14 return "";
15 }
16
17 std::string SkPdfType3FontDictionary::Name() const {
18 std::string ret;
19 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Name", "", &r et)) return ret;
20 // TODO(edisonn): warn about missing required field, assert for known good pdf s
21 return "";
22 }
23
24 SkRect* SkPdfType3FontDictionary::FontBBox() const {
25 SkRect* ret;
26 if (SkRectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontBBox", "", &ret)) return ret;
27 // TODO(edisonn): warn about missing required field, assert for known good pdf s
28 return NULL;
29 }
30
31 SkMatrix* SkPdfType3FontDictionary::FontMatrix() const {
32 SkMatrix* ret;
33 if (SkMatrixFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontMatri x", "", &ret)) return ret;
34 // TODO(edisonn): warn about missing required field, assert for known good pdf s
35 return NULL;
36 }
37
38 SkPdfDictionary* SkPdfType3FontDictionary::CharProcs() const {
39 SkPdfDictionary* ret;
40 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CharPro cs", "", &ret)) return ret;
41 // TODO(edisonn): warn about missing required field, assert for known good pdf s
42 return NULL;
43 }
44
45 std::string SkPdfType3FontDictionary::getEncodingAsName() const {
46 std::string ret = "";
47 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encoding", "" , &ret)) return ret;
48 // TODO(edisonn): warn about missing required field, assert for known good pdf s
49 return "";
50 }
51
52 SkPdfEncodingDictionary* SkPdfType3FontDictionary::getEncodingAsEncodingdictiona ry() const {
53 SkPdfEncodingDictionary* ret = NULL;
54 if (EncodingDictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encoding", "", &ret)) return ret;
55 // TODO(edisonn): warn about missing required field, assert for known good pdf s
56 return NULL;
57 }
58
59 long SkPdfType3FontDictionary::FirstChar() const {
60 long ret;
61 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FirstChar", " ", &ret)) return ret;
62 // TODO(edisonn): warn about missing required field, assert for known good pdf s
63 return 0;
64 }
65
66 long SkPdfType3FontDictionary::LastChar() const {
67 long ret;
68 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "LastChar", "" , &ret)) return ret;
69 // TODO(edisonn): warn about missing required field, assert for known good pdf s
70 return 0;
71 }
72
73 SkPdfArray* SkPdfType3FontDictionary::Widths() const {
74 SkPdfArray* ret;
75 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Widths", "", &ret)) return ret;
76 // TODO(edisonn): warn about missing required field, assert for known good pdf s
77 return NULL;
78 }
79
80 SkPdfDictionary* SkPdfType3FontDictionary::Resources() const {
81 SkPdfDictionary* ret;
82 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Resourc es", "", &ret)) return ret;
83 // TODO(edisonn): warn about missing required field, assert for known good pdf s
84 return NULL;
85 }
86
87 SkPdfStream* SkPdfType3FontDictionary::ToUnicode() const {
88 SkPdfStream* ret;
89 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ToUnicode", "", &ret)) return ret;
90 // TODO(edisonn): warn about missing required field, assert for known good pdf s
91 return NULL;
92 }
93
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698