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

Side by Side Diff: experimental/PdfViewer/pdfparser/podofo/autogen/SkPdfType2ShadingDictionary_autogen.h

Issue 18404006: remove now all the files fro depot for PDF API since we generate them at build time (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 5 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
(Empty)
1 #ifndef __DEFINED__SkPdfType2ShadingDictionary
2 #define __DEFINED__SkPdfType2ShadingDictionary
3
4 #include "SkPdfUtils.h"
5 #include "SkPdfEnums_autogen.h"
6 #include "SkPdfArray_autogen.h"
7 #include "SkPdfShadingDictionary_autogen.h"
8
9 // Additional entries specific to a type 2 shading dictionary
10 class SkPdfType2ShadingDictionary : public SkPdfShadingDictionary {
11 public:
12 virtual SkPdfObjectType getType() const { return kType2ShadingDictionary_SkPdf ObjectType;}
13 virtual SkPdfObjectType getTypeEnd() const { return (SkPdfObjectType)(kType2Sh adingDictionary_SkPdfObjectType + 1);}
14 public:
15 virtual SkPdfType2ShadingDictionary* asType2ShadingDictionary() {return this;}
16 virtual const SkPdfType2ShadingDictionary* asType2ShadingDictionary() const {r eturn this;}
17
18 private:
19 virtual SkPdfType1ShadingDictionary* asType1ShadingDictionary() {return NULL;}
20 virtual const SkPdfType1ShadingDictionary* asType1ShadingDictionary() const {r eturn NULL;}
21
22 virtual SkPdfType3ShadingDictionary* asType3ShadingDictionary() {return NULL;}
23 virtual const SkPdfType3ShadingDictionary* asType3ShadingDictionary() const {r eturn NULL;}
24
25 virtual SkPdfType4ShadingDictionary* asType4ShadingDictionary() {return NULL;}
26 virtual const SkPdfType4ShadingDictionary* asType4ShadingDictionary() const {r eturn NULL;}
27
28 virtual SkPdfType5ShadingDictionary* asType5ShadingDictionary() {return NULL;}
29 virtual const SkPdfType5ShadingDictionary* asType5ShadingDictionary() const {r eturn NULL;}
30
31 virtual SkPdfType6ShadingDictionary* asType6ShadingDictionary() {return NULL;}
32 virtual const SkPdfType6ShadingDictionary* asType6ShadingDictionary() const {r eturn NULL;}
33
34 public:
35 private:
36 public:
37 SkPdfType2ShadingDictionary(const PdfMemDocument* podofoDoc = NULL, const PdfO bject* podofoObj = NULL) : SkPdfShadingDictionary(podofoDoc, podofoObj) {}
38
39 SkPdfType2ShadingDictionary(const SkPdfType2ShadingDictionary& from) : SkPdfSh adingDictionary(from.fPodofoDoc, from.fPodofoObj) {}
40
41 virtual bool valid() const {return true;}
42
43 SkPdfType2ShadingDictionary& operator=(const SkPdfType2ShadingDictionary& from ) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; retur n *this;}
44
45 /** (Required) An array of four numbers [ x0 y0 x1 y1 ] specifying the starting and
46 * ending coordinates of the axis, expressed in the shading's target coordinate
47 * space.
48 **/
49 bool has_Coords() const {
50 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Coord s", "", NULL));
51 }
52
53 SkPdfArray* Coords() const;
54 /** (Optional) An array of two numbers [ t0 t1 ] specifying the limiting values of a
55 * parametric variable t. The variable is considered to vary linearly between t hese
56 * two values as the color gradient varies between the starting and ending poin ts of
57 * the axis. The variable t becomes the input argument to the color function(s) .
58 * Default value: [0.0 1.0].
59 **/
60 bool has_Domain() const {
61 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Domai n", "", NULL));
62 }
63
64 SkPdfArray* Domain() const;
65 /** (Required) A 1-in, n-out function or an array of n 1-in, 1-out functions (wh ere n
66 * is the number of color components in the shading dictionary's color space). The
67 * function(s) are called with values of the parametric variable t in the domai n de-
68 * fined by the Domain entry. Each function's domain must be a superset of that of
69 * the shading dictionary. If the value returned by the function for a given co lor
70 * component is out of range, it will be adjusted to the nearest valid value.
71 **/
72 bool has_Function() const {
73 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Funct ion", "", NULL));
74 }
75
76 SkPdfFunction Function() const;
77 /** (Optional) An array of two boolean values specifying whether to extend the
78 * shading beyond the starting and ending points of the axis, respectively. Def ault
79 * value: [false false].
80 **/
81 bool has_Extend() const {
82 return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Exten d", "", NULL));
83 }
84
85 SkPdfArray* Extend() const;
86 };
87
88 #endif // __DEFINED__SkPdfType2ShadingDictionary
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698