Index: experimental/PdfViewer/SkPdfPageTreeNodeDictionary_autogen.h |
=================================================================== |
--- experimental/PdfViewer/SkPdfPageTreeNodeDictionary_autogen.h (revision 9684) |
+++ experimental/PdfViewer/SkPdfPageTreeNodeDictionary_autogen.h (working copy) |
@@ -5,6 +5,7 @@ |
#include "SkPdfArray_autogen.h" |
#include "SkPdfDictionary_autogen.h" |
+// Required entries in a page tree node |
class SkPdfPageTreeNodeDictionary : public SkPdfDictionary { |
public: |
virtual SkPdfObjectType getType() const { return kPageTreeNodeDictionary_SkPdfObjectType;} |
@@ -521,6 +522,13 @@ |
SkPdfPageTreeNodeDictionary& operator=(const SkPdfPageTreeNodeDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} |
+/** (Required) The type of PDF object that this dictionary describes; must be Pages for |
+ * a page tree node. |
+**/ |
+ bool has_Type() const { |
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); |
+ } |
+ |
std::string Type() const { |
std::string ret; |
if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", &ret)) return ret; |
@@ -528,6 +536,13 @@ |
return ""; |
} |
+/** (Required except in root node; must be an indirect reference) The page tree node that |
+ * is the immediate parent of this one. |
+**/ |
+ bool has_Parent() const { |
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Parent", "", NULL)); |
+ } |
+ |
SkPdfDictionary* Parent() const { |
SkPdfDictionary* ret; |
if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Parent", "", &ret)) return ret; |
@@ -535,6 +550,13 @@ |
return NULL; |
} |
+/** (Required) An array of indirect references to the immediate children of this node. |
+ * The children may be page objects or other page tree nodes. |
+**/ |
+ bool has_Kids() const { |
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Kids", "", NULL)); |
+ } |
+ |
SkPdfArray Kids() const { |
SkPdfArray ret; |
if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Kids", "", &ret)) return ret; |
@@ -542,6 +564,13 @@ |
return SkPdfArray(); |
} |
+/** (Required) The number of leaf nodes (page objects) that are descendants of this |
+ * node within the page tree. |
+**/ |
+ bool has_Count() const { |
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Count", "", NULL)); |
+ } |
+ |
long Count() const { |
long ret; |
if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Count", "", &ret)) return ret; |