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

Unified Diff: experimental/PdfViewer/SkPdfChoiceFieldDictionary_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/SkPdfChoiceFieldDictionary_autogen.h
===================================================================
--- experimental/PdfViewer/SkPdfChoiceFieldDictionary_autogen.h (revision 9684)
+++ experimental/PdfViewer/SkPdfChoiceFieldDictionary_autogen.h (working copy)
@@ -5,6 +5,7 @@
#include "SkPdfArray_autogen.h"
#include "SkPdfDictionary_autogen.h"
+// Additional entries specific to a choice field
class SkPdfChoiceFieldDictionary : public SkPdfDictionary {
public:
virtual SkPdfObjectType getType() const { return kChoiceFieldDictionary_SkPdfObjectType;}
@@ -521,6 +522,16 @@
SkPdfChoiceFieldDictionary& operator=(const SkPdfChoiceFieldDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;}
+/** (Required; inheritable) An array of options to be presented to the user. Each element of
+ * the array is either a text string representing one of the available options or a two-element
+ * array consisting of a text string together with a default appearance string for construct-
+ * ing the item's appearance dynamically at viewing time (see "Variable Text" on page 533;
+ * see also implementation note 85 in Appendix H).
+**/
+ bool has_Opt() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Opt", "", NULL));
+ }
+
SkPdfArray Opt() const {
SkPdfArray ret;
if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Opt", "", &ret)) return ret;
@@ -528,6 +539,13 @@
return SkPdfArray();
}
+/** (Optional; inheritable) For scrollable list boxes, the top index (the index in the Opt array
+ * of the first option visible in the list).
+**/
+ bool has_TI() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TI", "", NULL));
+ }
+
long TI() const {
long ret;
if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TI", "", &ret)) return ret;
@@ -535,6 +553,18 @@
return 0;
}
+/** (Sometimes required, otherwise optional; inheritable; PDF 1.4) For choice fields that allow
+ * multiple selection (MultiSelect flag set), an array of integers, sorted in ascending order,
+ * representing the zero-based indices in the Opt array of the currently selected option
+ * items. This entry is required when two or more elements in the Opt array have different
+ * names but the same export value, or when the value of the choice field is an array; in
+ * other cases, it is permitted but not required. If the items identified by this entry differ
+ * from those in the V entry of the field dictionary (see below), the V entry takes precedence.
+**/
+ bool has_I() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "I", "", NULL));
+ }
+
SkPdfArray I() const {
SkPdfArray ret;
if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "I", "", &ret)) return ret;

Powered by Google App Engine
This is Rietveld 408576698