Scribus
Open source desktop publishing at your fingertips
cmdgetprop.h
1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 #ifndef CMDGETPROP_H
8 #define CMDGETPROP_H
9 
10 // Pulls in <Python.h> first
11 #include "cmdvar.h"
12 
16 PyDoc_STRVAR(scribus_getobjecttype__doc__,
17 QT_TR_NOOP("getObjectType([\"name\"]) -> string\n\
18 \n\
19 Get type of object \"name\" as a string.\n\
20 "));
22 PyObject *scribus_getobjecttype(PyObject * /*self*/, PyObject* args);
23 
25 PyDoc_STRVAR(scribus_getfillcolor__doc__,
26 QT_TR_NOOP("getFillColor([\"name\"]) -> string\n\
27 \n\
28 Returns the name of the fill color of the object \"name\".\n\
29 If \"name\" is not given the currently selected item is used.\n\
30 "));
32 PyObject *scribus_getfillcolor(PyObject * /*self*/, PyObject* args);
33 
35 PyDoc_STRVAR(scribus_getfilltrans__doc__,
36 QT_TR_NOOP("getFillTransparency([\"name\"]) -> float\n\
37 \n\
38 Returns the fill transparency of the object \"name\". If \"name\"\n\
39 is not given the currently selected Item is used.\n\
40 "));
42 PyObject *scribus_getfilltrans(PyObject * /*self*/, PyObject* args);
43 
45 PyDoc_STRVAR(scribus_getfillblend__doc__,
46 QT_TR_NOOP("getFillBlendmode([\"name\"]) -> integer\n\
47 \n\
48 Returns the fill blendmode of the object \"name\". If \"name\"\n\
49 is not given the currently selected Item is used.\n\
50 "));
52 PyObject *scribus_getfillblend(PyObject * /*self*/, PyObject* args);
53 
55 PyDoc_STRVAR(scribus_getlinecolor__doc__,
56 QT_TR_NOOP("getLineColor([\"name\"]) -> string\n\
57 \n\
58 Returns the name of the line color of the object \"name\".\n\
59 If \"name\" is not given the currently selected item is used.\n\
60 "));
62 PyObject *scribus_getlinecolor(PyObject * /*self*/, PyObject* args);
63 
65 PyDoc_STRVAR(scribus_getlinetrans__doc__,
66 QT_TR_NOOP("getLineTransparency([\"name\"]) -> float\n\
67 \n\
68 Returns the line transparency of the object \"name\". If \"name\"\n\
69 is not given the currently selected Item is used.\n\
70 "));
72 PyObject *scribus_getlinetrans(PyObject * /*self*/, PyObject* args);
73 
75 PyDoc_STRVAR(scribus_getlineblend__doc__,
76 QT_TR_NOOP("getLineBlendmode([\"name\"]) -> integer\n\
77 \n\
78 Returns the line blendmode of the object \"name\". If \"name\"\n\
79 is not given the currently selected Item is used.\n\
80 "));
82 PyObject *scribus_getlineblend(PyObject * /*self*/, PyObject* args);
83 
85 PyDoc_STRVAR(scribus_getlinewidth__doc__,
86 QT_TR_NOOP("getLineWidth([\"name\"]) -> integer\n\
87 \n\
88 Returns the line width of the object \"name\". If \"name\"\n\
89 is not given the currently selected Item is used.\n\
90 "));
92 PyObject *scribus_getlinewidth(PyObject * /*self*/, PyObject* args);
93 
95 PyDoc_STRVAR(scribus_getlineshade__doc__,
96 QT_TR_NOOP("getLineShade([\"name\"]) -> integer\n\
97 \n\
98 Returns the shading value of the line color of the object \"name\".\n\
99 If \"name\" is not given the currently selected item is used.\n\
100 "));
102 PyObject *scribus_getlineshade(PyObject * /*self*/, PyObject* args);
103 
105 PyDoc_STRVAR(scribus_getlinejoin__doc__,
106 QT_TR_NOOP("getLineJoin([\"name\"]) -> integer (see constants)\n\
107 \n\
108 Returns the line join style of the object \"name\". If \"name\" is not given\n\
109 the currently selected item is used. The join types are:\n\
110 JOIN_BEVEL, JOIN_MITTER, JOIN_ROUND\n\
111 "));
113 PyObject *scribus_getlinejoin(PyObject * /*self*/, PyObject* args);
114 
116 PyDoc_STRVAR(scribus_getlinecap__doc__,
117 QT_TR_NOOP("getLineCap([\"name\"]) -> integer (see constants)\n\
118 \n\
119 Returns the line cap style of the object \"name\". If \"name\" is not given the\n\
120 currently selected item is used. The cap types are:\n\
121 CAP_FLAT, CAP_ROUND, CAP_SQUARE\n\
122 "));
124 PyObject *scribus_getlinecap(PyObject * /*self*/, PyObject* args);
125 
127 PyDoc_STRVAR(scribus_getlinestyle__doc__,
128 QT_TR_NOOP("getLineStyle([\"name\"]) -> integer (see constants)\n\
129 \n\
130 Returns the line style of the object \"name\". If \"name\" is not given the\n\
131 currently selected item is used. Line style constants are:\n\
132 LINE_DASH, LINE_DASHDOT, LINE_DASHDOTDOT, LINE_DOT, LINE_SOLID\n\
133 "));
135 PyObject *scribus_getlinestyle(PyObject * /*self*/, PyObject* args);
136 
138 PyDoc_STRVAR(scribus_getfillshade__doc__,
139 QT_TR_NOOP("getFillShade([\"name\"]) -> integer\n\
140 \n\
141 Returns the shading value of the fill color of the object \"name\".\n\
142 If \"name\" is not given the currently selected item is used.\n\
143 "));
145 PyObject *scribus_getfillshade(PyObject * /*self*/, PyObject* args);
146 
148 PyDoc_STRVAR(scribus_getcornerrad__doc__,
149 QT_TR_NOOP("getCornerRadius([\"name\"]) -> integer\n\
150 \n\
151 Returns the corner radius of the object \"name\". The radius is\n\
152 expressed in points. If \"name\" is not given the currently\n\
153 selected item is used.\n\
154 "));
156 PyObject *scribus_getcornerrad(PyObject * /*self*/, PyObject* args);
157 
159 PyDoc_STRVAR(scribus_getimgscale__doc__,
160 QT_TR_NOOP("getImageScale([\"name\"]) -> (x,y)\n\
161 \n\
162 Returns a (x, y) tuple containing the scaling values of the image frame\n\
163 \"name\". If \"name\" is not given the currently selected item is used.\n\
164 "));
166 PyObject *scribus_getimgscale(PyObject * /*self*/, PyObject* args);
167 
169 PyDoc_STRVAR(scribus_getimgname__doc__,
170 QT_TR_NOOP("getImageName([\"name\"]) -> string\n\
171 \n\
172 Returns the filename for the image in the image frame. If \"name\" is not\n\
173 given the currently selected item is used.\n\
174 "));
176 PyObject *scribus_getimgname(PyObject * /*self*/, PyObject* args);
177 
179 PyDoc_STRVAR(scribus_getposi__doc__,
180 QT_TR_NOOP("getPosition([\"name\"]) -> (x,y)\n\
181 \n\
182 Returns a (x, y) tuple with the position of the object \"name\".\n\
183 If \"name\" is not given the currently selected item is used.\n\
184 The position is expressed in the actual measurement unit of the document\n\
185 - see UNIT_<type> for reference.\n\
186 "));
188 PyObject *scribus_getposi(PyObject * /*self*/, PyObject* args);
189 
191 PyDoc_STRVAR(scribus_getsize__doc__,
192 QT_TR_NOOP("getSize([\"name\"]) -> (width,height)\n\
193 \n\
194 Returns a (width, height) tuple with the size of the object \"name\".\n\
195 If \"name\" is not given the currently selected item is used. The size is\n\
196 expressed in the current measurement unit of the document - see UNIT_<type>\n\
197 for reference.\n\
198 "));
200 PyObject *scribus_getsize(PyObject * /*self*/, PyObject* args);
201 
203 PyDoc_STRVAR(scribus_getrotation__doc__,
204 QT_TR_NOOP("getRotation([\"name\"]) -> integer\n\
205 \n\
206 Returns the rotation of the object \"name\". The value is expressed in degrees,\n\
207 and clockwise is positive. If \"name\" is not given the currently selected item\n\
208 is used.\n\
209 "));
211 PyObject *scribus_getrotation(PyObject * /*self*/, PyObject* args);
212 
214 PyDoc_STRVAR(scribus_getallobj__doc__,
215 QT_TR_NOOP("getAllObjects() -> list\n\
216 \n\
217 Returns a list containing the names of all objects on the current page.\n\
218 "));
220 PyObject *scribus_getallobj(PyObject * /*self*/, PyObject* args);
221 
222 #endif
223