| OLD | NEW |
| 1 #ifndef __DEFINED__SkPdfMultiMasterFontDictionary | 1 #ifndef __DEFINED__SkPdfMultiMasterFontDictionary |
| 2 #define __DEFINED__SkPdfMultiMasterFontDictionary | 2 #define __DEFINED__SkPdfMultiMasterFontDictionary |
| 3 | 3 |
| 4 #include "SkPdfEnums_autogen.h" | 4 #include "SkPdfEnums_autogen.h" |
| 5 #include "SkPdfArray_autogen.h" | 5 #include "SkPdfArray_autogen.h" |
| 6 #include "SkPdfType1FontDictionary_autogen.h" | 6 #include "SkPdfType1FontDictionary_autogen.h" |
| 7 | 7 |
| 8 class SkPdfMultiMasterFontDictionary : public SkPdfType1FontDictionary { | 8 class SkPdfMultiMasterFontDictionary : public SkPdfType1FontDictionary { |
| 9 public: | 9 public: |
| 10 virtual SkPdfObjectType getType() const { return kMultiMasterFontDictionary_Sk
PdfObjectType;} | 10 virtual SkPdfObjectType getType() const { return kMultiMasterFontDictionary_Sk
PdfObjectType;} |
| 11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kMultiMa
sterFontDictionary_SkPdfObjectType + 1);} | 11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kMultiMa
sterFontDictionary_SkPdfObjectType + 1);} |
| 12 public: | 12 public: |
| 13 virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return
this;} | 13 virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return
this;} |
| 14 virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() co
nst {return this;} | 14 virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() co
nst {return this;} |
| 15 | 15 |
| 16 private: | 16 private: |
| 17 virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} |
| 18 virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {r
eturn NULL;} |
| 19 |
| 17 public: | 20 public: |
| 18 private: | 21 private: |
| 19 public: | 22 public: |
| 20 SkPdfMultiMasterFontDictionary(const PdfMemDocument* podofoDoc = NULL, const P
dfObject* podofoObj = NULL) : SkPdfType1FontDictionary(podofoDoc, podofoObj) {} | 23 SkPdfMultiMasterFontDictionary(const PdfMemDocument* podofoDoc = NULL, const P
dfObject* podofoObj = NULL) : SkPdfType1FontDictionary(podofoDoc, podofoObj) {} |
| 21 | 24 |
| 22 virtual bool valid() const {return true;} | 25 virtual bool valid() const {return true;} |
| 23 | 26 |
| 24 SkPdfMultiMasterFontDictionary& operator=(const SkPdfMultiMasterFontDictionary
& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj;
return *this;} | 27 SkPdfMultiMasterFontDictionary& operator=(const SkPdfMultiMasterFontDictionary
& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj;
return *this;} |
| 25 | 28 |
| 26 bool has_Subtype() const { | 29 bool has_Subtype() const { |
| 27 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subty
pe", "", NULL)); | 30 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subty
pe", "", NULL)); |
| 28 } | 31 } |
| 29 | 32 |
| 30 std::string Subtype() const { | 33 std::string Subtype() const { |
| 31 std::string ret; | 34 std::string ret; |
| 32 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "
", &ret)) return ret; | 35 if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Subtype", "
", &ret)) return ret; |
| 33 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 36 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
| 34 return ""; | 37 return ""; |
| 35 } | 38 } |
| 36 | 39 |
| 37 }; | 40 }; |
| 38 | 41 |
| 39 #endif // __DEFINED__SkPdfMultiMasterFontDictionary | 42 #endif // __DEFINED__SkPdfMultiMasterFontDictionary |
| OLD | NEW |