Index: experimental/PdfViewer/autogen/SkPdfType0FontDictionary_autogen.cpp |
=================================================================== |
--- experimental/PdfViewer/autogen/SkPdfType0FontDictionary_autogen.cpp (revision 0) |
+++ experimental/PdfViewer/autogen/SkPdfType0FontDictionary_autogen.cpp (revision 0) |
@@ -0,0 +1,51 @@ |
+#include "SkPdfType0FontDictionary_autogen.h" |
+ |
+std::string SkPdfType0FontDictionary::Type() const { |
+ std::string ret; |
+ if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; |
+ // TODO(edisonn): warn about missing required field, assert for known good pdfs |
+ return ""; |
+} |
+ |
+std::string SkPdfType0FontDictionary::Subtype() const { |
+ std::string ret; |
+ if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret; |
+ // TODO(edisonn): warn about missing required field, assert for known good pdfs |
+ return ""; |
+} |
+ |
+std::string SkPdfType0FontDictionary::BaseFont() const { |
+ std::string ret; |
+ if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BaseFont", "", &ret)) return ret; |
+ // TODO(edisonn): warn about missing required field, assert for known good pdfs |
+ return ""; |
+} |
+ |
+std::string SkPdfType0FontDictionary::getEncodingAsName() const { |
+ std::string ret = ""; |
+ if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encoding", "", &ret)) return ret; |
+ // TODO(edisonn): warn about missing required field, assert for known good pdfs |
+ return ""; |
+} |
+ |
+SkPdfStream* SkPdfType0FontDictionary::getEncodingAsStream() const { |
+ SkPdfStream* ret = NULL; |
+ if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encoding", "", &ret)) return ret; |
+ // TODO(edisonn): warn about missing required field, assert for known good pdfs |
+ return NULL; |
+} |
+ |
+SkPdfArray* SkPdfType0FontDictionary::DescendantFonts() const { |
+ SkPdfArray* ret; |
+ if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DescendantFonts", "", &ret)) return ret; |
+ // TODO(edisonn): warn about missing required field, assert for known good pdfs |
+ return NULL; |
+} |
+ |
+SkPdfStream* SkPdfType0FontDictionary::ToUnicode() const { |
+ SkPdfStream* ret; |
+ if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ToUnicode", "", &ret)) return ret; |
+ // TODO(edisonn): warn about missing required field, assert for known good pdfs |
+ return NULL; |
+} |
+ |