~ubuntu-branches/ubuntu/lucid/xpdf/lucid-updates

« back to all changes in this revision

Viewing changes to xpdf/SplashOutputDev.h

  • Committer: Bazaar Package Importer
  • Author(s): Andy Price
  • Date: 2007-05-17 22:04:33 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070517220433-gzcx2lrvllkbl7mr
Tags: 3.02-1ubuntu1
* Merge from Debian unstable (LP: #113365), remaining changes:
  - Added back 09_xpdfrc_manpage.dpatch (LP #71753)
  - Set Ubuntu maintainer

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
class T3FontCache;
32
32
struct T3FontCacheTag;
33
33
struct T3GlyphStack;
 
34
struct SplashTransparencyGroup;
34
35
 
35
36
//------------------------------------------------------------------------
36
37
 
74
75
  // End a page.
75
76
  virtual void endPage();
76
77
 
77
 
  //----- link borders
78
 
  virtual void drawLink(Link *link, Catalog *catalog);
79
 
 
80
78
  //----- save/restore graphics state
81
79
  virtual void saveState(GfxState *state);
82
80
  virtual void restoreState(GfxState *state);
91
89
  virtual void updateLineCap(GfxState *state);
92
90
  virtual void updateMiterLimit(GfxState *state);
93
91
  virtual void updateLineWidth(GfxState *state);
 
92
  virtual void updateStrokeAdjust(GfxState *state);
94
93
  virtual void updateFillColor(GfxState *state);
95
94
  virtual void updateStrokeColor(GfxState *state);
96
95
  virtual void updateBlendMode(GfxState *state);
108
107
  //----- path clipping
109
108
  virtual void clip(GfxState *state);
110
109
  virtual void eoClip(GfxState *state);
 
110
  virtual void clipToStrokePath(GfxState *state);
111
111
 
112
112
  //----- text drawing
113
113
  virtual void drawChar(GfxState *state, double x, double y,
144
144
  virtual void type3D1(GfxState *state, double wx, double wy,
145
145
                       double llx, double lly, double urx, double ury);
146
146
 
 
147
  //----- transparency groups and soft masks
 
148
  virtual void beginTransparencyGroup(GfxState *state, double *bbox,
 
149
                                      GfxColorSpace *blendingColorSpace,
 
150
                                      GBool isolated, GBool knockout,
 
151
                                      GBool forSoftMask);
 
152
  virtual void endTransparencyGroup(GfxState *state);
 
153
  virtual void paintTransparencyGroup(GfxState *state, double *bbox);
 
154
  virtual void setSoftMask(GfxState *state, double *bbox, GBool alpha,
 
155
                           Function *transferFunc, GfxColor *backdropColor);
 
156
  virtual void clearSoftMask(GfxState *state);
 
157
 
147
158
  //----- special access
148
159
 
149
160
  // Called to indicate that a new PDF document has been loaded.
176
187
  void setFillColor(int r, int g, int b);
177
188
 
178
189
  // Get a font object for a Base-14 font, using the Latin-1 encoding.
179
 
  SplashFont *getFont(GString *name, double *mat);
 
190
  SplashFont *getFont(GString *name, double *textMatA);
180
191
 
181
192
  SplashFont *getCurrentFont() { return font; }
182
193
 
 
194
#if 1 //~tmp: turn off anti-aliasing temporarily
 
195
  virtual GBool getVectorAntialias();
 
196
  virtual void setVectorAntialias(GBool vaa);
 
197
#endif
 
198
 
183
199
private:
184
200
 
 
201
  void setupScreenParams(double hDPI, double vDPI);
185
202
#if SPLASH_CMYK
186
203
  SplashPattern *getColor(GfxGray gray, GfxRGB *rgb, GfxCMYK *cmyk);
187
204
#else
188
205
  SplashPattern *getColor(GfxGray gray, GfxRGB *rgb);
189
206
#endif
190
207
  SplashPath *convertPath(GfxState *state, GfxPath *path);
 
208
  void doUpdateFont(GfxState *state);
191
209
  void drawType3Glyph(T3FontCache *t3Font,
192
 
                      T3FontCacheTag *tag, Guchar *data,
193
 
                      double x, double y);
 
210
                      T3FontCacheTag *tag, Guchar *data);
194
211
  static GBool imageMaskSrc(void *data, SplashColorPtr line);
195
 
  static GBool imageSrc(void *data, SplashColorPtr line);
196
 
  static GBool alphaImageSrc(void *data, SplashColorPtr line);
197
 
  static GBool maskedImageSrc(void *data, SplashColorPtr line);
 
212
  static GBool imageSrc(void *data, SplashColorPtr colorLine,
 
213
                        Guchar *alphaLine);
 
214
  static GBool alphaImageSrc(void *data, SplashColorPtr line,
 
215
                             Guchar *alphaLine);
 
216
  static GBool maskedImageSrc(void *data, SplashColorPtr line,
 
217
                              Guchar *alphaLine);
198
218
 
199
219
  SplashColorMode colorMode;
200
220
  int bitmapRowPad;
201
221
  GBool bitmapTopDown;
202
222
  GBool allowAntialias;
 
223
  GBool vectorAntialias;
203
224
  GBool reverseVideo;           // reverse video mode
204
225
  SplashColor paperColor;       // paper color
 
226
  SplashScreenParams screenParams;
205
227
 
206
228
  XRef *xref;                   // xref table for current document
207
229
 
217
239
  SplashFont *font;             // current font
218
240
  GBool needFontUpdate;         // set when the font needs to be updated
219
241
  SplashPath *textClipPath;     // clipping path built with text object
 
242
 
 
243
  SplashTransparencyGroup *     // transparency group stack
 
244
    transpGroupStack;
220
245
};
221
246
 
222
247
#endif