SkPdfFDFTrailerDictionary_autogen.cpp revision 8cee797901763ab0922eb9ef484cfdcbc94bee54
1#include "SkPdfFDFTrailerDictionary_autogen.h" 2 3 4#include "SkPdfNativeDoc.h" 5SkPdfDictionary* SkPdfFDFTrailerDictionary::Root(SkPdfNativeDoc* doc) { 6 SkPdfNativeObject* ret = get("Root", ""); 7 if (doc) {ret = doc->resolveReference(ret);} 8 if ((ret != NULL && ret->isDictionary()) || (doc == NULL && ret != NULL && ret->isReference())) return (SkPdfDictionary*)ret; 9 // TODO(edisonn): warn about missing default value for optional fields 10 return NULL; 11} 12 13bool SkPdfFDFTrailerDictionary::has_Root() const { 14 return get("Root", "") != NULL; 15} 16 17