| OLD | NEW |
| 1 #ifndef __DEFINED__SkPdfWebCaptureCommandSettingsDictionary | 1 #ifndef __DEFINED__SkPdfWebCaptureCommandSettingsDictionary |
| 2 #define __DEFINED__SkPdfWebCaptureCommandSettingsDictionary | 2 #define __DEFINED__SkPdfWebCaptureCommandSettingsDictionary |
| 3 | 3 |
| 4 #include "SkPdfUtils.h" | 4 #include "SkPdfUtils.h" |
| 5 #include "SkPdfEnums_autogen.h" | 5 #include "SkPdfEnums_autogen.h" |
| 6 #include "SkPdfArray_autogen.h" | 6 #include "SkPdfArray_autogen.h" |
| 7 #include "SkPdfDictionary_autogen.h" | 7 #include "SkPdfDictionary_autogen.h" |
| 8 | 8 |
| 9 // Entries in a Web Capture command settings dictionary | 9 // Entries in a Web Capture command settings dictionary |
| 10 class SkPdfWebCaptureCommandSettingsDictionary : public SkPdfDictionary { | 10 class SkPdfWebCaptureCommandSettingsDictionary : public SkPdfDictionary { |
| (...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 | 525 |
| 526 SkPdfWebCaptureCommandSettingsDictionary& operator=(const SkPdfWebCaptureComma
ndSettingsDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoOb
j = from.fPodofoObj; return *this;} | 526 SkPdfWebCaptureCommandSettingsDictionary& operator=(const SkPdfWebCaptureComma
ndSettingsDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoOb
j = from.fPodofoObj; return *this;} |
| 527 | 527 |
| 528 /** (Optional) A dictionary containing global conversion engine settings relevan
t to all con- | 528 /** (Optional) A dictionary containing global conversion engine settings relevan
t to all con- |
| 529 * version engines. If this key is absent, default settings will be used. | 529 * version engines. If this key is absent, default settings will be used. |
| 530 **/ | 530 **/ |
| 531 bool has_G() const { | 531 bool has_G() const { |
| 532 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "G", "
", NULL)); | 532 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "G", "
", NULL)); |
| 533 } | 533 } |
| 534 | 534 |
| 535 SkPdfDictionary* G() const { | 535 SkPdfDictionary* G() const; |
| 536 SkPdfDictionary* ret; | |
| 537 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "G", "
", &ret)) return ret; | |
| 538 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 539 return NULL; | |
| 540 } | |
| 541 | |
| 542 /** (Optional) Settings for specific conversion engines. Each key in this dictio
nary is the | 536 /** (Optional) Settings for specific conversion engines. Each key in this dictio
nary is the |
| 543 * internal name of a conversion engine (see below). The associated value is a
dictionary | 537 * internal name of a conversion engine (see below). The associated value is a
dictionary |
| 544 * containing the settings associated with that conversion engine. If the setti
ngs for a par- | 538 * containing the settings associated with that conversion engine. If the setti
ngs for a par- |
| 545 * ticular conversion engine are not found in the dictionary, default settings
will be used. | 539 * ticular conversion engine are not found in the dictionary, default settings
will be used. |
| 546 **/ | 540 **/ |
| 547 bool has_C() const { | 541 bool has_C() const { |
| 548 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "
", NULL)); | 542 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "
", NULL)); |
| 549 } | 543 } |
| 550 | 544 |
| 551 SkPdfDictionary* C() const { | 545 SkPdfDictionary* C() const; |
| 552 SkPdfDictionary* ret; | |
| 553 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "C", "
", &ret)) return ret; | |
| 554 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
| 555 return NULL; | |
| 556 } | |
| 557 | |
| 558 }; | 546 }; |
| 559 | 547 |
| 560 #endif // __DEFINED__SkPdfWebCaptureCommandSettingsDictionary | 548 #endif // __DEFINED__SkPdfWebCaptureCommandSettingsDictionary |
| OLD | NEW |