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

Unified Diff: experimental/PdfViewer/SkPdfPopUpAnnotationDictionary_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/SkPdfPopUpAnnotationDictionary_autogen.h
===================================================================
--- experimental/PdfViewer/SkPdfPopUpAnnotationDictionary_autogen.h (revision 9684)
+++ experimental/PdfViewer/SkPdfPopUpAnnotationDictionary_autogen.h (working copy)
@@ -5,6 +5,7 @@
#include "SkPdfArray_autogen.h"
#include "SkPdfDictionary_autogen.h"
+// Additional entries specific to a pop-up annotation
class SkPdfPopUpAnnotationDictionary : public SkPdfDictionary {
public:
virtual SkPdfObjectType getType() const { return kPopUpAnnotationDictionary_SkPdfObjectType;}
@@ -521,6 +522,13 @@
SkPdfPopUpAnnotationDictionary& operator=(const SkPdfPopUpAnnotationDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;}
+/** (Required) The type of annotation that this dictionary describes; must be
+ * Popup for a pop-up annotation.
+**/
+ bool has_Subtype() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", NULL));
+ }
+
std::string Subtype() const {
std::string ret;
if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "", &ret)) return ret;
@@ -528,6 +536,15 @@
return "";
}
+/** (Optional; PDF 1.4) An alternate representation of the annotation's contents
+ * in human-readable form, useful when extracting the document's contents in
+ * support of accessibility to disabled users or for other purposes (see Section
+ * 9.8.2, "Alternate Descriptions").
+**/
+ bool has_Contents() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", NULL));
+ }
+
std::string Contents() const {
std::string ret;
if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents", "", &ret)) return ret;
@@ -535,6 +552,16 @@
return "";
}
+/** (Optional; must be an indirect reference) The parent annotation with which
+ * this pop-up annotation is associated.
+ * Note: If this entry is present, the parent annotation's Contents, M, C, and T
+ * entries (see Table 8.10 on page 490) override those of the pop-up annotation
+ * itself.
+**/
+ bool has_Parent() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Parent", "", NULL));
+ }
+
SkPdfDictionary* Parent() const {
SkPdfDictionary* ret;
if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Parent", "", &ret)) return ret;
@@ -542,6 +569,13 @@
return NULL;
}
+/** (Optional) A flag specifying whether the pop-up annotation should initially
+ * be displayed open. Default value: false (closed).
+**/
+ bool has_Open() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Open", "", NULL));
+ }
+
bool Open() const {
bool ret;
if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Open", "", &ret)) return ret;

Powered by Google App Engine
This is Rietveld 408576698