skia2/experimental/PdfViewer/pdfparser/native/pdfapi/SkPdfStructureElementAccessDictionary_autogen.cpp

29 lines
1.1 KiB
C++
Raw Normal View History

#include "SkPdfStructureElementAccessDictionary_autogen.h"
#include "SkPdfNativeDoc.h"
int64_t SkPdfStructureElementAccessDictionary::StructParent(SkPdfNativeDoc* doc) {
SkPdfNativeObject* ret = get("StructParent", "");
if (doc) {ret = doc->resolveReference(ret);}
if ((ret != NULL && ret->isInteger()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->intValue();
// TODO(edisonn): warn about missing default value for optional fields
return 0;
}
bool SkPdfStructureElementAccessDictionary::has_StructParent() const {
return get("StructParent", "") != NULL;
}
int64_t SkPdfStructureElementAccessDictionary::StructParents(SkPdfNativeDoc* doc) {
SkPdfNativeObject* ret = get("StructParents", "");
if (doc) {ret = doc->resolveReference(ret);}
if ((ret != NULL && ret->isInteger()) || (doc == NULL && ret != NULL && ret->isReference())) return ret->intValue();
// TODO(edisonn): warn about missing default value for optional fields
return 0;
}
bool SkPdfStructureElementAccessDictionary::has_StructParents() const {
return get("StructParents", "") != NULL;
}