Index: experimental/PdfViewer/SkPdfType16HalftoneDictionary_autogen.h |
=================================================================== |
--- experimental/PdfViewer/SkPdfType16HalftoneDictionary_autogen.h (revision 9684) |
+++ experimental/PdfViewer/SkPdfType16HalftoneDictionary_autogen.h (working copy) |
@@ -5,6 +5,7 @@ |
#include "SkPdfArray_autogen.h" |
#include "SkPdfDictionary_autogen.h" |
+// Additional entries specific to a type 16 halftone dictionary |
class SkPdfType16HalftoneDictionary : public SkPdfDictionary { |
public: |
virtual SkPdfObjectType getType() const { return kType16HalftoneDictionary_SkPdfObjectType;} |
@@ -521,6 +522,13 @@ |
SkPdfType16HalftoneDictionary& operator=(const SkPdfType16HalftoneDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} |
+/** (Optional) The type of PDF object that this dictionary describes; if |
+ * present, must be Halftone for a halftone dictionary. |
+**/ |
+ 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) A code identifying the halftone type that this dictionary |
+ * describes; must be 16 for this type of halftone. |
+**/ |
+ bool has_HalftoneType() const { |
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HalftoneType", "", NULL)); |
+ } |
+ |
long HalftoneType() const { |
long ret; |
if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HalftoneType", "", &ret)) return ret; |
@@ -535,6 +550,12 @@ |
return 0; |
} |
+/** (Optional) The name of the halftone dictionary. |
+**/ |
+ bool has_HalftoneName() const { |
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HalftoneName", "", NULL)); |
+ } |
+ |
std::string HalftoneName() const { |
std::string ret; |
if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HalftoneName", "", &ret)) return ret; |
@@ -542,6 +563,13 @@ |
return ""; |
} |
+/** (Required) The width of the first (or only) rectangle in the threshold |
+ * array, in device pixels. |
+**/ |
+ bool has_Width() const { |
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Width", "", NULL)); |
+ } |
+ |
long Width() const { |
long ret; |
if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Width", "", &ret)) return ret; |
@@ -549,6 +577,13 @@ |
return 0; |
} |
+/** (Required) The height of the first (or only) rectangle in the threshold |
+ * array, in device pixels. |
+**/ |
+ bool has_Height() const { |
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Height", "", NULL)); |
+ } |
+ |
long Height() const { |
long ret; |
if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Height", "", &ret)) return ret; |
@@ -556,6 +591,15 @@ |
return 0; |
} |
+/** (Optional) The width of the optional second rectangle in the threshold |
+ * array, in device pixels. If this entry is present, the Height2 entry must |
+ * be present as well; if this entry is absent, the Height2 entry must also be |
+ * absent and the threshold array has only one rectangle. |
+**/ |
+ bool has_Width2() const { |
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Width2", "", NULL)); |
+ } |
+ |
long Width2() const { |
long ret; |
if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Width2", "", &ret)) return ret; |
@@ -563,6 +607,13 @@ |
return 0; |
} |
+/** (Optional) The height of the optional second rectangle in the threshold |
+ * array, in device pixels. |
+**/ |
+ bool has_Height2() const { |
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Height2", "", NULL)); |
+ } |
+ |
long Height2() const { |
long ret; |
if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Height2", "", &ret)) return ret; |
@@ -570,6 +621,18 @@ |
return 0; |
} |
+/** (Optional) A transfer function, which overrides the current transfer |
+ * function in the graphics state for the same component. This entry is |
+ * required if the dictionary is a component of a type 5 halftone (see |
+ * "Type 5 Halftones," below) and represents either a nonprimary or |
+ * nonstandard primary color component (see Section 6.3, "Transfer |
+ * Functions"). The name Identity may be used to specify the identity |
+ * function. |
+**/ |
+ bool has_TransferFunction() const { |
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TransferFunction", "", NULL)); |
+ } |
+ |
bool isTransferFunctionAFunction() const { |
SkPdfObject* ret = NULL; |
if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TransferFunction", "", &ret)) return false; |