Scribus
Open source desktop publishing at your fingertips
objprinter.h
1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 #ifndef OBJPRINTER_H
8 #define OBJPRINTER_H
9 
10 // Pulls in <Python.h> first
11 #include "cmdvar.h"
12 
13 extern PyTypeObject Printer_Type;
14 
15 // Nest items are not needed but are here for me to exercise
16 // writing complete python objects
17 
18 #define Printer_Check(op) ((op)->ob_type == &Printer_Type)
19 
20 PyDoc_STRVAR(printer__doc__,"Printing\n\
21 \n\
22 Class Printer() provides printing for Python scripting.\n\
23 \n\
24 Example:\n\
25 p = Printer()\n\
26 p.print()");
27 
28 #endif /* OBJPRINTER_H */