Code

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