From 6ba9a5fb5b53cc99c0b15c8b794fb56cc897cb9f Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Sat, 9 Aug 2003 21:08:20 +0000 Subject: [PATCH] * src/TextDoc.py (PaperStyle.set_height, PaperStyle.set_width): Add functions. Needed for setting custom size paper. * configure.in: Set RELEASE to CVS- string. svn: r1974 --- ChangeLog | 5 +++++ configure.in | 2 +- src/TextDoc.py | 8 ++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 75f57d966..9167414f9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-08-09 Alex Roitman + * src/TextDoc.py (PaperStyle.set_height, PaperStyle.set_width): + Add functions. Needed for setting custom size paper. + * configure.in: Set RELEASE to CVS- string. + 2003-08-08 Alex Roitman * src/PaperMenu.py: Add A3 size to the default size list. * src/plugins/FamilyGroup.py: Remove setup() call. diff --git a/configure.in b/configure.in index 97fd03377..c3ca51881 100644 --- a/configure.in +++ b/configure.in @@ -2,7 +2,7 @@ dnl Process this file with autoconf to produce a configure script. dnl May need to run automake && aclocal first AC_INIT(src/gramps.py) AM_INIT_AUTOMAKE(gramps, 0.9.3) -RELEASE=1 +RELEASE=CVS-$(date +%G%m%d) VERSIONSTRING=$VERSION if test x"$RELEASE" != "x" diff --git a/src/TextDoc.py b/src/TextDoc.py index d23df9c3e..a08d6cdc5 100644 --- a/src/TextDoc.py +++ b/src/TextDoc.py @@ -151,10 +151,18 @@ class PaperStyle: "Returns the page height in cm" return self.height + def set_height(self,height): + "Sets the page height in cm" + self.height = height + def get_width(self): "Returns the page width in cm" return self.width + def set_width(self,width): + "Sets the page width in cm" + self.width = width + def get_height_inches(self): "Returns the page height in inches" return self.height / 2.54