Index: experimental/PdfViewer/pdfparser/podofo/autogen/SkPdfFontDescriptorDictionary_autogen.cpp |
=================================================================== |
--- experimental/PdfViewer/pdfparser/podofo/autogen/SkPdfFontDescriptorDictionary_autogen.cpp (revision 9879) |
+++ experimental/PdfViewer/pdfparser/podofo/autogen/SkPdfFontDescriptorDictionary_autogen.cpp (working copy) |
@@ -1,134 +0,0 @@ |
-#include "SkPdfFontDescriptorDictionary_autogen.h" |
- |
-std::string SkPdfFontDescriptorDictionary::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 SkPdfFontDescriptorDictionary::FontName() const { |
- std::string ret; |
- if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontName", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return ""; |
-} |
- |
-long SkPdfFontDescriptorDictionary::Flags() const { |
- long ret; |
- if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Flags", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return 0; |
-} |
- |
-SkRect* SkPdfFontDescriptorDictionary::FontBBox() const { |
- SkRect* ret; |
- if (SkRectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontBBox", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return NULL; |
-} |
- |
-double SkPdfFontDescriptorDictionary::ItalicAngle() const { |
- double ret; |
- if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ItalicAngle", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return 0; |
-} |
- |
-double SkPdfFontDescriptorDictionary::Ascent() const { |
- double ret; |
- if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Ascent", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return 0; |
-} |
- |
-double SkPdfFontDescriptorDictionary::Descent() const { |
- double ret; |
- if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Descent", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return 0; |
-} |
- |
-double SkPdfFontDescriptorDictionary::Leading() const { |
- double ret; |
- if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Leading", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return 0; |
-} |
- |
-double SkPdfFontDescriptorDictionary::CapHeight() const { |
- double ret; |
- if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CapHeight", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return 0; |
-} |
- |
-double SkPdfFontDescriptorDictionary::XHeight() const { |
- double ret; |
- if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "XHeight", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return 0; |
-} |
- |
-double SkPdfFontDescriptorDictionary::StemV() const { |
- double ret; |
- if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StemV", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return 0; |
-} |
- |
-double SkPdfFontDescriptorDictionary::StemH() const { |
- double ret; |
- if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StemH", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return 0; |
-} |
- |
-double SkPdfFontDescriptorDictionary::AvgWidth() const { |
- double ret; |
- if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AvgWidth", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return 0; |
-} |
- |
-double SkPdfFontDescriptorDictionary::MaxWidth() const { |
- double ret; |
- if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MaxWidth", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return 0; |
-} |
- |
-double SkPdfFontDescriptorDictionary::MissingWidth() const { |
- double ret; |
- if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MissingWidth", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return 0; |
-} |
- |
-SkPdfStream* SkPdfFontDescriptorDictionary::FontFile() const { |
- SkPdfStream* ret; |
- if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontFile", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return NULL; |
-} |
- |
-SkPdfStream* SkPdfFontDescriptorDictionary::FontFile2() const { |
- SkPdfStream* ret; |
- if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontFile2", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return NULL; |
-} |
- |
-SkPdfStream* SkPdfFontDescriptorDictionary::FontFile3() const { |
- SkPdfStream* ret; |
- if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontFile3", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return NULL; |
-} |
- |
-std::string SkPdfFontDescriptorDictionary::CharSet() const { |
- std::string ret; |
- if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CharSet", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return ""; |
-} |