Back to index

scribus-ng  1.3.4.dfsg+svn20071115
Functions
cmdgetprop.h File Reference
#include "cmdvar.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

 PyDoc_STRVAR (scribus_getfillcolor__doc__, QT_TR_NOOP("getFillColor([\"name\"]) -> string\n\ \n\ Returns the name of the fill color of the object \"name\".\n\ If \"name\" is not given the currently selected item is used.\n\ "))
 Query-Functions.
PyObject * scribus_getfillcolor (PyObject *, PyObject *args)
 Returns fill color of the object.
 PyDoc_STRVAR (scribus_getfilltrans__doc__, QT_TR_NOOP("getFillTransparency([\"name\"]) -> float\n\ \n\ Returns the fill transparency of the object \"name\". If \"name\"\n\ is not given the currently selected Item is used.\n\ "))
 docstring
PyObject * scribus_getfilltrans (PyObject *, PyObject *args)
 Returns fill transparency of the object.
 PyDoc_STRVAR (scribus_getfillblend__doc__, QT_TR_NOOP("getFillBlendmode([\"name\"]) -> integer\n\ \n\ Returns the fill blendmode of the object \"name\". If \"name\"\n\ is not given the currently selected Item is used.\n\ "))
 docstring
PyObject * scribus_getfillblend (PyObject *, PyObject *args)
 Returns fill blendmode of the object.
 PyDoc_STRVAR (scribus_getlinecolor__doc__, QT_TR_NOOP("getLineColor([\"name\"]) -> string\n\ \n\ Returns the name of the line color of the object \"name\".\n\ If \"name\" is not given the currently selected item is used.\n\ "))
 docstring
PyObject * scribus_getlinecolor (PyObject *, PyObject *args)
 Returns color of the line.
 PyDoc_STRVAR (scribus_getlinetrans__doc__, QT_TR_NOOP("getLineTransparency([\"name\"]) -> float\n\ \n\ Returns the line transparency of the object \"name\". If \"name\"\n\ is not given the currently selected Item is used.\n\ "))
 docstring
PyObject * scribus_getlinetrans (PyObject *, PyObject *args)
 Returns line transparency of the object.
 PyDoc_STRVAR (scribus_getlineblend__doc__, QT_TR_NOOP("getLineBlendmode([\"name\"]) -> integer\n\ \n\ Returns the line blendmode of the object \"name\". If \"name\"\n\ is not given the currently selected Item is used.\n\ "))
 docstring
PyObject * scribus_getlineblend (PyObject *, PyObject *args)
 Returns line blendmode of the object.
 PyDoc_STRVAR (scribus_getlinewidth__doc__, QT_TR_NOOP("getLineWidth([\"name\"]) -> integer\n\ \n\ Returns the line width of the object \"name\". If \"name\"\n\ is not given the currently selected Item is used.\n\ "))
 docstring
PyObject * scribus_getlinewidth (PyObject *, PyObject *args)
 Returns width of the line.
 PyDoc_STRVAR (scribus_getlineshade__doc__, QT_TR_NOOP("getLineShade([\"name\"]) -> integer\n\ \n\ Returns the shading value of the line color of the object \"name\".\n\ If \"name\" is not given the currently selected item is used.\n\ "))
 docstring
PyObject * scribus_getlineshade (PyObject *, PyObject *args)
 Returns shading of the line.
 PyDoc_STRVAR (scribus_getlinejoin__doc__, QT_TR_NOOP("getLineJoin([\"name\"]) -> integer (see contants)\n\ \n\ Returns the line join style of the object \"name\". If \"name\" is not given\n\ the currently selected item is used. The join types are:\n\ JOIN_BEVEL, JOIN_MITTER, JOIN_ROUND\n\ "))
 docstring
PyObject * scribus_getlinejoin (PyObject *, PyObject *args)
 Returns join type of the line.
 PyDoc_STRVAR (scribus_getlineend__doc__, QT_TR_NOOP("getLineEnd([\"name\"]) -> integer (see constants)\n\ \n\ Returns the line cap style of the object \"name\". If \"name\" is not given the\n\ currently selected item is used. The cap types are:\n\ CAP_FLAT, CAP_ROUND, CAP_SQUARE\n\ "))
 docstring
