OLD | NEW |
1 #ifndef __DEFINED__SkPdfWindowsLaunchActionDictionary | 1 #ifndef __DEFINED__SkPdfWindowsLaunchActionDictionary |
2 #define __DEFINED__SkPdfWindowsLaunchActionDictionary | 2 #define __DEFINED__SkPdfWindowsLaunchActionDictionary |
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 Windows launch parameter dictionary | 9 // Entries in a Windows launch parameter dictionary |
10 class SkPdfWindowsLaunchActionDictionary : public SkPdfDictionary { | 10 class SkPdfWindowsLaunchActionDictionary : public SkPdfDictionary { |
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
528 /** (Required) The file name of the application to be launched or the document | 528 /** (Required) The file name of the application to be launched or the document |
529 * to be opened or printed, in standard Windows pathname format. If the name | 529 * to be opened or printed, in standard Windows pathname format. If the name |
530 * string includes a backslash character (\), the backslash must itself be prec
eded | 530 * string includes a backslash character (\), the backslash must itself be prec
eded |
531 * by a backslash. | 531 * by a backslash. |
532 * Note: This value must be a simple string; it is not a file specification. | 532 * Note: This value must be a simple string; it is not a file specification. |
533 **/ | 533 **/ |
534 bool has_F() const { | 534 bool has_F() const { |
535 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "
", NULL)); | 535 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "
", NULL)); |
536 } | 536 } |
537 | 537 |
538 std::string F() const { | 538 std::string F() const; |
539 std::string ret; | |
540 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", &
ret)) return ret; | |
541 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
542 return ""; | |
543 } | |
544 | |
545 /** (Optional) A string specifying the default directory in standard DOS syntax. | 539 /** (Optional) A string specifying the default directory in standard DOS syntax. |
546 **/ | 540 **/ |
547 bool has_D() const { | 541 bool has_D() const { |
548 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "
", NULL)); | 542 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "
", NULL)); |
549 } | 543 } |
550 | 544 |
551 std::string D() const { | 545 std::string D() const; |
552 std::string ret; | |
553 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "D", "", &
ret)) return ret; | |
554 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
555 return ""; | |
556 } | |
557 | |
558 /** (Optional) A string specifying the operation to perform: | 546 /** (Optional) A string specifying the operation to perform: |
559 * open Open a document. | 547 * open Open a document. |
560 * print Print a document. | 548 * print Print a document. |
561 * If the F entry designates an application instead of a document, this entry i
s ig- | 549 * If the F entry designates an application instead of a document, this entry i
s ig- |
562 * nored and the application is launched. Default value: open. | 550 * nored and the application is launched. Default value: open. |
563 **/ | 551 **/ |
564 bool has_O() const { | 552 bool has_O() const { |
565 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "O", "
", NULL)); | 553 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "O", "
", NULL)); |
566 } | 554 } |
567 | 555 |
568 std::string O() const { | 556 std::string O() const; |
569 std::string ret; | |
570 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "O", "", &
ret)) return ret; | |
571 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
572 return ""; | |
573 } | |
574 | |
575 /** (Optional) A parameter string to be passed to the application designated by | 557 /** (Optional) A parameter string to be passed to the application designated by |
576 * the F entry. This entry should be omitted if F designates a document. | 558 * the F entry. This entry should be omitted if F designates a document. |
577 **/ | 559 **/ |
578 bool has_P() const { | 560 bool has_P() const { |
579 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", "
", NULL)); | 561 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", "
", NULL)); |
580 } | 562 } |
581 | 563 |
582 std::string P() const { | 564 std::string P() const; |
583 std::string ret; | |
584 if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", "", &
ret)) return ret; | |
585 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
586 return ""; | |
587 } | |
588 | |
589 }; | 565 }; |
590 | 566 |
591 #endif // __DEFINED__SkPdfWindowsLaunchActionDictionary | 567 #endif // __DEFINED__SkPdfWindowsLaunchActionDictionary |
OLD | NEW |