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

Side by Side Diff: experimental/PdfViewer/SkPdfStructureElementAccessDictionary_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__SkPdfStructureElementAccessDictionary 1 #ifndef __DEFINED__SkPdfStructureElementAccessDictionary
2 #define __DEFINED__SkPdfStructureElementAccessDictionary 2 #define __DEFINED__SkPdfStructureElementAccessDictionary
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 dictionary entries for structure element access
8 class SkPdfStructureElementAccessDictionary : public SkPdfDictionary { 9 class SkPdfStructureElementAccessDictionary : public SkPdfDictionary {
9 public: 10 public:
10 virtual SkPdfObjectType getType() const { return kStructureElementAccessDictio nary_SkPdfObjectType;} 11 virtual SkPdfObjectType getType() const { return kStructureElementAccessDictio nary_SkPdfObjectType;}
11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kStructu reElementAccessDictionary_SkPdfObjectType + 1);} 12 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kStructu reElementAccessDictionary_SkPdfObjectType + 1);}
12 public: 13 public:
13 virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDiction ary() {return this;} 14 virtual SkPdfStructureElementAccessDictionary* asStructureElementAccessDiction ary() {return this;}
14 virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessD ictionary() const {return this;} 15 virtual const SkPdfStructureElementAccessDictionary* asStructureElementAccessD ictionary() 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 SkPdfStructureElementAccessDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} 519 SkPdfStructureElementAccessDictionary(const PdfMemDocument* podofoDoc = NULL, 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 SkPdfStructureElementAccessDictionary& operator=(const SkPdfStructureElementAc cessDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = fr om.fPodofoObj; return *this;} 523 SkPdfStructureElementAccessDictionary& operator=(const SkPdfStructureElementAc cessDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = fr om.fPodofoObj; return *this;}
523 524
525 /** (Required for all objects that are structural content items; PDF 1.3) The in teger key
526 * of this object's entry in the structural parent tree.
527 **/
528 bool has_StructParent() const {
529 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Struc tParent", "", NULL));
530 }
531
524 long StructParent() const { 532 long StructParent() const {
525 long ret; 533 long ret;
526 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StructParen t", "", &ret)) return ret; 534 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StructParen t", "", &ret)) return ret;
527 // TODO(edisonn): warn about missing required field, assert for known good p dfs 535 // TODO(edisonn): warn about missing required field, assert for known good p dfs
528 return 0; 536 return 0;
529 } 537 }
530 538
539 /** (Required for all content streams containing marked-content sequences that a re
540 * structural content items; PDF 1.3) The integer key of this object's entry in the
541 * structural parent tree.
542 * Note: At most one of these two entries may be present in a given object. An object
543 * can be either a content item in its entirety or a container for marked-conte nt
544 * sequences that are content items, but not both.
545 **/
546 bool has_StructParents() const {
547 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Struc tParents", "", NULL));
548 }
549
531 long StructParents() const { 550 long StructParents() const {
532 long ret; 551 long ret;
533 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StructParen ts", "", &ret)) return ret; 552 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StructParen ts", "", &ret)) return ret;
534 // TODO(edisonn): warn about missing required field, assert for known good p dfs 553 // TODO(edisonn): warn about missing required field, assert for known good p dfs
535 return 0; 554 return 0;
536 } 555 }
537 556
538 }; 557 };
539 558
540 #endif // __DEFINED__SkPdfStructureElementAccessDictionary 559 #endif // __DEFINED__SkPdfStructureElementAccessDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698