PyObject * scribus_getlineend (PyObject *, PyObject *args)
 Returns cap type of the line.
 PyDoc_STRVAR (scribus_getlinestyle__doc__, QT_TR_NOOP("getLineStyle([\"name\"]) -> integer (see constants)\n\ \n\ Returns the line style of the object \"name\". If \"name\" is not given the\n\ currently selected item is used. Line style constants are:\n\ LINE_DASH, LINE_DASHDOT, LINE_DASHDOTDOT, LINE_DOT, LINE_SOLID\n\ "))
 docstring
PyObject * scribus_getlinestyle (PyObject *, PyObject *args)
 Returns style type of the line.
 PyDoc_STRVAR (scribus_getfillshade__doc__, QT_TR_NOOP("getFillShade([\"name\"]) -> integer\n\ \n\ Returns the shading value of the fill color of the object \"name\".\n\ If \"name\" is not given the currently selected item is used.\n\ "))
 docstring
PyObject * scribus_getfillshade (PyObject *, PyObject *args)
 Returns fill shade of the object.
 PyDoc_STRVAR (scribus_getcornerrad__doc__, QT_TR_NOOP("getCornerRadius([\"name\"]) -> integer\n\ \n\ Returns the corner radius of the object \"name\". The radius is\n\ expressed in points. If \"name\" is not given the currently\n\ selected item is used.\n\ "))
 docstring
PyObject * scribus_getcornerrad (PyObject *, PyObject *args)
 Returns corner radius of the object.
 PyDoc_STRVAR (scribus_getimgscale__doc__, QT_TR_NOOP("getImageScale([\"name\"]) -> (x,y)\n\ \n\ Returns a (x, y) tuple containing the scaling values of the image frame\n\ \"name\". If \"name\" is not given the currently selected item is used.\n\ "))
 docstring
PyObject * scribus_getimgscale (PyObject *, PyObject *args)
 Returns image scale of the object.
 PyDoc_STRVAR (scribus_getimgname__doc__, QT_TR_NOOP("getImageName([\"name\"]) -> string\n\ \n\ Returns the filename for the image in the image frame. If \"name\" is not\n\ given the currently selected item is used.\n\ "))
 docstring
PyObject * scribus_getimgname (PyObject *, PyObject *args)
 Returns image name of the object.
 PyDoc_STRVAR (scribus_getposi__doc__, QT_TR_NOOP("getPosition([\"name\"]) -> (x,y)\n\ \n\ Returns a (x, y) tuple with the position of the object \"name\".\n\ If \"name\" is not given the currently selected item is used.\n\ The position is expressed in the actual measurement unit of the document\n\ - see UNIT_<type> for reference.\n\ "))
 docstring
PyObject * scribus_getposi (PyObject *, PyObject *args)
 Returns position of the object.
 PyDoc_STRVAR (scribus_getsize__doc__, QT_TR_NOOP("getSize([\"name\"]) -> (width,height)\n\ \n\ Returns a (width, height) tuple with the size of the object \"name\".\n\ If \"name\" is not given the currently selected item is used. The size is\n\ expressed in the current measurement unit of the document - see UNIT_<type>\n\ for reference.\n\ "))
 docstring
PyObject * scribus_getsize (PyObject *, PyObject *args)
 Returns size of the object.
 PyDoc_STRVAR (scribus_getrotation__doc__, QT_TR_NOOP("getRotation([\"name\"]) -> integer\n\ \n\ Returns the rotation of the object \"name\". The value is expressed in degrees,\n\ and clockwise is positive. If \"name\" is not given the currently selected item\n\ is used.\n\ "))
 docstring
PyObject * scribus_getrotation (PyObject *, PyObject *args)
 Returns rotation of the object.
 PyDoc_STRVAR (scribus_getallobj__doc__, QT_TR_NOOP("getAllObjects() -> list\n\ \n\ Returns a list containing the names of all objects on the current page.\n\ "))
 docstring
