OLD | NEW |
1 #ifndef __DEFINED__SkPdfGraphicsStateDictionary | 1 #ifndef __DEFINED__SkPdfGraphicsStateDictionary |
2 #define __DEFINED__SkPdfGraphicsStateDictionary | 2 #define __DEFINED__SkPdfGraphicsStateDictionary |
3 | 3 |
4 #include "SkPdfEnums_autogen.h" | 4 #include "SkPdfEnums_autogen.h" |
5 #include "SkPdfArray_autogen.h" | 5 #include "SkPdfArray_autogen.h" |
6 #include "SkPdfDictionary_autogen.h" | 6 #include "SkPdfDictionary_autogen.h" |
7 | 7 |
8 // Entries in a graphics state parameter dictionary | 8 // Entries in a graphics state parameter dictionary |
9 class SkPdfGraphicsStateDictionary : public SkPdfDictionary { | 9 class SkPdfGraphicsStateDictionary : public SkPdfDictionary { |
10 public: | 10 public: |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 | 158 |
159 virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NU
LL;} | 159 virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NU
LL;} |
160 virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() cons
t {return NULL;} | 160 virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() cons
t {return NULL;} |
161 | 161 |
162 virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} | 162 virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} |
163 virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} | 163 virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} |
164 | 164 |
165 virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} | 165 virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} |
166 virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL
;} | 166 virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL
;} |
167 | 167 |
168 virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} | |
169 virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {r
eturn NULL;} | |
170 | |
171 virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} | 168 virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} |
172 virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return
NULL;} | 169 virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return
NULL;} |
173 | 170 |
| 171 virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} |
| 172 virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return
NULL;} |
| 173 |
174 virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} | 174 virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} |
175 virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return
NULL;} | 175 virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return
NULL;} |
176 | 176 |
177 virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return
NULL;} | 177 virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return
NULL;} |
178 virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() co
nst {return NULL;} | 178 virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() co
nst {return NULL;} |
179 | 179 |
180 virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} | 180 virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;} |
181 virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return
NULL;} | 181 virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {r
eturn NULL;} |
182 | 182 |
183 virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {retur
n NULL;} | 183 virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {retur
n NULL;} |
184 virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary()
const {return NULL;} | 184 virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary()
const {return NULL;} |
185 | 185 |
186 virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {r
eturn NULL;} | 186 virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {r
eturn NULL;} |
187 virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionar
y() const {return NULL;} | 187 virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionar
y() const {return NULL;} |
188 | 188 |
189 virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NU
LL;} | 189 virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NU
LL;} |
190 virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() cons
t {return NULL;} | 190 virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() cons
t {return NULL;} |
191 | 191 |
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
899 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 899 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
900 return NULL; | 900 return NULL; |
901 } | 901 } |
902 | 902 |
903 bool isHTAStream() const { | 903 bool isHTAStream() const { |
904 SkPdfObject* ret = NULL; | 904 SkPdfObject* ret = NULL; |
905 if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HT", "",
&ret)) return false; | 905 if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HT", "",
&ret)) return false; |
906 return ret->podofo()->HasStream(); | 906 return ret->podofo()->HasStream(); |
907 } | 907 } |
908 | 908 |
909 SkPdfStream getHTAsStream() const { | 909 SkPdfStream* getHTAsStream() const { |
910 SkPdfStream ret = SkPdfStream(); | 910 SkPdfStream* ret = NULL; |
911 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HT", "",
&ret)) return ret; | 911 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HT", "",
&ret)) return ret; |
912 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 912 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
913 return SkPdfStream(); | 913 return NULL; |
914 } | 914 } |
915 | 915 |
916 bool isHTAName() const { | 916 bool isHTAName() const { |
917 SkPdfObject* ret = NULL; | 917 SkPdfObject* ret = NULL; |
918 if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HT", "",
&ret)) return false; | 918 if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "HT", "",
&ret)) return false; |
919 return ret->podofo()->GetDataType() == ePdfDataType_Name; | 919 return ret->podofo()->GetDataType() == ePdfDataType_Name; |
920 } | 920 } |
921 | 921 |
922 std::string getHTAsName() const { | 922 std::string getHTAsName() const { |
923 std::string ret = ""; | 923 std::string ret = ""; |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1096 bool TK() const { | 1096 bool TK() const { |
1097 bool ret; | 1097 bool ret; |
1098 if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TK", "", &r
et)) return ret; | 1098 if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "TK", "", &r
et)) return ret; |
1099 // TODO(edisonn): warn about missing required field, assert for known good p
dfs | 1099 // TODO(edisonn): warn about missing required field, assert for known good p
dfs |
1100 return false; | 1100 return false; |
1101 } | 1101 } |
1102 | 1102 |
1103 }; | 1103 }; |
1104 | 1104 |
1105 #endif // __DEFINED__SkPdfGraphicsStateDictionary | 1105 #endif // __DEFINED__SkPdfGraphicsStateDictionary |
OLD | NEW |