Subversion Repositories Scribus

Rev

Rev 87 | Rev 104 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
103 Franz 1
#include "cmddialog.h"
82 Franz 2
#include "cmdvar.h"
3
 
4
PyObject *scribus_newdocdia(PyObject *self, PyObject* args)
5
{
6
        if (!PyArg_ParseTuple(args, ""))
7
                return NULL;
8
        bool ret = Carrier->slotFileNew();
9
        if (ret)
10
                doc = Carrier->doc;
11
        return PyInt_FromLong(static_cast<long>(ret));
12
}
13
 
14
PyObject *scribus_filedia(PyObject *self, PyObject* args)
15
{
16
        char *caption;
17
        char *filter;
18
        char *defName;
19
        int pre = 0;
20
        int mode = 0;
87 Franz 21
        return !PyArg_ParseTuple(args, "sss|ii", &caption, &filter, &defName, &pre, &mode) ? NULL :
22
                PyString_FromString(Carrier->CFileDialog(caption, filter, defName, static_cast<bool>(pre), static_cast<bool>(mode), 0, 0));
82 Franz 23
}
24