| OLD | NEW |
| 1 #ifndef __DEFINED__SkPdfAlternateImageDictionary | 1 #ifndef __DEFINED__SkPdfAlternateImageDictionary |
| 2 #define __DEFINED__SkPdfAlternateImageDictionary | 2 #define __DEFINED__SkPdfAlternateImageDictionary |
| 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 an alternate image dictionary | 8 // Entries in an alternate image dictionary |
| 9 class SkPdfAlternateImageDictionary : public SkPdfDictionary { | 9 class SkPdfAlternateImageDictionary : 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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 521 virtual bool valid() const {return true;} | 521 virtual bool valid() const {return true;} |
| 522 | 522 |
| 523 SkPdfAlternateImageDictionary& operator=(const SkPdfAlternateImageDictionary&
from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; r
eturn *this;} | 523 SkPdfAlternateImageDictionary& operator=(const SkPdfAlternateImageDictionary&
from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; r
eturn *this;} |
| 524 | 524 |
| 525 /** (Required) The image XObject for the alternate image. | 525 /** (Required) The image XObject for the alternate image. |
| 526 **/ | 526 **/ |
| 527 bool has_Image() const { | 527 bool has_Image() const { |
| 528 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Image
", "", NULL)); | 528 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Image
", "", NULL)); |
| 529 } | 529 } |
| 530 | 530 |
| 531 SkPdfStream Image() const { | 531 SkPdfStream* Image() const { |
| 532 SkPdfStream ret; | 532 SkPdfStream* ret; |
| 533 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Image", "
", &ret)) return ret; | 533 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Image", "
", &ret)) return ret; |
| 534 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 534 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 535 return SkPdfStream(); | 535 return NULL; |
| 536 } | 536 } |
| 537 | 537 |
| 538 /** (Optional) A flag indicating whether this alternate image is the default ver
- | 538 /** (Optional) A flag indicating whether this alternate image is the default ver
- |
| 539 * sion to be used for printing. At most one alternate for a given base image m
ay | 539 * sion to be used for printing. At most one alternate for a given base image m
ay |
| 540 * be so designated. If no alternate has this entry set to true, the base image
itself | 540 * be so designated. If no alternate has this entry set to true, the base image
itself |
| 541 * is used for printing. | 541 * is used for printing. |
| 542 **/ | 542 **/ |
| 543 bool has_DefaultForPrinting() const { | 543 bool has_DefaultForPrinting() const { |
| 544 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Defau
ltForPrinting", "", NULL)); | 544 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Defau
ltForPrinting", "", NULL)); |
| 545 } | 545 } |
| 546 | 546 |
| 547 bool DefaultForPrinting() const { | 547 bool DefaultForPrinting() const { |
| 548 bool ret; | 548 bool ret; |
| 549 if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DefaultForP
rinting", "", &ret)) return ret; | 549 if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "DefaultForP
rinting", "", &ret)) return ret; |
| 550 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 550 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 551 return false; | 551 return false; |
| 552 } | 552 } |
| 553 | 553 |
| 554 }; | 554 }; |
| 555 | 555 |
| 556 #endif // __DEFINED__SkPdfAlternateImageDictionary | 556 #endif // __DEFINED__SkPdfAlternateImageDictionary |
| OLD | NEW |