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

Unified Diff: experimental/PdfViewer/SkPdfBorderStyleDictionary_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/SkPdfBorderStyleDictionary_autogen.h
===================================================================
--- experimental/PdfViewer/SkPdfBorderStyleDictionary_autogen.h (revision 9684)
+++ experimental/PdfViewer/SkPdfBorderStyleDictionary_autogen.h (working copy)
@@ -5,6 +5,7 @@
#include "SkPdfArray_autogen.h"
#include "SkPdfDictionary_autogen.h"
+// Entries in a border style dictionary
class SkPdfBorderStyleDictionary : public SkPdfDictionary {
public:
virtual SkPdfObjectType getType() const { return kBorderStyleDictionary_SkPdfObjectType;}
@@ -521,6 +522,13 @@
SkPdfBorderStyleDictionary& operator=(const SkPdfBorderStyleDictionary& 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
+ * Border for a border style 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 "";
}
+/** (Optional) The border width in points. If this value is 0, no border is drawn. Default
+ * value: 1.
+**/
+ bool has_W() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "W", "", NULL));
+ }
+
double W() const {
double ret;
if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "W", "", &ret)) return ret;
@@ -535,6 +550,22 @@
return 0;
}
+/** (Optional) The border style:
+ * S (Solid) A solid rectangle surrounding the annotation.
+ * D (Dashed) A dashed rectangle surrounding the annotation. The dash pattern
+ * is specified by the D entry (see below).
+ * B (Beveled) A simulated embossed rectangle that appears to be raised above the
+ * surface of the page.
+ * I (Inset) A simulated engraved rectangle that appears to be recessed below the
+ * surface of the page.
+ * U (Underline) A single line along the bottom of the annotation rectangle.
+ * Other border styles may be defined in the future. (See implementation note 64 in
+ * Appendix H.) Default value: S.
+**/
+ bool has_S() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", NULL));
+ }
+
std::string S() const {
std::string ret;
if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &ret)) return ret;
@@ -542,6 +573,17 @@
return "";
}
+/** (Optional) A dash array defining a pattern of dashes and gaps to be used in drawing a
+ * dashed border (border style D above). The dash array is specified in the same format
+ * as in the line dash pattern parameter of the graphics state (see "Line Dash Pattern" on
+ * page 155). The dash phase is not specified and is assumed to be 0. For example, a D
+ * entry of [3 2] specifies a border drawn with 3-point dashes alternating with 2-point
+ * gaps. Default value: [3].
+**/
+ bool has_D() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", NULL));
+ }
+
SkPdfArray D() const {
SkPdfArray ret;
if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", &ret)) return ret;

Powered by Google App Engine
This is Rietveld 408576698