OLD | NEW |
1 #ifndef __DEFINED__SkPdfSoftMaskDictionary | 1 #ifndef __DEFINED__SkPdfSoftMaskDictionary |
2 #define __DEFINED__SkPdfSoftMaskDictionary | 2 #define __DEFINED__SkPdfSoftMaskDictionary |
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 soft-mask dictionary | 8 // Entries in a soft-mask dictionary |
9 class SkPdfSoftMaskDictionary : public SkPdfDictionary { | 9 class SkPdfSoftMaskDictionary : 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 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 /** (Required) A transparency group XObject (see Section 7.5.5, "Transparency | 558 /** (Required) A transparency group XObject (see Section 7.5.5, "Transparency |
559 * Group XObjects") to be used as the source of alpha or color values for deriv
- | 559 * Group XObjects") to be used as the source of alpha or color values for deriv
- |
560 * ing the mask. If the subtype S is Luminosity, the group attributes dictionar
y | 560 * ing the mask. If the subtype S is Luminosity, the group attributes dictionar
y |
561 * must contain a CS entry defining the color space in which the compositing | 561 * must contain a CS entry defining the color space in which the compositing |
562 * computation is to be performed. | 562 * computation is to be performed. |
563 **/ | 563 **/ |
564 bool has_G() const { | 564 bool has_G() const { |
565 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "G", "
", NULL)); | 565 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "G", "
", NULL)); |
566 } | 566 } |
567 | 567 |
568 SkPdfStream G() const { | 568 SkPdfStream* G() const { |
569 SkPdfStream ret; | 569 SkPdfStream* ret; |
570 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "G", "", &
ret)) return ret; | 570 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "G", "", &
ret)) return ret; |
571 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 571 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
572 return SkPdfStream(); | 572 return NULL; |
573 } | 573 } |
574 | 574 |
575 /** (Optional) An array of component values specifying the color to be used as | 575 /** (Optional) An array of component values specifying the color to be used as |
576 * the backdrop against which to composite the transparency group XObject G. | 576 * the backdrop against which to composite the transparency group XObject G. |
577 * This entry is consulted only if the subtype S is Luminosity. The array consi
sts | 577 * This entry is consulted only if the subtype S is Luminosity. The array consi
sts |
578 * of n numbers, where n is the number of components in the color space speci- | 578 * of n numbers, where n is the number of components in the color space speci- |
579 * fied by the CS entry in the group attributes dictionary (see Section 7.5.5, | 579 * fied by the CS entry in the group attributes dictionary (see Section 7.5.5, |
580 * "Transparency Group XObjects"). Default value: the color space's initial | 580 * "Transparency Group XObjects"). Default value: the color space's initial |
581 * value, representing black. | 581 * value, representing black. |
582 **/ | 582 **/ |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
626 std::string getTRAsName() const { | 626 std::string getTRAsName() const { |
627 std::string ret = ""; | 627 std::string ret = ""; |
628 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR", "", &r
et)) return ret; | 628 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TR", "", &r
et)) return ret; |
629 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 629 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
630 return ""; | 630 return ""; |
631 } | 631 } |
632 | 632 |
633 }; | 633 }; |
634 | 634 |
635 #endif // __DEFINED__SkPdfSoftMaskDictionary | 635 #endif // __DEFINED__SkPdfSoftMaskDictionary |
OLD | NEW |