Scribus
Open source desktop publishing at your fingertips
cmdsetprop.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 CMDSETPROP_H
8 #define CMDSETPROP_H
9 
10 // Pulls in <Python.h> first
11 #include "cmdvar.h"
12 
16 PyDoc_STRVAR(scribus_setgradfill__doc__,
17 QT_TR_NOOP("setGradientFill(type, \"color1\", shade1, \"color2\", shade2, [\"name\"])\n\
18 \n\
19 Sets the gradient fill of the object \"name\" to type. Color descriptions are\n\
20 the same as for setFillColor() and setFillShade(). See the constants for\n\
21 available types (FILL_<type>).\n\
22 "));
24 PyObject *scribus_setgradfill(PyObject * /*self*/, PyObject* args);
25 
27 PyDoc_STRVAR(scribus_setgradstop__doc__,
28 QT_TR_NOOP("setGradientStop(\"color\", shade, opacity, ramppoint, [\"name\"])\n\
29 \n\
30 Set or add a gradient stop to the gradient fill of the object \"name\" at position ramppoint.\n\
31 Color descriptions are the same as for setFillColor() and setFillShade(). setGradientFill()\n\
32 must have been called previously for the gradient fill to be visible.\n\
33 "));
35 PyObject *scribus_setgradstop(PyObject * /*self*/, PyObject* args);
36 
38 PyDoc_STRVAR(scribus_setfillcolor__doc__,
39 QT_TR_NOOP("setFillColor(\"color\", [\"name\"])\n\
40 \n\
41 Sets the fill color of the object \"name\" to the color \"color\". \"color\"\n\
42 is the name of one of the defined colors. If \"name\" is not given the\n\
43 currently selected item is used.\n\
44 "));
46 PyObject *scribus_setfillcolor(PyObject * /*self*/, PyObject* args);
47 
49 PyDoc_STRVAR(scribus_setfilltrans__doc__,
50 QT_TR_NOOP("setFillTransparency(transparency, [\"name\"])\n\
51 \n\
52 Sets the fill transparency of the object \"name\" to transparency\n\
53 If \"name\" is not given the currently selected item is used.\n\
54 "));
56 PyObject *scribus_setfilltrans(PyObject * /*self*/, PyObject* args);
57 
59 PyDoc_STRVAR(scribus_setfillblend__doc__,
60 QT_TR_NOOP("setFillBlendmode(blendmode, [\"name\"])\n\
61 \n\
62 Sets the fill blendmode of the object \"name\" to blendmode\n\
63 If \"name\" is not given the currently selected item is used.\n\
64 "));
66 PyObject *scribus_setfillblend(PyObject * /*self*/, PyObject* args);
67 
69 PyDoc_STRVAR(scribus_setlinecolor__doc__,
70 QT_TR_NOOP("setLineColor(\"color\", [\"name\"])\n\
71 \n\
72 Sets the line color of the object \"name\" to the color \"color\". If \"name\"\n\
73 is not given the currently selected item is used.\n\
74 "));
76 PyObject *scribus_setlinecolor(PyObject * /*self*/, PyObject* args);
77 
79 PyDoc_STRVAR(scribus_setlinetrans__doc__,
80 QT_TR_NOOP("setLineTransparency(transparency, [\"name\"])\n\
81 \n\
82 Sets the line transparency of the object \"name\" to transparency\n\
83 If \"name\" is not given the currently selected item is used.\n\
84 "));
86 PyObject *scribus_setlinetrans(PyObject * /*self*/, PyObject* args);
87 
89 PyDoc_STRVAR(scribus_setlineblend__doc__,
90 QT_TR_NOOP("setLineBlendmode(blendmode, [\"name\"])\n\
91 \n\
92 Sets the line blendmode of the object \"name\" to blendmode\n\
93 If \"name\" is not given the currently selected item is used.\n\
94 "));
96 PyObject *scribus_setlineblend(PyObject * /*self*/, PyObject* args);
97 
99 PyDoc_STRVAR(scribus_setlinewidth__doc__,
100 QT_TR_NOOP("setLineWidth(width, [\"name\"])\n\
101 \n\
102 Sets line width of the object \"name\" to \"width\". \"width\" must be in the\n\
103 range from 0.0 to 12.0 inclusive, and is measured in points. If \"name\" is not\n\
104 given the currently selected item is used.\n\
105 \n\
106 May raise ValueError if the line width is out of bounds.\n\
107 "));
109 PyObject *scribus_setlinewidth(PyObject * /*self*/, PyObject* args);
110 
112 PyDoc_STRVAR(scribus_setlineshade__doc__,
113 QT_TR_NOOP("setLineShade(shade, [\"name\"])\n\
114 \n\
115 Sets the shading of the line color of the object \"name\" to \"shade\".\n\
116 \"shade\" must be an integer value in the range from 0 (lightest) to 100\n\
117 (full color intensity). If \"name\" is not given the currently selected item\n\
118 is used.\n\
119 \n\
120 May raise ValueError if the line shade is out of bounds.\n\
121 "));
123 PyObject *scribus_setlineshade(PyObject * /*self*/, PyObject* args);
124 
126 PyDoc_STRVAR(scribus_setlinejoin__doc__,
127 QT_TR_NOOP("setLineJoin(join, [\"name\"])\n\
128 \n\
129 Sets the line join style of the object \"name\" to the style \"join\".\n\
130 If \"name\" is not given the currently selected item is used. There are\n\
131 predefined constants for join - JOIN_<type>.\n\
132 "));
134 PyObject *scribus_setlinejoin(PyObject * /*self*/, PyObject* args);
135 
137 PyDoc_STRVAR(scribus_setlinecap__doc__,
138 QT_TR_NOOP("setLineCap(endtype, [\"name\"])\n\
139 \n\
140 Sets the line cap style of the object \"name\" to the style \"cap\".\n\
141 If \"name\" is not given the currently selected item is used. There are\n\
142 predefined constants for \"cap\" - CAP_<type>.\n\
143 "));
145 PyObject *scribus_setlinecap(PyObject * /*self*/, PyObject* args);
146 
148 PyDoc_STRVAR(scribus_setlinestyle__doc__,
149 QT_TR_NOOP("setLineStyle(style, [\"name\"])\n\
150 \n\
151 Sets the line style of the object \"name\" to the style \"style\". If \"name\"\n\
152 is not given the currently selected item is used. There are predefined\n\
153 constants for \"style\" - LINE_<style>.\n\
154 "));
156 PyObject *scribus_setlinestyle(PyObject * /*self*/, PyObject* args);
157 
159 PyDoc_STRVAR(scribus_setfillshade__doc__,
160 QT_TR_NOOP("setFillShade(shade, [\"name\"])\n\
161 \n\
162 Sets the shading of the fill color of the object \"name\" to \"shade\".\n\
163 \"shade\" must be an integer value in the range from 0 (lightest) to 100\n\
164 (full Color intensity). If \"name\" is not given the currently selected\n\
165 Item is used.\n\
166 \n\
167 May raise ValueError if the fill shade is out of bounds.\n\
168 "));
170 PyObject *scribus_setfillshade(PyObject * /*self*/, PyObject* args);
171 
173 PyDoc_STRVAR(scribus_setcornerrad__doc__,
174 QT_TR_NOOP("setCornerRadius(radius, [\"name\"])\n\
175 \n\
176 Sets the corner radius of the object \"name\". The radius is expressed\n\
177 in points. If \"name\" is not given the currently selected item is used.\n\
178 \n\
179 May raise ValueError if the corner radius is negative.\n\
180 "));
182 PyObject *scribus_setcornerrad(PyObject * /*self*/, PyObject* args);
183 
185 PyDoc_STRVAR(scribus_setmultiline__doc__,
186 QT_TR_NOOP("setMultiLine(\"namedStyle\", [\"name\"])\n\
187 \n\
188 Sets the line style of the object \"name\" to the named style \"namedStyle\".\n\
189 If \"name\" is not given the currently selected item is used.\n\
190 \n\
191 May raise NotFoundError if the line style doesn't exist.\n\
192 "));
194 PyObject *scribus_setmultiline(PyObject * /*self*/, PyObject* args);
195 
197 PyDoc_STRVAR(scribus_setnewname__doc__,
198 QT_TR_NOOP("setNewName(newname, [\"name\"])\n\
199 \n\
200 Sets the new name of the object \"name\" to the newname.\n\
201 If \"name\" is not given the currently selected item is used.\n\
202 \n\
203 May raise NotFoundError if the line style doesn't exist.\n\
204 "));
206 PyObject *scribus_setnewname(PyObject * /*self*/, PyObject* args);
207 #endif
208