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

Side by Side Diff: experimental/PdfViewer/SkPdfEncryptedEmbeddedFileStreamDictionary_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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #ifndef __DEFINED__SkPdfEncryptedEmbeddedFileStreamDictionary 1 #ifndef __DEFINED__SkPdfEncryptedEmbeddedFileStreamDictionary
2 #define __DEFINED__SkPdfEncryptedEmbeddedFileStreamDictionary 2 #define __DEFINED__SkPdfEncryptedEmbeddedFileStreamDictionary
3 3
4 #include "SkPdfEnums_autogen.h" 4 #include "SkPdfEnums_autogen.h"
5 #include "SkPdfArray_autogen.h" 5 #include "SkPdfArray_autogen.h"
6 #include "SkPdfDictionary_autogen.h" 6 #include "SkPdfDictionary_autogen.h"
7 7
8 // Additional entry in an embedded file stream dictionary for an encrypted FDF f ile
8 class SkPdfEncryptedEmbeddedFileStreamDictionary : public SkPdfDictionary { 9 class SkPdfEncryptedEmbeddedFileStreamDictionary : public SkPdfDictionary {
9 public: 10 public:
10 virtual SkPdfObjectType getType() const { return kEncryptedEmbeddedFileStreamD ictionary_SkPdfObjectType;} 11 virtual SkPdfObjectType getType() const { return kEncryptedEmbeddedFileStreamD ictionary_SkPdfObjectType;}
11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kEncrypt edEmbeddedFileStreamDictionary_SkPdfObjectType + 1);} 12 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kEncrypt edEmbeddedFileStreamDictionary_SkPdfObjectType + 1);}
12 public: 13 public:
13 virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStr eamDictionary() {return this;} 14 virtual SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedFileStr eamDictionary() {return this;}
14 virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedF ileStreamDictionary() const {return this;} 15 virtual const SkPdfEncryptedEmbeddedFileStreamDictionary* asEncryptedEmbeddedF ileStreamDictionary() const {return this;}
15 16
16 private: 17 private:
17 virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;} 18 virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return NULL;}
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 515
515 public: 516 public:
516 private: 517 private:
517 public: 518 public:
518 SkPdfEncryptedEmbeddedFileStreamDictionary(const PdfMemDocument* podofoDoc = N ULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} 519 SkPdfEncryptedEmbeddedFileStreamDictionary(const PdfMemDocument* podofoDoc = N ULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {}
519 520
520 virtual bool valid() const {return true;} 521 virtual bool valid() const {return true;}
521 522
522 SkPdfEncryptedEmbeddedFileStreamDictionary& operator=(const SkPdfEncryptedEmbe ddedFileStreamDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodo foObj = from.fPodofoObj; return *this;} 523 SkPdfEncryptedEmbeddedFileStreamDictionary& operator=(const SkPdfEncryptedEmbe ddedFileStreamDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodo foObj = from.fPodofoObj; return *this;}
523 524
525 /** (Required if the FDF file is encrypted; PDF 1.4) The revision number of the
526 * FDF encryption algorithm used to encrypt the file. The only valid value
527 * defined at the time of publication is 1.
528 **/
529 bool has_EncryptionRevision() const {
530 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Encry ptionRevision", "", NULL));
531 }
532
524 long EncryptionRevision() const { 533 long EncryptionRevision() const {
525 long ret; 534 long ret;
526 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "EncryptionR evision", "", &ret)) return ret; 535 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "EncryptionR evision", "", &ret)) return ret;
527 // TODO(edisonn): warn about missing required field, assert for known good p dfs 536 // TODO(edisonn): warn about missing required field, assert for known good p dfs
528 return 0; 537 return 0;
529 } 538 }
530 539
531 }; 540 };
532 541
533 #endif // __DEFINED__SkPdfEncryptedEmbeddedFileStreamDictionary 542 #endif // __DEFINED__SkPdfEncryptedEmbeddedFileStreamDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698