PyObject * scribus_getallobj (PyObject *, PyObject *args)
 Returns a list with all objects in page.

Function Documentation

PyDoc_STRVAR ( scribus_getfillcolor__doc__  ,
QT_TR_NOOP("getFillColor([\"name\"]) -> string\n\\n\Returns the name of the fill color of the object \"name\".\n\If \"name\" is not given the currently selected item is used.\n\")   
)

Query-Functions.

docstring

PyDoc_STRVAR ( scribus_getfilltrans__doc__  ,
QT_TR_NOOP("getFillTransparency([\"name\"]) -> float\n\\n\Returns the fill transparency of the object \"name\". If \"name\"\n\is not given the currently selected Item is used.\n\")   
)

docstring

PyDoc_STRVAR ( scribus_getfillblend__doc__  ,
QT_TR_NOOP("getFillBlendmode([\"name\"]) -> integer\n\\n\Returns the fill blendmode of the object \"name\". If \"name\"\n\is not given the currently selected Item is used.\n\")   
)

docstring

PyDoc_STRVAR ( scribus_getlinecolor__doc__  ,
QT_TR_NOOP("getLineColor([\"name\"]) -> string\n\\n\Returns the name of the line color of the object \"name\".\n\If \"name\" is not given the currently selected item is used.\n\")   
)

docstring

PyDoc_STRVAR ( scribus_getlinetrans__doc__  ,
QT_TR_NOOP("getLineTransparency([\"name\"]) -> float\n\\n\Returns the line transparency of the object \"name\". If \"name\"\n\is not given the currently selected Item is used.\n\")   
)

docstring

PyDoc_STRVAR ( scribus_getlineblend__doc__  ,
QT_TR_NOOP("getLineBlendmode([\"name\"]) -> integer\n\\n\Returns the line blendmode of the object \"name\". If \"name\"\n\is not given the currently selected Item is used.\n\")   
)

docstring

PyDoc_STRVAR ( scribus_getlinewidth__doc__  ,
QT_TR_NOOP("getLineWidth([\"name\"]) -> integer\n\\n\Returns the line width of the object \"name\". If \"name\"\n\is not given the currently selected Item is used.\n\")   
)

docstring

PyDoc_STRVAR ( scribus_getlineshade__doc__  ,
QT_TR_NOOP("getLineShade([\"name\"]) -> integer\n\\n\Returns the shading value of the line color of the object \"name\".\n\If \"name\" is not given the currently selected item is used.\n\")   
)

docstring

PyDoc_STRVAR ( scribus_getlinejoin__doc__  ,
QT_TR_NOOP("getLineJoin([\"name\"]) -> integer (see contants)\n\\n\Returns the line join style of the object \"name\". If \"name\" is not given\n\the currently selected item is used. The join types are:\n\JOIN_BEVEL, JOIN_MITTER, JOIN_ROUND\n\")   
)

docstring

PyDoc_STRVAR ( scribus_getlineend__doc__  ,
QT_TR_NOOP("getLineEnd([\"name\"]) -> integer (see constants)\n\\n\Returns the line cap style of the object \"name\". If \"name\" is not given the\n\currently selected item is used. The cap types are:\n\CAP_FLAT, CAP_ROUND, CAP_SQUARE\n\")   
)

docstring

PyDoc_STRVAR ( scribus_getlinestyle__doc__  ,
QT_TR_NOOP("getLineStyle([\"name\"]) -> integer (see constants)\n\\n\Returns the line style of the object \"name\". If \"name\" is not given the\n\currently selected item is used. Line style constants are:\n\LINE_DASH, LINE_DASHDOT, LINE_DASHDOTDOT, LINE_DOT, LINE_SOLID\n\")   
)

docstring

PyDoc_STRVAR ( scribus_getfillshade__doc__  ,
QT_TR_NOOP("getFillShade([\"name\"]) -> integer\n\\n\Returns the shading value of the fill color of the object \"name\".\n\If \"name\" is not given the currently selected item is used.\n\")   
)

docstring

PyDoc_STRVAR ( scribus_getcornerrad__doc__  ,
QT_TR_NOOP("getCornerRadius([\"name\"]) -> integer\n\\n\Returns the corner radius of the object \"name\". The radius is\n\expressed in points. If \"name\" is not given the currently\n\selected item is used.\n\")   
)

docstring

PyDoc_STRVAR ( scribus_getimgscale__doc__  ,
QT_TR_NOOP("getImageScale([\"name\"]) -> (x,y)\n\\n\Returns a (x, y) tuple containing the scaling values of the image frame\n\\"name\". If \"name\" is not given the currently selected item is used.\n\")   
)

docstring

PyDoc_STRVAR ( scribus_getimgname__doc__  ,
QT_TR_NOOP("getImageName([\"name\"]) -> string\n\\n\Returns the filename for the image in the image frame. If \"name\" is not\n\given the currently selected item is used.\n\")   
)

docstring

PyDoc_STRVAR ( scribus_getposi__doc__  ,
QT_TR_NOOP("getPosition([\"name\"]) -> (x,y)\n\\n\Returns a (x, y) tuple with the position of the object \"name\".\n\If \"name\" is not given the currently selected item is used.\n\The position is expressed in the actual measurement unit of the document\n\- see UNIT_<type> for reference.\n\")   
)

docstring

PyDoc_STRVAR ( scribus_getsize__doc__  ,
QT_TR_NOOP("getSize([\"name\"]) -> (width,height)\n\\n\Returns a (width, height) tuple with the size of the object \"name\".\n\If \"name\" is not given the currently selected item is used. The size is\n\expressed in the current measurement unit of the document - see UNIT_<type>\n\for reference.\n\")   
)

docstring

PyDoc_STRVAR ( scribus_getrotation__doc__  ,
QT_TR_NOOP("getRotation([\"name\"]) -> integer\n\\n\Returns the rotation of the object \"name\". The value is expressed in degrees,\n\and clockwise is positive. If \"name\" is not given the currently selected item\n\is used.\n\")   
)

docstring

PyDoc_STRVAR ( scribus_getallobj__doc__  ,
QT_TR_NOOP("getAllObjects() -> list\n\\n\Returns a list containing the names of all objects on the current page.\n\")   
)

docstring

PyObject* scribus_getallobj ( PyObject *  ,
PyObject *  args 
)

Returns a list with all objects in page.

Definition at line 239 of file cmdgetprop.cpp.

{
       PyObject *l;
       int typ = -1;
       uint counter = 0;
       uint counter2 = 0;
       uint pageNr = ScCore->primaryMainWindow()->doc->currentPageNumber();
       if (!PyArg_ParseTuple(args, "|i", &typ))
              return NULL;
       if(!checkHaveDocument())
              return NULL;
       // have doc already
       if (typ != -1)
       {
              for (uint lam2 = 0; lam2 < ScCore->primaryMainWindow()->doc->Items->count(); ++lam2)
              {
                     if ((ScCore->primaryMainWindow()->doc->Items->at(lam2)->itemType() == typ) && (pageNr == static_cast<uint>(ScCore->primaryMainWindow()->doc->Items->at(lam2)->OwnPage)))
                            counter++;
              }
       }
       else
       {
              for (uint lam2 = 0; lam2 < ScCore->primaryMainWindow()->doc->Items->count(); ++lam2)
              {
                     if (pageNr == static_cast<uint>(ScCore->primaryMainWindow()->doc->Items->at(lam2)->OwnPage))
                            counter++;
              }
       }

       l = PyList_New(counter);
       for (uint lam=0; lam < ScCore->primaryMainWindow()->doc->Items->count(); ++lam)
       {
              if  (pageNr == static_cast<uint>(ScCore->primaryMainWindow()->doc->Items->at(lam)->OwnPage))
              {
                     if (typ != -1)
                     {
                            if (ScCore->primaryMainWindow()->doc->Items->at(lam)->itemType() == typ)
                            {
                                   PyList_SetItem(l, counter2, PyString_FromString(ScCore->primaryMainWindow()->doc->Items->at(lam)->itemName().utf8()));
                                   counter2++;
                            }
                     }
                     else
                     {
                            PyList_SetItem(l, counter2, PyString_FromString(ScCore->primaryMainWindow()->doc->Items->at(lam)->itemName().utf8()));
                            counter2++;
                     }
              }
       }
       return l;
}

Here is the call graph for this function:

PyObject* scribus_getcornerrad ( PyObject *  ,
PyObject *  args 
)

Returns corner radius of the object.

Definition at line 170 of file cmdgetprop.cpp.

{
       char *Name = const_cast<char*>("");
       if (!PyArg_ParseTuple(args, "|es", "utf-8", &Name))
              return NULL;
       if(!checkHaveDocument())
              return NULL;
       PageItem *i = GetUniqueItem(QString::fromUtf8(Name));
       return i != NULL ? PyInt_FromLong(static_cast<long>(i->cornerRadius())) : NULL;
}

Here is the call graph for this function:

PyObject* scribus_getfillblend ( PyObject *  ,
PyObject *  args 
)

Returns fill blendmode of the object.

Definition at line 33 of file cmdgetprop.cpp.

{
       char *Name = const_cast<char*>("");
       if (!PyArg_ParseTuple(args, "|es", "utf-8", &Name))
              return NULL;
       if(!checkHaveDocument())
              return NULL;
       PageItem *i = GetUniqueItem(QString::fromUtf8(Name));
       return i != NULL ? PyInt_FromLong(static_cast<long>(i->fillBlendmode())) : NULL;
}

Here is the call graph for this function:

PyObject* scribus_getfillcolor ( PyObject *  ,
PyObject *  args 
)

Returns fill color of the object.

Definition at line 11 of file cmdgetprop.cpp.

{
       char *Name = const_cast<char*>("");
       if (!PyArg_ParseTuple(args, "|es", "utf-8", &Name))
              return NULL;
       if(!checkHaveDocument())
              return NULL;
       PageItem *i = GetUniqueItem(QString::fromUtf8(Name));
       return i != NULL ? PyString_FromString(i->fillColor().utf8()) : NULL;
}

Here is the call graph for this function:

PyObject* scribus_getfillshade ( PyObject *  ,
PyObject *  args 
)

Returns fill shade of the object.

Definition at line 159 of file cmdgetprop.cpp.

{
       char *Name = const_cast<char*>("");
       if (!PyArg_ParseTuple(args, "|es", "utf-8", &Name))
              return NULL;
       if(!checkHaveDocument())
              return NULL;
       PageItem *i = GetUniqueItem(QString::fromUtf8(Name));
       return i != NULL ? PyInt_FromLong(static_cast<long>(i->fillShade())) : NULL;
}

Here is the call graph for this function:

PyObject* scribus_getfilltrans ( PyObject *  ,
PyObject *  args 
)

Returns fill transparency of the object.

Definition at line 22 of file cmdgetprop.cpp.

{
       char *Name = const_cast<char*>("");
       if (!PyArg_ParseTuple(args, "|es", "utf-8", &Name))
              return NULL;
       if(!checkHaveDocument())
              return NULL;
       PageItem *i = GetUniqueItem(QString::fromUtf8(Name));
       return i != NULL ? PyFloat_FromDouble(static_cast<double>(1.0 - i->fillTransparency())) : NULL;
}

Here is the call graph for this function:

PyObject* scribus_getimgname ( PyObject *  ,
PyObject *  args 
)

Returns image name of the object.

Definition at line 192 of file cmdgetprop.cpp.

{
       char *Name = const_cast<char*>("");
       if (!PyArg_ParseTuple(args, "|es", "utf-8", &Name))
              return NULL;
       if(!checkHaveDocument())
              return NULL;
       PageItem *i = GetUniqueItem(QString::fromUtf8(Name));
       return i != NULL ? PyString_FromString(i->Pfile.utf8()) : NULL;
}

Here is the call graph for this function:

PyObject* scribus_getimgscale ( PyObject *  ,
PyObject *  args 
)

Returns image scale of the object.

Definition at line 181 of file cmdgetprop.cpp.

{
       char *Name = const_cast<char*>("");
       if (!PyArg_ParseTuple(args, "|es", "utf-8", &Name))
              return NULL;
       if(!checkHaveDocument())
              return NULL;
       PageItem *i = GetUniqueItem(QString::fromUtf8(Name));
       return i != NULL ? Py_BuildValue("(ff)", i->imageXScale(), i->imageYScale()) : NULL;
}

Here is the call graph for this function:

PyObject* scribus_getlineblend ( PyObject *  ,
PyObject *  args 
)

Returns line blendmode of the object.

Definition at line 80 of file cmdgetprop.cpp.

{
       char *Name = const_cast<char*>("");
       if (!PyArg_ParseTuple(args, "|es", "utf-8", &Name))
              return NULL;
       if(!checkHaveDocument())
              return NULL;
       PageItem *i = GetUniqueItem(QString::fromUtf8(Name));
       return i != NULL ? PyInt_FromLong(static_cast<long>(i->lineBlendmode())) : NULL;
}

Here is the call graph for this function:

PyObject* scribus_getlinecolor ( PyObject *  ,
PyObject *  args 
)

Returns color of the line.

Definition at line 44 of file cmdgetprop.cpp.

{
       char *Name = const_cast<char*>("");
       PageItem *it;
       if (!PyArg_ParseTuple(args, "|es", "utf-8", &Name))
              return NULL;
       if(!checkHaveDocument())
              return NULL;
       it = GetUniqueItem(QString::fromUtf8(Name));
       if (it == NULL)
              return NULL;
       if ((it->HasSel) && ((it->itemType() == PageItem::TextFrame) || (it->itemType() == PageItem::PathText)))
       {
              for (int b = 0; b < it->itemText.length(); ++b)
              {
                     if (it->itemText.selected(b))
                            return PyString_FromString(it->itemText.charStyle(b).fillColor().utf8());
              }
       }
       else
              return PyString_FromString(it->lineColor().utf8());
       PyErr_SetString(NotFoundError, QObject::tr("Color not found - python error", "python error"));
       return NULL;
}

Here is the call graph for this function:

PyObject* scribus_getlineend ( PyObject *  ,
PyObject *  args 
)

Returns cap type of the line.

Definition at line 137 of file cmdgetprop.cpp.

{
       char *Name = const_cast<char*>("");
       if (!PyArg_ParseTuple(args, "|es", "utf-8", &Name))
              return NULL;
       if(!checkHaveDocument())
              return NULL;
       PageItem *i = GetUniqueItem(QString::fromUtf8(Name));
       return i != NULL ? PyInt_FromLong(static_cast<long>(i->PLineEnd)) : NULL;
}

Here is the call graph for this function:

PyObject* scribus_getlinejoin ( PyObject *  ,
PyObject *  args 
)

Returns join type of the line.

Definition at line 126 of file cmdgetprop.cpp.

{
       char *Name = const_cast<char*>("");
       if (!PyArg_ParseTuple(args, "|es", "utf-8", &Name))
              return NULL;
       if(!checkHaveDocument())
              return NULL;
       PageItem *i = GetUniqueItem(QString::fromUtf8(Name));
       return i != NULL ? PyInt_FromLong(static_cast<long>(i->PLineJoin)) : NULL;
}

Here is the call graph for this function:

PyObject* scribus_getlineshade ( PyObject *  ,
PyObject *  args 
)

Returns shading of the line.

Definition at line 102 of file cmdgetprop.cpp.

{
       char *Name = const_cast<char*>("");
       PageItem *it;
       if (!PyArg_ParseTuple(args, "|es", "utf-8", &Name))
              return NULL;
       if(!checkHaveDocument())
              return NULL;
       it = GetUniqueItem(QString::fromUtf8(Name));
       if (it == NULL)
              return NULL;
       if ((it->HasSel) && ((it->itemType() == PageItem::TextFrame) || (it->itemType() == PageItem::PathText)))
       {
              for (int b = 0; b < it->itemText.length(); ++b)
              {
                     if (it->itemText.selected(b))
                            return PyInt_FromLong(static_cast<long>(it->itemText.charStyle(b).fillShade()));
              }
       }
       else
              return PyInt_FromLong(static_cast<long>(it->lineShade()));
       return PyInt_FromLong(0L);
}

Here is the call graph for this function:

PyObject* scribus_getlinestyle ( PyObject *  ,
PyObject *  args 
)

Returns style type of the line.

Definition at line 148 of file cmdgetprop.cpp.

{
       char *Name = const_cast<char*>("");
       if (!PyArg_ParseTuple(args, "|es", "utf-8", &Name))
              return NULL;
       if(!checkHaveDocument())
              return NULL;
       PageItem *i = GetUniqueItem(QString::fromUtf8(Name));
       return i != NULL ? PyInt_FromLong(static_cast<long>(i->PLineArt)) : NULL;
}

Here is the call graph for this function:

PyObject* scribus_getlinetrans ( PyObject *  ,
PyObject *  args 
)

Returns line transparency of the object.

Definition at line 69 of file cmdgetprop.cpp.

{
       char *Name = const_cast<char*>("");
       if (!PyArg_ParseTuple(args, "|es", "utf-8", &Name))
              return NULL;
       if(!checkHaveDocument())
              return NULL;
       PageItem *i = GetUniqueItem(QString::fromUtf8(Name));
       return i != NULL ? PyFloat_FromDouble(static_cast<double>(1.0 - i->lineTransparency())) : NULL;
}

Here is the call graph for this function:

PyObject* scribus_getlinewidth ( PyObject *  ,
PyObject *  args 
)

Returns width of the line.

Definition at line 91 of file cmdgetprop.cpp.

{
       char *Name = const_cast<char*>("");
       if (!PyArg_ParseTuple(args, "|es", "utf-8", &Name))
              return NULL;
       if(!checkHaveDocument())
              return NULL;
       PageItem *i = GetUniqueItem(QString::fromUtf8(Name));
       return i != NULL ? PyFloat_FromDouble(static_cast<double>(i->lineWidth())) : NULL;
}

Here is the call graph for this function:

PyObject* scribus_getposi ( PyObject *  ,
PyObject *  args 
)

Returns position of the object.

Definition at line 203 of file cmdgetprop.cpp.

{
       char *Name = const_cast<char*>("");
       if (!PyArg_ParseTuple(args, "|es", "utf-8", &Name))
              return NULL;
       if(!checkHaveDocument())
              return NULL;
       PageItem *i = GetUniqueItem(QString::fromUtf8(Name));
       if (!i)
              return NULL;
       return Py_BuildValue("(ff)", docUnitXToPageX(i->xPos()),
                                                         docUnitYToPageY(i->yPos()));
}

Here is the call graph for this function:

PyObject* scribus_getrotation ( PyObject *  ,
PyObject *  args 
)

Returns rotation of the object.

Definition at line 228 of file cmdgetprop.cpp.

{
       char *Name = const_cast<char*>("");
       if (!PyArg_ParseTuple(args, "|es", "utf-8", &Name))
              return NULL;
       if(!checkHaveDocument())
              return NULL;
       PageItem *i = GetUniqueItem(QString::fromUtf8(Name));
       return i != NULL ? PyFloat_FromDouble(static_cast<double>(i->rotation() * -1)) : NULL;
}

Here is the call graph for this function:

PyObject* scribus_getsize ( PyObject *  ,
PyObject *  args 
)

Returns size of the object.

Definition at line 217 of file cmdgetprop.cpp.

{
       char *Name = const_cast<char*>("");
       if (!PyArg_ParseTuple(args, "|es", "utf-8", &Name))
              return NULL;
       if(!checkHaveDocument())
              return NULL;
       PageItem *i = GetUniqueItem(QString::fromUtf8(Name));
       return (i != NULL) ? Py_BuildValue("(ff)", PointToValue(i->width()), PointToValue(i->height())) : NULL;
}

Here is the call graph for this function: