| OLD | NEW | 
|---|
| 1 #ifndef __DEFINED__SkPdfPageObjectDictionary | 1 #ifndef __DEFINED__SkPdfPageObjectDictionary | 
| 2 #define __DEFINED__SkPdfPageObjectDictionary | 2 #define __DEFINED__SkPdfPageObjectDictionary | 
| 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 page object | 8 // Entries in a page object | 
| 9 class SkPdfPageObjectDictionary : public SkPdfDictionary { | 9 class SkPdfPageObjectDictionary : public SkPdfDictionary { | 
| 10 public: | 10 public: | 
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 158 | 158 | 
| 159   virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NU
     LL;} | 159   virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NU
     LL;} | 
| 160   virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() cons
     t {return NULL;} | 160   virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() cons
     t {return NULL;} | 
| 161 | 161 | 
| 162   virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} | 162   virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} | 
| 163   virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} | 163   virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} | 
| 164 | 164 | 
| 165   virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} | 165   virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} | 
| 166   virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL
     ;} | 166   virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL
     ;} | 
| 167 | 167 | 
| 168   virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} |  | 
| 169   virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {r
     eturn NULL;} |  | 
| 170 |  | 
| 171   virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} | 168   virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} | 
| 172   virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return 
     NULL;} | 169   virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return 
     NULL;} | 
| 173 | 170 | 
|  | 171   virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} | 
|  | 172   virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return 
     NULL;} | 
|  | 173 | 
| 174   virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} | 174   virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} | 
| 175   virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return 
     NULL;} | 175   virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return 
     NULL;} | 
| 176 | 176 | 
| 177   virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return 
     NULL;} | 177   virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return 
     NULL;} | 
| 178   virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() co
     nst {return NULL;} | 178   virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() co
     nst {return NULL;} | 
| 179 | 179 | 
| 180   virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} | 180   virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} | 
| 181   virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return 
     NULL;} | 181   virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {r
     eturn NULL;} | 
| 182 | 182 | 
| 183   virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {retur
     n NULL;} | 183   virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {retur
     n NULL;} | 
| 184   virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() 
     const {return NULL;} | 184   virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() 
     const {return NULL;} | 
| 185 | 185 | 
| 186   virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {r
     eturn NULL;} | 186   virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {r
     eturn NULL;} | 
| 187   virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionar
     y() const {return NULL;} | 187   virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionar
     y() const {return NULL;} | 
| 188 | 188 | 
| 189   virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NU
     LL;} | 189   virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NU
     LL;} | 
| 190   virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() cons
     t {return NULL;} | 190   virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() cons
     t {return NULL;} | 
| 191 | 191 | 
| (...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 699   bool has_Contents() const { | 699   bool has_Contents() const { | 
| 700     return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Conte
     nts", "", NULL)); | 700     return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Conte
     nts", "", NULL)); | 
| 701   } | 701   } | 
| 702 | 702 | 
| 703   bool isContentsAStream() const { | 703   bool isContentsAStream() const { | 
| 704     SkPdfObject* ret = NULL; | 704     SkPdfObject* ret = NULL; | 
| 705     if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents
     ", "", &ret)) return false; | 705     if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents
     ", "", &ret)) return false; | 
| 706     return ret->podofo()->HasStream(); | 706     return ret->podofo()->HasStream(); | 
| 707   } | 707   } | 
| 708 | 708 | 
| 709   SkPdfStream getContentsAsStream() const { | 709   SkPdfStream* getContentsAsStream() const { | 
| 710     SkPdfStream ret = SkPdfStream(); | 710     SkPdfStream* ret = NULL; | 
| 711     if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents"
     , "", &ret)) return ret; | 711     if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents"
     , "", &ret)) return ret; | 
| 712     // TODO(edisonn): warn about missing required field, assert for known good p
     dfs | 712     // TODO(edisonn): warn about missing required field, assert for known good p
     dfs | 
