OLD | NEW |
1 #ifndef __DEFINED__SkPdfWebCaptureCommandDictionary | 1 #ifndef __DEFINED__SkPdfWebCaptureCommandDictionary |
2 #define __DEFINED__SkPdfWebCaptureCommandDictionary | 2 #define __DEFINED__SkPdfWebCaptureCommandDictionary |
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 Web Capture command dictionary | 8 // Entries in a Web Capture command dictionary |
9 class SkPdfWebCaptureCommandDictionary : public SkPdfDictionary { | 9 class SkPdfWebCaptureCommandDictionary : 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 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
581 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 581 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
582 return ""; | 582 return ""; |
583 } | 583 } |
584 | 584 |
585 bool isPAStream() const { | 585 bool isPAStream() const { |
586 SkPdfObject* ret = NULL; | 586 SkPdfObject* ret = NULL; |
587 if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", "",
&ret)) return false; | 587 if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", "",
&ret)) return false; |
588 return ret->podofo()->HasStream(); | 588 return ret->podofo()->HasStream(); |
589 } | 589 } |
590 | 590 |
591 SkPdfStream getPAsStream() const { | 591 SkPdfStream* getPAsStream() const { |
592 SkPdfStream ret = SkPdfStream(); | 592 SkPdfStream* ret = NULL; |
593 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", "", &
ret)) return ret; | 593 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "P", "", &
ret)) return ret; |
594 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 594 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
595 return SkPdfStream(); | 595 return NULL; |
596 } | 596 } |
597 | 597 |
598 /** (Optional) A content type describing the data posted to the URL. Default val
ue: | 598 /** (Optional) A content type describing the data posted to the URL. Default val
ue: |
599 * application/x-www-form-urlencoded. | 599 * application/x-www-form-urlencoded. |
600 **/ | 600 **/ |
601 bool has_CT() const { | 601 bool has_CT() const { |
602 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CT",
"", NULL)); | 602 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "CT",
"", NULL)); |
603 } | 603 } |
604 | 604 |
605 std::string CT() const { | 605 std::string CT() const { |
(...skipping 26 matching lines...) Expand all Loading... |
632 SkPdfDictionary* S() const { | 632 SkPdfDictionary* S() const { |
633 SkPdfDictionary* ret; | 633 SkPdfDictionary* ret; |
634 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "
", &ret)) return ret; | 634 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "
", &ret)) return ret; |
635 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 635 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
636 return NULL; | 636 return NULL; |
637 } | 637 } |
638 | 638 |
639 }; | 639 }; |
640 | 640 |
641 #endif // __DEFINED__SkPdfWebCaptureCommandDictionary | 641 #endif // __DEFINED__SkPdfWebCaptureCommandDictionary |
OLD | NEW |