OLD | NEW |
1 #ifndef __DEFINED__SkPdfWebCaptureCommandSettingsDictionary | 1 #ifndef __DEFINED__SkPdfWebCaptureCommandSettingsDictionary |
2 #define __DEFINED__SkPdfWebCaptureCommandSettingsDictionary | 2 #define __DEFINED__SkPdfWebCaptureCommandSettingsDictionary |
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 settings dictionary |
8 class SkPdfWebCaptureCommandSettingsDictionary : public SkPdfDictionary { | 9 class SkPdfWebCaptureCommandSettingsDictionary : public SkPdfDictionary { |
9 public: | 10 public: |
10 virtual SkPdfObjectType getType() const { return kWebCaptureCommandSettingsDic
tionary_SkPdfObjectType;} | 11 virtual SkPdfObjectType getType() const { return kWebCaptureCommandSettingsDic
tionary_SkPdfObjectType;} |
11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kWebCapt
ureCommandSettingsDictionary_SkPdfObjectType + 1);} | 12 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kWebCapt
ureCommandSettingsDictionary_SkPdfObjectType + 1);} |
12 public: | 13 public: |
13 virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsD
ictionary() {return this;} | 14 virtual SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSettingsD
ictionary() {return this;} |
14 virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSet
tingsDictionary() const {return this;} | 15 virtual const SkPdfWebCaptureCommandSettingsDictionary* asWebCaptureCommandSet
tingsDictionary() const {return this;} |
15 | 16 |
16 private: | 17 private: |
17 virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return
NULL;} | 18 virtual SkPdfALinkAnnotationDictionary* asALinkAnnotationDictionary() {return
NULL;} |
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 | 515 |
515 public: | 516 public: |
516 private: | 517 private: |
517 public: | 518 public: |
518 SkPdfWebCaptureCommandSettingsDictionary(const PdfMemDocument* podofoDoc = NUL
L, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} | 519 SkPdfWebCaptureCommandSettingsDictionary(const PdfMemDocument* podofoDoc = NUL
L, const PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} |
519 | 520 |
520 virtual bool valid() const {return true;} | 521 virtual bool valid() const {return true;} |
521 | 522 |
522 SkPdfWebCaptureCommandSettingsDictionary& operator=(const SkPdfWebCaptureComma
ndSettingsDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoOb
j = from.fPodofoObj; return *this;} | 523 SkPdfWebCaptureCommandSettingsDictionary& operator=(const SkPdfWebCaptureComma
ndSettingsDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoOb
j = from.fPodofoObj; return *this;} |
523 | 524 |
| 525 /** (Optional) A dictionary containing global conversion engine settings relevan
t to all con- |
| 526 * version engines. If this key is absent, default settings will be used. |
| 527 **/ |
| 528 bool has_G() const { |
| 529 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "G", "
", NULL)); |
| 530 } |
| 531 |
524 SkPdfDictionary* G() const { | 532 SkPdfDictionary* G() const { |
525 SkPdfDictionary* ret; | 533 SkPdfDictionary* ret; |
526 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "G", "
", &ret)) return ret; | 534 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "G", "
", &ret)) return ret; |
527 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 535 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
528 return NULL; | 536 return NULL; |
529 } | 537 } |
530 | 538 |
| 539 /** (Optional) Settings for specific conversion engines. Each key in this dictio
nary is the |
| 540 * internal name of a conversion engine (see below). The associated value is a
dictionary |
| 541 * containing the settings associated with that conversion engine. If the setti
ngs for a par- |
| 542 * ticular conversion engine are not found in the dictionary, default settings
will be used. |
| 543 **/ |
| 544 bool has_C() const { |
| 545 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "
", NULL)); |
| 546 } |
| 547 |
531 SkPdfDictionary* C() const { | 548 SkPdfDictionary* C() const { |
532 SkPdfDictionary* ret; | 549 SkPdfDictionary* ret; |
533 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "
", &ret)) return ret; | 550 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "
", &ret)) return ret; |
534 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 551 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
535 return NULL; | 552 return NULL; |
536 } | 553 } |
537 | 554 |
538 }; | 555 }; |
539 | 556 |
540 #endif // __DEFINED__SkPdfWebCaptureCommandSettingsDictionary | 557 #endif // __DEFINED__SkPdfWebCaptureCommandSettingsDictionary |
OLD | NEW |