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

Side by Side Diff: experimental/PdfViewer/SkPdfWindowsLaunchActionDictionary_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__SkPdfWindowsLaunchActionDictionary 1 #ifndef __DEFINED__SkPdfWindowsLaunchActionDictionary
2 #define __DEFINED__SkPdfWindowsLaunchActionDictionary 2 #define __DEFINED__SkPdfWindowsLaunchActionDictionary
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 // Entries in a Windows launch parameter dictionary
8 class SkPdfWindowsLaunchActionDictionary : public SkPdfDictionary { 9 class SkPdfWindowsLaunchActionDictionary : public SkPdfDictionary {
9 public: 10 public:
10 virtual SkPdfObjectType getType() const { return kWindowsLaunchActionDictionar y_SkPdfObjectType;} 11 virtual SkPdfObjectType getType() const { return kWindowsLaunchActionDictionar y_SkPdfObjectType;}
11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kWindows LaunchActionDictionary_SkPdfObjectType + 1);} 12 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kWindows LaunchActionDictionary_SkPdfObjectType + 1);}
12 public: 13 public:
13 virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return this;} 14 virtual SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDictionary() {return this;}
14 virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDiction ary() const {return this;} 15 virtual const SkPdfWindowsLaunchActionDictionary* asWindowsLaunchActionDiction ary() 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 SkPdfWindowsLaunchActionDictionary(const PdfMemDocument* podofoDoc = NULL, con st PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} 519 SkPdfWindowsLaunchActionDictionary(const PdfMemDocument* podofoDoc = NULL, con st 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 SkPdfWindowsLaunchActionDictionary& operator=(const SkPdfWindowsLaunchActionDi ctionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPo dofoObj; return *this;} 523 SkPdfWindowsLaunchActionDictionary& operator=(const SkPdfWindowsLaunchActionDi ctionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPo dofoObj; return *this;}
523 524
525 /** (Required) The file name of the application to be launched or the document
526 * to be opened or printed, in standard Windows pathname format. If the name
527 * string includes a backslash character (\), the backslash must itself be prec eded
528 * by a backslash.
529 * Note: This value must be a simple string; it is not a file specification.
530 **/
531 bool has_F() const {
532 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", " ", NULL));
533 }
534
524 std::string F() const { 535 std::string F() const {
525 std::string ret; 536 std::string ret;
526 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", & ret)) return ret; 537 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", & ret)) return ret;
527 // TODO(edisonn): warn about missing required field, assert for known good p dfs 538 // TODO(edisonn): warn about missing required field, assert for known good p dfs
528 return ""; 539 return "";
529 } 540 }
530 541
542 /** (Optional) A string specifying the default directory in standard DOS syntax.
543 **/
544 bool has_D() const {
545 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", " ", NULL));
546 }
547
531 std::string D() const { 548 std::string D() const {
532 std::string ret; 549 std::string ret;
533 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", & ret)) return ret; 550 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", & ret)) return ret;
534 // TODO(edisonn): warn about missing required field, assert for known good p dfs 551 // TODO(edisonn): warn about missing required field, assert for known good p dfs
535 return ""; 552 return "";
536 } 553 }
537 554
555 /** (Optional) A string specifying the operation to perform:
556 * open Open a document.
557 * print Print a document.
558 * If the F entry designates an application instead of a document, this entry i s ig-
559 * nored and the application is launched. Default value: open.
560 **/
561 bool has_O() const {
562 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "O", " ", NULL));
563 }
564
538 std::string O() const { 565 std::string O() const {
539 std::string ret; 566 std::string ret;
540 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "O", "", & ret)) return ret; 567 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "O", "", & ret)) return ret;
541 // TODO(edisonn): warn about missing required field, assert for known good p dfs 568 // TODO(edisonn): warn about missing required field, assert for known good p dfs
542 return ""; 569 return "";
543 } 570 }
544 571
572 /** (Optional) A parameter string to be passed to the application designated by
573 * the F entry. This entry should be omitted if F designates a document.
574 **/
575 bool has_P() const {
576 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", " ", NULL));
577 }
578
545 std::string P() const { 579 std::string P() const {
546 std::string ret; 580 std::string ret;
547 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", "", & ret)) return ret; 581 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", "", & ret)) return ret;
548 // TODO(edisonn): warn about missing required field, assert for known good p dfs 582 // TODO(edisonn): warn about missing required field, assert for known good p dfs
549 return ""; 583 return "";
550 } 584 }
551 585
552 }; 586 };
553 587
554 #endif // __DEFINED__SkPdfWindowsLaunchActionDictionary 588 #endif // __DEFINED__SkPdfWindowsLaunchActionDictionary
OLDNEW
« no previous file with comments | « experimental/PdfViewer/SkPdfWidgetAnnotationDictionary_autogen.h ('k') | experimental/PdfViewer/generate_code.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698