OLD | NEW |
1 #ifndef __DEFINED__SkPdfType3FontDictionary | 1 #ifndef __DEFINED__SkPdfType3FontDictionary |
2 #define __DEFINED__SkPdfType3FontDictionary | 2 #define __DEFINED__SkPdfType3FontDictionary |
3 | 3 |
4 #include "SkPdfEnums_autogen.h" | 4 #include "SkPdfEnums_autogen.h" |
5 #include "SkPdfArray_autogen.h" | 5 #include "SkPdfArray_autogen.h" |
6 #include "SkPdfFontDictionary_autogen.h" | 6 #include "SkPdfType0FontDictionary_autogen.h" |
7 | 7 |
8 // Entries in a Type 3 font dictionary | 8 // Entries in a Type 3 font dictionary |
9 class SkPdfType3FontDictionary : public SkPdfFontDictionary { | 9 class SkPdfType3FontDictionary : public SkPdfType0FontDictionary { |
10 public: | 10 public: |
11 virtual SkPdfObjectType getType() const { return kType3FontDictionary_SkPdfObj
ectType;} | 11 virtual SkPdfObjectType getType() const { return kType3FontDictionary_SkPdfObj
ectType;} |
12 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kType3Fo
ntDictionary_SkPdfObjectType + 1);} | 12 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kType3Fo
ntDictionary_SkPdfObjectType + 1);} |
13 public: | 13 public: |
14 virtual SkPdfType3FontDictionary* asType3FontDictionary() {return this;} | 14 virtual SkPdfType3FontDictionary* asType3FontDictionary() {return this;} |
15 virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return
this;} | 15 virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return
this;} |
16 | 16 |
17 private: | 17 private: |
18 virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} | |
19 virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL
;} | |
20 | |
21 virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} | |
22 virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {r
eturn NULL;} | |
23 | |
24 virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} | |
25 virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return
NULL;} | |
26 | |
27 virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} | |
28 virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return
NULL;} | |
29 | |
30 virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return
NULL;} | |
31 virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() co
nst {return NULL;} | |
32 | |
33 public: | 18 public: |
34 private: | 19 private: |
35 public: | 20 public: |
36 SkPdfType3FontDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObje
ct* podofoObj = NULL) : SkPdfFontDictionary(podofoDoc, podofoObj) {} | 21 SkPdfType3FontDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfObje
ct* podofoObj = NULL) : SkPdfType0FontDictionary(podofoDoc, podofoObj) {} |
37 | 22 |
38 virtual bool valid() const {return true;} | 23 virtual bool valid() const {return true;} |
39 | 24 |
40 SkPdfType3FontDictionary& operator=(const SkPdfType3FontDictionary& from) {thi
s->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *thi
s;} | 25 SkPdfType3FontDictionary& operator=(const SkPdfType3FontDictionary& from) {thi
s->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *thi
s;} |
41 | 26 |
42 /** (Required) The type of PDF object that this dictionary describes; must be | 27 /** (Required) The type of PDF object that this dictionary describes; must be |
43 * Font for a font dictionary. | 28 * Font for a font dictionary. |
44 **/ | 29 **/ |
45 bool has_Type() const { | 30 bool has_Type() const { |
46 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type"
, "", NULL)); | 31 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Type"
, "", NULL)); |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 SkPdfArray FontMatrix() const { | 95 SkPdfArray FontMatrix() const { |
111 SkPdfArray ret; | 96 SkPdfArray ret; |
112 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontMatrix
", "", &ret)) return ret; | 97 if (ArrayFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "FontMatrix
", "", &ret)) return ret; |
113 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 98 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
114 return SkPdfArray(); | 99 return SkPdfArray(); |
115 } | 100 } |
116 | 101 |
117 }; | 102 }; |
118 | 103 |
119 #endif // __DEFINED__SkPdfType3FontDictionary | 104 #endif // __DEFINED__SkPdfType3FontDictionary |
OLD | NEW |