summaryrefslogtreecommitdiffstats
path: root/scribus/plugins/scriptplugin/objprinter.h
diff options
context:
space:
mode:
Diffstat (limited to 'scribus/plugins/scriptplugin/objprinter.h')
-rw-r--r--scribus/plugins/scriptplugin/objprinter.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/scribus/plugins/scriptplugin/objprinter.h b/scribus/plugins/scriptplugin/objprinter.h
new file mode 100644
index 0000000..cf834a2
--- /dev/null
+++ b/scribus/plugins/scriptplugin/objprinter.h
@@ -0,0 +1,28 @@
+/*
+For general Scribus (>=1.3.2) copyright and licensing information please refer
+to the COPYING file provided with the program. Following this notice may exist
+a copyright and/or license notice that predates the release of Scribus 1.3.2
+for which a new license (GPL+exception) is in place.
+*/
+#ifndef OBJPRINTER_H
+#define OBJPRINTER_H
+
+// Pulls in <Python.h> first
+#include "cmdvar.h"
+
+extern PyTypeObject Printer_Type;
+
+// Nest items are not needed but are here for me to exercise
+// writing complete python objects
+
+#define Printer_Check(op) ((op)->ob_type == &Printer_Type)
+
+PyDoc_STRVAR(printer__doc__,"Printing\n\
+\n\
+Class Printer() provides printing for Python scripting.\n\
+\n\
+Example:\n\
+p = Printer()\n\
+p.print()");
+
+#endif /* OBJPRINTER_H */