OLD | NEW |
1 #ifndef __DEFINED__SkPdfMultiMasterFontDictionary | 1 #ifndef __DEFINED__SkPdfMultiMasterFontDictionary |
2 #define __DEFINED__SkPdfMultiMasterFontDictionary | 2 #define __DEFINED__SkPdfMultiMasterFontDictionary |
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 "SkPdfType1FontDictionary_autogen.h" | 7 #include "SkPdfType1FontDictionary_autogen.h" |
8 | 8 |
9 class SkPdfMultiMasterFontDictionary : public SkPdfType1FontDictionary { | 9 class SkPdfMultiMasterFontDictionary : public SkPdfType1FontDictionary { |
10 public: | 10 public: |
(...skipping 18 matching lines...) Expand all Loading... |
29 SkPdfMultiMasterFontDictionary(const SkPdfMultiMasterFontDictionary& from) : S
kPdfType1FontDictionary(from.fPodofoDoc, from.fPodofoObj) {} | 29 SkPdfMultiMasterFontDictionary(const SkPdfMultiMasterFontDictionary& from) : S
kPdfType1FontDictionary(from.fPodofoDoc, from.fPodofoObj) {} |
30 | 30 |
31 virtual bool valid() const {return true;} | 31 virtual bool valid() const {return true;} |
32 | 32 |
33 SkPdfMultiMasterFontDictionary& operator=(const SkPdfMultiMasterFontDictionary
& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj;
return *this;} | 33 SkPdfMultiMasterFontDictionary& operator=(const SkPdfMultiMasterFontDictionary
& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj;
return *this;} |
34 | 34 |
35 bool has_Subtype() const { | 35 bool has_Subtype() const { |
36 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subty
pe", "", NULL)); | 36 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subty
pe", "", NULL)); |
37 } | 37 } |
38 | 38 |
39 std::string Subtype() const { | 39 std::string Subtype() const; |
40 std::string ret; | |
41 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "
", &ret)) return ret; | |
42 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | |
43 return ""; | |
44 } | |
45 | |
46 }; | 40 }; |
47 | 41 |
48 #endif // __DEFINED__SkPdfMultiMasterFontDictionary | 42 #endif // __DEFINED__SkPdfMultiMasterFontDictionary |
OLD | NEW |