Index: experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfGoToActionDictionary_autogen.cpp |
=================================================================== |
--- experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfGoToActionDictionary_autogen.cpp (revision 0) |
+++ experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfGoToActionDictionary_autogen.cpp (revision 0) |
@@ -0,0 +1,62 @@ |
+#include "SkPdfGoToActionDictionary_autogen.h" |
+ |
+ |
+#include "SkPdfNativeDoc.h" |
+SkString SkPdfGoToActionDictionary::S(SkPdfNativeDoc* doc) { |
+ SkPdfNativeObject* ret = get("S", ""); |
+ if (doc) {ret = doc->resolveReference(ret);} |
+ if ((ret != NULL && ret->isName()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->nameValue2(); |
+ // TODO(edisonn): warn about missing required field, assert for known good pdfs |
+ return SkString(); |
+} |
+ |
+bool SkPdfGoToActionDictionary::has_S() const { |
+ return get("S", "") != NULL; |
+} |
+ |
+bool SkPdfGoToActionDictionary::isDAName(SkPdfNativeDoc* doc) { |
+ SkPdfNativeObject* ret = get("D", ""); |
+ if (doc) {ret = doc->resolveReference(ret);} |
+ return ret != NULL && ret->isName(); |
+} |
+ |
+SkString SkPdfGoToActionDictionary::getDAsName(SkPdfNativeDoc* doc) { |
+ SkPdfNativeObject* ret = get("D", ""); |
+ if (doc) {ret = doc->resolveReference(ret);} |
+ if ((ret != NULL && ret->isName()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->nameValue2(); |
+ // TODO(edisonn): warn about missing required field, assert for known good pdfs |
+ return SkString(); |
+} |
+ |
+bool SkPdfGoToActionDictionary::isDAString(SkPdfNativeDoc* doc) { |
+ SkPdfNativeObject* ret = get("D", ""); |
+ if (doc) {ret = doc->resolveReference(ret);} |
+ return ret != NULL && ret->isAnyString(); |
+} |
+ |
+SkString SkPdfGoToActionDictionary::getDAsString(SkPdfNativeDoc* doc) { |
+ SkPdfNativeObject* ret = get("D", ""); |
+ if (doc) {ret = doc->resolveReference(ret);} |
+ if ((ret != NULL && ret->isAnyString()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->stringValue2(); |
+ // TODO(edisonn): warn about missing required field, assert for known good pdfs |
+ return SkString(); |
+} |
+ |
+bool SkPdfGoToActionDictionary::isDAArray(SkPdfNativeDoc* doc) { |
+ SkPdfNativeObject* ret = get("D", ""); |
+ if (doc) {ret = doc->resolveReference(ret);} |
+ return ret != NULL && ret->isArray(); |
+} |
+ |
+SkPdfArray* SkPdfGoToActionDictionary::getDAsArray(SkPdfNativeDoc* doc) { |
+ SkPdfNativeObject* ret = get("D", ""); |
+ if (doc) {ret = doc->resolveReference(ret);} |
+ if ((ret != NULL && ret->isArray()) || (doc == NULL && ret != NULL && ret->isReference())) return (SkPdfArray*)ret; |
+ // TODO(edisonn): warn about missing required field, assert for known good pdfs |
+ return NULL; |
+} |
+ |
+bool SkPdfGoToActionDictionary::has_D() const { |
+ return get("D", "") != NULL; |
+} |
+ |