| OLD | NEW |
| 1 #ifndef __DEFINED__SkPdfSoundAnnotationDictionary | 1 #ifndef __DEFINED__SkPdfSoundAnnotationDictionary |
| 2 #define __DEFINED__SkPdfSoundAnnotationDictionary | 2 #define __DEFINED__SkPdfSoundAnnotationDictionary |
| 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 // Additional entries specific to a sound annotation | 8 // Additional entries specific to a sound annotation |
| 9 class SkPdfSoundAnnotationDictionary : public SkPdfDictionary { | 9 class SkPdfSoundAnnotationDictionary : 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 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 536 return ""; | 536 return ""; |
| 537 } | 537 } |
| 538 | 538 |
| 539 /** (Required) A sound object defining the sound to be played when the annotatio
n | 539 /** (Required) A sound object defining the sound to be played when the annotatio
n |
| 540 * is activated (see Section 8.7, "Sounds"). | 540 * is activated (see Section 8.7, "Sounds"). |
| 541 **/ | 541 **/ |
| 542 bool has_Sound() const { | 542 bool has_Sound() const { |
| 543 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Sound
", "", NULL)); | 543 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Sound
", "", NULL)); |
| 544 } | 544 } |
| 545 | 545 |
| 546 SkPdfStream Sound() const { | 546 SkPdfStream* Sound() const { |
| 547 SkPdfStream ret; | 547 SkPdfStream* ret; |
| 548 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Sound", "
", &ret)) return ret; | 548 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Sound", "
", &ret)) return ret; |
| 549 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 549 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 550 return SkPdfStream(); | 550 return NULL; |
| 551 } | 551 } |
| 552 | 552 |
| 553 /** (Optional) Text to be displayed in a pop-up window for the annotation in pla
ce | 553 /** (Optional) Text to be displayed in a pop-up window for the annotation in pla
ce |
| 554 * of the sound, useful when extracting the document's contents in support of | 554 * of the sound, useful when extracting the document's contents in support of |
| 555 * accessibility to disabled users or for other purposes (see Section 9.8.2, "A
lternate | 555 * accessibility to disabled users or for other purposes (see Section 9.8.2, "A
lternate |
| 556 * Descriptions"). | 556 * Descriptions"). |
| 557 **/ | 557 **/ |
| 558 bool has_Contents() const { | 558 bool has_Contents() const { |
| 559 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Conte
nts", "", NULL)); | 559 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Conte
nts", "", NULL)); |
| 560 } | 560 } |
| (...skipping 19 matching lines...) Expand all Loading... |
| 580 std::string Name() const { | 580 std::string Name() const { |
| 581 std::string ret; | 581 std::string ret; |
| 582 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Name", "",
&ret)) return ret; | 582 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Name", "",
&ret)) return ret; |
| 583 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 583 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 584 return ""; | 584 return ""; |
| 585 } | 585 } |
| 586 | 586 |
| 587 }; | 587 }; |
| 588 | 588 |
| 589 #endif // __DEFINED__SkPdfSoundAnnotationDictionary | 589 #endif // __DEFINED__SkPdfSoundAnnotationDictionary |
| OLD | NEW |