18 PyDoc_STRVAR(scribus_setredraw__doc__,
19 QT_TR_NOOP(
"setRedraw(bool)\n\
21 Disables page redraw when bool = False, otherwise redrawing is enabled.\n\
22 This change will persist even after the script exits, so make sure to call\n\
23 setRedraw(True) in a finally: clause at the top level of your script.\n\
26 PyObject *scribus_setredraw(PyObject * , PyObject* args);
29 PyDoc_STRVAR(scribus_fontnames__doc__,
30 QT_TR_NOOP(
"getFontNames() -> list\n\
32 Returns a list with the names of all available fonts.\n\
35 PyObject *scribus_fontnames(PyObject * );
38 PyDoc_STRVAR(scribus_xfontnames__doc__,
39 QT_TR_NOOP(
"getXFontNames() -> list of tuples\n\
41 Returns a larger font info. It's a list of the tuples with:\n\
42 [ (Scribus name, Family, Real name, subset (1|0), embed PS (1|0), font file), (...), ... ]\n\
48 PyObject *scribus_xfontnames(PyObject * );
51 PyDoc_STRVAR(scribus_renderfont__doc__,
52 QT_TR_NOOP(
"renderFont(\"name\", \"filename\", \"sample\", size, format=\"PPM\") -> bool\n\
54 Creates an image preview of font \"name\" with given text \"sample\" and size.\n\
55 If \"filename\" is not \"\", image is saved into \"filename\". Otherwise\n\
56 image data is returned as a string. The optional \"format\" argument\n\
57 specifies the image format to generate, and supports any format allowed\n\
58 by QPixmap.save(). Common formats are PPM, JPEG, PNG and XPM.\n\
60 May raise NotFoundError if the specified font can't be found.\n\
61 May raise ValueError if an empty sample or filename is passed.\n\
64 PyObject *scribus_renderfont(PyObject* , PyObject* args, PyObject* kw);
67 PyDoc_STRVAR(scribus_getlayers__doc__,
68 QT_TR_NOOP(
"getLayers() -> list\n\
70 Returns a list with the names of all defined layers.\n\
73 PyObject *scribus_getlayers(PyObject * );
76 PyDoc_STRVAR(scribus_setactlayer__doc__,
77 QT_TR_NOOP(
"setActiveLayer(\"name\")\n\
79 Sets the active layer to the layer named \"name\".\n\
81 May raise NotFoundError if the layer can't be found.\n\
82 May raise ValueError if the layer name isn't acceptable.\n\
85 PyObject *scribus_setactlayer(PyObject * , PyObject* args);
88 PyDoc_STRVAR(scribus_getactlayer__doc__,
89 QT_TR_NOOP(
"getActiveLayer() -> string\n\
91 Returns the name of the current active layer.\n\
94 PyObject *scribus_getactlayer(PyObject * );
97 PyDoc_STRVAR(scribus_senttolayer__doc__,
98 QT_TR_NOOP(
"sentToLayer(\"layer\" [, \"name\"])\n\
100 Sends the object \"name\" to the layer \"layer\". The layer must exist.\n\
101 If \"name\" is not given the currently selected item is used.\n\
103 May raise NotFoundError if the layer can't be found.\n\
104 May raise ValueError if the layer name isn't acceptable.\n\
107 PyObject *scribus_senttolayer(PyObject * , PyObject* args);
110 PyDoc_STRVAR(scribus_layervisible__doc__,
111 QT_TR_NOOP(
"setLayerVisible(\"layer\", visible)\n\
113 Sets the layer \"layer\" to be visible or not. If is the visible set to false\n\
114 the layer is invisible.\n\
116 May raise NotFoundError if the layer can't be found.\n\
117 May raise ValueError if the layer name isn't acceptable.\n\
120 PyObject *scribus_layervisible(PyObject * , PyObject* args);
123 PyDoc_STRVAR(scribus_layerprint__doc__,
124 QT_TR_NOOP(
"setLayerPrintable(\"layer\", printable)\n\
126 Sets the layer \"layer\" to be printable or not. If is the\n\
127 printable set to false the layer won't be printed.\n\
129 May raise NotFoundError if the layer can't be found.\n\
130 May raise ValueError if the layer name isn't acceptable.\n\
133 PyObject *scribus_layerprint(PyObject * , PyObject* args);
136 PyDoc_STRVAR(scribus_layerlock__doc__,
137 QT_TR_NOOP(
"setLayerLocked(\"layer\", locked)\n\
139 Sets the layer \"layer\" to be locked or not. If locked is set to\n\
140 true the layer will be locked.\n\
142 May raise NotFoundError if the layer can't be found.\n\
143 May raise ValueError if the layer name isn't acceptable.\n\
146 PyObject *scribus_layerlock(PyObject * , PyObject* args);
149 PyDoc_STRVAR(scribus_layeroutline__doc__,
150 QT_TR_NOOP(
"setLayerOutlined(\"layer\", outline)\n\
152 Sets the layer \"layer\" to be locked or not. If outline is set to\n\
153 true the layer will be displayed outlined.\n\
155 May raise NotFoundError if the layer can't be found.\n\
156 May raise ValueError if the layer name isn't acceptable.\n\
159 PyObject *scribus_layeroutline(PyObject * , PyObject* args);
162 PyDoc_STRVAR(scribus_layerflow__doc__,
163 QT_TR_NOOP(
"setLayerFlow(\"layer\", flow)\n\
165 Sets the layers \"layer\" flowcontrol to flow. If flow is set to\n\
166 true text in layers above this one will flow around objects on this layer.\n\
168 May raise NotFoundError if the layer can't be found.\n\
169 May raise ValueError if the layer name isn't acceptable.\n\
172 PyObject *scribus_layerflow(PyObject * , PyObject* args);
175 PyDoc_STRVAR(scribus_layerblend__doc__,
176 QT_TR_NOOP(
"setLayerBlendmode(\"layer\", blend)\n\
178 Sets the layers \"layer\" blendmode to blend.\n\
180 May raise NotFoundError if the layer can't be found.\n\
181 May raise ValueError if the layer name isn't acceptable.\n\
184 PyObject *scribus_layerblend(PyObject * , PyObject* args);
187 PyDoc_STRVAR(scribus_layertrans__doc__,
188 QT_TR_NOOP(
"setLayerTransparency(\"layer\", trans)\n\
190 Sets the layers \"layer\" transparency to trans.\n\
192 May raise NotFoundError if the layer can't be found.\n\
193 May raise ValueError if the layer name isn't acceptable.\n\
196 PyObject *scribus_layertrans(PyObject * , PyObject* args);
199 PyDoc_STRVAR(scribus_glayervisib__doc__,
200 QT_TR_NOOP(
"isLayerVisible(\"layer\") -> bool\n\
202 Returns whether the layer \"layer\" is visible or not, a value of True means\n\
203 that the layer \"layer\" is visible, a value of False means that the layer\n\
204 \"layer\" is invisible.\n\
206 May raise NotFoundError if the layer can't be found.\n\
207 May raise ValueError if the layer name isn't acceptable.\n\
210 PyObject *scribus_glayervisib(PyObject * , PyObject* args);
213 PyDoc_STRVAR(scribus_glayerprint__doc__,
214 QT_TR_NOOP(
"isLayerPrintable(\"layer\") -> bool\n\
216 Returns whether the layer \"layer\" is printable or not, a value of True means\n\
217 that the layer \"layer\" can be printed, a value of False means that printing\n\
218 the layer \"layer\" is disabled.\n\
220 May raise NotFoundError if the layer can't be found.\n\
221 May raise ValueError if the layer name isn't acceptable.\n\
224 PyObject *scribus_glayerprint(PyObject * , PyObject* args);
227 PyDoc_STRVAR(scribus_glayerlock__doc__,
228 QT_TR_NOOP(
"isLayerLocked(\"layer\") -> bool\n\
230 Returns whether the layer \"layer\" is locked or not, a value of True means\n\
231 that the layer \"layer\" is editable, a value of False means that the layer\n\
232 \"layer\" is locked.\n\
234 May raise NotFoundError if the layer can't be found.\n\
235 May raise ValueError if the layer name isn't acceptable.\n\
238 PyObject *scribus_glayerlock(PyObject * , PyObject* args);
241 PyDoc_STRVAR(scribus_glayeroutline__doc__,
242 QT_TR_NOOP(
"isLayerOutlined(\"layer\") -> bool\n\
244 Returns whether the layer \"layer\" is outlined or not, a value of True means\n\
245 that the layer \"layer\" is outlined, a value of False means that the layer\n\
246 \"layer\" is normal.\n\
248 May raise NotFoundError if the layer can't be found.\n\
249 May raise ValueError if the layer name isn't acceptable.\n\
252 PyObject *scribus_glayeroutline(PyObject * , PyObject* args);
255 PyDoc_STRVAR(scribus_glayerflow__doc__,
256 QT_TR_NOOP(
"isLayerFlow(\"layer\") -> bool\n\
258 Returns whether text flows around objects on layer \"layer\", a value of True means\n\
259 that text flows around, a value of False means that the text does not flow around.\n\
261 May raise NotFoundError if the layer can't be found.\n\
262 May raise ValueError if the layer name isn't acceptable.\n\
265 PyObject *scribus_glayerflow(PyObject * , PyObject* args);
268 PyDoc_STRVAR(scribus_glayerblend__doc__,
269 QT_TR_NOOP(
"getLayerBlendmode(\"layer\") -> int\n\
271 Returns the \"layer\" layer blendmode,\n\
273 May raise NotFoundError if the layer can't be found.\n\
274 May raise ValueError if the layer name isn't acceptable.\n\
277 PyObject *scribus_glayerblend(PyObject * , PyObject* args);
280 PyDoc_STRVAR(scribus_glayertrans__doc__,
281 QT_TR_NOOP(
"getLayerTransparency(\"layer\") -> float\n\
283 Returns the \"layer\" layer transparency,\n\
285 May raise NotFoundError if the layer can't be found.\n\
286 May raise ValueError if the layer name isn't acceptable.\n\
289 PyObject *scribus_glayertrans(PyObject * , PyObject* args);
292 PyDoc_STRVAR(scribus_removelayer__doc__,
293 QT_TR_NOOP(
"deleteLayer(\"layer\")\n\
295 Deletes the layer with the name \"layer\". Nothing happens if the layer doesn't\n\
296 exists or if it's the only layer in the document.\n\
298 May raise NotFoundError if the layer can't be found.\n\
299 May raise ValueError if the layer name isn't acceptable.\n\
302 PyObject *scribus_removelayer(PyObject * , PyObject* args);
305 PyDoc_STRVAR(scribus_createlayer__doc__,
306 QT_TR_NOOP(
"createLayer(layer)\n\
308 Creates a new layer with the name \"name\".\n\
310 May raise ValueError if the layer name isn't acceptable.\n\
313 PyObject *scribus_createlayer(PyObject * , PyObject* args);
316 PyDoc_STRVAR(scribus_filequit__doc__,
317 QT_TR_NOOP(
"fileQuit()\n\
322 PyObject *scribus_filequit(PyObject * , PyObject* args);
325 PyDoc_STRVAR(scribus_getlanguage__doc__,
326 QT_TR_NOOP(
"getGuiLanguage() -> string\n\
328 Returns a string with the -lang value.\n\
331 PyObject *scribus_getlanguage(PyObject * );
334 PyDoc_STRVAR(scribus_moveselectiontofront__doc__,
335 QT_TR_NOOP(
"moveSelectionToFront()\n\
337 Moves current selection to front.\n\
340 PyObject *scribus_moveselectiontofront(PyObject*);
343 PyDoc_STRVAR(scribus_moveselectiontoback__doc__,
344 QT_TR_NOOP(
"moveSelectionToFront()\n\
346 Moves current selection to back.\n\
349 PyObject *scribus_moveselectiontoback(PyObject*);
351 PyDoc_STRVAR(scribus_savepdfoptions__doc__,
352 QT_TR_NOOP(
"savePDFOptions(fileName)\n\
354 Save PDF options to fileName.\n\
356 PyObject *scribus_savepdfoptions(PyObject* , PyObject* args);
358 PyDoc_STRVAR(scribus_readpdfoptions__doc__,
359 QT_TR_NOOP(
"readPDFOptions(fileName)\n\
361 Read PDF options from fileName.\n\
363 PyObject *scribus_readpdfoptions(PyObject* , PyObject* args);