| OLD | NEW |
| 1 #ifndef __DEFINED__SkPdfFDFDictionary | 1 #ifndef __DEFINED__SkPdfFDFDictionary |
| 2 #define __DEFINED__SkPdfFDFDictionary | 2 #define __DEFINED__SkPdfFDFDictionary |
| 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 the FDF dictionary | 8 // Entries in the FDF dictionary |
| 9 class SkPdfFDFDictionary : public SkPdfDictionary { | 9 class SkPdfFDFDictionary : public SkPdfDictionary { |
| 10 public: | 10 public: |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 | 155 |
| 156 virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NU
LL;} | 156 virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NU
LL;} |
| 157 virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() cons
t {return NULL;} | 157 virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() cons
t {return NULL;} |
| 158 | 158 |
| 159 virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} | 159 virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} |
| 160 virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} | 160 virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} |
| 161 | 161 |
| 162 virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} | 162 virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} |
| 163 virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL
;} | 163 virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL
;} |
| 164 | 164 |
| 165 virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} | |
| 166 virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {r
eturn NULL;} | |
| 167 | |
| 168 virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} | 165 virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} |
| 169 virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return
NULL;} | 166 virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return
NULL;} |
| 170 | 167 |
| 168 virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} |
| 169 virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return
NULL;} |
| 170 |
| 171 virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} | 171 virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} |
| 172 virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return
NULL;} | 172 virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return
NULL;} |
| 173 | 173 |
| 174 virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return
NULL;} | 174 virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return
NULL;} |
| 175 virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() co
nst {return NULL;} | 175 virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() co
nst {return NULL;} |
| 176 | 176 |
| 177 virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} | 177 virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} |
| 178 virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return
NULL;} | 178 virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {r
eturn NULL;} |
| 179 | 179 |
| 180 virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {retur
n NULL;} | 180 virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {retur
n NULL;} |
| 181 virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary()
const {return NULL;} | 181 virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary()
const {return NULL;} |
| 182 | 182 |
| 183 virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {r
eturn NULL;} | 183 virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {r
eturn NULL;} |
| 184 virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionar
y() const {return NULL;} | 184 virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionar
y() const {return NULL;} |
| 185 | 185 |
| 186 virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NU
LL;} | 186 virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NU
LL;} |
| 187 virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() cons
t {return NULL;} | 187 virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() cons
t {return NULL;} |
| 188 | 188 |
| (...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 650 * Note: Although a Fields or Annots entry (or both) may be present | 650 * Note: Although a Fields or Annots entry (or both) may be present |
| 651 * along with Differences, there is no guarantee that their contents will be | 651 * along with Differences, there is no guarantee that their contents will be |
| 652 * consistent with it. In particular, if Differences contains a digital signa- | 652 * consistent with it. In particular, if Differences contains a digital signa- |
| 653 * ture, only the values of the form fields given in the Differences stream | 653 * ture, only the values of the form fields given in the Differences stream |
| 654 * can be considered trustworthy under that signature. | 654 * can be considered trustworthy under that signature. |
| 655 **/ | 655 **/ |
| 656 bool has_Differences() const { | 656 bool has_Differences() const { |
| 657 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Diffe
rences", "", NULL)); | 657 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Diffe
rences", "", NULL)); |
| 658 } | 658 } |
| 659 | 659 |
| 660 SkPdfStream Differences() const { | 660 SkPdfStream* Differences() const { |
| 661 SkPdfStream ret; | 661 SkPdfStream* ret; |
| 662 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Differenc
es", "", &ret)) return ret; | 662 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Differenc
es", "", &ret)) return ret; |
| 663 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 663 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 664 return SkPdfStream(); | 664 return NULL; |
| 665 } | 665 } |
| 666 | 666 |
| 667 /** (Optional; PDF 1.4) The name of a browser frame in which the un- | 667 /** (Optional; PDF 1.4) The name of a browser frame in which the un- |
| 668 * derlying PDF document is to be opened. This mimics the behavior | 668 * derlying PDF document is to be opened. This mimics the behavior |
| 669 * of the target attribute in HTML <href> tags. | 669 * of the target attribute in HTML <href> tags. |
| 670 **/ | 670 **/ |
| 671 bool has_Target() const { | 671 bool has_Target() const { |
| 672 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Targe
t", "", NULL)); | 672 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Targe
t", "", NULL)); |
| 673 } | 673 } |
| 674 | 674 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 704 SkPdfDictionary* JavaScript() const { | 704 SkPdfDictionary* JavaScript() const { |
| 705 SkPdfDictionary* ret; | 705 SkPdfDictionary* ret; |
| 706 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "JavaS
cript", "", &ret)) return ret; | 706 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "JavaS
cript", "", &ret)) return ret; |
| 707 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 707 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 708 return NULL; | 708 return NULL; |
| 709 } | 709 } |
| 710 | 710 |
| 711 }; | 711 }; |
| 712 | 712 |
| 713 #endif // __DEFINED__SkPdfFDFDictionary | 713 #endif // __DEFINED__SkPdfFDFDictionary |
| OLD | NEW |