Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(710)

Side by Side Diff: experimental/PdfViewer/SkPdfType2PatternDictionary_autogen.h

Issue 17294008: load font manually, for now Type0 (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #ifndef __DEFINED__SkPdfType2PatternDictionary 1 #ifndef __DEFINED__SkPdfType2PatternDictionary
2 #define __DEFINED__SkPdfType2PatternDictionary 2 #define __DEFINED__SkPdfType2PatternDictionary
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 type 2 pattern dictionary 8 // Entries in a type 2 pattern dictionary
9 class SkPdfType2PatternDictionary : public SkPdfDictionary { 9 class SkPdfType2PatternDictionary : public SkPdfDictionary {
10 public: 10 public:
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 // TODO(edisonn): warn about missing required field, assert for known good p dfs 570 // TODO(edisonn): warn about missing required field, assert for known good p dfs
571 return NULL; 571 return NULL;
572 } 572 }
573 573
574 bool isShadingAStream() const { 574 bool isShadingAStream() const {
575 SkPdfObject* ret = NULL; 575 SkPdfObject* ret = NULL;
576 if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Shading" , "", &ret)) return false; 576 if (!ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Shading" , "", &ret)) return false;
577 return ret->podofo()->HasStream(); 577 return ret->podofo()->HasStream();
578 } 578 }
579 579
580 SkPdfStream getShadingAsStream() const { 580 SkPdfStream* getShadingAsStream() const {
581 SkPdfStream ret = SkPdfStream(); 581 SkPdfStream* ret = NULL;
582 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Shading", "", &ret)) return ret; 582 if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Shading", "", &ret)) return ret;
583 // TODO(edisonn): warn about missing required field, assert for known good p dfs 583 // TODO(edisonn): warn about missing required field, assert for known good p dfs
584 return SkPdfStream(); 584 return NULL;
585 } 585 }
586 586
587 /** (Optional) An array of six numbers specifying the pattern matrix (see Sectio n 587 /** (Optional) An array of six numbers specifying the pattern matrix (see Sectio n
588 * 4.6.1, "General Properties of Patterns"). Default value: the identity matrix 588 * 4.6.1, "General Properties of Patterns"). Default value: the identity matrix
589 * [1 0 0 1 0 0]. 589 * [1 0 0 1 0 0].
590 **/ 590 **/
591 bool has_Matrix() const { 591 bool has_Matrix() const {
592 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Matri x", "", NULL)); 592 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Matri x", "", NULL));
593 } 593 }
594 594
(...skipping 18 matching lines...) Expand all
613 SkPdfDictionary* ExtGState() const { 613 SkPdfDictionary* ExtGState() const {
614 SkPdfDictionary* ret; 614 SkPdfDictionary* ret;
615 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ExtGS tate", "", &ret)) return ret; 615 if (DictionaryFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "ExtGS tate", "", &ret)) return ret;
616 // TODO(edisonn): warn about missing required field, assert for known good p dfs 616 // TODO(edisonn): warn about missing required field, assert for known good p dfs
617 return NULL; 617 return NULL;
618 } 618 }
619 619
620 }; 620 };
621 621
622 #endif // __DEFINED__SkPdfType2PatternDictionary 622 #endif // __DEFINED__SkPdfType2PatternDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698