[poppler] 2 commits - poppler/GlobalParams.cc poppler/GlobalParams.h

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


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

New commits:
commit 6bd637dc135045b20abf024d394538d7a3160795
Merge: c01ab71... 25b273d...
Author: Albert Astals Cid <tsdgeos at bluebox.localdomain>
Date:   Tue Oct 23 23:27:01 2007 +0200

    Merge branch 'master' of ssh://aacid@git.freedesktop.org/git/poppler/poppler

commit c01ab714ecd42e39ecb0be1c0c2504635251ac01
Author: Albert Astals Cid <tsdgeos at bluebox.localdomain>
Date:   Tue Oct 23 23:26:21 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 1d59460..cf97e78 100644
--- a/poppler/GlobalParams.cc
+++ b/poppler/GlobalParams.cc
@@ -1665,6 +1665,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 f836732..d505d74 100644
--- a/poppler/GlobalParams.h
+++ b/poppler/GlobalParams.h
@@ -224,6 +224,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