OLD | NEW |
1 #ifndef __DEFINED__SkPdfDeviceNColorSpaceDictionary | 1 #ifndef __DEFINED__SkPdfDeviceNColorSpaceDictionary |
2 #define __DEFINED__SkPdfDeviceNColorSpaceDictionary | 2 #define __DEFINED__SkPdfDeviceNColorSpaceDictionary |
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 // Entry in a DeviceN color space attributes dictionary |
8 class SkPdfDeviceNColorSpaceDictionary : public SkPdfDictionary { | 9 class SkPdfDeviceNColorSpaceDictionary : public SkPdfDictionary { |
9 public: | 10 public: |
10 virtual SkPdfObjectType getType() const { return kDeviceNColorSpaceDictionary_
SkPdfObjectType;} | 11 virtual SkPdfObjectType getType() const { return kDeviceNColorSpaceDictionary_
SkPdfObjectType;} |
11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kDeviceN
ColorSpaceDictionary_SkPdfObjectType + 1);} | 12 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kDeviceN
ColorSpaceDictionary_SkPdfObjectType + 1);} |
12 public: | 13 public: |
13 virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {ret
urn this;} | 14 virtual SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary() {ret
urn this;} |
14 virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary(
) const {return this;} | 15 virtual const SkPdfDeviceNColorSpaceDictionary* asDeviceNColorSpaceDictionary(
) 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 SkPdfDeviceNColorSpaceDictionary(const PdfMemDocument* podofoDoc = NULL, const
PdfObject* podofoObj = NULL) : SkPdfDictionary(podofoDoc, podofoObj) {} | 519 SkPdfDeviceNColorSpaceDictionary(const PdfMemDocument* podofoDoc = NULL, 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 SkPdfDeviceNColorSpaceDictionary& operator=(const SkPdfDeviceNColorSpaceDictio
nary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofo
Obj; return *this;} | 523 SkPdfDeviceNColorSpaceDictionary& operator=(const SkPdfDeviceNColorSpaceDictio
nary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofo
Obj; return *this;} |
523 | 524 |
| 525 /** (Optional) A dictionary describing the individual colorants used in the Devi
ceN |
| 526 * color space. For each entry in this dictionary, the key is a colorant name a
nd the |
| 527 * value is an array defining a Separation color space for that colorant (see "
Separa- |
| 528 * tion Color Spaces" on page 201). The key must match the colorant name given
in |
| 529 * that color space. The dictionary need not list all colorants used in the Dev
iceN |
| 530 * color space and may list additional colorants. |
| 531 * This dictionary has no effect on the operation of the DeviceN color space it
self or |
| 532 * the appearance that it produces. However, it provides information about the
indi- |
| 533 * vidual colorants that may be useful to some applications. In particular, the
alter- |
| 534 * nate color space and tint transformation function of a Separation color spac
e |
| 535 * describe the appearance of that colorant alone, whereas those of a DeviceN c
olor |
| 536 * space describe only the appearance of its colorants in combination. |
| 537 **/ |
| 538 bool has_Colorants() const { |
| 539 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Color
ants", "", NULL)); |
| 540 } |
| 541 |
524 SkPdfDictionary* Colorants() const { | 542 SkPdfDictionary* Colorants() const { |
525 SkPdfDictionary* ret; | 543 SkPdfDictionary* ret; |
526 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Color
ants", "", &ret)) return ret; | 544 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Color
ants", "", &ret)) return ret; |
527 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 545 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
528 return NULL; | 546 return NULL; |
529 } | 547 } |
530 | 548 |
531 }; | 549 }; |
532 | 550 |
533 #endif // __DEFINED__SkPdfDeviceNColorSpaceDictionary | 551 #endif // __DEFINED__SkPdfDeviceNColorSpaceDictionary |
OLD | NEW |