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

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

Powered by Google App Engine
This is Rietveld 408576698