OLD | NEW |
1 #ifndef __DEFINED__SkPdfDeviceNColorSpaceDictionary | 1 #ifndef __DEFINED__SkPdfDeviceNColorSpaceDictionary |
2 #define __DEFINED__SkPdfDeviceNColorSpaceDictionary | 2 #define __DEFINED__SkPdfDeviceNColorSpaceDictionary |
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 // Entry in a DeviceN color space attributes dictionary | 9 // Entry in a DeviceN color space attributes dictionary |
10 class SkPdfDeviceNColorSpaceDictionary : public SkPdfDictionary { | 10 class SkPdfDeviceNColorSpaceDictionary : public SkPdfDictionary { |
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
535 * the appearance that it produces. However, it provides information about the
indi- | 535 * the appearance that it produces. However, it provides information about the
indi- |
536 * vidual colorants that may be useful to some applications. In particular, the
alter- | 536 * vidual colorants that may be useful to some applications. In particular, the
alter- |
537 * nate color space and tint transformation function of a Separation color spac
e | 537 * nate color space and tint transformation function of a Separation color spac
e |
538 * describe the appearance of that colorant alone, whereas those of a DeviceN c
olor | 538 * describe the appearance of that colorant alone, whereas those of a DeviceN c
olor |
539 * space describe only the appearance of its colorants in combination. | 539 * space describe only the appearance of its colorants in combination. |
540 **/ | 540 **/ |
541 bool has_Colorants() const { | 541 bool has_Colorants() const { |
542 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Color
ants", "", NULL)); | 542 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Color
ants", "", NULL)); |
543 } | 543 } |
544 | 544 |
545 SkPdfDictionary* Colorants() const { | 545 SkPdfDictionary* Colorants() const; |
546 SkPdfDictionary* ret; | |
547 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Color
ants", "", &ret)) return ret; | |
548 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
549 return NULL; | |
550 } | |
551 | |
552 }; | 546 }; |
553 | 547 |
554 #endif // __DEFINED__SkPdfDeviceNColorSpaceDictionary | 548 #endif // __DEFINED__SkPdfDeviceNColorSpaceDictionary |
OLD | NEW |