Scribus
Open source desktop publishing at your fingertips
cmdvar.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 CMDVAR_H
8 #define CMDVAR_H
9 
10 
11 #include "scconfig.h"
12 
13 // PV - commented out - why it was here?
14 #if defined(_XOPEN_SOURCE)
15  #undef _XOPEN_SOURCE
16 #endif
17 #if defined(_POSIX_C_SOURCE)
18  #undef _POSIX_C_SOURCE
19 #endif
20 
21 #if defined(HAVE_BOOST_PYTHON)
22 #include <boost/python.hpp>
23 #else
24 #include <Python.h>
25 #endif
26 
27 #ifndef Py_RETURN_NONE
28  #define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
29 #endif
30 
31 #ifndef Py_RETURN_TRUE
32  #define Py_RETURN_TRUE return Py_INCREF(Py_True), Py_True
33 #endif
34 
35 #include <QString>
36 
37 #include "scribus.h"
38 
39 
40 class ScripterCore;
41 
42 // Globals for testing Qt properties and probably other more intresting future
43 // uses.
45 extern PyObject* wrappedQApp;
47 extern PyObject* wrappedMainWindow;
48 
50 extern ScripterCore* scripterCore;
51 
53 extern "C" void initscribus(ScribusMainWindow *pl);
54 
55 /* Exceptions */
57 extern PyObject* ScribusException;
59 extern PyObject* NoDocOpenError;
61 extern PyObject* WrongFrameTypeError;
63 extern PyObject* NoValidObjectError;
65 extern PyObject* NotFoundError;
67 extern PyObject* NameExistsError;
68 
72 #ifndef EMPTY_STRING
73 #define EMPTY_STRING const_cast<char*>("")
74 #endif
75 
76 #endif
77 
This Class is the base class for your application. It sets up the main window and providing a menubar...
Definition: scribus.h:123
Definition: scriptercore.h:20