00001
00002
00003
00004 #ifndef APP_DOCUMENTPY_H
00005 #define APP_DOCUMENTPY_H
00006
00007 #include <App/PropertyContainerPy.h>
00008 #include <App/Document.h>
00009 #include <string>
00010
00011 namespace App
00012 {
00013
00014
00015
00016
00017
00020 class AppExport DocumentPy : public App::PropertyContainerPy
00021 {
00022 public:
00023 static PyTypeObject Type;
00024 static PyMethodDef Methods[];
00025 static PyGetSetDef GetterSetter[];
00026 static PyParentObject Parents[];
00027 virtual PyTypeObject *GetType(void) {return &Type;};
00028 virtual PyParentObject *GetParents(void) {return Parents;}
00029
00030 public:
00031 DocumentPy(Document *pcObject, PyTypeObject *T = &Type);
00032 static PyObject *PyMake(struct _typeobject *, PyObject *, PyObject *);
00033 virtual int PyInit(PyObject* args, PyObject*k);
00034 ~DocumentPy();
00035
00036 typedef Document* PointerType ;
00037
00038 virtual PyObject *_repr(void);
00039 std::string representation(void) const;
00040
00043
00044 static PyObject * staticCallback_save (PyObject *self, PyObject *args);
00046 PyObject* save(PyObject *args);
00048 static PyObject * staticCallback_restore (PyObject *self, PyObject *args);
00050 PyObject* restore(PyObject *args);
00052 static PyObject * staticCallback_openTransaction (PyObject *self, PyObject *args);
00054 PyObject* openTransaction(PyObject *args);
00056 static PyObject * staticCallback_abortTransaction (PyObject *self, PyObject *args);
00058 PyObject* abortTransaction(PyObject *args);
00060 static PyObject * staticCallback_commitTransaction (PyObject *self, PyObject *args);
00062 PyObject* commitTransaction(PyObject *args);
00064 static PyObject * staticCallback_addObject (PyObject *self, PyObject *args);
00066 PyObject* addObject(PyObject *args);
00068 static PyObject * staticCallback_removeObject (PyObject *self, PyObject *args);
00070 PyObject* removeObject(PyObject *args);
00072 static PyObject * staticCallback_copyObject (PyObject *self, PyObject *args);
00074 PyObject* copyObject(PyObject *args);
00076 static PyObject * staticCallback_moveObject (PyObject *self, PyObject *args);
00078 PyObject* moveObject(PyObject *args);
00080 static PyObject * staticCallback_undo (PyObject *self, PyObject *args);
00082 PyObject* undo(PyObject *args);
00084 static PyObject * staticCallback_redo (PyObject *self, PyObject *args);
00086 PyObject* redo(PyObject *args);
00088 static PyObject * staticCallback_clearUndos (PyObject *self, PyObject *args);
00090 PyObject* clearUndos(PyObject *args);
00092 static PyObject * staticCallback_recompute (PyObject *self, PyObject *args);
00094 PyObject* recompute(PyObject *args);
00096 static PyObject * staticCallback_getObject (PyObject *self, PyObject *args);
00098 PyObject* getObject(PyObject *args);
00100 static PyObject * staticCallback_getObjectsByLabel (PyObject *self, PyObject *args);
00102 PyObject* getObjectsByLabel(PyObject *args);
00104 static PyObject * staticCallback_findObjects (PyObject *self, PyObject *args);
00106 PyObject* findObjects(PyObject *args);
00108 static PyObject * staticCallback_supportedTypes (PyObject *self, PyObject *args);
00110 PyObject* supportedTypes(PyObject *args);
00112 static PyObject * staticCallback_getTempFileName (PyObject *self, PyObject *args);
00114 PyObject* getTempFileName(PyObject *args);
00116
00117
00120
00121 static PyObject * staticCallback_getDependencyGraph (PyObject *self, void *closure);
00123 Py::String getDependencyGraph(void) const;
00125 static int staticCallback_setDependencyGraph (PyObject *self, PyObject *value, void *closure);
00126
00128 static PyObject * staticCallback_getActiveObject (PyObject *self, void *closure);
00130 Py::Object getActiveObject(void) const;
00132 static int staticCallback_setActiveObject (PyObject *self, PyObject *value, void *closure);
00133
00135 static PyObject * staticCallback_getObjects (PyObject *self, void *closure);
00137 Py::List getObjects(void) const;
00139 static int staticCallback_setObjects (PyObject *self, PyObject *value, void *closure);
00140
00142 static PyObject * staticCallback_getUndoMode (PyObject *self, void *closure);
00144 Py::Int getUndoMode(void) const;
00146 static int staticCallback_setUndoMode (PyObject *self, PyObject *value, void *closure);
00148 void setUndoMode(Py::Int arg);
00150 static PyObject * staticCallback_getUndoRedoMemSize (PyObject *self, void *closure);
00152 Py::Int getUndoRedoMemSize(void) const;
00154 static int staticCallback_setUndoRedoMemSize (PyObject *self, PyObject *value, void *closure);
00155
00157 static PyObject * staticCallback_getUndoCount (PyObject *self, void *closure);
00159 Py::Int getUndoCount(void) const;
00161 static int staticCallback_setUndoCount (PyObject *self, PyObject *value, void *closure);
00162
00164 static PyObject * staticCallback_getRedoCount (PyObject *self, void *closure);
00166 Py::Int getRedoCount(void) const;
00168 static int staticCallback_setRedoCount (PyObject *self, PyObject *value, void *closure);
00169
00171 static PyObject * staticCallback_getUndoNames (PyObject *self, void *closure);
00173 Py::List getUndoNames(void) const;
00175 static int staticCallback_setUndoNames (PyObject *self, PyObject *value, void *closure);
00176
00178 static PyObject * staticCallback_getRedoNames (PyObject *self, void *closure);
00180 Py::List getRedoNames(void) const;
00182 static int staticCallback_setRedoNames (PyObject *self, PyObject *value, void *closure);
00183
00185 static PyObject * staticCallback_getName (PyObject *self, void *closure);
00187 Py::String getName(void) const;
00189 static int staticCallback_setName (PyObject *self, PyObject *value, void *closure);
00190
00192
00194 PyObject *getCustomAttributes(const char* attr) const;
00196 int setCustomAttributes(const char* attr, PyObject *obj);
00197 PyObject *_getattr(char *attr);
00198 int _setattr(char *attr, PyObject *value);
00199
00201 Document *getDocumentPtr(void) const;
00202
00205
00207 };
00208
00209 #define PARENTSAppDocumentPy &DocumentPy::Type,PARENTSAppPropertyContainerPy
00210
00211 }
00212
00213 #endif // APP_DOCUMENTPY_H
00214
00215