]> www.fi.muni.cz Git - evince.git/blobdiff - pdf/xpdf/SFont.cc
Reused eog HIG dialog in GPdf.
[evince.git] / pdf / xpdf / SFont.cc
index 5ffe315e2e03c7414b8a3af5b0881034aede0f07..1f421dd4541d09ed5dd5ca146aeea2f276bf31bd 100644 (file)
@@ -2,9 +2,13 @@
 //
 // SFont.cc
 //
+// Copyright 2001-2003 Glyph & Cog, LLC
+//
 //========================================================================
 
-#ifdef __GNUC__
+#include <aconf.h>
+
+#ifdef USE_GCC_PRAGMAS
 #pragma implementation
 #endif
 
 
 //------------------------------------------------------------------------
 
-SFontEngine::SFontEngine(Display *display, Visual *visual, int depth,
-                        Colormap colormap) {
-  this->display = display;
-  this->visual = visual;
-  this->depth = depth;
-  this->colormap = colormap;
-};
+SFontEngine::SFontEngine(Display *displayA, Visual *visualA, int depthA,
+                        Colormap colormapA) {
+  display = displayA;
+  visual = visualA;
+  depth = depthA;
+  colormap = colormapA;
+}
 
 SFontEngine::~SFontEngine() {
 }
 
-void SFontEngine::useTrueColor(int rMax, int rShift, int gMax, int gShift,
-                              int bMax, int bShift) {
+void SFontEngine::useTrueColor(int rMaxA, int rShiftA, int gMaxA, int gShiftA,
+                              int bMaxA, int bShiftA) {
   trueColor = gTrue;
-  this->rMax = rMax;
-  this->rShift = rShift;
-  this->gMax = gMax;
-  this->gShift = gShift;
-  this->bMax = bMax;
-  this->bShift = bShift;
+  rMax = rMaxA;
+  rShift = rShiftA;
+  gMax = gMaxA;
+  gShift = gShiftA;
+  bMax = bMaxA;
+  bShift = bShiftA;
 }
 
-void SFontEngine::useColorCube(Gulong *colors, int nRGB) {
+void SFontEngine::useColorCube(Gulong *colorsA, int nRGBA) {
   trueColor = gFalse;
-  this->colors = colors;
-  this->nRGB = nRGB;
+  colors = colorsA;
+  nRGB = nRGBA;
   rMax = gMax = bMax = nRGB - 1;
 }
 
@@ -71,3 +75,7 @@ SFont::SFont() {
 
 SFont::~SFont() {
 }
+
+GBool SFont::getCharPath(CharCode c, Unicode u, GfxState *state) {
+  return gFalse;
+}