2 /* ###################################################
3 ## This file generated by quotefile.pl from
4 ## inkscape_py.py on Thu Dec 16 15:35:46 2004
5 ## DO NOT EDIT
6 ################################################### */
8 static char *inkscape_module_script =
9 "# This file was created automatically by SWIG.\n"
10 "# Don't modify this file, modify the SWIG interface instead.\n"
11 "# This file is compatible with both classic and new-style classes.\n"
12 "\n"
13 "import _inkscape_py\n"
14 "\n"
15 "def _swig_setattr_nondynamic(self,class_type,name,value,static=1):\n"
16 " if (name == \"this\"):\n"
17 " if isinstance(value, class_type):\n"
18 " self.__dict__[name] = value.this\n"
19 " if hasattr(value,\"thisown\"): self.__dict__[\"thisown\"] = value.thisown\n"
20 " del value.thisown\n"
21 " return\n"
22 " method = class_type.__swig_setmethods__.get(name,None)\n"
23 " if method: return method(self,value)\n"
24 " if (not static) or hasattr(self,name) or (name == \"thisown\"):\n"
25 " self.__dict__[name] = value\n"
26 " else:\n"
27 " raise AttributeError(\"You cannot add attributes to %s\" % self)\n"
28 "\n"
29 "def _swig_setattr(self,class_type,name,value):\n"
30 " return _swig_setattr_nondynamic(self,class_type,name,value,0)\n"
31 "\n"
32 "def _swig_getattr(self,class_type,name):\n"
33 " method = class_type.__swig_getmethods__.get(name,None)\n"
34 " if method: return method(self)\n"
35 " raise AttributeError,name\n"
36 "\n"
37 "import types\n"
38 "try:\n"
39 " _object = types.ObjectType\n"
40 " _newclass = 1\n"
41 "except AttributeError:\n"
42 " class _object : pass\n"
43 " _newclass = 0\n"
44 "del types\n"
45 "\n"
46 "\n"
47 "\n"
48 "getInkscape = _inkscape_py.getInkscape\n"
49 "class Inkscape(_object):\n"
50 " __swig_setmethods__ = {}\n"
51 " __setattr__ = lambda self, name, value: _swig_setattr(self, Inkscape, name, value)\n"
52 " __swig_getmethods__ = {}\n"
53 " __getattr__ = lambda self, name: _swig_getattr(self, Inkscape, name)\n"
54 " def __init__(self): raise RuntimeError, \"No constructor defined\"\n"
55 " def __repr__(self):\n"
56 " return \"<%s.%s; proxy of C++ Inkscape::Extension::Script::Inkscape instance at %s>\" % (self.__class__.__module__, self.__class__.__name__, self.this,)\n"
57 " def __del__(self, destroy=_inkscape_py.delete_Inkscape):\n"
58 " try:\n"
59 " if self.thisown: destroy(self)\n"
60 " except: pass\n"
61 "\n"
62 " def getDesktop(*args): return _inkscape_py.Inkscape_getDesktop(*args)\n"
63 " def getDialogManager(*args): return _inkscape_py.Inkscape_getDialogManager(*args)\n"
64 "\n"
65 "class InkscapePtr(Inkscape):\n"
66 " def __init__(self, this):\n"
67 " _swig_setattr(self, Inkscape, 'this', this)\n"
68 " if not hasattr(self,\"thisown\"): _swig_setattr(self, Inkscape, 'thisown', 0)\n"
69 " _swig_setattr(self, Inkscape,self.__class__,Inkscape)\n"
70 "_inkscape_py.Inkscape_swigregister(InkscapePtr)\n"
71 "\n"
72 "class DialogManager(_object):\n"
73 " __swig_setmethods__ = {}\n"
74 " __setattr__ = lambda self, name, value: _swig_setattr(self, DialogManager, name, value)\n"
75 " __swig_getmethods__ = {}\n"
76 " __getattr__ = lambda self, name: _swig_getattr(self, DialogManager, name)\n"
77 " def __init__(self): raise RuntimeError, \"No constructor defined\"\n"
78 " def __repr__(self):\n"
79 " return \"<%s.%s; proxy of C++ Inkscape::Extension::Script::DialogManager instance at %s>\" % (self.__class__.__module__, self.__class__.__name__, self.this,)\n"
80 " def __del__(self, destroy=_inkscape_py.delete_DialogManager):\n"
81 " try:\n"
82 " if self.thisown: destroy(self)\n"
83 " except: pass\n"
84 "\n"
85 " def showAbout(*args): return _inkscape_py.DialogManager_showAbout(*args)\n"
86 "\n"
87 "class DialogManagerPtr(DialogManager):\n"
88 " def __init__(self, this):\n"
89 " _swig_setattr(self, DialogManager, 'this', this)\n"
90 " if not hasattr(self,\"thisown\"): _swig_setattr(self, DialogManager, 'thisown', 0)\n"
91 " _swig_setattr(self, DialogManager,self.__class__,DialogManager)\n"
92 "_inkscape_py.DialogManager_swigregister(DialogManagerPtr)\n"
93 "\n"
94 "class Desktop(_object):\n"
95 " __swig_setmethods__ = {}\n"
96 " __setattr__ = lambda self, name, value: _swig_setattr(self, Desktop, name, value)\n"
97 " __swig_getmethods__ = {}\n"
98 " __getattr__ = lambda self, name: _swig_getattr(self, Desktop, name)\n"
99 " def __init__(self): raise RuntimeError, \"No constructor defined\"\n"
100 " def __repr__(self):\n"
101 " return \"<%s.%s; proxy of C++ Inkscape::Extension::Script::Desktop instance at %s>\" % (self.__class__.__module__, self.__class__.__name__, self.this,)\n"
102 " def __del__(self, destroy=_inkscape_py.delete_Desktop):\n"
103 " try:\n"
104 " if self.thisown: destroy(self)\n"
105 " except: pass\n"
106 "\n"
107 " def getDocument(*args): return _inkscape_py.Desktop_getDocument(*args)\n"
108 "\n"
109 "class DesktopPtr(Desktop):\n"
110 " def __init__(self, this):\n"
111 " _swig_setattr(self, Desktop, 'this', this)\n"
112 " if not hasattr(self,\"thisown\"): _swig_setattr(self, Desktop, 'thisown', 0)\n"
113 " _swig_setattr(self, Desktop,self.__class__,Desktop)\n"
114 "_inkscape_py.Desktop_swigregister(DesktopPtr)\n"
115 "\n"
116 "class Document(_object):\n"
117 " __swig_setmethods__ = {}\n"
118 " __setattr__ = lambda self, name, value: _swig_setattr(self, Document, name, value)\n"
119 " __swig_getmethods__ = {}\n"
120 " __getattr__ = lambda self, name: _swig_getattr(self, Document, name)\n"
121 " def __init__(self): raise RuntimeError, \"No constructor defined\"\n"
122 " def __repr__(self):\n"
123 " return \"<%s.%s; proxy of C++ Inkscape::Extension::Script::Document instance at %s>\" % (self.__class__.__module__, self.__class__.__name__, self.this,)\n"
124 " def __del__(self, destroy=_inkscape_py.delete_Document):\n"
125 " try:\n"
126 " if self.thisown: destroy(self)\n"
127 " except: pass\n"
128 "\n"
129 " def hello(*args): return _inkscape_py.Document_hello(*args)\n"
130 "\n"
131 "class DocumentPtr(Document):\n"
132 " def __init__(self, this):\n"
133 " _swig_setattr(self, Document, 'this', this)\n"
134 " if not hasattr(self,\"thisown\"): _swig_setattr(self, Document, 'thisown', 0)\n"
135 " _swig_setattr(self, Document,self.__class__,Document)\n"
136 "_inkscape_py.Document_swigregister(DocumentPtr)\n"
137 "\n"
138 "\n"
139 "";