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

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

Issue 17395005: put each generated pdf api class in a file (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 kObjectArray_SkPdfObjectType; } 10 virtual SkPdfObjectType getType() const { return kArray_SkPdfObjectType;}
11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kObjectA rray_SkPdfObjectType + 1);} 11 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kArray_S kPdfObjectType + 1);}
12 public: 12 public:
13 virtual SkPdfArray* asArray() {return this;} 13 virtual SkPdfArray* asArray() {return this;}
14 virtual const SkPdfArray* asArray() const {return this;} 14 virtual const SkPdfArray* asArray() const {return this;}
15 15
16 private: 16 private:
17 virtual SkPdfBoolean* asBoolean() {return NULL;} 17 virtual SkPdfBoolean* asBoolean() {return NULL;}
18 virtual const SkPdfBoolean* asBoolean() const {return NULL;} 18 virtual const SkPdfBoolean* asBoolean() const {return NULL;}
19 19
20 virtual SkPdfDictionary* asDictionary() {return NULL;} 20 virtual SkPdfDictionary* asDictionary() {return NULL;}
21 virtual const SkPdfDictionary* asDictionary() const {return NULL;} 21 virtual const SkPdfDictionary* asDictionary() const {return NULL;}
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 514
515 virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;} 515 virtual SkPdfXObjectDictionary* asXObjectDictionary() {return NULL;}
516 virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL ;} 516 virtual const SkPdfXObjectDictionary* asXObjectDictionary() const {return NULL ;}
517 517
518 virtual SkPdfImageDictionary* asImageDictionary() {return NULL;} 518 virtual SkPdfImageDictionary* asImageDictionary() {return NULL;}
519 virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;} 519 virtual const SkPdfImageDictionary* asImageDictionary() const {return NULL;}
520 520
521 virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;} 521 virtual SkPdfType1FormDictionary* asType1FormDictionary() {return NULL;}
522 virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;} 522 virtual const SkPdfType1FormDictionary* asType1FormDictionary() const {return NULL;}
523 523
524 virtual SkPdfHexString* asHexString() {return NULL;}
525 virtual const SkPdfHexString* asHexString() const {return NULL;}
526
527 virtual SkPdfInteger* asInteger() {return NULL;} 524 virtual SkPdfInteger* asInteger() {return NULL;}
528 virtual const SkPdfInteger* asInteger() const {return NULL;} 525 virtual const SkPdfInteger* asInteger() const {return NULL;}
529 526
527 virtual SkPdfNumber* asNumber() {return NULL;}
528 virtual const SkPdfNumber* asNumber() const {return NULL;}
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 SkPdfNumber* asNumber() {return NULL;}
537 virtual const SkPdfNumber* asNumber() const {return NULL;}
538
539 virtual SkPdfReference* asReference() {return NULL;} 536 virtual SkPdfReference* asReference() {return NULL;}
540 virtual const SkPdfReference* asReference() const {return NULL;} 537 virtual const SkPdfReference* asReference() const {return NULL;}
541 538
542 virtual SkPdfString* asString() {return NULL;} 539 virtual SkPdfString* asString() {return NULL;}
543 virtual const SkPdfString* asString() const {return NULL;} 540 virtual const SkPdfString* asString() const {return NULL;}
544 541
542 virtual SkPdfHexString* asHexString() {return NULL;}
543 virtual const SkPdfHexString* asHexString() const {return NULL;}
544
545 public: 545 public:
546 const int size() const {return fPodofoObj->GetArray().GetSize();} 546 const int size() const {return fPodofoObj->GetArray().GetSize();}
547 const SkPdfObject operator[](int i) const {return SkPdfObject(fPodofoDoc, &fPo dofoObj->GetArray()[i]);} 547 const SkPdfObject operator[](int i) const {return SkPdfObject(fPodofoDoc, &fPo dofoObj->GetArray()[i]);}
548 SkPdfObject operator[](int i) {return SkPdfObject(fPodofoDoc, &fPodofoObj->Get Array()[i]);} 548 SkPdfObject operator[](int i) {return SkPdfObject(fPodofoDoc, &fPodofoObj->Get Array()[i]);}
549 private: 549 private:
550 public: 550 public:
551 SkPdfArray(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfObject(podofoDoc, podofoObj) {} 551 SkPdfArray(const PdfMemDocument* podofoDoc = NULL, const PdfObject* podofoObj = NULL) : SkPdfObject(podofoDoc, podofoObj) {}
552 552
553 virtual bool valid() const {return true;} 553 virtual bool valid() const {return true;}
554 554
555 SkPdfArray& operator=(const SkPdfArray& from) {this->fPodofoDoc = from.fPodofo Doc; this->fPodofoObj = from.fPodofoObj; return *this;} 555 SkPdfArray& operator=(const SkPdfArray& from) {this->fPodofoDoc = from.fPodofo Doc; this->fPodofoObj = from.fPodofoObj; return *this;}
556 556
557 }; 557 };
558 558
559 #endif // __DEFINED__SkPdfArray 559 #endif // __DEFINED__SkPdfArray
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698