objimageexport.cpp File Reference
#include "objimageexport.h"#include "cmdutil.h"#include "page.h"#include <QImageWriter>#include <structmember.h>#include <QFileInfo>#include <vector>#include "scribuscore.h"

Go to the source code of this file.
Classes | |
| struct | ImageExport |
Functions | |
| static void | ImageExport_dealloc (ImageExport *self) |
| static PyObject * | ImageExport_new (PyTypeObject *type, PyObject *, PyObject *) |
| static int | ImageExport_init (ImageExport *, PyObject *, PyObject *) |
| static PyObject * | ImageExport_getName (ImageExport *self, void *) |
| static int | ImageExport_setName (ImageExport *self, PyObject *value, void *) |
| static PyObject * | ImageExport_getType (ImageExport *self, void *) |
| static int | ImageExport_setType (ImageExport *self, PyObject *value, void *) |
| static PyObject * | ImageExport_getAllTypes (ImageExport *, void *) |
| static int | ImageExport_setAllTypes (ImageExport *, PyObject *, void *) |
| static PyObject * | ImageExport_save (ImageExport *self) |
| static PyObject * | ImageExport_saveAs (ImageExport *self, PyObject *args) |
Variables | |
| static PyMemberDef | ImageExport_members [] |
| static PyGetSetDef | ImageExport_getseters [] |
| static PyMethodDef | ImageExport_methods [] |
| PyTypeObject | ImageExport_Type |
Function Documentation
| static void ImageExport_dealloc | ( | ImageExport * | self | ) | [static] |
Definition at line 28 of file objimageexport.cpp.
| static PyObject* ImageExport_getAllTypes | ( | ImageExport * | , | |
| void * | ||||
| ) | [static] |
Definition at line 111 of file objimageexport.cpp.
| static PyObject* ImageExport_getName | ( | ImageExport * | self, | |
| void * | ||||
| ) | [static] |
Definition at line 66 of file objimageexport.cpp.
| static PyObject* ImageExport_getType | ( | ImageExport * | self, | |
| void * | ||||
| ) | [static] |
Definition at line 89 of file objimageexport.cpp.
| static int ImageExport_init | ( | ImageExport * | , | |
| PyObject * | , | |||
| PyObject * | ||||
| ) | [static] |
Definition at line 54 of file objimageexport.cpp.
| static PyObject* ImageExport_new | ( | PyTypeObject * | type, | |
| PyObject * | , | |||
| PyObject * | ||||
| ) | [static] |
| static PyObject* ImageExport_save | ( | ImageExport * | self | ) | [static] |
Definition at line 138 of file objimageexport.cpp.
References checkHaveDocument(), ScribusDoc::currentPage(), ScribusMainWindow::doc, ScribusDoc::pageHeight, Page::pageNr(), ScribusView::PageToPixmap(), ScribusDoc::pageWidth, ScribusCore::primaryMainWindow(), ScCore, ScribusException, tr(), and ScribusMainWindow::view.
| static PyObject* ImageExport_saveAs | ( | ImageExport * | self, | |
| PyObject * | args | |||
| ) | [static] |
Definition at line 166 of file objimageexport.cpp.
References checkHaveDocument(), ScribusDoc::currentPage(), ScribusMainWindow::doc, ScribusDoc::pageHeight, Page::pageNr(), ScribusView::PageToPixmap(), ScribusDoc::pageWidth, ScribusCore::primaryMainWindow(), ScCore, ScribusException, tr(), value, and ScribusMainWindow::view.
| static int ImageExport_setAllTypes | ( | ImageExport * | , | |
| PyObject * | , | |||
| void * | ||||
| ) | [static] |
| static int ImageExport_setName | ( | ImageExport * | self, | |
| PyObject * | value, | |||
| void * | ||||
| ) | [static] |
| static int ImageExport_setType | ( | ImageExport * | self, | |
| PyObject * | value, | |||
| void * | ||||
| ) | [static] |
Variable Documentation
PyGetSetDef ImageExport_getseters[] [static] |
Initial value:
{
{const_cast<char*>("name"), (getter)ImageExport_getName, (setter)ImageExport_setName, imgexp_filename__doc__, NULL},
{const_cast<char*>("type"), (getter)ImageExport_getType, (setter)ImageExport_setType, imgexp_type__doc__, NULL},
{const_cast<char*>("allTypes"), (getter)ImageExport_getAllTypes, (setter)ImageExport_setAllTypes, imgexp_alltypes__doc__, NULL},
{NULL, NULL, NULL, NULL, NULL}
}
Definition at line 131 of file objimageexport.cpp.
PyMemberDef ImageExport_members[] [static] |
Initial value:
{
{const_cast<char*>("dpi"), T_INT, offsetof(ImageExport, dpi), 0, imgexp_dpi__doc__},
{const_cast<char*>("scale"), T_INT, offsetof(ImageExport, scale), 0, imgexp_scale__doc__},
{const_cast<char*>("quality"), T_INT, offsetof(ImageExport, quality), 0, imgexp_quality__doc__},
{NULL, 0, 0, 0, NULL}
}
Definition at line 59 of file objimageexport.cpp.
PyMethodDef ImageExport_methods[] [static] |
Initial value:
{
{const_cast<char*>("save"), (PyCFunction)ImageExport_save, METH_NOARGS, imgexp_save__doc__},
{const_cast<char*>("saveAs"), (PyCFunction)ImageExport_saveAs, METH_VARARGS, imgexp_saveas__doc__},
{NULL, (PyCFunction)(0), 0, NULL}
}
Definition at line 197 of file objimageexport.cpp.
| PyTypeObject ImageExport_Type |
