Back to index

scribus-ng  1.3.4.dfsg+svn20071115
cmdvar.h
Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 #ifndef CMDVAR_H
00008 #define CMDVAR_H
00009 
00010 #if defined(_XOPEN_SOURCE)
00011 #undef _XOPEN_SOURCE
00012 #endif
00013 
00014 #include "scconfig.h"
00015 
00016 #if defined(HAVE_BOOST_PYTHON)
00017 #include <boost/python.hpp>
00018 #else
00019 #include <Python.h>
00020 #endif
00021 
00022 #include <qstring.h>
00023 
00024 #include "scribus.h"
00025 
00026 #ifndef Py_RETURN_NONE
00027        #define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
00028 #endif
00029 
00030 #ifndef Py_RETURN_TRUE
00031        #define Py_RETURN_TRUE return Py_INCREF(Py_True), Py_True
00032 #endif
00033 
00034 class ScripterCore;
00035 
00036 // Globals for testing Qt properties and probably other more intresting future
00037 // uses.
00039 extern PyObject* wrappedQApp;
00041 extern PyObject* wrappedMainWindow;
00042 
00044 extern ScripterCore* scripterCore;
00045 
00047 extern "C" void initscribus(ScribusMainWindow *pl);
00048 
00049 /* Exceptions */
00051 extern PyObject* ScribusException;
00053 extern PyObject* NoDocOpenError;
00055 extern PyObject* WrongFrameTypeError;
00057 extern PyObject* NoValidObjectError;
00059 extern PyObject* NotFoundError;
00061 extern PyObject* NameExistsError;
00062 
00063 #endif
00064