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

Unified Diff: experimental/PdfViewer/SkPdfReferenceDictionary_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/SkPdfReferenceDictionary_autogen.h
===================================================================
--- experimental/PdfViewer/SkPdfReferenceDictionary_autogen.h (revision 9684)
+++ experimental/PdfViewer/SkPdfReferenceDictionary_autogen.h (working copy)
@@ -5,6 +5,7 @@
#include "SkPdfArray_autogen.h"
#include "SkPdfDictionary_autogen.h"
+// Entries in a reference dictionary
class SkPdfReferenceDictionary : public SkPdfDictionary {
public:
virtual SkPdfObjectType getType() const { return kReferenceDictionary_SkPdfObjectType;}
@@ -521,6 +522,12 @@
SkPdfReferenceDictionary& operator=(const SkPdfReferenceDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;}
+/** (Required) The file containing the target document.
+**/
+ bool has_F() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", NULL));
+ }
+
SkPdfFileSpec F() const {
SkPdfFileSpec ret;
if (FileSpecFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", &ret)) return ret;
@@ -528,6 +535,16 @@
return SkPdfFileSpec();
}
+/** (Required) A page index or page label (see Section 8.3.1, "Page Labels")
+ * identifying the page of the target document containing the content to be
+ * imported. Note that the reference is a weak one and can be inadvertently in-
+ * validated if the referenced page is changed or replaced in the target document
+ * after the reference is created.
+**/
+ bool has_Page() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Page", "", NULL));
+ }
+
bool isPageAInteger() const {
SkPdfObject* ret = NULL;
if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Page", "", &ret)) return false;
@@ -554,6 +571,15 @@
return "";
}
+/** (Optional) An array of two strings constituting a file identifier (see Section 9.3,
+ * "File Identifiers") for the file containing the target document. The use of this
+ * entry improves a viewer application's chances of finding the intended file and
+ * allows it to warn the user if the file has changed since the reference was created.
+**/
+ bool has_ID() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ID", "", NULL));
+ }
+
SkPdfArray ID() const {
SkPdfArray ret;
if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ID", "", &ret)) return ret;

Powered by Google App Engine
This is Rietveld 408576698