OLD | NEW |
1 #ifndef __DEFINED__SkPdfType5HalftoneDictionary | 1 #ifndef __DEFINED__SkPdfType5HalftoneDictionary |
2 #define __DEFINED__SkPdfType5HalftoneDictionary | 2 #define __DEFINED__SkPdfType5HalftoneDictionary |
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 type 5 halftone dictionary | 8 // Entries in a type 5 halftone dictionary |
9 class SkPdfType5HalftoneDictionary : public SkPdfDictionary { | 9 class SkPdfType5HalftoneDictionary : 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 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
585 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 585 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
586 return NULL; | 586 return NULL; |
587 } | 587 } |
588 | 588 |
589 bool is[any_colorant_name]AStream() const { | 589 bool is[any_colorant_name]AStream() const { |
590 SkPdfObject* ret = NULL; | 590 SkPdfObject* ret = NULL; |
591 if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "[any_col
orant_name]", "", &ret)) return false; | 591 if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "[any_col
orant_name]", "", &ret)) return false; |
592 return ret->podofo()->HasStream(); | 592 return ret->podofo()->HasStream(); |
593 } | 593 } |
594 | 594 |
595 SkPdfStream get[any_colorant_name]AsStream() const { | 595 SkPdfStream* get[any_colorant_name]AsStream() const { |
596 SkPdfStream ret = SkPdfStream(); | 596 SkPdfStream* ret = NULL; |
597 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "[any_colo
rant_name]", "", &ret)) return ret; | 597 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "[any_colo
rant_name]", "", &ret)) return ret; |
598 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 598 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
599 return SkPdfStream(); | 599 return NULL; |
600 } | 600 } |
601 | 601 |
602 */ | 602 */ |
603 /** (Required) A halftone to be used for any colorant or color component that | 603 /** (Required) A halftone to be used for any colorant or color component that |
604 * does not have an entry of its own. The value may not be a type 5 halftone. I
f | 604 * does not have an entry of its own. The value may not be a type 5 halftone. I
f |
605 * there are any nonprimary colorants, the default halftone must have a transfe
r | 605 * there are any nonprimary colorants, the default halftone must have a transfe
r |
606 * function. | 606 * function. |
607 **/ | 607 **/ |
608 bool has_Default() const { | 608 bool has_Default() const { |
609 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Defau
lt", "", NULL)); | 609 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Defau
lt", "", NULL)); |
(...skipping 11 matching lines...) Expand all Loading... |
621 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 621 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
622 return NULL; | 622 return NULL; |
623 } | 623 } |
624 | 624 |
625 bool isDefaultAStream() const { | 625 bool isDefaultAStream() const { |
626 SkPdfObject* ret = NULL; | 626 SkPdfObject* ret = NULL; |
627 if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Default"
, "", &ret)) return false; | 627 if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Default"
, "", &ret)) return false; |
628 return ret->podofo()->HasStream(); | 628 return ret->podofo()->HasStream(); |
629 } | 629 } |
630 | 630 |
631 SkPdfStream getDefaultAsStream() const { | 631 SkPdfStream* getDefaultAsStream() const { |
632 SkPdfStream ret = SkPdfStream(); | 632 SkPdfStream* ret = NULL; |
633 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Default",
"", &ret)) return ret; | 633 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Default",
"", &ret)) return ret; |
634 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 634 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
635 return SkPdfStream(); | 635 return NULL; |
636 } | 636 } |
637 | 637 |
638 }; | 638 }; |
639 | 639 |
640 #endif // __DEFINED__SkPdfType5HalftoneDictionary | 640 #endif // __DEFINED__SkPdfType5HalftoneDictionary |
OLD | NEW |