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

Side by Side Diff: experimental/PdfViewer/autogen/SkPdfPrinterMarkFormDictionary_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__SkPdfPrinterMarkFormDictionary 1 #ifndef __DEFINED__SkPdfPrinterMarkFormDictionary
2 #define __DEFINED__SkPdfPrinterMarkFormDictionary 2 #define __DEFINED__SkPdfPrinterMarkFormDictionary
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 printer's mark form dictionary 9 // Additional entries specific to a printer's mark form dictionary
10 class SkPdfPrinterMarkFormDictionary : public SkPdfDictionary { 10 class SkPdfPrinterMarkFormDictionary : public SkPdfDictionary {
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 525
526 SkPdfPrinterMarkFormDictionary& operator=(const SkPdfPrinterMarkFormDictionary & from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;} 526 SkPdfPrinterMarkFormDictionary& operator=(const SkPdfPrinterMarkFormDictionary & from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;}
527 527
528 /** (Optional; PDF 1.4) A text string representing the printer's mark in 528 /** (Optional; PDF 1.4) A text string representing the printer's mark in
529 * human-readable form, suitable for presentation to the user on the screen. 529 * human-readable form, suitable for presentation to the user on the screen.
530 **/ 530 **/
531 bool has_MarkStyle() const { 531 bool has_MarkStyle() const {
532 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MarkS tyle", "", NULL)); 532 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MarkS tyle", "", NULL));
533 } 533 }
534 534
535 std::string MarkStyle() const { 535 std::string MarkStyle() const;
536 std::string ret;
537 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "MarkStyle ", "", &ret)) return ret;
538 // TODO(edisonn): warn about missing required field, assert for known good p dfs
539 return "";
540 }
541
542 /** (Optional; PDF 1.4) A dictionary identifying the individual colorants 536 /** (Optional; PDF 1.4) A dictionary identifying the individual colorants
543 * associated with a printer's mark such as a color bar. For each entry in this 537 * associated with a printer's mark such as a color bar. For each entry in this
544 * dictionary, the key is a colorant name and the value is an array defining a 538 * dictionary, the key is a colorant name and the value is an array defining a
545 * Separation color space for that colorant (see "Separation Color Spaces" 539 * Separation color space for that colorant (see "Separation Color Spaces"
546 * on page 201). The key must match the colorant name given in that color 540 * on page 201). The key must match the colorant name given in that color
547 * space. 541 * space.
548 **/ 542 **/
549 bool has_Colorants() const { 543 bool has_Colorants() const {
550 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Color ants", "", NULL)); 544 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Color ants", "", NULL));
551 } 545 }
552 546
553 SkPdfDictionary* Colorants() const { 547 SkPdfDictionary* Colorants() const;
554 SkPdfDictionary* ret;
555 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Color ants", "", &ret)) return ret;
556 // TODO(edisonn): warn about missing required field, assert for known good p dfs
557 return NULL;
558 }
559
560 }; 548 };
561 549
562 #endif // __DEFINED__SkPdfPrinterMarkFormDictionary 550 #endif // __DEFINED__SkPdfPrinterMarkFormDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698