| Index: experimental/PdfViewer/SkPdfType6HalftoneDictionary_autogen.h
|
| ===================================================================
|
| --- experimental/PdfViewer/SkPdfType6HalftoneDictionary_autogen.h (revision 9684)
|
| +++ experimental/PdfViewer/SkPdfType6HalftoneDictionary_autogen.h (working copy)
|
| @@ -5,6 +5,7 @@
|
| #include "SkPdfArray_autogen.h"
|
| #include "SkPdfDictionary_autogen.h"
|
|
|
| +// Additional entries specific to a type 6 halftone dictionary
|
| class SkPdfType6HalftoneDictionary : public SkPdfDictionary {
|
| public:
|
| virtual SkPdfObjectType getType() const { return kType6HalftoneDictionary_SkPdfObjectType;}
|
| @@ -521,6 +522,13 @@
|
|
|
| SkPdfType6HalftoneDictionary& operator=(const SkPdfType6HalftoneDictionary& 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 6 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,12 @@
|
| return "";
|
| }
|
|
|
| +/** (Required) The width of 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 +576,12 @@
|
| return 0;
|
| }
|
|
|
| +/** (Required) The height of 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 +589,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" on page 400) 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;
|
|
|