SkPdfType3FontDictionary_autogen.h revision 8cee797901763ab0922eb9ef484cfdcbc94bee54
1#ifndef __DEFINED__SkPdfType3FontDictionary 2#define __DEFINED__SkPdfType3FontDictionary 3 4#include "SkPdfType1FontDictionary_autogen.h" 5 6// Entries in a Type 3 font dictionary 7class SkPdfType3FontDictionary : public SkPdfType1FontDictionary { 8public: 9public: 10 SkPdfType3FontDictionary* asType3FontDictionary() {return this;} 11 const SkPdfType3FontDictionary* asType3FontDictionary() const {return this;} 12 13private: 14 SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return (SkPdfMultiMasterFontDictionary*)this;} 15 const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() const {return (const SkPdfMultiMasterFontDictionary*)this;} 16 17 SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return (SkPdfTrueTypeFontDictionary*)this;} 18 const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {return (const SkPdfTrueTypeFontDictionary*)this;} 19 20public: 21 bool valid() const {return true;} 22 SkString Type(SkPdfNativeDoc* doc); 23 bool has_Type() const; 24 SkString Subtype(SkPdfNativeDoc* doc); 25 bool has_Subtype() const; 26 SkString Name(SkPdfNativeDoc* doc); 27 bool has_Name() const; 28 SkRect FontBBox(SkPdfNativeDoc* doc); 29 bool has_FontBBox() const; 30 SkMatrix FontMatrix(SkPdfNativeDoc* doc); 31 bool has_FontMatrix() const; 32 SkPdfDictionary* CharProcs(SkPdfNativeDoc* doc); 33 bool has_CharProcs() const; 34 bool isEncodingAName(SkPdfNativeDoc* doc); 35 SkString getEncodingAsName(SkPdfNativeDoc* doc); 36 bool isEncodingAEncodingdictionary(SkPdfNativeDoc* doc); 37 SkPdfEncodingDictionary* getEncodingAsEncodingdictionary(SkPdfNativeDoc* doc); 38 bool has_Encoding() const; 39 int64_t FirstChar(SkPdfNativeDoc* doc); 40 bool has_FirstChar() const; 41 int64_t LastChar(SkPdfNativeDoc* doc); 42 bool has_LastChar() const; 43 SkPdfArray* Widths(SkPdfNativeDoc* doc); 44 bool has_Widths() const; 45 SkPdfResourceDictionary* Resources(SkPdfNativeDoc* doc); 46 bool has_Resources() const; 47 SkPdfStream* ToUnicode(SkPdfNativeDoc* doc); 48 bool has_ToUnicode() const; 49}; 50 51#endif // __DEFINED__NATIVE_SkPdfType3FontDictionary 52