| OLD | NEW | 
|---|
| 1 #ifndef __DEFINED__SkPdfWebCaptureCommandDictionary | 1 #ifndef __DEFINED__SkPdfWebCaptureCommandDictionary | 
| 2 #define __DEFINED__SkPdfWebCaptureCommandDictionary | 2 #define __DEFINED__SkPdfWebCaptureCommandDictionary | 
| 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 Web Capture command dictionary | 9 // Entries in a Web Capture command dictionary | 
| 10 class SkPdfWebCaptureCommandDictionary : public SkPdfDictionary { | 10 class SkPdfWebCaptureCommandDictionary : public SkPdfDictionary { | 
| (...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 524   virtual bool valid() const {return true;} | 524   virtual bool valid() const {return true;} | 
| 525 | 525 | 
| 526   SkPdfWebCaptureCommandDictionary& operator=(const SkPdfWebCaptureCommandDictio
     nary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofo
     Obj; return *this;} | 526   SkPdfWebCaptureCommandDictionary& operator=(const SkPdfWebCaptureCommandDictio
     nary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofo
     Obj; return *this;} | 
| 527 | 527 | 
| 528 /** (Required) The initial URL from which source data was requested. | 528 /** (Required) The initial URL from which source data was requested. | 
| 529 **/ | 529 **/ | 
| 530   bool has_URL() const { | 530   bool has_URL() const { | 
| 531     return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "URL",
      "", NULL)); | 531     return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "URL",
      "", NULL)); | 
| 532   } | 532   } | 
| 533 | 533 | 
| 534   std::string URL() const { | 534   std::string URL() const; | 
| 535     std::string ret; |  | 
| 536     if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "URL", "",
      &ret)) return ret; |  | 
| 537     // TODO(edisonn): warn about missing required field, assert for known good p
     dfs |  | 
| 538     return ""; |  | 
| 539   } |  | 
| 540 |  | 
| 541 /** (Optional) The number of levels of pages retrieved from the initial URL. Def
     ault | 535 /** (Optional) The number of levels of pages retrieved from the initial URL. Def
     ault | 
| 542  *  value: 1. | 536  *  value: 1. | 
| 543 **/ | 537 **/ | 
| 544   bool has_L() const { | 538   bool has_L() const { | 
| 545     return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "L", "
     ", NULL)); | 539     return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "L", "
     ", NULL)); | 
| 546   } | 540   } | 
| 547 | 541 | 
| 548   long L() const { | 542   long L() const; | 
| 549     long ret; |  | 
| 550     if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "L", "", &re
     t)) return ret; |  | 
| 551     // TODO(edisonn): warn about missing required field, assert for known good p
     dfs |  | 
| 552     return 0; |  | 
| 553   } |  | 
| 554 |  | 
| 555 /** (Optional) A set of flags specifying various characteristics of the command 
     (see | 543 /** (Optional) A set of flags specifying various characteristics of the command 
     (see | 
| 556  *  Table 9.39). Default value: 0. | 544  *  Table 9.39). Default value: 0. | 
| 557 **/ | 545 **/ | 
| 558   bool has_F() const { | 546   bool has_F() const { | 
| 559     return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "
     ", NULL)); | 547     return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "
     ", NULL)); | 
| 560   } | 548   } | 
| 561 | 549 | 
| 562   long F() const { | 550   long F() const; | 
| 563     long ret; |  | 
| 564     if (LongFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "F", "", &re
     t)) return ret; |  | 
| 565     // TODO(edisonn): warn about missing required field, assert for known good p
     dfs |  | 
| 566     return 0; |  | 
| 567   } |  | 
| 568 |  | 
| 569 /** (Optional) Data that was posted to the URL. | 551 /** (Optional) Data that was posted to the URL. | 
| 570 **/ | 552 **/ | 
| 571   bool has_P() const { | 553   bool has_P() const { | 
| 572     return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", "
     ", NULL)); | 554     return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", "
     ", NULL)); | 
| 573   } | 555   } | 
| 574 | 556 | 
| 575   bool isPAString() const { | 557   bool isPAString() const { | 
| 576     SkPdfObject* ret = NULL; | 558     SkPdfObject* ret = NULL; | 
| 577     if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", "", 
     &ret)) return false; | 559     if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", "", 
     &ret)) return false; | 