| 713     return SkPdfStream(); | 713     return NULL; | 
| 714   } | 714   } | 
| 715 | 715 | 
| 716   bool isContentsAArray() const { | 716   bool isContentsAArray() const { | 
| 717     SkPdfObject* ret = NULL; | 717     SkPdfObject* ret = NULL; | 
| 718     if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents
     ", "", &ret)) return false; | 718     if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Contents
     ", "", &ret)) return false; | 
| 719     return ret->podofo()->GetDataType() == ePdfDataType_Array; | 719     return ret->podofo()->GetDataType() == ePdfDataType_Array; | 
| 720   } | 720   } | 
| 721 | 721 | 
| 722   SkPdfArray getContentsAsArray() const { | 722   SkPdfArray getContentsAsArray() const { | 
| 723     SkPdfArray ret = SkPdfArray(); | 723     SkPdfArray ret = SkPdfArray(); | 
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 756     return NULL; | 756     return NULL; | 
| 757   } | 757   } | 
| 758 | 758 | 
| 759 /** (Optional) A stream object defining the page's thumbnail image (see Sec- | 759 /** (Optional) A stream object defining the page's thumbnail image (see Sec- | 
| 760  *  tion 8.2.3, "Thumbnail Images"). | 760  *  tion 8.2.3, "Thumbnail Images"). | 
| 761 **/ | 761 **/ | 
| 762   bool has_Thumb() const { | 762   bool has_Thumb() const { | 
| 763     return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Thumb
     ", "", NULL)); | 763     return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Thumb
     ", "", NULL)); | 
| 764   } | 764   } | 
| 765 | 765 | 
| 766   SkPdfStream Thumb() const { | 766   SkPdfStream* Thumb() const { | 
| 767     SkPdfStream ret; | 767     SkPdfStream* ret; | 
| 768     if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Thumb", "
     ", &ret)) return ret; | 768     if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Thumb", "
     ", &ret)) return ret; | 
| 769     // TODO(edisonn): warn about missing required field, assert for known good p
     dfs | 769     // TODO(edisonn): warn about missing required field, assert for known good p
     dfs | 
| 770     return SkPdfStream(); | 770     return NULL; | 
| 771   } | 771   } | 
| 772 | 772 | 
| 773 /** (Optional; PDF 1.1; recommended if the page contains article beads) An ar- | 773 /** (Optional; PDF 1.1; recommended if the page contains article beads) An ar- | 
| 774  *  ray of indirect references to article beads appearing on the page (see Sec- | 774  *  ray of indirect references to article beads appearing on the page (see Sec- | 
| 775  *  tion 8.3.2, "Articles"; see also implementation note 23 in Appendix H). | 775  *  tion 8.3.2, "Articles"; see also implementation note 23 in Appendix H). | 
| 776  *  The beads are listed in the array in natural reading order. | 776  *  The beads are listed in the array in natural reading order. | 
| 777 **/ | 777 **/ | 
| 778   bool has_B() const { | 778   bool has_B() const { | 
| 779     return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "B", "
     ", NULL)); | 779     return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "B", "
     ", NULL)); | 
| 780   } | 780   } | 
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 847     return NULL; | 847     return NULL; | 
| 848   } | 848   } | 
| 849 | 849 | 
| 850 /** (Optional; PDF 1.4) A metadata stream containing metadata for the page | 850 /** (Optional; PDF 1.4) A metadata stream containing metadata for the page | 
| 851  *  (see Section 9.2.2, "Metadata Streams"). | 851  *  (see Section 9.2.2, "Metadata Streams"). | 
| 852 **/ | 852 **/ | 
| 853   bool has_Metadata() const { | 853   bool has_Metadata() const { | 
| 854     return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metad
     ata", "", NULL)); | 854     return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metad
     ata", "", NULL)); | 
| 855   } | 855   } | 
| 856 | 856 | 
| 857   SkPdfStream Metadata() const { | 857   SkPdfStream* Metadata() const { | 
| 858     SkPdfStream ret; | 858     SkPdfStream* ret; | 
| 859     if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metadata"
     , "", &ret)) return ret; | 859     if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Metadata"
     , "", &ret)) return ret; | 
| 860     // TODO(edisonn): warn about missing required field, assert for known good p
     dfs | 860     // TODO(edisonn): warn about missing required field, assert for known good p
     dfs | 
| 861     return SkPdfStream(); | 861     return NULL; | 
| 862   } | 862   } | 
| 863 | 863 | 
| 864 /** (Optional; PDF 1.3) A page-piece dictionary associated with the page (see | 864 /** (Optional; PDF 1.3) A page-piece dictionary associated with the page (see | 
| 865  *  Section 9.4, "Page-Piece Dictionaries"). | 865  *  Section 9.4, "Page-Piece Dictionaries"). | 
| 866 **/ | 866 **/ | 
| 867   bool has_PieceInfo() const { | 867   bool has_PieceInfo() const { | 
| 868     return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Piece
     Info", "", NULL)); | 868     return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Piece
     Info", "", NULL)); | 
| 869   } | 869   } | 
| 870 | 870 | 
| 871   SkPdfDictionary* PieceInfo() const { | 871   SkPdfDictionary* PieceInfo() const { | 
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 931   SkPdfDictionary* SeparationInfo() const { | 931   SkPdfDictionary* SeparationInfo() const { | 
| 932     SkPdfDictionary* ret; | 932     SkPdfDictionary* ret; | 
| 933     if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Separ
     ationInfo", "", &ret)) return ret; | 933     if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Separ
     ationInfo", "", &ret)) return ret; | 
| 934     // TODO(edisonn): warn about missing required field, assert for known good p
     dfs | 934     // TODO(edisonn): warn about missing required field, assert for known good p
     dfs | 
| 935     return NULL; | 935     return NULL; | 
| 936   } | 936   } | 
| 937 | 937 | 
| 938 }; | 938 }; | 
| 939 | 939 | 
| 940 #endif  // __DEFINED__SkPdfPageObjectDictionary | 940 #endif  // __DEFINED__SkPdfPageObjectDictionary | 
| OLD | NEW | 
|---|