| OLD | NEW | 
|---|
| 1 #ifndef __DEFINED__SkPdfPopUpAnnotationDictionary | 1 #ifndef __DEFINED__SkPdfPopUpAnnotationDictionary | 
| 2 #define __DEFINED__SkPdfPopUpAnnotationDictionary | 2 #define __DEFINED__SkPdfPopUpAnnotationDictionary | 
| 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 pop-up annotation | 9 // Additional entries specific to a pop-up annotation | 
| 10 class SkPdfPopUpAnnotationDictionary : public SkPdfDictionary { | 10 class SkPdfPopUpAnnotationDictionary : public SkPdfDictionary { | 
| (...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 525 | 525 | 
| 526   SkPdfPopUpAnnotationDictionary& operator=(const SkPdfPopUpAnnotationDictionary
     & from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj;
      return *this;} | 526   SkPdfPopUpAnnotationDictionary& operator=(const SkPdfPopUpAnnotationDictionary
     & from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj;
      return *this;} | 
| 527 | 527 | 
| 528 /** (Required) The type of annotation that this dictionary describes; must be | 528 /** (Required) The type of annotation that this dictionary describes; must be | 
| 529  *  Popup for a pop-up annotation. | 529  *  Popup for a pop-up annotation. | 
| 530 **/ | 530 **/ | 
| 531   bool has_Subtype() const { | 531   bool has_Subtype() const { | 
| 532     return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subty
     pe", "", NULL)); | 532     return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subty
     pe", "", NULL)); | 
| 533   } | 533   } | 
| 534 | 534 | 
| 535   std::string Subtype() const { | 535   std::string Subtype() const; | 
| 536     std::string ret; |  | 
| 537     if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "
     ", &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) An alternate representation of the annotation's contents | 536 /** (Optional; PDF 1.4) An alternate representation of the annotation's contents | 
| 543  *  in human-readable form, useful when extracting the document's contents in | 537  *  in human-readable form, useful when extracting the document's contents in | 
| 544  *  support of accessibility to disabled users or for other purposes (see Sectio
     n | 538  *  support of accessibility to disabled users or for other purposes (see Sectio
     n | 
| 545  *  9.8.2, "Alternate Descriptions"). | 539  *  9.8.2, "Alternate Descriptions"). | 
| 546 **/ | 540 **/ | 
| 547   bool has_Contents() const { | 541   bool has_Contents() const { | 
| 548     return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Conte
     nts", "", NULL)); | 542     return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Conte
     nts", "", NULL)); | 
| 549   } | 543   } | 
| 550 | 544 | 
| 551   std::string Contents() const { | 545   std::string Contents() const; | 
| 552     std::string ret; |  | 
| 553     if (StringFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents"
     , "", &ret)) return ret; |  | 
| 554     // TODO(edisonn): warn about missing required field, assert for known good p
     dfs |  | 
| 555     return ""; |  | 
| 556   } |  | 
| 557 |  | 
| 558 /** (Optional; must be an indirect reference) The parent annotation with which | 546 /** (Optional; must be an indirect reference) The parent annotation with which | 
| 559  *  this pop-up annotation is associated. | 547  *  this pop-up annotation is associated. | 
| 560  *  Note: If this entry is present, the parent annotation's Contents, M, C, and 
     T | 548  *  Note: If this entry is present, the parent annotation's Contents, M, C, and 
     T | 
| 561  *  entries (see Table 8.10 on page 490) override those of the pop-up annotation | 549  *  entries (see Table 8.10 on page 490) override those of the pop-up annotation | 
| 562  *  itself. | 550  *  itself. | 
| 563 **/ | 551 **/ | 
| 564   bool has_Parent() const { | 552   bool has_Parent() const { | 
| 565     return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Paren
     t", "", NULL)); | 553     return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Paren
     t", "", NULL)); | 
| 566   } | 554   } | 
| 567 | 555 | 
| 568   SkPdfDictionary* Parent() const { | 556   SkPdfDictionary* Parent() const; | 
| 569     SkPdfDictionary* ret; |  | 
| 570     if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Paren
     t", "", &ret)) return ret; |  | 
| 571     // TODO(edisonn): warn about missing required field, assert for known good p
     dfs |  | 
| 572     return NULL; |  | 
| 573   } |  | 
| 574 |  | 
| 575 /** (Optional) A flag specifying whether the pop-up annotation should initially | 557 /** (Optional) A flag specifying whether the pop-up annotation should initially | 
| 576  *  be displayed open. Default value: false (closed). | 558  *  be displayed open. Default value: false (closed). | 
| 577 **/ | 559 **/ | 
| 578   bool has_Open() const { | 560   bool has_Open() const { | 
| 579     return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Open"
     , "", NULL)); | 561     return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Open"
     , "", NULL)); | 
| 580   } | 562   } | 
| 581 | 563 | 
| 582   bool Open() const { | 564   bool Open() const; | 
| 583     bool ret; |  | 
| 584     if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Open", "", 
     &ret)) return ret; |  | 
| 585     // TODO(edisonn): warn about missing required field, assert for known good p
     dfs |  | 
| 586     return false; |  | 
| 587   } |  | 
| 588 |  | 
| 589 }; | 565 }; | 
| 590 | 566 | 
| 591 #endif  // __DEFINED__SkPdfPopUpAnnotationDictionary | 567 #endif  // __DEFINED__SkPdfPopUpAnnotationDictionary | 
| OLD | NEW | 
|---|