| 578     return ret->podofo()->GetDataType() == ePdfDataType_String || ret->podofo()-
     >GetDataType() == ePdfDataType_HexString; | 560     return ret->podofo()->GetDataType() == ePdfDataType_String || ret->podofo()-
     >GetDataType() == ePdfDataType_HexString; | 
| 579   } | 561   } | 
| 580 | 562 | 
| 581   std::string getPAsString() const { | 563   std::string getPAsString() const; | 
| 582     std::string ret = ""; |  | 
| 583     if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", "", &
     ret)) return ret; |  | 
| 584     // TODO(edisonn): warn about missing required field, assert for known good p
     dfs |  | 
| 585     return ""; |  | 
| 586   } |  | 
| 587 |  | 
| 588   bool isPAStream() const { | 564   bool isPAStream() const { | 
| 589     SkPdfObject* ret = NULL; | 565     SkPdfObject* ret = NULL; | 
| 590     if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", "", 
     &ret)) return false; | 566     if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", "", 
     &ret)) return false; | 
| 591     return ret->podofo()->HasStream(); | 567     return ret->podofo()->HasStream(); | 
| 592   } | 568   } | 
| 593 | 569 | 
| 594   SkPdfStream* getPAsStream() const { | 570   SkPdfStream* getPAsStream() const; | 
| 595     SkPdfStream* ret = NULL; |  | 
| 596     if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", "", &
     ret)) return ret; |  | 
| 597     // TODO(edisonn): warn about missing required field, assert for known good p
     dfs |  | 
| 598     return NULL; |  | 
| 599   } |  | 
| 600 |  | 
| 601 /** (Optional) A content type describing the data posted to the URL. Default val
     ue: | 571 /** (Optional) A content type describing the data posted to the URL. Default val
     ue: | 
| 602  *  application/x-www-form-urlencoded. | 572  *  application/x-www-form-urlencoded. | 
| 603 **/ | 573 **/ | 
| 604   bool has_CT() const { | 574   bool has_CT() const { | 
| 605     return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CT", 
     "", NULL)); | 575     return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CT", 
     "", NULL)); | 
| 606   } | 576   } | 
| 607 | 577 | 
| 608   std::string CT() const { | 578   std::string CT() const; | 
| 609     std::string ret; |  | 
| 610     if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CT", "", 
     &ret)) return ret; |  | 
| 611     // TODO(edisonn): warn about missing required field, assert for known good p
     dfs |  | 
| 612     return ""; |  | 
| 613   } |  | 
| 614 |  | 
| 615 /** (Optional) Additional HTTP request headers sent to the URL. | 579 /** (Optional) Additional HTTP request headers sent to the URL. | 
| 616 **/ | 580 **/ | 
| 617   bool has_H() const { | 581   bool has_H() const { | 
| 618     return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "H", "
     ", NULL)); | 582     return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "H", "
     ", NULL)); | 
| 619   } | 583   } | 
| 620 | 584 | 
| 621   std::string H() const { | 585   std::string H() const; | 
| 622     std::string ret; |  | 
| 623     if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "H", "", &
     ret)) return ret; |  | 
| 624     // TODO(edisonn): warn about missing required field, assert for known good p
     dfs |  | 
| 625     return ""; |  | 
| 626   } |  | 
| 627 |  | 
| 628 /** (Optional) A command settings dictionary containing settings used in the con
     - | 586 /** (Optional) A command settings dictionary containing settings used in the con
     - | 
| 629  *  version process (see "Command Settings" on page 674). | 587  *  version process (see "Command Settings" on page 674). | 
| 630 **/ | 588 **/ | 
| 631   bool has_S() const { | 589   bool has_S() const { | 
| 632     return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "
     ", NULL)); | 590     return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "
     ", NULL)); | 
| 633   } | 591   } | 
| 634 | 592 | 
| 635   SkPdfDictionary* S() const { | 593   SkPdfDictionary* S() const; | 
| 636     SkPdfDictionary* ret; |  | 
| 637     if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "
     ", &ret)) return ret; |  | 
| 638     // TODO(edisonn): warn about missing required field, assert for known good p
     dfs |  | 
| 639     return NULL; |  | 
| 640   } |  | 
| 641 |  | 
| 642 }; | 594 }; | 
| 643 | 595 | 
| 644 #endif  // __DEFINED__SkPdfWebCaptureCommandDictionary | 596 #endif  // __DEFINED__SkPdfWebCaptureCommandDictionary | 
| OLD | NEW | 
|---|