1 /*
2  *  $Id: prtext.c,v 1.10 2000/08/10 21:02:51 danny Exp $
3  *
4  *  This file is part of Oleo, the GNU spreadsheet.
5  *
6  *  Copyright � 1999 by the Free Software Foundation, Inc.
7  *  Written by Danny Backx <danny@gnu.org>.
8  *
9  *  This program is free software; you can redistribute it and/or modify
10  *  it under the terms of the GNU General Public License as published by
11  *  the Free Software Foundation; either version 2 of the License, or
12  *  (at your option) any later version.
13  *
14  *  This program is distributed in the hope that it will be useful,
15  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  *  GNU General Public License for more details.
18  *
19  *  You should have received a copy of the GNU General Public License
20  *  along with this program; if not, write to the Free Software
21  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22  */
23 
24 static char rcsid[] = "$Id: prtext.c,v 1.10 2000/08/10 21:02:51 danny Exp $";
25 
26 #ifdef HAVE_CONFIG_H
27 #include "config.h"
28 #endif
29 
30 #ifdef	WITH_DMALLOC
31 #include <dmalloc.h>
32 #endif
33 
34 #include <stdio.h>
35 
36 #include "global.h"
37 
38 #include "print.h"
39 
TextJobHeader(char * str,int npages,FILE * fp)40 void TextJobHeader(char *str, int npages, FILE *fp)
41 {
42 }
43 
TextJobTrailer(int npages,FILE * fp)44 void TextJobTrailer(int npages, FILE *fp)
45 {
46 }
47 
TextPageHeader(char * str,FILE * fp)48 void TextPageHeader(char *str, FILE *fp)
49 {
50 }
51 
TextPageFooter(char * str,FILE * fp)52 void TextPageFooter(char *str, FILE *fp)
53 {
54 }
55 
TextField(char * str,int wid,int rightborder,int xpoints,int xchars,FILE * fp)56 void TextField(char *str, int wid, int rightborder,
57 			int xpoints, int xchars, FILE *fp)
58 {
59 }
60 
TextBorders(FILE * fp)61 void TextBorders(FILE *fp)
62 {
63 }
64 
TextFont(char * family,char * slant,int size,FILE * fp)65 void TextFont(char *family, char *slant, int size, FILE *fp)
66 {
67 }
68 
TextNewLine(int ht,FILE * fp)69 void TextNewLine(int ht, FILE *fp)
70 {
71 	fprintf(fp, "\n");
72 }
73 
TextPrinterPaperSize(int wid,int ht,FILE * fp)74 void TextPrinterPaperSize(int wid, int ht, FILE *fp)
75 {
76 }
77 
TextSetEncoding(char * encoding)78 void TextSetEncoding(char *encoding)
79 {
80 }
81 
82 struct PrintDriver TextPrintDriver = {
83 	"Text",
84 	&TextJobHeader,
85 	&TextJobTrailer,
86 	&TextPageHeader,
87 	&TextPageFooter,
88 	&TextField,
89 	&TextBorders,
90 	&TextFont,
91 	&TextNewLine,
92 	&TextPrinterPaperSize,
93 	&TextSetEncoding
94 };
95