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

Side by Side Diff: experimental/PdfViewer/autogen/SkPdfStructureElementAccessDictionary_autogen.h

Issue 17856004: refactoring for pdf viewer lib (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 "SkPdfUtils.h" 4 #include "SkPdfUtils.h"
5 #include "SkPdfEnums_autogen.h" 5 #include "SkPdfEnums_autogen.h"
6 #include "SkPdfArray_autogen.h" 6 #include "SkPdfArray_autogen.h"
7 #include "SkPdfDictionary_autogen.h" 7 #include "SkPdfDictionary_autogen.h"
8 8
9 // Additional dictionary entries for structure element access 9 // Additional dictionary entries for structure element access
10 class SkPdfStructureElementAccessDictionary : public SkPdfDictionary { 10 class SkPdfStructureElementAccessDictionary : public SkPdfDictionary {
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 525
526 SkPdfStructureElementAccessDictionary& operator=(const SkPdfStructureElementAc cessDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = fr om.fPodofoObj; return *this;} 526 SkPdfStructureElementAccessDictionary& operator=(const SkPdfStructureElementAc cessDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = fr om.fPodofoObj; return *this;}
527 527
528 /** (Required for all objects that are structural content items; PDF 1.3) The in teger key 528 /** (Required for all objects that are structural content items; PDF 1.3) The in teger key
529 * of this object's entry in the structural parent tree. 529 * of this object's entry in the structural parent tree.
530 **/ 530 **/
531 bool has_StructParent() const { 531 bool has_StructParent() const {
532 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Struc tParent", "", NULL)); 532 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Struc tParent", "", NULL));
533 } 533 }
534 534
535 long StructParent() const { 535 long StructParent() const;
536 long ret;
537 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StructParen t", "", &ret)) return ret;
538 // TODO(edisonn): warn about missing required field, assert for known good p dfs
539 return 0;
540 }
541
542 /** (Required for all content streams containing marked-content sequences that a re 536 /** (Required for all content streams containing marked-content sequences that a re
543 * structural content items; PDF 1.3) The integer key of this object's entry in the 537 * structural content items; PDF 1.3) The integer key of this object's entry in the
544 * structural parent tree. 538 * structural parent tree.
545 * Note: At most one of these two entries may be present in a given object. An object 539 * Note: At most one of these two entries may be present in a given object. An object
546 * can be either a content item in its entirety or a container for marked-conte nt 540 * can be either a content item in its entirety or a container for marked-conte nt
547 * sequences that are content items, but not both. 541 * sequences that are content items, but not both.
548 **/ 542 **/
549 bool has_StructParents() const { 543 bool has_StructParents() const {
550 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Struc tParents", "", NULL)); 544 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Struc tParents", "", NULL));
551 } 545 }
552 546
553 long StructParents() const { 547 long StructParents() const;
554 long ret;
555 if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "StructParen ts", "", &ret)) return ret;
556 // TODO(edisonn): warn about missing required field, assert for known good p dfs
557 return 0;
558 }
559
560 }; 548 };
561 549
562 #endif // __DEFINED__SkPdfStructureElementAccessDictionary 550 #endif // __DEFINED__SkPdfStructureElementAccessDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698