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

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

Issue 17856004: refactoring for pdf viewer lib (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 5 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__SkPdfWebCapturePageSetDictionary 1 #ifndef __DEFINED__SkPdfWebCapturePageSetDictionary
2 #define __DEFINED__SkPdfWebCapturePageSetDictionary 2 #define __DEFINED__SkPdfWebCapturePageSetDictionary
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 entries specific to a Web Capture page set 9 // Additional entries specific to a Web Capture page set
10 class SkPdfWebCapturePageSetDictionary : public SkPdfDictionary { 10 class SkPdfWebCapturePageSetDictionary : public SkPdfDictionary {
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 525
526 SkPdfWebCapturePageSetDictionary& operator=(const SkPdfWebCapturePageSetDictio nary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofo Obj; return *this;} 526 SkPdfWebCapturePageSetDictionary& operator=(const SkPdfWebCapturePageSetDictio nary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofo Obj; return *this;}
527 527
528 /** (Required) The subtype of content set that this dictionary describes; must b e SPS 528 /** (Required) The subtype of content set that this dictionary describes; must b e SPS
529 * ("Spider page set") for a page set. 529 * ("Spider page set") for a page set.
530 **/ 530 **/
531 bool has_S() const { 531 bool has_S() const {
532 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", " ", NULL)); 532 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", " ", NULL));
533 } 533 }
534 534
535 std::string S() const { 535 std::string S() const;
536 std::string ret;
537 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &re t)) return ret;
538 // TODO(edisonn): warn about missing required field, assert for known good p dfs
539 return "";
540 }
541
542 /** (Optional) The title of the page set, a text string representing it in human -readable 536 /** (Optional) The title of the page set, a text string representing it in human -readable
543 * form. 537 * form.
544 **/ 538 **/
545 bool has_T() const { 539 bool has_T() const {
546 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "T", " ", NULL)); 540 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "T", " ", NULL));
547 } 541 }
548 542
549 std::string T() const { 543 std::string T() const;
550 std::string ret;
551 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "T", "", & ret)) return ret;
552 // TODO(edisonn): warn about missing required field, assert for known good p dfs
553 return "";
554 }
555
556 /** (Optional) A text identifier generated from the text of the page set, as des cribed in 544 /** (Optional) A text identifier generated from the text of the page set, as des cribed in
557 * "Digital Identifiers" on page 664. 545 * "Digital Identifiers" on page 664.
558 **/ 546 **/
559 bool has_TID() const { 547 bool has_TID() const {
560 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TID", "", NULL)); 548 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TID", "", NULL));
561 } 549 }
562 550
563 std::string TID() const { 551 std::string TID() const;
564 std::string ret;
565 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TID", "", &ret)) return ret;
566 // TODO(edisonn): warn about missing required field, assert for known good p dfs
567 return "";
568 }
569
570 }; 552 };
571 553
572 #endif // __DEFINED__SkPdfWebCapturePageSetDictionary 554 #endif // __DEFINED__SkPdfWebCapturePageSetDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698