Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Unified Diff: experimental/PdfViewer/SkPdfType10HalftoneDictionary_autogen.h

Issue 16975013: Deal with ca and CA transparency operators in pdf. add comments to generated classes. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: experimental/PdfViewer/SkPdfType10HalftoneDictionary_autogen.h
===================================================================
--- experimental/PdfViewer/SkPdfType10HalftoneDictionary_autogen.h (revision 9684)
+++ experimental/PdfViewer/SkPdfType10HalftoneDictionary_autogen.h (working copy)
@@ -5,6 +5,7 @@
#include "SkPdfArray_autogen.h"
#include "SkPdfDictionary_autogen.h"
+// Additional entries specific to a type 10 halftone dictionary
class SkPdfType10HalftoneDictionary : public SkPdfDictionary {
public:
virtual SkPdfObjectType getType() const { return kType10HalftoneDictionary_SkPdfObjectType;}
@@ -521,6 +522,13 @@
SkPdfType10HalftoneDictionary& operator=(const SkPdfType10HalftoneDictionary& 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 10 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 side of square X, in device pixels; see below.
+**/
+ bool has_Xsquare() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Xsquare", "", NULL));
+ }
+
long Xsquare() const {
long ret;
if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Xsquare", "", &ret)) return ret;
@@ -549,6 +576,12 @@
return 0;
}
+/** (Required) The side of square Y, in device pixels; see below.
+**/
+ bool has_Ysquare() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Ysquare", "", NULL));
+ }
+
long Ysquare() const {
long ret;
if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Ysquare", "", &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;

Powered by Google App Engine
This is Rietveld 408576698