Index: experimental/PdfViewer/autogen/SkPdfAnnotationDictionary_autogen.cpp |
=================================================================== |
--- experimental/PdfViewer/autogen/SkPdfAnnotationDictionary_autogen.cpp (revision 0) |
+++ experimental/PdfViewer/autogen/SkPdfAnnotationDictionary_autogen.cpp (revision 0) |
@@ -0,0 +1,135 @@ |
+#include "SkPdfAnnotationDictionary_autogen.h" |
+ |
+std::string SkPdfAnnotationDictionary::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 SkPdfAnnotationDictionary::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 SkPdfAnnotationDictionary::Contents() const { |
+ std::string ret; |
+ if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", &ret)) return ret; |
+ // TODO(edisonn): warn about missing required field, assert for known good pdfs |
+ return ""; |
+} |
+ |
+SkPdfDictionary* SkPdfAnnotationDictionary::P() const { |
+ SkPdfDictionary* ret; |
+ if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", "", &ret)) return ret; |
+ // TODO(edisonn): warn about missing required field, assert for known good pdfs |
+ return NULL; |
+} |
+ |
+SkRect* SkPdfAnnotationDictionary::Rect() const { |
+ SkRect* ret; |
+ if (SkRectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Rect", "", &ret)) return ret; |
+ // TODO(edisonn): warn about missing required field, assert for known good pdfs |
+ return NULL; |
+} |
+ |
+SkPdfDate SkPdfAnnotationDictionary::getMAsDate() const { |
+ SkPdfDate ret = SkPdfDate(); |
+ if (DateFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "M", "", &ret)) return ret; |
+ // TODO(edisonn): warn about missing required field, assert for known good pdfs |
+ return SkPdfDate(); |
+} |
+ |
+std::string SkPdfAnnotationDictionary::getMAsString() const { |
+ std::string ret = ""; |
+ if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "M", "", &ret)) return ret; |
+ // TODO(edisonn): warn about missing required field, assert for known good pdfs |
+ return ""; |
+} |
+ |
+long SkPdfAnnotationDictionary::F() const { |
+ long ret; |
+ if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", &ret)) return ret; |
+ // TODO(edisonn): warn about missing required field, assert for known good pdfs |
+ return 0; |
+} |
+ |
+SkPdfDictionary* SkPdfAnnotationDictionary::BS() const { |
+ SkPdfDictionary* ret; |
+ if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "BS", "", &ret)) return ret; |
+ // TODO(edisonn): warn about missing required field, assert for known good pdfs |
+ return NULL; |
+} |
+ |
+SkPdfArray* SkPdfAnnotationDictionary::Border() const { |
+ SkPdfArray* ret; |
+ if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Border", "", &ret)) return ret; |
+ // TODO(edisonn): warn about missing required field, assert for known good pdfs |
+ return NULL; |
+} |
+ |
+SkPdfDictionary* SkPdfAnnotationDictionary::AP() const { |
+ SkPdfDictionary* ret; |
+ if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AP", "", &ret)) return ret; |
+ // TODO(edisonn): warn about missing required field, assert for known good pdfs |
+ return NULL; |
+} |
+ |
+std::string SkPdfAnnotationDictionary::AS() const { |
+ std::string ret; |
+ if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AS", "", &ret)) return ret; |
+ // TODO(edisonn): warn about missing required field, assert for known good pdfs |
+ return ""; |
+} |
+ |
+SkPdfArray* SkPdfAnnotationDictionary::C() const { |
+ SkPdfArray* ret; |
+ if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "", &ret)) return ret; |
+ // TODO(edisonn): warn about missing required field, assert for known good pdfs |
+ return NULL; |
+} |
+ |
+double SkPdfAnnotationDictionary::CA() const { |
+ double ret; |
+ if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CA", "", &ret)) return ret; |
+ // TODO(edisonn): warn about missing required field, assert for known good pdfs |
+ return 0; |
+} |
+ |
+std::string SkPdfAnnotationDictionary::T() const { |
+ std::string ret; |
+ if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "T", "", &ret)) return ret; |
+ // TODO(edisonn): warn about missing required field, assert for known good pdfs |
+ return ""; |
+} |
+ |
+SkPdfDictionary* SkPdfAnnotationDictionary::Popup() const { |
+ SkPdfDictionary* ret; |
+ if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Popup", "", &ret)) return ret; |
+ // TODO(edisonn): warn about missing required field, assert for known good pdfs |
+ return NULL; |
+} |
+ |
+SkPdfDictionary* SkPdfAnnotationDictionary::A() const { |
+ SkPdfDictionary* ret; |
+ if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "A", "", &ret)) return ret; |
+ // TODO(edisonn): warn about missing required field, assert for known good pdfs |
+ return NULL; |
+} |
+ |
+SkPdfDictionary* SkPdfAnnotationDictionary::AA() const { |
+ SkPdfDictionary* ret; |
+ if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "AA", "", &ret)) return ret; |
+ // TODO(edisonn): warn about missing required field, assert for known good pdfs |
+ return NULL; |
+} |
+ |
+long SkPdfAnnotationDictionary::StructParent() const { |
+ long ret; |
+ if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StructParent", "", &ret)) return ret; |
+ // TODO(edisonn): warn about missing required field, assert for known good pdfs |
+ return 0; |
+} |
+ |