[poppler] Branch 'poppler-0.6' - poppler/GlobalParams.cc poppler/GlobalParams.h

Albert Astals Cid aacid at kemper.freedesktop.org
Tue Oct 23 14:34:59 PDT 2007


 poppler/GlobalParams.cc |   49 ++++++++++++++++++++++++++++++++++++++++++++++++
 poppler/GlobalParams.h  |    7 ++++++
 2 files changed, 56 insertions(+)

New commits:
commit 02713c88d938b08f7b5efb3fc0f80c20a7498b13
Author: Albert Astals Cid <tsdgeos at bluebox.localdomain>
Date:   Tue Oct 23 23:34:33 2007 +0200

    Provide setters for some methods that only had getters. Fixes bug 12894

diff --git a/poppler/GlobalParams.cc b/poppler/GlobalParams.cc
index 6a531b3..de7c0cc 100644
--- a/poppler/GlobalParams.cc
+++ b/poppler/GlobalParams.cc
@@ -1661,6 +1661,55 @@ GBool GlobalParams::setVectorAntialias(char *s) {
   return ok;
 }
 
+void GlobalParams::setStrokeAdjust(GBool adjust)
+{
+  lockGlobalParams;
+  strokeAdjust = adjust;
+  unlockGlobalParams;
+}
+
+void GlobalParams::setScreenType(ScreenType st)
+{
+  lockGlobalParams;
+  screenType = st;
+  unlockGlobalParams;
+}
+
+void GlobalParams::setScreenSize(int size)
+{
+  lockGlobalParams;
+  screenSize = size;
+  unlockGlobalParams;
+}
+
+void GlobalParams::setScreenDotRadius(int radius)
+{
+  lockGlobalParams;
+  screenDotRadius = radius;
+  unlockGlobalParams;
+}
+
+void GlobalParams::setScreenGamma(double gamma)
+{
+  lockGlobalParams;
+  screenGamma = gamma;
+  unlockGlobalParams;
+}
+
+void GlobalParams::setScreenBlackThreshold(double blackThreshold)
+{
+  lockGlobalParams;
+  screenBlackThreshold = blackThreshold;
+  unlockGlobalParams;
+}
+
+void GlobalParams::setScreenWhiteThreshold(double whiteThreshold)
+{
+  lockGlobalParams;
+  screenWhiteThreshold = whiteThreshold;
+  unlockGlobalParams;
+}
+
 void GlobalParams::setMapNumericCharNames(GBool map) {
   lockGlobalParams;
   mapNumericCharNames = map;
diff --git a/poppler/GlobalParams.h b/poppler/GlobalParams.h
index 3334789..f1c6d07 100644
--- a/poppler/GlobalParams.h
+++ b/poppler/GlobalParams.h
@@ -209,6 +209,13 @@ public:
   GBool setEnableFreeType(char *s);
   GBool setAntialias(char *s);
   GBool setVectorAntialias(char *s);
+  void setStrokeAdjust(GBool strokeAdjust);
+  void setScreenType(ScreenType st);
+  void setScreenSize(int size);
+  void setScreenDotRadius(int radius);
+  void setScreenGamma(double gamma);
+  void setScreenBlackThreshold(double blackThreshold);
+  void setScreenWhiteThreshold(double whiteThreshold);
   void setMapNumericCharNames(GBool map);
   void setMapUnknownCharNames(GBool map);
   void setPrintCommands(GBool printCommandsA);


More information about the poppler mailing list