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

Side by Side Diff: experimental/PdfViewer/SkPdfObject_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__SkPdfObject 1 #ifndef __DEFINED__SkPdfObject
2 #define __DEFINED__SkPdfObject 2 #define __DEFINED__SkPdfObject
3 3
4 #include "SkPdfEnums_autogen.h" 4 #include "SkPdfEnums_autogen.h"
5 #include "SkPdfArray_autogen.h" 5 #include "SkPdfArray_autogen.h"
6 6
7 class SkPdfObject { 7 class SkPdfObject {
8 public: 8 public:
9 virtual SkPdfObjectType getType() const { return kObject_SkPdfObjectType;} 9 virtual SkPdfObjectType getType() const { return kObject_SkPdfObjectType;}
10 virtual SkPdfObjectType getTypeEnd() const { return kObject__End_SkPdfObjectTy pe;} 10 virtual SkPdfObjectType getTypeEnd() const { return kObject__End_SkPdfObjectTy pe;}
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 164
165 virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NU LL;} 165 virtual SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() {return NU LL;}
166 virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() cons t {return NULL;} 166 virtual const SkPdfFontDescriptorDictionary* asFontDescriptorDictionary() cons t {return NULL;}
167 167
168 virtual SkPdfFontDictionary* asFontDictionary() {return NULL;} 168 virtual SkPdfFontDictionary* asFontDictionary() {return NULL;}
169 virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;} 169 virtual const SkPdfFontDictionary* asFontDictionary() const {return NULL;}
170 170
171 virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;} 171 virtual SkPdfCIDFontDictionary* asCIDFontDictionary() {return NULL;}
172 virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL ;} 172 virtual const SkPdfCIDFontDictionary* asCIDFontDictionary() const {return NULL ;}
173 173
174 virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
175 virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {r eturn NULL;}
176
177 virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;} 174 virtual SkPdfType0FontDictionary* asType0FontDictionary() {return NULL;}
178 virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;} 175 virtual const SkPdfType0FontDictionary* asType0FontDictionary() const {return NULL;}
179 176
177 virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;}
178 virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;}
179
180 virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;} 180 virtual SkPdfType1FontDictionary* asType1FontDictionary() {return NULL;}
181 virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;} 181 virtual const SkPdfType1FontDictionary* asType1FontDictionary() const {return NULL;}
182 182
183 virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;} 183 virtual SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() {return NULL;}
184 virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() co nst {return NULL;} 184 virtual const SkPdfMultiMasterFontDictionary* asMultiMasterFontDictionary() co nst {return NULL;}
185 185
186 virtual SkPdfType3FontDictionary* asType3FontDictionary() {return NULL;} 186 virtual SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() {return NULL;}
187 virtual const SkPdfType3FontDictionary* asType3FontDictionary() const {return NULL;} 187 virtual const SkPdfTrueTypeFontDictionary* asTrueTypeFontDictionary() const {r eturn NULL;}
188 188
189 virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {retur n NULL;} 189 virtual SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() {retur n NULL;}
190 virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;} 190 virtual const SkPdfFormFieldActionsDictionary* asFormFieldActionsDictionary() const {return NULL;}
191 191
192 virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {r eturn NULL;} 192 virtual SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionary() {r eturn NULL;}
193 virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionar y() const {return NULL;} 193 virtual const SkPdfFreeTextAnnotationDictionary* asFreeTextAnnotationDictionar y() const {return NULL;}
194 194
195 virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NU LL;} 195 virtual SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() {return NU LL;}
196 virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() cons t {return NULL;} 196 virtual const SkPdfFunctionCommonDictionary* asFunctionCommonDictionary() cons t {return NULL;}
197 197
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 530
531 virtual SkPdfName* asName() {return NULL;} 531 virtual SkPdfName* asName() {return NULL;}
532 virtual const SkPdfName* asName() const {return NULL;} 532 virtual const SkPdfName* asName() const {return NULL;}
533 533
534 virtual SkPdfNull* asNull() {return NULL;} 534 virtual SkPdfNull* asNull() {return NULL;}
535 virtual const SkPdfNull* asNull() const {return NULL;} 535 virtual const SkPdfNull* asNull() const {return NULL;}
536 536
537 virtual SkPdfReference* asReference() {return NULL;} 537 virtual SkPdfReference* asReference() {return NULL;}
538 virtual const SkPdfReference* asReference() const {return NULL;} 538 virtual const SkPdfReference* asReference() const {return NULL;}
539 539
540 virtual SkPdfStream* asStream() {return NULL;}
541 virtual const SkPdfStream* asStream() const {return NULL;}
542
540 virtual SkPdfString* asString() {return NULL;} 543 virtual SkPdfString* asString() {return NULL;}
541 virtual const SkPdfString* asString() const {return NULL;} 544 virtual const SkPdfString* asString() const {return NULL;}
542 545
543 virtual SkPdfHexString* asHexString() {return NULL;} 546 virtual SkPdfHexString* asHexString() {return NULL;}
544 virtual const SkPdfHexString* asHexString() const {return NULL;} 547 virtual const SkPdfHexString* asHexString() const {return NULL;}
545 548
546 public: 549 public:
547 private: 550 private:
548 protected: 551 protected:
549 const PdfMemDocument* fPodofoDoc; 552 const PdfMemDocument* fPodofoDoc;
550 const PdfObject* fPodofoObj; 553 const PdfObject* fPodofoObj;
551 554
552 public: 555 public:
553 SkPdfObject(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : fPodofoDoc(podofoDoc), fPodofoObj(podofoObj) {} 556 SkPdfObject(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : fPodofoDoc(podofoDoc), fPodofoObj(podofoObj) {}
554 const PdfMemDocument* doc() const { return fPodofoDoc;} 557 const PdfMemDocument* doc() const { return fPodofoDoc;}
555 const PdfObject* podofo() const { return fPodofoObj;} 558 const PdfObject* podofo() const { return fPodofoObj;}
556 virtual bool valid() const {return true;} 559 virtual bool valid() const {return true;}
557 560
558 SkPdfObject& operator=(const SkPdfObject& from) {this->fPodofoDoc = from.fPodo foDoc; this->fPodofoObj = from.fPodofoObj; return *this;} 561 SkPdfObject& operator=(const SkPdfObject& from) {this->fPodofoDoc = from.fPodo foDoc; this->fPodofoObj = from.fPodofoObj; return *this;}
559 562
560 }; 563 };
561 564
562 #endif // __DEFINED__SkPdfObject 565 #endif // __DEFINED__SkPdfObject
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698