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

Side by Side Diff: experimental/PdfViewer/autogen/SkPdfBoxColorInformationDictionary_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__SkPdfBoxColorInformationDictionary 1 #ifndef __DEFINED__SkPdfBoxColorInformationDictionary
2 #define __DEFINED__SkPdfBoxColorInformationDictionary 2 #define __DEFINED__SkPdfBoxColorInformationDictionary
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 // Entries in a box color information dictionary 9 // Entries in a box color information dictionary
10 class SkPdfBoxColorInformationDictionary : public SkPdfDictionary { 10 class SkPdfBoxColorInformationDictionary : public SkPdfDictionary {
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 SkPdfBoxColorInformationDictionary& operator=(const SkPdfBoxColorInformationDi ctionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPo dofoObj; return *this;} 526 SkPdfBoxColorInformationDictionary& operator=(const SkPdfBoxColorInformationDi ctionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPo dofoObj; return *this;}
527 527
528 /** (Optional) A box style dictionary (see Table 9.42) specifying the visual cha racteris- 528 /** (Optional) A box style dictionary (see Table 9.42) specifying the visual cha racteris-
529 * tics for displaying guidelines for the page's crop box. This entry is ignore d if no crop 529 * tics for displaying guidelines for the page's crop box. This entry is ignore d if no crop
530 * box is defined in the page object. 530 * box is defined in the page object.
531 **/ 531 **/
532 bool has_CropBox() const { 532 bool has_CropBox() const {
533 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CropB ox", "", NULL)); 533 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CropB ox", "", NULL));
534 } 534 }
535 535
536 SkPdfDictionary* CropBox() const { 536 SkPdfDictionary* CropBox() const;
537 SkPdfDictionary* ret;
538 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CropB ox", "", &ret)) return ret;
539 // TODO(edisonn): warn about missing required field, assert for known good p dfs
540 return NULL;
541 }
542
543 /** (Optional) A box style dictionary (see Table 9.42) specifying the visual cha racteris- 537 /** (Optional) A box style dictionary (see Table 9.42) specifying the visual cha racteris-
544 * tics for displaying guidelines for the page's bleed box. This entry is ignor ed if no 538 * tics for displaying guidelines for the page's bleed box. This entry is ignor ed if no
545 * bleed box is defined in the page object. 539 * bleed box is defined in the page object.
546 **/ 540 **/
547 bool has_BleedBox() const { 541 bool has_BleedBox() const {
548 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Bleed Box", "", NULL)); 542 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Bleed Box", "", NULL));
549 } 543 }
550 544
551 SkPdfDictionary* BleedBox() const { 545 SkPdfDictionary* BleedBox() const;
552 SkPdfDictionary* ret;
553 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Bleed Box", "", &ret)) return ret;
554 // TODO(edisonn): warn about missing required field, assert for known good p dfs
555 return NULL;
556 }
557
558 /** (Optional) A box style dictionary (see Table 9.42) specifying the visual cha racteris- 546 /** (Optional) A box style dictionary (see Table 9.42) specifying the visual cha racteris-
559 * tics for displaying guidelines for the page's trim box. This entry is ignore d if no trim 547 * tics for displaying guidelines for the page's trim box. This entry is ignore d if no trim
560 * box is defined in the page object. 548 * box is defined in the page object.
561 **/ 549 **/
562 bool has_TrimBox() const { 550 bool has_TrimBox() const {
563 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TrimB ox", "", NULL)); 551 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TrimB ox", "", NULL));
564 } 552 }
565 553
566 SkPdfDictionary* TrimBox() const { 554 SkPdfDictionary* TrimBox() const;
567 SkPdfDictionary* ret;
568 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TrimB ox", "", &ret)) return ret;
569 // TODO(edisonn): warn about missing required field, assert for known good p dfs
570 return NULL;
571 }
572
573 /** (Optional) A box style dictionary (see Table 9.42) specifying the visual cha racteris- 555 /** (Optional) A box style dictionary (see Table 9.42) specifying the visual cha racteris-
574 * tics for displaying guidelines for the page's art box. This entry is ignored if no art 556 * tics for displaying guidelines for the page's art box. This entry is ignored if no art
575 * box is defined in the page object. 557 * box is defined in the page object.
576 **/ 558 **/
577 bool has_ArtBox() const { 559 bool has_ArtBox() const {
578 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ArtBo x", "", NULL)); 560 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ArtBo x", "", NULL));
579 } 561 }
580 562
581 SkPdfDictionary* ArtBox() const { 563 SkPdfDictionary* ArtBox() const;
582 SkPdfDictionary* ret;
583 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ArtBo x", "", &ret)) return ret;
584 // TODO(edisonn): warn about missing required field, assert for known good p dfs
585 return NULL;
586 }
587
588 }; 564 };
589 565
590 #endif // __DEFINED__SkPdfBoxColorInformationDictionary 566 #endif // __DEFINED__SkPdfBoxColorInformationDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698