Index: experimental/PdfViewer/autogen/SkPdfStructureElementDictionary_autogen.h |
=================================================================== |
--- experimental/PdfViewer/autogen/SkPdfStructureElementDictionary_autogen.h (revision 9765) |
+++ experimental/PdfViewer/autogen/SkPdfStructureElementDictionary_autogen.h (working copy) |
@@ -532,13 +532,7 @@ |
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type", "", NULL)); |
} |
- std::string 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 Type() const; |
/** (Required) The structure type, a name object identifying the nature of the |
* structure element and its role within the document, such as a chapter, |
* paragraph, or footnote (see Section 9.6.2, "Structure Types"). Names of |
@@ -548,13 +542,7 @@ |
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", NULL)); |
} |
- std::string S() const { |
- std::string ret; |
- if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return ""; |
- } |
- |
+ std::string S() const; |
/** (Required; must be an indirect reference) The structure element that is the |
* immediate parent of this one in the structure hierarchy. |
**/ |
@@ -562,13 +550,7 @@ |
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", "", NULL)); |
} |
- SkPdfDictionary* 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; |
- } |
- |
+ SkPdfDictionary* P() const; |
/** (Optional) The element identifier, a string designating this structure |
* element. The string must be unique among all elements in the docu- |
* ment's structure hierarchy. The IDTree entry in the structure tree root |
@@ -579,13 +561,7 @@ |
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ID", "", NULL)); |
} |
- std::string ID() const { |
- std::string ret; |
- if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ID", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return ""; |
- } |
- |
+ std::string ID() const; |
/** (Optional; must be an indirect reference) A page object representing a |
* page on which some or all of the content items designated by the K entry |
* are rendered. |
@@ -594,13 +570,7 @@ |
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Pg", "", NULL)); |
} |
- SkPdfDictionary* Pg() const { |
- SkPdfDictionary* ret; |
- if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Pg", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return NULL; |
- } |
- |
+ SkPdfDictionary* Pg() const; |
/** (Optional) The contents of this structure element, which may consist of |
* one or more marked-content sequences, PDF objects, and other struc- |
* ture elements. The value of this entry may be any of the following: |
@@ -618,13 +588,7 @@ |
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "K", "", NULL)); |
} |
- SkPdfObject* K() const { |
- SkPdfObject* ret; |
- if (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "K", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return NULL; |
- } |
- |
+ SkPdfObject* K() const; |
/** (Optional) The attribute object or objects, if any, associated with this |
* structure element. Each attribute object is either a dictionary or a |
* stream; the value of this entry may be either a single attribute object or |
@@ -636,13 +600,7 @@ |
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "A", "", NULL)); |
} |
- SkPdfObject* A() const { |
- SkPdfObject* ret; |
- if (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "A", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return NULL; |
- } |
- |
+ SkPdfObject* A() const; |
/** (Optional) The attribute class or classes, if any, to which this structure |
* element belongs. The value of this entry may be either a single class |
* name or an array of class names together with their revision numbers |
@@ -661,26 +619,14 @@ |
return ret->podofo()->GetDataType() == ePdfDataType_Name; |
} |
- std::string getCAsName() const { |
- std::string ret = ""; |
- if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return ""; |
- } |
- |
+ std::string getCAsName() const; |
bool isCAArray() const { |
SkPdfObject* ret = NULL; |
if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "", &ret)) return false; |
return ret->podofo()->GetDataType() == ePdfDataType_Array; |
} |
- SkPdfArray* getCAsArray() const { |
- SkPdfArray* ret = NULL; |
- if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return NULL; |
- } |
- |
+ SkPdfArray* getCAsArray() const; |
/** (Optional) The current revision number of this structure element (see |
* "Attribute Revision Numbers" on page 606). The value must be a non- |
* negative integer. Default value: 0. |
@@ -689,13 +635,7 @@ |
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "R", "", NULL)); |
} |
- long R() const { |
- long ret; |
- if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "R", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return 0; |
- } |
- |
+ long R() const; |
/** (Optional) The title of the structure element, a text string representing it |
* in human-readable form. The title should characterize the specific struc- |
* ture element, such as Chapter 1, rather than merely a generic element |
@@ -705,13 +645,7 @@ |
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "T", "", NULL)); |
} |
- std::string 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 ""; |
- } |
- |
+ std::string T() const; |
/** (Optional; PDF 1.4) A language identifier specifying the natural language |
* for all text in the structure element except where overridden by language |
* specifications for nested structure elements or marked content (see Sec- |
@@ -722,13 +656,7 @@ |
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Lang", "", NULL)); |
} |
- std::string Lang() const { |
- std::string ret; |
- if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Lang", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return ""; |
- } |
- |
+ std::string Lang() const; |
/** (Optional) An alternate description of the structure element and its |
* children in human-readable form, useful when extracting the docu- |
* ment's contents in support of accessibility to disabled users or for other |
@@ -738,13 +666,7 @@ |
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Alt", "", NULL)); |
} |
- std::string Alt() const { |
- std::string ret; |
- if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Alt", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return ""; |
- } |
- |
+ std::string Alt() const; |
/** (Optional; PDF 1.4) Text that is an exact replacement for the structure |
* element and its children. This replacement text (which should apply to |
* as small a piece of content as possible) is useful when extracting the doc- |
@@ -755,13 +677,7 @@ |
return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ActualText", "", NULL)); |
} |
- std::string ActualText() const { |
- std::string ret; |
- if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ActualText", "", &ret)) return ret; |
- // TODO(edisonn): warn about missing required field, assert for known good pdfs |
- return ""; |
- } |
- |
+ std::string ActualText() const; |
}; |
#endif // __DEFINED__SkPdfStructureElementDictionary |