Convert the check printing code from Scheme to C. Add support for

using the GtkPrint API when compiled against gtk+ 2.10 or later.  Add
support for reading check description files instead of hard coding
check descriptions.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15709 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton
2007-03-13 03:43:24 +00:00
parent 5246632fb4
commit 2af48fcb16
19 changed files with 1746 additions and 447 deletions

17
checks/Makefile.am Normal file
View File

@@ -0,0 +1,17 @@
checksdir = ${GNC_CHECKS_DIR}
if HAVE_GTK_2_10
checks_DATA = \
deluxe.chk \
quicken.chk \
quicken_wallet.chk
else
checks_DATA = \
gnomeprint/deluxe.chk \
gnomeprint/quicken.chk \
gnomeprint/quicken_wallet.chk
endif
EXTRA_DIST = \
${checks_DATA}

22
checks/deluxe.chk Normal file
View File

@@ -0,0 +1,22 @@
[Top]
Title = Deluxe(tm) Personal Checks US-Letter
Rotation = -90.0
Translation = 4;492
Show_Grid = 0
Show_Boxes = 0
[Check Items]
Type_1 = PAYEE
Coords_1 = 126.0;85.0
Type_2 = AMOUNT_WORDS
Coords_2 = 90.0;107.0
Type_3 = AMOUNT_NUMBER
Coords_3 = 395.0;85.0
Type_4 = DATE
Coords_4 = 343.0;54.0
Type_5 = MEMO
Coords_5 = 100.0;159.0

View File

@@ -0,0 +1,22 @@
[Top]
Title = Deluxe(tm) Personal Checks US-Letter
Rotation = 90
Translation = 232;300
Show_Grid = 0
Show_Boxes = 0
[Check Items]
Type_1 = PAYEE
Coords_1 = 126.0;147.0
Type_2 = AMOUNT_WORDS
Coords_2 = 90.0;125.0
Type_3 = AMOUNT_NUMBER
Coords_3 = 395.0;147.0
Type_4 = DATE
Coords_4 = 343.0;178.0
Type_5 = MEMO
Coords_5 = 100.0;73.0

View File

@@ -0,0 +1,28 @@
[Top]
Title = Quicken/QuickBooks (tm) US-Letter
Rotation = 0.0
Translation = 0.0;0.0
Show_Grid = 0
Show_Boxes = 0
[Check Positions]
Height = 252.0
Name_1 = Top
Name_2 = Middle
Name_3 = Bottom
[Check Items]
Type_1 = PAYEE
Coords_1 = 90.0;150.0;400.0;20.0
Type_2 = AMOUNT_WORDS
Coords_2 = 90.0;120.0
Type_3 = AMOUNT_NUMBER
Coords_3 = 500.0;150.0
Type_4 = DATE
Coords_4 = 500.0;185.0
Type_5 = MEMO
Coords_5 = 50.0;40.0

View File

@@ -0,0 +1,40 @@
[Top]
Title = Quicken(tm) Wallet Checks w/ side stub
Rotation = 0.0
Translation = 0.0;0.0
Show_Grid = 0
Show_Boxes = 0
[Check Positions]
Height = 204.0
Name_1 = Top
Name_2 = Middle
Name_3 = Bottom
[Check Items]
Type_1 = PAYEE
Coords_1 = 231.0;140.0
Type_2 = AMOUNT_WORDS
Coords_2 = 195.0;125.0
Type_3 = AMOUNT_NUMBER
Coords_3 = 518.0;137.0
Type_4 = DATE
Coords_4 = 504.0;151.0
Type_5 = MEMO
Coords_5 = 216.0;37.0
Type_6 = DATE
Coords_6 = 36.0;151.0
Type_7 = PAYEE
Coords_7 = 26.0;126.0
Type_8 = AMOUNT_NUMBER
Coords_8 = 50.0;90.0
Type_9 = MEMO
Coords_9 = 28.0;65.0

28
checks/quicken.chk Normal file
View File

@@ -0,0 +1,28 @@
[Top]
Title = Quicken/QuickBooks (tm) US-Letter
Rotation = 0.0
Translation = 0.0;4.0
Show_Grid = 0
Show_Boxes = 0
[Check Positions]
Height = 252.0
Name_1 = Top
Name_2 = Middle
Name_3 = Bottom
[Check Items]
Type_1 = PAYEE
Coords_1 = 90.0;102.0;400.0;20.0
Type_2 = AMOUNT_WORDS
Coords_2 = 90.0;132.0
Type_3 = AMOUNT_NUMBER
Coords_3 = 500.0;102.0
Type_4 = DATE
Coords_4 = 500.0;67.0
Type_5 = MEMO
Coords_5 = 50.0;212.0

40
checks/quicken_wallet.chk Normal file
View File

@@ -0,0 +1,40 @@
[Top]
Title = Quicken(tm) Wallet Checks w/ side stub
Rotation = 0.0
Translation = 0.0;4.0
Show_Grid = 0
Show_Boxes = 0
[Check Positions]
Height = 204.0
Name_1 = Top
Name_2 = Middle
Name_3 = Bottom
[Check Items]
Type_1 = PAYEE
Coords_1 = 231.0;64.0
Type_2 = AMOUNT_WORDS
Coords_2 = 195.0;79.0
Type_3 = AMOUNT_NUMBER
Coords_3 = 518.0;67.0
Type_4 = DATE
Coords_4 = 504.0;53.0
Type_5 = MEMO
Coords_5 = 216.0;167.0
Type_6 = DATE
Coords_6 = 36.0;53.0
Type_7 = PAYEE
Coords_7 = 26.0;78.0
Type_8 = AMOUNT_NUMBER
Coords_8 = 50.0;114.0
Type_9 = MEMO
Coords_9 = 28.0;139.0