Rev 12840 | Rev 12937 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
12918 | cbradney | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | <!DOCTYPE TS><TS version="1.1"> |
||
3 | <context> |
||
4 | <name></name> |
||
5 | <message> |
||
6 | <location filename="../../scribus/plugins/scriptplugin/cmdcolor.h" line="21"/> |
||
7 | <source>getColorNames() -> list |
||
8 | |||
9 | Returns a list containing the names of all defined colors in the document. |
||
10 | If no document is open, returns a list of the default document colors. |
||
11 | </source> |
||
12 | <translation type="unfinished">getColorNames() -> list |
||
13 | |||
14 | Returns a list containing the names of all defined colors in the document. |
||
15 | If no document is open, returns a list of the default document colors.</translation> |
||
16 | </message> |
||
17 | <message> |
||
18 | <location filename="../../scribus/plugins/scriptplugin/cmdcolor.h" line="35"/> |
||
19 | <source>getColor("name") -> tuple |
||
20 | |||
21 | Returns a tuple (C, M, Y, K) containing the four color components of the |
||
22 | color "name" from the current document. If no document is open, returns |
||
23 | the value of the named color from the default document colors. |
||
24 | |||
25 | May raise NotFoundError if the named color wasn't found. |
||
26 | May raise ValueError if an invalid color name is specified. |
||
27 | </source> |
||
28 | <translation type="unfinished">getColor("name") -> tuple |
||
29 | |||
30 | Palauttaa tuplen (C, M, Y, K) värille "name" nykyisestä asiakirjasta. Jos asiakirjaa |
||
31 | ei ole avoinna, palauttaa värin oletusväreistä. |
||
32 | |||
33 | Saattaa nostaa NotFoundError:n, jos väriä ei löydy. |
||
34 | Saattaa nostaa ValueError:n, jos värin nimi on viallinen.</translation> |
||
35 | </message> |
||
36 | <message> |
||
37 | <location filename="../../scribus/plugins/scriptplugin/cmdcolor.h" line="50"/> |
||
38 | <source>getColorAsRGB("name") -> tuple |
||
39 | |||
40 | Returns a tuple (R,G,B) containing the three color components of the |
||
41 | color "name" from the current document, converted to the RGB color |
||
42 | space. If no document is open, returns the value of the named color |
||
43 | from the default document colors. |
||
44 | |||
45 | May raise NotFoundError if the named color wasn't found. |
||
46 | May raise ValueError if an invalid color name is specified. |
||
47 | </source> |
||
48 | <translation type="unfinished">getColorAsRGB("name") -> tuple |
||
49 | |||
50 | Returns a tuple (R,G,B) containing the three color components of the |
||
51 | color "name" from the current document, converted to the RGB color |
||
52 | space. If no document is open, returns the value of the named color |
||
53 | from the default document colors. |
||
54 | |||
55 | May raise NotFoundError if the named color wasn't found. |
||
56 | May raise ValueError if an invalid color name is specified. |
||
57 | </translation> |
||
58 | </message> |
||
59 | <message> |
||
60 | <location filename="../../scribus/plugins/scriptplugin/cmdcolor.h" line="64"/> |
||
61 | <source>changeColor("name", c, m, y, k) |
||
62 | |||
63 | Changes the color "name" to the specified CMYK value. The color value is |
||
64 | defined via four components c = Cyan, m = Magenta, y = Yellow and k = Black. |
||
65 | Color components should be in the range from 0 to 255. |
||
66 | |||
67 | May raise NotFoundError if the named color wasn't found. |
||
68 | May raise ValueError if an invalid color name is specified. |
||
69 | </source> |
||
70 | <translation type="unfinished">changeColor("name", c, m, y, k) |
||
71 | |||
72 | Vaihtaa värin "name" vastaamaan väriä c, m, y, k (kaikki määritelty välillä 0, 255).</translation> |
||
73 | </message> |
||
74 | <message> |
||
75 | <location filename="../../scribus/plugins/scriptplugin/cmdcolor.h" line="77"/> |
||
76 | <source>defineColor("name", c, m, y, k) |
||
77 | |||
78 | Defines a new color "name". The color Value is defined via four components: |
||
79 | c = Cyan, m = Magenta, y = Yellow and k = Black. Color components should be in |
||
80 | the range from 0 to 255. |
||
81 | |||
82 | May raise ValueError if an invalid color name is specified. |
||
83 | </source> |
||
84 | <translation type="unfinished"></translation> |
||
85 | </message> |
||
86 | <message> |
||
87 | <location filename="../../scribus/plugins/scriptplugin/cmdcolor.h" line="94"/> |
||
88 | <source>deleteColor("name", "replace") |
||
89 | |||
90 | Deletes the color "name". Every occurence of that color is replaced by the |
||
91 | color "replace". If not specified, "replace" defaults to the color |
||
92 | "None" - transparent. |
||
93 | |||
94 | deleteColor works on the default document colors if there is no document open. |
||
95 | In that case, "replace", if specified, has no effect. |
||
96 | |||
97 | May raise NotFoundError if a named color wasn't found. |
||
98 | May raise ValueError if an invalid color name is specified. |
||
99 | </source> |
||
100 | <translation type="unfinished">deleteColor("name", "replace") |
||
101 | |||
102 | Poistaa värin "nimi", joka korvataan värillä "replace". Oletuksena "replace" on None (läpinäkyvä). |
||
103 | |||
104 | deleteColors toimii asiakirjassa määritellyillä väreillä, asiakirja on avoinna. |
||
105 | |||
106 | Saattaa nostaa NotFoundError:n, jos nimettyä väriä ei löydy. |
||
107 | Saattaa nostaa ValueError:n, jos värin nimi on viallinen.</translation> |
||
108 | </message> |
||
109 | <message> |
||
110 | <location filename="../../scribus/plugins/scriptplugin/cmdcolor.h" line="106"/> |
||
111 | <source>replaceColor("name", "replace") |
||
112 | |||
113 | Every occurence of the color "name" is replaced by the color "replace". |
||
114 | |||
115 | May raise NotFoundError if a named color wasn't found. |
||
116 | May raise ValueError if an invalid color name is specified. |
||
117 | </source> |
||
118 | <translation type="unfinished">replaceColor("name", "replace") |
||
119 | |||
120 | Jokainen ilmentymä väristä "name" korvataan värillä "replace". |
||
121 | |||
122 | Saattaa nostaa NotFoundError:n, jos nimettyä väriä ei löydy. |
||
123 | Saattaa nostaa ValueError:n, jos värin nimi on viallinen.</translation> |
||
124 | </message> |
||
125 | <message> |
||
126 | <location filename="../../scribus/plugins/scriptplugin/cmddialog.h" line="22"/> |
||
127 | <source>newDocDialog() -> bool |
||
128 | |||
129 | Displays the "New Document" dialog box. Creates a new document if the user |
||
130 | accepts the settings. Does not create a document if the user presses cancel. |
||
131 | Returns true if a new document was created. |
||
132 | </source> |
||
133 | <translation type="unfinished">getColorNames() -> list |
||
134 | |||
135 | Näyttää dialogin "Uusi asiakirja". Luo uuden asiakirjan, jos käyttäjä hyväksyy |
||
136 | asetukset. Asiakirjaa ei luoda, jos käyttäjä painaa Peruuta-painiketta. |
||
137 | Palauttaa true, jos uusi asiakirja luotiin.</translation> |
||
138 | </message> |
||
139 | <message> |
||
140 | <location filename="../../scribus/plugins/scriptplugin/cmddialog.h" line="46"/> |
||
141 | <source>fileDialog("caption", ["filter", "defaultname", haspreview, issave, isdir]) -> string with filename |
||
142 | |||
143 | Shows a File Open dialog box with the caption "caption". Files are filtered |
||
144 | with the filter string "filter". A default filename or file path can also |
||
145 | supplied, leave this string empty when you don't want to use it. A value of |
||
146 | True for haspreview enables a small preview widget in the FileSelect box. When |
||
147 | the issave parameter is set to True the dialog acts like a "Save As" dialog |
||
148 | otherwise it acts like a "File Open Dialog". When the isdir parameter is True |
||
149 | the dialog shows and returns only directories. The default for all of the |
||
150 | optional parameters is False. |
||
151 | |||
152 | The filter, if specified, takes the form 'comment (*.type *.type2 ...)'. |
||
153 | For example 'Images (*.png *.xpm *.jpg)'. |
||
154 | |||
155 | Refer to the Qt-Documentation for QFileDialog for details on filters. |
||
156 | |||
157 | Example: fileDialog('Open input', 'CSV files (*.csv)') |
||
158 | Example: fileDialog('Save report', defaultname='report.txt', issave=True) |
||
159 | </source> |
||
160 | <translation type="unfinished"></translation> |
||
161 | </message> |
||
162 | <message> |
||
163 | <location filename="../../scribus/plugins/scriptplugin/cmddialog.h" line="88"/> |
||
164 | <source>messageBox("caption", "message", |
||
165 | icon=ICON_NONE, button1=BUTTON_OK|BUTTONOPT_DEFAULT, |
||
166 | button2=BUTTON_NONE, button3=BUTTON_NONE) -> integer |
||
167 | |||
168 | Displays a message box with the title "caption", the message "message", and |
||
169 | an icon "icon" and up to 3 buttons. By default no icon is used and a single |
||
170 | button, OK, is displayed. Only the caption and message arguments are required, |
||
171 | though setting an icon and appropriate button(s) is strongly |
||
172 | recommended. The message text may contain simple HTML-like markup. |
||
173 | |||
174 | Returns the number of the button the user pressed. Button numbers start |
||
175 | at 1. |
||
176 | |||
177 | For the icon and the button parameters there are predefined constants available |
||
178 | with the same names as in the Qt Documentation. These are the BUTTON_* and |
||
179 | ICON_* constants defined in the module. There are also two extra constants that |
||
180 | can be binary-ORed with button constants: |
||
181 | BUTTONOPT_DEFAULT Pressing enter presses this button. |
||
182 | BUTTONOPT_ESCAPE Pressing escape presses this button. |
||
183 | |||
184 | Usage examples: |
||
185 | result = messageBox('Script failed', |
||
186 | 'This script only works when you have a text frame selected.', |
||
187 | ICON_ERROR) |
||
188 | result = messageBox('Monkeys!', 'Something went ook! <i>Was it a monkey?</i>', |
||
189 | ICON_WARNING, BUTTON_YES|BUTTONOPT_DEFAULT, |
||
190 | BUTTON_NO, BUTTON_IGNORE|BUTTONOPT_ESCAPE) |
||
191 | |||
192 | Defined button and icon constants: |
||
193 | BUTTON_NONE, BUTTON_ABORT, BUTTON_CANCEL, BUTTON_IGNORE, BUTTON_NO, |
||
194 | BUTTON_NOALL, BUTTON_OK, BUTTON_RETRY, BUTTON_YES, BUTTON_YESALL, |
||
195 | ICON_NONE, ICON_INFORMATION, ICON_WARNING, ICON_CRITICAL. |
||
196 | </source> |
||
197 | <translation type="unfinished">messageBox("caption", "message", |
||
198 | icon=ICON_NONE, button1=BUTTON_OK|BUTTONOPT_DEFAULT, |
||
199 | button2=BUTTON_NONE, button3=BUTTON_NONE) -> integer |
||
200 | |||
201 | Displays a message box with the title "caption", the message "message", and |
||
202 | an icon "icon" and up to 3 buttons. By default no icon is used and a single |
||
203 | button, OK, is displayed. Only the caption and message arguments are required, |
||
204 | though setting an icon and appropriate button(s) is strongly |
||
205 | recommended. The message text may contain simple HTML-like markup. |
||
206 | |||
207 | Returns the number of the button the user pressed. Button numbers start |
||
208 | at 1. |
||
209 | |||
210 | For the icon and the button parameters there are predefined constants available |
||
211 | with the same names as in the Qt Documentation. These are the BUTTON_* and |
||
212 | ICON_* constants defined in the module. There are also two extra constants that |
||
213 | can be binary-ORed with button constants: |
||
214 | BUTTONOPT_DEFAULT Pressing enter presses this button. |
||
215 | BUTTONOPT_ESCAPE Pressing escape presses this button. |
||
216 | |||
217 | Usage examples: |
||
218 | result = messageBox('Script failed', |
||
219 | 'This script only works when you have a text frame selected.', |
||
220 | ICON_ERROR) |
||
221 | result = messageBox('Monkeys!', 'Something went ook! <i>Was it a monkey?</i>', |
||
222 | ICON_WARNING, BUTTON_YES|BUTTONOPT_DEFAULT, |
||
223 | BUTTON_NO, BUTTON_IGNORE|BUTTONOPT_ESCAPE) |
||
224 | |||
225 | Defined button and icon constants: |
||
226 | BUTTON_NONE, BUTTON_ABORT, BUTTON_CANCEL, BUTTON_IGNORE, BUTTON_NO, |
||
227 | BUTTON_NOALL, BUTTON_OK, BUTTON_RETRY, BUTTON_YES, BUTTON_YESALL, |
||
228 | ICON_NONE, ICON_INFORMATION, ICON_WARNING, ICON_CRITICAL.</translation> |
||
229 | </message> |
||
230 | <message> |
||
231 | <location filename="../../scribus/plugins/scriptplugin/cmddialog.h" line="101"/> |
||
232 | <source>valueDialog(caption, message [,defaultvalue]) -> string |
||
233 | |||
234 | Shows the common 'Ask for string' dialog and returns its value as a string |
||
235 | Parameters: window title, text in the window and optional 'default' value. |
||
236 | |||
237 | Example: valueDialog('title', 'text in the window', 'optional') |
||
238 | </source> |
||
239 | <translation type="unfinished">valueDialog(caption, message [,defaultvalue]) -> string |
||
240 | |||
241 | Näyttää yleisen "Kysy string"-dialogin ja palauttaa sen arvon. Parametrit: ikkunan |
||
242 | otsikko, ikkunan teksti ja oletusarvo</translation> |
||
243 | </message> |
||
244 | <message> |
||
245 | <location filename="../../scribus/plugins/scriptplugin/cmddialog.h" line="111"/> |
||
246 | <source>newStyleDialog() -> string |
||
247 | |||
248 | Shows 'Create new paragraph style' dialog. Function returns real |
||
249 | style name or None when user cancels the dialog. |
||
250 | </source> |
||
251 | <translation type="unfinished">newStyleDialog() -> string |
||
252 | |||
253 | Shows 'Create new paragraph style' dialog. Function returns real |
||
254 | style name or None when user cancels the dialog. |
||
255 | </translation> |
||
256 | </message> |
||
257 | <message> |
||
258 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="55"/> |
||
259 | <source>newDocument(size, margins, orientation, firstPageNumber, |
||
260 | unit, pagesType, firstPageOrder, numPages) -> bool |
||
261 | |||
262 | Creates a new document and returns true if successful. The parameters have the |
||
263 | following meaning: |
||
264 | |||
265 | size = A tuple (width, height) describing the size of the document. You can |
||
266 | use predefined constants named PAPER_<paper_type> e.g. PAPER_A4 etc. |
||
267 | |||
268 | margins = A tuple (left, right, top, bottom) describing the document |
||
269 | margins |
||
270 | |||
271 | orientation = the page orientation - constants PORTRAIT, LANDSCAPE |
||
272 | |||
273 | firstPageNumer = is the number of the first page in the document used for |
||
274 | pagenumbering. While you'll usually want 1, it's useful to have higher |
||
275 | numbers if you're creating a document in several parts. |
||
276 | |||
277 | unit: this value sets the measurement units used by the document. Use a |
||
278 | predefined constant for this, one of: UNIT_INCHES, UNIT_MILLIMETERS, |
||
279 | UNIT_PICAS, UNIT_POINTS. |
||
280 | |||
281 | pagesType = One of the predefined constants PAGE_n. PAGE_1 is single page, |
||
282 | PAGE_2 is for double sided documents, PAGE_3 is for 3 pages fold and |
||
283 | PAGE_4 is 4-fold. |
||
284 | |||
285 | firstPageOrder = What is position of first page in the document. |
||
286 | Indexed from 0 (0 = first). |
||
287 | |||
288 | numPage = Number of pages to be created. |
||
289 | |||
290 | The values for width, height and the margins are expressed in the given unit |
||
291 | for the document. PAPER_* constants are expressed in points. If your document |
||
292 | is not in points, make sure to account for this. |
||
293 | |||
294 | example: newDocument(PAPER_A4, (10, 10, 20, 20), LANDSCAPE, 7, UNIT_POINTS, |
||
295 | PAGE_4, 3, 1) |
||
296 | |||
297 | May raise ScribusError if is firstPageOrder bigger than allowed by pagesType. |
||
298 | </source> |
||
299 | <translation type="unfinished">newDocument(size, margins, orientation, firstPageNumber, |
||
300 | unit, pagesType, firstPageOrder, numPages) -> bool |
||
301 | |||
302 | Creates a new document and returns true if successful. The parameters have the |
||
303 | following meaning: |
||
304 | |||
305 | size = A tuple (width, height) describing the size of the document. You can |
||
306 | use predefined constants named PAPER_<paper_type> e.g. PAPER_A4 etc. |
||
307 | |||
308 | margins = A tuple (left, right, top, bottom) describing the document |
||
309 | margins |
||
310 | |||
311 | orientation = the page orientation - constants PORTRAIT, LANDSCAPE |
||
312 | |||
313 | firstPageNumer = is the number of the first page in the document used for |
||
314 | pagenumbering. While you'll usually want 1, it's useful to have higher |
||
315 | numbers if you're creating a document in several parts. |
||
316 | |||
317 | unit: this value sets the measurement units used by the document. Use a |
||
318 | predefined constant for this, one of: UNIT_INCHES, UNIT_MILLIMETERS, |
||
319 | UNIT_PICAS, UNIT_POINTS. |
||
320 | |||
321 | pagesType = One of the predefined constants PAGE_n. PAGE_1 is single page, |
||
322 | PAGE_2 is for double sided documents, PAGE_3 is for 3 pages fold and |
||
323 | PAGE_4 is 4-fold. |
||
324 | |||
325 | firstPageOrder = What is position of first page in the document. |
||
326 | Indexed from 0 (0 = first). |
||
327 | |||
328 | numPage = Number of pages to be created. |
||
329 | |||
330 | The values for width, height and the margins are expressed in the given unit |
||
331 | for the document. PAPER_* constants are expressed in points. If your document |
||
332 | is not in points, make sure to account for this. |
||
333 | |||
334 | example: newDocument(PAPER_A4, (10, 10, 20, 20), LANDSCAPE, 7, UNIT_POINTS, |
||
335 | PAGE_4, 3, 1) |
||
336 | |||
337 | May raise ScribusError if is firstPageOrder bigger than allowed by pagesType. |
||
338 | </translation> |
||
339 | </message> |
||
340 | <message> |
||
341 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="96"/> |
||
342 | <source>newDoc(size, margins, orientation, firstPageNumber, |
||
343 | unit, facingPages, firstSideLeft) -> bool |
||
344 | |||
345 | WARNING: Obsolete procedure! Use newDocument instead. |
||
346 | |||
347 | Creates a new document and returns true if successful. The parameters have the |
||
348 | following meaning: |
||
349 | |||
350 | size = A tuple (width, height) describing the size of the document. You can |
||
351 | use predefined constants named PAPER_<paper_type> e.g. PAPER_A4 etc. |
||
352 | |||
353 | margins = A tuple (left, right, top, bottom) describing the document |
||
354 | margins |
||
355 | |||
356 | orientation = the page orientation - constants PORTRAIT, LANDSCAPE |
||
357 | |||
358 | firstPageNumer = is the number of the first page in the document used for |
||
359 | pagenumbering. While you'll usually want 1, it's useful to have higher |
||
360 | numbers if you're creating a document in several parts. |
||
361 | |||
362 | unit: this value sets the measurement units used by the document. Use a |
||
363 | predefined constant for this, one of: UNIT_INCHES, UNIT_MILLIMETERS, |
||
364 | UNIT_PICAS, UNIT_POINTS. |
||
365 | |||
366 | facingPages = FACINGPAGES, NOFACINGPAGES |
||
367 | |||
368 | firstSideLeft = FIRSTPAGELEFT, FIRSTPAGERIGHT |
||
369 | |||
370 | The values for width, height and the margins are expressed in the given unit |
||
371 | for the document. PAPER_* constants are expressed in points. If your document |
||
372 | is not in points, make sure to account for this. |
||
373 | |||
374 | example: newDoc(PAPER_A4, (10, 10, 20, 20), LANDSCAPE, 1, UNIT_POINTS, |
||
375 | FACINGPAGES, FIRSTPAGERIGHT) |
||
376 | </source> |
||
377 | <translation type="unfinished">newDoc(size, margins, orientation, firstPageNumber, |
||
378 | unit, facingPages, firstSideLeft) -> bool |
||
379 | |||
380 | WARNING: Obsolete procedure! Use newDocument instead. |
||
381 | |||
382 | Creates a new document and returns true if successful. The parameters have the |
||
383 | following meaning: |
||
384 | |||
385 | size = A tuple (width, height) describing the size of the document. You can |
||
386 | use predefined constants named PAPER_<paper_type> e.g. PAPER_A4 etc. |
||
387 | |||
388 | margins = A tuple (left, right, top, bottom) describing the document |
||
389 | margins |
||
390 | |||
391 | orientation = the page orientation - constants PORTRAIT, LANDSCAPE |
||
392 | |||
393 | firstPageNumer = is the number of the first page in the document used for |
||
394 | pagenumbering. While you'll usually want 1, it's useful to have higher |
||
395 | numbers if you're creating a document in several parts. |
||
396 | |||
397 | unit: this value sets the measurement units used by the document. Use a |
||
398 | predefined constant for this, one of: UNIT_INCHES, UNIT_MILLIMETERS, |
||
399 | UNIT_PICAS, UNIT_POINTS. |
||
400 | |||
401 | facingPages = FACINGPAGES, NOFACINGPAGES |
||
402 | |||
403 | firstSideLeft = FIRSTPAGELEFT, FIRSTPAGERIGHT |
||
404 | |||
405 | The values for width, height and the margins are expressed in the given unit |
||
406 | for the document. PAPER_* constants are expressed in points. If your document |
||
407 | is not in points, make sure to account for this. |
||
408 | |||
409 | example: newDoc(PAPER_A4, (10, 10, 20, 20), LANDSCAPE, 1, UNIT_POINTS, |
||
410 | FACINGPAGES, FIRSTPAGERIGHT) |
||
411 | </translation> |
||
412 | </message> |
||
413 | <message> |
||
414 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="108"/> |
||
415 | <source>closeDoc() |
||
416 | |||
417 | Closes the current document without prompting to save. |
||
418 | |||
419 | May throw NoDocOpenError if there is no document to close |
||
420 | </source> |
||
421 | <translation type="unfinished">closeDoc() |
||
422 | |||
423 | Sulkee aktiivisen asiakirjan, ilman tallennusdialogia. |
||
424 | |||
425 | Saattaa heittää NoDocOpenError, jos suljettavia asiakirjoja ei ole</translation> |
||
426 | </message> |
||
427 | <message> |
||
428 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="117"/> |
||
429 | <source>haveDoc() -> bool |
||
430 | |||
431 | Returns true if there is a document open. |
||
432 | </source> |
||
433 | <translation type="unfinished">haveDoc() -> bool |
||
434 | |||
435 | Palauttaa true, jos yksikin asiakirja on avoinna.</translation> |
||
436 | </message> |
||
437 | <message> |
||
438 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="128"/> |
||
439 | <source>openDoc("name") |
||
440 | |||
441 | Opens the document "name". |
||
442 | |||
443 | May raise ScribusError if the document could not be opened. |
||
444 | </source> |
||
445 | <translation type="unfinished">openDoc("name") |
||
446 | |||
447 | Avaa asiakirjan "name". |
||
448 | |||
449 | Saattaa aiheuttaa ScribusErrorin, jos asiakirjaa ei voida avata.</translation> |
||
450 | </message> |
||
451 | <message> |
||
452 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="141"/> |
||
453 | <source>saveDoc() |
||
454 | |||
455 | Saves the current document with its current name, returns true if successful. |
||
456 | If the document has not already been saved, this may bring up an interactive |
||
457 | save file dialog. |
||
458 | |||
459 | If the save fails, there is currently no way to tell. |
||
460 | </source> |
||
461 | <translation type="unfinished">saveDoc() |
||
462 | |||
463 | Tallennusdialogi. Tallennuksen epäonnistumista ei voi tällä hetkellä päätellä mistään.</translation> |
||
464 | </message> |
||
465 | <message> |
||
466 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="152"/> |
||
467 | <source>saveDocAs("name") |
||
468 | |||
469 | Saves the current document under the new name "name" (which may be a full or |
||
470 | relative path). |
||
471 | |||
472 | May raise ScribusError if the save fails. |
||
473 | </source> |
||
474 | <translation type="unfinished">saveDocAs("name") |
||
475 | |||
476 | Tallentaa aktiivisen asiakirjan nimellä "nimi", joka voi olla täydellinen tai suhteellinen polku. |
||
477 | |||
478 | Saattaa aiheuttaa ScribusError:n, jos tallennus epäonnistuu.</translation> |
||
479 | </message> |
||
480 | <message> |
||
481 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="162"/> |
||
482 | <source>setInfo("author", "info", "description") -> bool |
||
483 | |||
484 | Sets the document information. "Author", "Info", "Description" are |
||
485 | strings. |
||
486 | </source> |
||
487 | <translation type="unfinished">setInfo("author", "info", "description") -> bool |
||
488 | |||
489 | Sets the document information. "Author", "Info", "Description" are |
||
490 | strings. |
||
491 | </translation> |
||
492 | </message> |
||
493 | <message> |
||
494 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="173"/> |
||
495 | <source>setMargins(lr, rr, tr, br) |
||
496 | |||
497 | Sets the margins of the document, Qt::DockLeft(lr), Qt::DockRight(rr), Qt::DockTop(tr) and Qt::DockBottom(br) |
||
498 | margins are given in the measurement units of the document - see UNIT_<type> |
||
499 | constants. |
||
500 | </source> |
||
501 | <translation type="unfinished"></translation> |
||
502 | </message> |
||
503 | <message> |
||
504 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="185"/> |
||
505 | <source>setUnit(type) |
||
506 | |||
507 | Changes the measurement unit of the document. Possible values for "unit" are |
||
508 | defined as constants UNIT_<type>. |
||
509 | |||
510 | May raise ValueError if an invalid unit is passed. |
||
511 | </source> |
||
512 | <translation type="unfinished">setUnit(type) |
||
513 | |||
514 | Vaihtaa asiakirjan mittayksikköä. Mahdolliset yksiköt on määritelty vakiona UNIT_<type>. |
||
515 | |||
516 | Saattaa aiheuttaa ValueError:n, jos käytetään virheellistä yksikköä.</translation> |
||
517 | </message> |
||
518 | <message> |
||
519 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="196"/> |
||
520 | <source>getUnit() -> integer (Scribus unit constant) |
||
521 | |||
522 | Returns the measurement units of the document. The returned value will be one |
||
523 | of the UNIT_* constants: |
||
524 | UNIT_INCHES, UNIT_MILLIMETERS, UNIT_PICAS, UNIT_POINTS. |
||
525 | </source> |
||
526 | <translation type="unfinished">getUnit() -> integer (Scribus unit constant) |
||
527 | |||
528 | Palauttaa asiakirjan mittayksikön. Arvo on yksi UNIT_* vakioista. |
||
529 | UNIT_INCHES, UNIT_MILLIMETERS, UNIT_PICAS, UNIT_POINTS. |
||
530 | </translation> |
||
531 | </message> |
||
532 | <message> |
||
533 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="206"/> |
||
534 | <source>loadStylesFromFile("filename") |
||
535 | |||
536 | Loads paragraph styles from the Scribus document at "filename" into the |
||
537 | current document. |
||
538 | </source> |
||
539 | <translation type="unfinished">loadStylesFromFile("filename") |
||
540 | |||
541 | Lataa kappaletyylit Scribus-asiakirjasta "filename" aktiiviseen asiakirjaan.</translation> |
||
542 | </message> |
||
543 | <message> |
||
544 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="218"/> |
||
545 | <source>setDocType(facingPages, firstPageLeft) |
||
546 | |||
547 | Sets the document type. To get facing pages set the first parameter to |
||
548 | FACINGPAGES, to switch facingPages off use NOFACINGPAGES instead. If you want |
||
549 | to be the first page a left side set the second parameter to FIRSTPAGELEFT, for |
||
550 | a right page use FIRSTPAGERIGHT. |
||
551 | </source> |
||
552 | <translation type="unfinished">setDocType(facingPages, firstPageLeft) |
||
553 | |||
554 | Sets the document type. To get facing pages set the first parameter to |
||
555 | FACINGPAGES, to switch facingPages off use NOFACINGPAGES instead. If you want |
||
556 | to be the first page a left side set the second parameter to FIRSTPAGELEFT, for |
||
557 | a right page use FIRSTPAGERIGHT. |
||
558 | |||
559 | </translation> |
||
560 | </message> |
||
561 | <message> |
||
562 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="226"/> |
||
563 | <source>closeMasterPage() |
||
564 | |||
565 | Closes the currently active master page, if any, and returns editing |
||
566 | to normal. Begin editing with editMasterPage(). |
||
567 | </source> |
||
568 | <translation type="unfinished">closeMasterPage() |
||
569 | |||
570 | Closes the currently active master page, if any, and returns editing |
||
571 | to normal. Begin editing with editMasterPage(). |
||
572 | </translation> |
||
573 | </message> |
||
574 | <message> |
||
575 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="233"/> |
||
576 | <source>masterPageNames() |
||
577 | |||
578 | Returns a list of the names of all master pages in the document. |
||
579 | </source> |
||
580 | <translation type="unfinished">masterPageNames() |
||
581 | |||
582 | Returns a list of the names of all master pages in the document. |
||
583 | </translation> |
||
584 | </message> |
||
585 | <message> |
||
586 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="241"/> |
||
587 | <source>editMasterPage(pageName) |
||
588 | |||
589 | Enables master page editing and opens the named master page |
||
590 | for editing. Finish editing with closeMasterPage(). |
||
591 | </source> |
||
592 | <translation type="unfinished">editMasterPage(pageName) |
||
593 | |||
594 | Enables master page editing and opens the named master page |
||
595 | for editing. Finish editing with closeMasterPage(). |
||
596 | </translation> |
||
597 | </message> |
||
598 | <message> |
||
599 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="249"/> |
||
600 | <source>createMasterPage(pageName) |
||
601 | |||
602 | Creates a new master page named pageName and opens it for |
||
603 | editing. |
||
604 | </source> |
||
605 | <translation type="unfinished">createMasterPage(pageName) |
||
606 | |||
607 | Creates a new master page named pageName and opens it for |
||
608 | editing. |
||
609 | </translation> |
||
610 | </message> |
||
611 | <message> |
||
612 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="256"/> |
||
613 | <source>deleteMasterPage(pageName) |
||
614 | |||
615 | Delete the named master page. |
||
616 | </source> |
||
617 | <translation type="unfinished">deleteMasterPage(pageName) |
||
618 | |||
619 | Delete the named master page. |
||
620 | </translation> |
||
621 | </message> |
||
622 | <message> |
||
623 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="21"/> |
||
624 | <source>getFillColor(["name"]) -> string |
||
625 | |||
626 | Returns the name of the fill color of the object "name". |
||
627 | If "name" is not given the currently selected item is used. |
||
628 | </source> |
||
629 | <translation type="unfinished">getFillColor(["name"]) -> string |
||
630 | |||
631 | Palauttaa täyttövärin nimen kohteelle "name". |
||
632 | Jos "name" ei ole annettu käytetään valittuna olevaa kohdetta.</translation> |
||
633 | </message> |
||
634 | <message> |
||
635 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="31"/> |
||
636 | <source>getFillTransparency(["name"]) -> float |
||
637 | |||
638 | Returns the fill transparency of the object "name". If "name" |
||
639 | is not given the currently selected Item is used. |
||
640 | </source> |
||
641 | <translation type="unfinished">getFillTransparency(["name"]) -> float |
||
642 | |||
643 | Returns the fill transparency of the object "name". If "name" |
||
644 | is not given the currently selected Item is used. |
||
645 | </translation> |
||
646 | </message> |
||
647 | <message> |
||
648 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="41"/> |
||
649 | <source>getFillBlendmode(["name"]) -> integer |
||
650 | |||
651 | Returns the fill blendmode of the object "name". If "name" |
||
652 | is not given the currently selected Item is used. |
||
653 | </source> |
||
654 | <translation type="unfinished">getFillBlendmode(["name"]) -> integer |
||
655 | |||
656 | Returns the fill blendmode of the object "name". If "name" |
||
657 | is not given the currently selected Item is used. |
||
658 | </translation> |
||
659 | </message> |
||
660 | <message> |
||
661 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="51"/> |
||
662 | <source>getLineColor(["name"]) -> string |
||
663 | |||
664 | Returns the name of the line color of the object "name". |
||
665 | If "name" is not given the currently selected item is used. |
||
666 | </source> |
||
667 | <translation type="unfinished">getLineColor(["name"]) -> string |
||
668 | |||
669 | Palauttaa kohteen "name" viivan värin. Ilman "name":a palauttaa |
||
670 | valittuna olevan kohteen kehyksen värin.</translation> |
||
671 | </message> |
||
672 | <message> |
||
673 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="61"/> |
||
674 | <source>getLineTransparency(["name"]) -> float |
||
675 | |||
676 | Returns the line transparency of the object "name". If "name" |
||
677 | is not given the currently selected Item is used. |
||
678 | </source> |
||
679 | <translation type="unfinished">getLineTransparency(["name"]) -> float |
||
680 | |||
681 | Returns the line transparency of the object "name". If "name" |
||
682 | is not given the currently selected Item is used. |
||
683 | </translation> |
||
684 | </message> |
||
685 | <message> |
||
686 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="71"/> |
||
687 | <source>getLineBlendmode(["name"]) -> integer |
||
688 | |||
689 | Returns the line blendmode of the object "name". If "name" |
||
690 | is not given the currently selected Item is used. |
||
691 | </source> |
||
692 | <translation type="unfinished">getLineBlendmode(["name"]) -> integer |
||
693 | |||
694 | Returns the line blendmode of the object "name". If "name" |
||
695 | is not given the currently selected Item is used. |
||
696 | </translation> |
||
697 | </message> |
||
698 | <message> |
||
699 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="81"/> |
||
700 | <source>getLineWidth(["name"]) -> integer |
||
701 | |||
702 | Returns the line width of the object "name". If "name" |
||
703 | is not given the currently selected Item is used. |
||
704 | </source> |
||
705 | <translation type="unfinished">getLineWidth(["name"]) -> integer |
||
706 | |||
707 | Palauttaa kohteen "name" viivan leveyden. Jos "name":a |
||
708 | ei anneta käytetään valittuna olevaa kohdetta.</translation> |
||
709 | </message> |
||
710 | <message> |
||
711 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="91"/> |
||
712 | <source>getLineShade(["name"]) -> integer |
||
713 | |||
714 | Returns the shading value of the line color of the object "name". |
||
715 | If "name" is not given the currently selected item is used. |
||
716 | </source> |
||
717 | <translation type="unfinished">getLineShade(["name"]) -> integer |
||
718 | |||
719 | Palauttaa kohteen "name" viivan värin sävyn. Jos "name":a ei |
||
720 | anneta käytetään valittuna olevaa kohdetta.</translation> |
||
721 | </message> |
||
722 | <message> |
||
723 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="102"/> |
||
724 | <source>getLineJoin(["name"]) -> integer (see constants) |
||
725 | |||
726 | Returns the line join style of the object "name". If "name" is not given |
||
727 | the currently selected item is used. The join types are: |
||
728 | JOIN_BEVEL, JOIN_MITTER, JOIN_ROUND |
||
729 | </source> |
||
730 | <translation type="unfinished"></translation> |
||
731 | </message> |
||
732 | <message> |
||
733 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="113"/> |
||
734 | <source>getLineEnd(["name"]) -> integer (see constants) |
||
735 | |||
736 | Returns the line cap style of the object "name". If "name" is not given the |
||
737 | currently selected item is used. The cap types are: |
||
738 | CAP_FLAT, CAP_ROUND, CAP_SQUARE |
||
739 | </source> |
||
740 | <translation type="unfinished">getLineEnd(["name"]) -> integer (see constants) |
||
741 | |||
742 | Returns the line cap style of the object "name". If "name" is not given the |
||
743 | currently selected item is used. The cap types are: |
||
744 | CAP_FLAT, CAP_ROUND, CAP_SQUARE </translation> |
||
745 | </message> |
||
746 | <message> |
||
747 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="124"/> |
||
748 | <source>getLineStyle(["name"]) -> integer (see constants) |
||
749 | |||
750 | Returns the line style of the object "name". If "name" is not given the |
||
751 | currently selected item is used. Line style constants are: |
||
752 | LINE_DASH, LINE_DASHDOT, LINE_DASHDOTDOT, LINE_DOT, LINE_SOLID |
||
753 | </source> |
||
754 | <translation type="unfinished">getLineStyle(["name"]) -> integer (see constants) |
||
755 | |||
756 | Returns the line style of the object "name". If "name" is not given the |
||
757 | currently selected item is used. Line style constants are: |
||
758 | LINE_DASH, LINE_DASHDOT, LINE_DASHDOTDOT, LINE_DOT, LINE_SOLID |
||
759 | </translation> |
||
760 | </message> |
||
761 | <message> |
||
762 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="134"/> |
||
763 | <source>getFillShade(["name"]) -> integer |
||
764 | |||
765 | Returns the shading value of the fill color of the object "name". |
||
766 | If "name" is not given the currently selected item is used. |
||
767 | </source> |
||
768 | <translation type="unfinished">getFillShade(["name"]) -> integer |
||
769 | |||
770 | Returns the shading value of the fill color of the object "name". |
||
771 | If "name" is not given the currently selected item is used. |
||
772 | </translation> |
||
773 | </message> |
||
774 | <message> |
||
775 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="145"/> |
||
776 | <source>getCornerRadius(["name"]) -> integer |
||
777 | |||
778 | Returns the corner radius of the object "name". The radius is |
||
779 | expressed in points. If "name" is not given the currently |
||
780 | selected item is used. |
||
781 | </source> |
||
782 | <translation type="unfinished"></translation> |
||
783 | </message> |
||
784 | <message> |
||
785 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="155"/> |
||
786 | <source>getImageScale(["name"]) -> (x,y) |
||
787 | |||
788 | Returns a (x, y) tuple containing the scaling values of the image frame |
||
789 | "name". If "name" is not given the currently selected item is used. |
||
790 | </source> |
||
791 | <translation type="unfinished">getImageScale(["name"]) -> (x,y) |
||
792 | |||
793 | Returns a (x, y) tuple containing the scaling values of the image frame |
||
794 | "name". If "name" is not given the currently selected item is used. |
||
795 | </translation> |
||
796 | </message> |
||
797 | <message> |
||
798 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="165"/> |
||
799 | <source>getImageName(["name"]) -> string |
||
800 | |||
801 | Returns the filename for the image in the image frame. If "name" is not |
||
802 | given the currently selected item is used. |
||
803 | </source> |
||
804 | <translation type="unfinished">getImageName(["name"]) -> string |
||
805 | |||
806 | Returns the filename for the image in the image frame. If "name" is not |
||
807 | given the currently selected item is used. |
||
808 | </translation> |
||
809 | </message> |
||
810 | <message> |
||
811 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="177"/> |
||
812 | <source>getPosition(["name"]) -> (x,y) |
||
813 | |||
814 | Returns a (x, y) tuple with the position of the object "name". |
||
815 | If "name" is not given the currently selected item is used. |
||
816 | The position is expressed in the actual measurement unit of the document |
||
817 | - see UNIT_<type> for reference. |
||
818 | </source> |
||
819 | <translation type="unfinished"></translation> |
||
820 | </message> |
||
821 | <message> |
||
822 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="189"/> |
||
823 | <source>getSize(["name"]) -> (width,height) |
||
824 | |||
825 | Returns a (width, height) tuple with the size of the object "name". |
||
826 | If "name" is not given the currently selected item is used. The size is |
||
827 | expressed in the current measurement unit of the document - see UNIT_<type> |
||
828 | for reference. |
||
829 | </source> |
||
830 | <translation type="unfinished">getSize(["name"]) -> (width,height) |
||
831 | |||
832 | Returns a (width, height) tuple with the size of the object "name". |
||
833 | If "name" is not given the currently selected item is used. The size is |
||
834 | expressed in the current measurement unit of the document - see UNIT_<type> |
||
835 | for reference. |
||
836 | </translation> |
||
837 | </message> |
||
838 | <message> |
||
839 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="200"/> |
||
840 | <source>getRotation(["name"]) -> integer |
||
841 | |||
842 | Returns the rotation of the object "name". The value is expressed in degrees, |
||
843 | and clockwise is positive. If "name" is not given the currently selected item |
||
844 | is used. |
||
845 | </source> |
||
846 | <translation type="unfinished">getRotation(["name"]) -> integer |
||
847 | |||
848 | Returns the rotation of the object "name". The value is expressed in degrees, |
||
849 | and clockwise is positive. If "name" is not given the currently selected item |
||
850 | is used.</translation> |
||
851 | </message> |
||
852 | <message> |
||
853 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="209"/> |
||
854 | <source>getAllObjects() -> list |
||
855 | |||
856 | Returns a list containing the names of all objects on the current page. |
||
857 | </source> |
||
858 | <translation type="unfinished">getAllObjects() -> list |
||
859 | |||
860 | Returns a list containing the names of all objects on the current page.</translation> |
||
861 | </message> |
||
862 | <message> |
||
863 | <location filename="../../scribus/plugins/scriptplugin/cmdgetsetprop.h" line="83"/> |
||
864 | <source>getPropertyCType(object, property, includesuper=True) |
||
865 | |||
866 | Returns the name of the C type of `property' of `object'. See getProperty() |
||
867 | for details of arguments. |
||
868 | |||
869 | If `includesuper' is true, search inherited properties too. |
||
870 | </source> |
||
871 | <translation type="unfinished">getPropertyCType(object, property, includesuper=True) |
||
872 | |||
873 | Returns the name of the C type of `property' of `object'. See getProperty() |
||
874 | for details of arguments. |
||
875 | |||
876 | If `includesuper' is true, search inherited properties too.</translation> |
||
877 | </message> |
||
878 | <message> |
||
879 | <location filename="../../scribus/plugins/scriptplugin/cmdgetsetprop.h" line="101"/> |
||
880 | <source>getPropertyNames(object, includesuper=True) |
||
881 | |||
882 | Return a list of property names supported by `object'. |
||
883 | If `includesuper' is true, return properties supported |
||
884 | by parent classes as well. |
||
885 | </source> |
||
886 | <translation type="unfinished">getPropertyNames(object, includesuper=True) |
||
887 | |||
888 | Return a list of property names supported by `object'. |
||
889 | If `includesuper' is true, return properties supported |
||
890 | by parent classes as well.</translation> |
||
891 | </message> |
||
892 | <message> |
||
893 | <location filename="../../scribus/plugins/scriptplugin/cmdgetsetprop.h" line="135"/> |
||
894 | <source>getProperty(object, property) |
||
895 | |||
896 | Return the value of the property `property' of the passed `object'. |
||
897 | |||
898 | The `object' argument may be a string, in which case the named PageItem |
||
899 | is searched for. It may also be a PyCObject, which may point to any |
||
900 | C++ QObject instance. |
||
901 | |||
902 | The `property' argument must be a string, and is the name of the property |
||
903 | to look up on `object'. |
||
904 | |||
905 | The return value varies depending on the type of the property. |
||
906 | </source> |
||
907 | <translation type="unfinished">getProperty(object, property) |
||
908 | |||
909 | Return the value of the property `property' of the passed `object'. |
||
910 | |||
911 | The `object' argument may be a string, in which case the named PageItem |
||
912 | is searched for. It may also be a PyCObject, which may point to any |
||
913 | C++ QObject instance. |
||
914 | |||
915 | The `property' argument must be a string, and is the name of the property |
||
916 | to look up on `object'. |
||
917 | |||
918 | The return value varies depending on the type of the property. |
||
919 | </translation> |
||
920 | </message> |
||
921 | <message> |
||
922 | <location filename="../../scribus/plugins/scriptplugin/cmdgetsetprop.h" line="165"/> |
||
923 | <source>setProperty(object, property, value) |
||
924 | |||
925 | Set `property' of `object' to `value'. If `value' cannot be converted to a type |
||
926 | compatible with the type of `property', an exception is raised. An exception may |
||
927 | also be raised if the underlying setter fails. |
||
928 | |||
929 | See getProperty() for more information. |
||
930 | </source> |
||
931 | <translation type="unfinished">setProperty(object, property, value) |
||
932 | |||
933 | Set `property' of `object' to `value'. If `value' cannot be converted to a type |
||
934 | compatible with the type of `property', an exception is raised. An exception may |
||
935 | also be raised if the underlying setter fails. |
||
936 | |||
937 | See getProperty() for more information. |
||
938 | </translation> |
||
939 | </message> |
||
940 | <message> |
||
941 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="23"/> |
||
942 | <source>moveObject(dx, dy [, "name"]) |
||
943 | |||
944 | Moves the object "name" by dx and dy relative to its current position. The |
||
945 | distances are expressed in the current measurement unit of the document (see |
||
946 | UNIT constants). If "name" is not given the currently selected item is used. |
||
947 | If the object "name" belongs to a group, the whole group is moved. |
||
948 | </source> |
||
949 | <translation type="unfinished">moveObject(dx, dy [, "name"]) |
||
950 | |||
951 | Siirtää kohdetta "name" arvoilla dx ja dy suhteessa nykyiseen sijaintiin. Etäisyydet |
||
952 | ilmaistaan asiakirjassa käytössä olevalla yksiköllä (katso UNIT-vakio). Jos "name" ei |
||
953 | ole määritelty, käytetään valittuna olevaa kohdetta. Jos kohde "name" kuuluu |
||
954 | ryhmään, koko ryhmää siirretään.</translation> |
||
955 | </message> |
||
956 | <message> |
||
957 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="35"/> |
||
958 | <source>moveObjectAbs(x, y [, "name"]) |
||
959 | |||
960 | Moves the object "name" to a new location. The coordinates are expressed in |
||
961 | the current measurement unit of the document (see UNIT constants). If "name" |
||
962 | is not given the currently selected item is used. If the object "name" |
||
963 | belongs to a group, the whole group is moved. |
||
964 | </source> |
||
965 | <translation type="unfinished">moveObjectAbs(x, y [, "name"]) |
||
966 | |||
967 | Moves the object "name" to a new location. The coordinates are expressed in |
||
968 | the current measurement unit of the document (see UNIT constants). If "name" |
||
969 | is not given the currently selected item is used. If the object "name" |
||
970 | belongs to a group, the whole group is moved. |
||
971 | </translation> |
||
972 | </message> |
||
973 | <message> |
||
974 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="48"/> |
||
975 | <source>rotateObject(rot [, "name"]) |
||
976 | |||
977 | Rotates the object "name" by "rot" degrees relatively. The object is |
||
978 | rotated by the vertex that is currently selected as the rotation point - by |
||
979 | default, the top left vertex at zero rotation. Positive values mean counter |
||
980 | clockwise rotation when the default rotation point is used. If "name" is not |
||
981 | given the currently selected item is used. |
||
982 | </source> |
||
983 | <translation type="unfinished"></translation> |
||
984 | </message> |
||
985 | <message> |
||
986 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="59"/> |
||
987 | <source>rotateObjectAbs(rot [, "name"]) |
||
988 | |||
989 | Sets the rotation of the object "name" to "rot". Positive values |
||
990 | mean counter clockwise rotation. If "name" is not given the currently |
||
991 | selected item is used. |
||
992 | </source> |
||
993 | <translation type="unfinished"></translation> |
||
994 | </message> |
||
995 | <message> |
||
996 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="69"/> |
||
997 | <source>sizeObject(width, height [, "name"]) |
||
998 | |||
999 | Resizes the object "name" to the given width and height. If "name" |
||
1000 | is not given the currently selected item is used. |
||
1001 | </source> |
||
1002 | <translation type="unfinished">sizeObject(width, height [, "name"]) |
||
1003 | |||
1004 | Resizes the object "name" to the given width and height. If "name" |
||
1005 | is not given the currently selected item is used. |
||
1006 | </translation> |
||
1007 | </message> |
||
1008 | <message> |
||
1009 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="80"/> |
||
1010 | <source>getSelectedObject([nr]) -> string |
||
1011 | |||
1012 | Returns the name of the selected object. "nr" if given indicates the number |
||
1013 | of the selected object, e.g. 0 means the first selected object, 1 means the |
||
1014 | second selected Object and so on. |
||
1015 | </source> |
||
1016 | <translation type="unfinished">getSelectedObject([nr]) -> string |
||
1017 | |||
1018 | Returns the name of the selected object. "nr" if given indicates the number |
||
1019 | of the selected object, e.g. 0 means the first selected object, 1 means the |
||
1020 | second selected Object and so on. |
||
1021 | </translation> |
||
1022 | </message> |
||
1023 | <message> |
||
1024 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="89"/> |
||
1025 | <source>selectionCount() -> integer |
||
1026 | |||
1027 | Returns the number of selected objects. |
||
1028 | </source> |
||
1029 | <translation type="unfinished">selectionCount() -> integer |
||
1030 | |||
1031 | Returns the number of selected objects. |
||
1032 | </translation> |
||
1033 | </message> |
||
1034 | <message> |
||
1035 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="98"/> |
||
1036 | <source>selectObject("name") |
||
1037 | |||
1038 | Selects the object with the given "name". |
||
1039 | </source> |
||
1040 | <translation type="unfinished">selectObject("name") |
||
1041 | |||
1042 | Selects the object with the given "name". |
||
1043 | </translation> |
||
1044 | </message> |
||
1045 | <message> |
||
1046 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="107"/> |
||
1047 | <source>deselectAll() |
||
1048 | |||
1049 | Deselects all objects in the whole document. |
||
1050 | </source> |
||
1051 | <translation type="unfinished">deselectAll() |
||
1052 | |||
1053 | Deselects all objects in the whole document. |
||
1054 | </translation> |
||
1055 | </message> |
||
1056 | <message> |
||
1057 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="118"/> |
||
1058 | <source>groupObjects(list) |
||
1059 | |||
1060 | Groups the objects named in "list" together. "list" must contain the names |
||
1061 | of the objects to be grouped. If "list" is not given the currently selected |
||
1062 | items are used. |
||
1063 | </source> |
||
1064 | <translation type="unfinished">groupObjects(list) |
||
1065 | |||
1066 | Groups the objects named in "list" together. "list" must contain the names |
||
1067 | of the objects to be grouped. If "list" is not given the currently selected |
||
1068 | items are used. |
||
1069 | </translation> |
||
1070 | </message> |
||
1071 | <message> |
||
1072 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="126"/> |
||
1073 | <source>unGroupObjects("name") |
||
1074 | |||
1075 | Destructs the group the object "name" belongs to.If "name" is not given the currently selected item is used.</source> |
||
1076 | <translation type="unfinished">unGroupObjects("name") |
||
1077 | |||
1078 | Destructs the group the object "name" belongs to.If "name" is not given the currently selected item is used. |
||
1079 | </translation> |
||
1080 | </message> |
||
1081 | <message> |
||
1082 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="141"/> |
||
1083 | <source>scaleGroup(factor [,"name"]) |
||
1084 | |||
1085 | Scales the group the object "name" belongs to. Values greater than 1 enlarge |
||
1086 | the group, values smaller than 1 make the group smaller e.g a value of 0.5 |
||
1087 | scales the group to 50 % of its original size, a value of 1.5 scales the group |
||
1088 | to 150 % of its original size. The value for "factor" must be greater than |
||
1089 | 0. If "name" is not given the currently selected item is used. |
||
1090 | |||
1091 | May raise ValueError if an invalid scale factor is passed. |
||
1092 | </source> |
||
1093 | <translation type="unfinished">scaleGroup(factor [,"name"]) |
||
1094 | |||
1095 | Scales the group the object "name" belongs to. Values greater than 1 enlarge |
||
1096 | the group, values smaller than 1 make the group smaller e.g a value of 0.5 |
||
1097 | scales the group to 50 % of its original size, a value of 1.5 scales the group |
||
1098 | to 150 % of its original size. The value for "factor" must be greater than |
||
1099 | 0. If "name" is not given the currently selected item is used. |
||
1100 | |||
1101 | May raise ValueError if an invalid scale factor is passed. |
||
1102 | </translation> |
||
1103 | </message> |
||
1104 | <message> |
||
1105 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="153"/> |
||
1106 | <source>loadImage("filename" [, "name"]) |
||
1107 | |||
1108 | Loads the picture "picture" into the image frame "name". If "name" is |
||
1109 | not given the currently selected item is used. |
||
1110 | |||
1111 | May raise WrongFrameTypeError if the target frame is not an image frame |
||
1112 | </source> |
||
1113 | <translation type="unfinished">loadImage("filename" [, "name"]) |
||
1114 | |||
1115 | Loads the picture "picture" into the image frame "name". If "name" is |
||
1116 | not given the currently selected item is used. |
||
1117 | |||
1118 | May raise WrongFrameTypeError if the target frame is not an image frame |
||
1119 | </translation> |
||
1120 | </message> |
||
1121 | <message> |
||
1122 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="166"/> |
||
1123 | <source>scaleImage(x, y [, "name"]) |
||
1124 | |||
1125 | Sets the scaling factors of the picture in the image frame "name". |
||
1126 | If "name" is not given the currently selected item is used. A number of 1 |
||
1127 | means 100 %. |
||
1128 | |||
1129 | May raise WrongFrameTypeError if the target frame is not an image frame |
||
1130 | </source> |
||
1131 | <translation type="unfinished">scaleImage(x, y [, "name"]) |
||
1132 | |||
1133 | Sets the scaling factors of the picture in the image frame "name". |
||
1134 | If "name" is not given the currently selected item is used. A number of 1 |
||
1135 | means 100 %. |
||
1136 | |||
1137 | May raise WrongFrameTypeError if the target frame is not an image frame |
||
1138 | </translation> |
||
1139 | </message> |
||
1140 | <message> |
||
1141 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="177"/> |
||
1142 | <source>lockObject(["name"]) -> bool |
||
1143 | |||
1144 | Locks the object "name" if it's unlocked or unlock it if it's locked. |
||
1145 | If "name" is not given the currently selected item is used. Returns true |
||
1146 | if locked. |
||
1147 | </source> |
||
1148 | <translation type="unfinished">lockObject(["name"]) -> bool |
||
1149 | |||
1150 | Locks the object "name" if it's unlocked or unlock it if it's locked. |
||
1151 | If "name" is not given the currently selected item is used. Returns true |
||
1152 | if locked. |
||
1153 | </translation> |
||
1154 | </message> |
||
1155 | <message> |
||
1156 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="187"/> |
||
1157 | <source>isLocked(["name"]) -> bool |
||
1158 | |||
1159 | Returns true if is the object "name" locked. If "name" is not given the |
||
1160 | currently selected item is used. |
||
1161 | </source> |
||
1162 | <translation type="unfinished">isLocked(["name"]) -> bool |
||
1163 | |||
1164 | Returns true if is the object "name" locked. If "name" is not given the |
||
1165 | currently selected item is used. |
||
1166 | </translation> |
||
1167 | </message> |
||
1168 | <message> |
||
1169 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="199"/> |
||
1170 | <source>setScaleImageToFrame(scaletoframe, proportional=None, name=<selection>) |
||
1171 | |||
1172 | Sets the scale to frame on the selected or specified image frame to `scaletoframe'. |
||
1173 | If `proportional' is specified, set fixed aspect ratio scaling to `proportional'. |
||
1174 | Both `scaletoframe' and `proportional' are boolean. |
||
1175 | |||
1176 | May raise WrongFrameTypeError. |
||
1177 | </source> |
||
1178 | <translation type="unfinished">setScaleImageToFrame(scaletoframe, proportional=None, name=<selection>) |
||
1179 | |||
1180 | Sets the scale to frame on the selected or specified image frame to `scaletoframe'. |
||
1181 | If `proportional' is specified, set fixed aspect ratio scaling to `proportional'. |
||
1182 | Both `scaletoframe' and `proportional' are boolean. |
||
1183 | |||
1184 | May raise WrongFrameTypeError. </translation> |
||
1185 | </message> |
||
1186 | <message> |
||
1187 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="24"/> |
||
1188 | <source>setRedraw(bool) |
||
1189 | |||
1190 | Disables page redraw when bool = False, otherwise redrawing is enabled. |
||
1191 | This change will persist even after the script exits, so make sure to call |
||
1192 | setRedraw(True) in a finally: clause at the top level of your script. |
||
1193 | </source> |
||
1194 | <translation type="unfinished">setRedraw(bool) |
||
1195 | |||
1196 | Estää sivun uudelleenpiirron, kun bool=False. Muuten uudelleen piirto on |
||
1197 | käytössä. Tämä asetus jää voimaan vaikka skriptistä poistutaan. Varmista, |
||
1198 | että kutsut setRedraw(True) finally: -lauseessa ylimmällä tasolla skriptissäsi.</translation> |
||
1199 | </message> |
||
1200 | <message> |
||
1201 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="33"/> |
||
1202 | <source>getFontNames() -> list |
||
1203 | |||
1204 | Returns a list with the names of all available fonts. |
||
1205 | </source> |
||
1206 | <translation type="unfinished">getFontNames() -> list |
||
1207 | |||
1208 | Returns a list with the names of all available fonts. |
||
1209 | </translation> |
||
1210 | </message> |
||
1211 | <message> |
||
1212 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="43"/> |
||
1213 | <source>getXFontNames() -> list of tuples |
||
1214 | |||
1215 | Returns a larger font info. It's a list of the tuples with: |
||
1216 | [ (Scribus name, Family, Real name, subset (1|0), embed PS (1|0), font file), (...), ... ] |
||
1217 | </source> |
||
1218 | <translation type="unfinished">getXFontNames() -> list of tuples |
||
1219 | |||
1220 | Returns a larger font info. It's a list of the tuples with: |
||
1221 | [ (Scribus name, Family, Real name, subset (1|0), embed PS (1|0), font file), (...), ... ] |
||
1222 | </translation> |
||
1223 | </message> |
||
1224 | <message> |
||
1225 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="62"/> |
||
1226 | <source>renderFont("name", "filename", "sample", size, format="PPM") -> bool |
||
1227 | |||
1228 | Creates an image preview of font "name" with given text "sample" and size. |
||
1229 | If "filename" is not "", image is saved into "filename". Otherwise |
||
1230 | image data is returned as a string. The optional "format" argument |
||
1231 | specifies the image format to generate, and supports any format allowed |
||
1232 | by QPixmap.save(). Common formats are PPM, JPEG, PNG and XPM. |
||
1233 | |||
1234 | May raise NotFoundError if the specified font can't be found. |
||
1235 | May raise ValueError if an empty sample or filename is passed. |
||
1236 | </source> |
||
1237 | <translation type="unfinished">renderFont("name", "filename", "sample", size, format="PPM") -> bool |
||
1238 | |||
1239 | Creates an image preview of font "name" with given text "sample" and size. |
||
1240 | If "filename" is not "", image is saved into "filename". Otherwise |
||
1241 | image data is returned as a string. The optional "format" argument |
||
1242 | specifies the image format to generate, and supports any format allowed |
||
1243 | by QPixmap.save(). Common formats are PPM, JPEG, PNG and XPM. |
||
1244 | |||
1245 | May raise NotFoundError if the specified font can't be found. |
||
1246 | May raise ValueError if an empty sample or filename is passed. </translation> |
||
1247 | </message> |
||
1248 | <message> |
||
1249 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="71"/> |
||
1250 | <source>getLayers() -> list |
||
1251 | |||
1252 | Returns a list with the names of all defined layers. |
||
1253 | </source> |
||
1254 | <translation type="unfinished">getLayers() -> list |
||
1255 | |||
1256 | |||
1257 | Returns a list with the names of all defined layers. </translation> |
||
1258 | </message> |
||
1259 | <message> |
||
1260 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="83"/> |
||
1261 | <source>setActiveLayer("name") |
||
1262 | |||
1263 | Sets the active layer to the layer named "name". |
||
1264 | |||
1265 | May raise NotFoundError if the layer can't be found. |
||
1266 | May raise ValueError if the layer name isn't acceptable. |
||
1267 | </source> |
||
1268 | <translation type="unfinished">setActiveLayer("name") |
||
1269 | |||
1270 | Sets the active layer to the layer named "name". |
||
1271 | |||
1272 | May raise NotFoundError if the layer can't be found. |
||
1273 | May raise ValueError if the layer name isn't acceptable. |
||
1274 | </translation> |
||
1275 | </message> |
||
1276 | <message> |
||
1277 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="92"/> |
||
1278 | <source>getActiveLayer() -> string |
||
1279 | |||
1280 | Returns the name of the current active layer. |
||
1281 | </source> |
||
1282 | <translation type="unfinished">getActiveLayer() -> string |
||
1283 | |||
1284 | Returns the name of the current active layer. |
||
1285 | </translation> |
||
1286 | </message> |
||
1287 | <message> |
||
1288 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="105"/> |
||
1289 | <source>sentToLayer("layer" [, "name"]) |
||
1290 | |||
1291 | Sends the object "name" to the layer "layer". The layer must exist. |
||
1292 | If "name" is not given the currently selected item is used. |
||
1293 | |||
1294 | May raise NotFoundError if the layer can't be found. |
||
1295 | May raise ValueError if the layer name isn't acceptable. |
||
1296 | </source> |
||
1297 | <translation type="unfinished">sentToLayer("layer" [, "name"]) |
||
1298 | |||
1299 | Sends the object "name" to the layer "layer". The layer must exist. |
||
1300 | If "name" is not given the currently selected item is used. |
||
1301 | |||
1302 | May raise NotFoundError if the layer can't be found. |
||
1303 | May raise ValueError if the layer name isn't acceptable. |
||
1304 | </translation> |
||
1305 | </message> |
||
1306 | <message> |
||
1307 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="118"/> |
||
1308 | <source>setLayerVisible("layer", visible) |
||
1309 | |||
1310 | Sets the layer "layer" to be visible or not. If is the visible set to false |
||
1311 | the layer is invisible. |
||
1312 | |||
1313 | May raise NotFoundError if the layer can't be found. |
||
1314 | May raise ValueError if the layer name isn't acceptable. |
||
1315 | </source> |
||
1316 | <translation type="unfinished">setLayerVisible("layer", visible) |
||
1317 | |||
1318 | Sets the layer "layer" to be visible or not. If is the visible set to false |
||
1319 | the layer is invisible. |
||
1320 | |||
1321 | May raise NotFoundError if the layer can't be found. |
||
1322 | May raise ValueError if the layer name isn't acceptable. |
||
1323 | </translation> |
||
1324 | </message> |
||
1325 | <message> |
||
1326 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="131"/> |
||
1327 | <source>setLayerPrintable("layer", printable) |
||
1328 | |||
1329 | Sets the layer "layer" to be printable or not. If is the |
||
1330 | printable set to false the layer won't be printed. |
||
1331 | |||
1332 | May raise NotFoundError if the layer can't be found. |
||
1333 | May raise ValueError if the layer name isn't acceptable. |
||
1334 | </source> |
||
1335 | <translation type="unfinished"></translation> |
||
1336 | </message> |
||
1337 | <message> |
||
1338 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="144"/> |
||
1339 | <source>setLayerLocked("layer", locked) |
||
1340 | |||
1341 | Sets the layer "layer" to be locked or not. If locked is set to |
||
1342 | true the layer will be locked. |
||
1343 | |||
1344 | May raise NotFoundError if the layer can't be found. |
||
1345 | May raise ValueError if the layer name isn't acceptable. |
||
1346 | </source> |
||
1347 | <translation type="unfinished">setLayerLocked("layer", locked) |
||
1348 | |||
1349 | Sets the layer "layer" to be locked or not. If locked is set to |
||
1350 | true the layer will be locked. |
||
1351 | |||
1352 | May raise NotFoundError if the layer can't be found. |
||
1353 | May raise ValueError if the layer name isn't acceptable. |
||
1354 | </translation> |
||
1355 | </message> |
||
1356 | <message> |
||
1357 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="157"/> |
||
1358 | <source>setLayerOutlined("layer", outline) |
||
1359 | |||
1360 | Sets the layer "layer" to be locked or not. If outline is set to |
||
1361 | true the layer will be displayed outlined. |
||
1362 | |||
1363 | May raise NotFoundError if the layer can't be found. |
||
1364 | May raise ValueError if the layer name isn't acceptable. |
||
1365 | </source> |
||
1366 | <translation type="unfinished"></translation> |
||
1367 | </message> |
||
1368 | <message> |
||
1369 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="170"/> |
||
1370 | <source>setLayerFlow("layer", flow) |
||
1371 | |||
1372 | Sets the layers "layer" flowcontrol to flow. If flow is set to |
||
1373 | true text in layers above this one will flow around objects on this layer. |
||
1374 | |||
1375 | May raise NotFoundError if the layer can't be found. |
||
1376 | May raise ValueError if the layer name isn't acceptable. |
||
1377 | </source> |
||
1378 | <translation type="unfinished"></translation> |
||
1379 | </message> |
||
1380 | <message> |
||
1381 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="182"/> |
||
1382 | <source>setLayerBlendmode("layer", blend) |
||
1383 | |||
1384 | Sets the layers "layer" blendmode to blend. |
||
1385 | |||
1386 | May raise NotFoundError if the layer can't be found. |
||
1387 | May raise ValueError if the layer name isn't acceptable. |
||
1388 | </source> |
||
1389 | <translation type="unfinished"></translation> |
||
1390 | </message> |
||
1391 | <message> |
||
1392 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="194"/> |
||
1393 | <source>setLayerTransparency("layer", trans) |
||
1394 | |||
1395 | Sets the layers "layer" transparency to trans. |
||
1396 | |||
1397 | May raise NotFoundError if the layer can't be found. |
||
1398 | May raise ValueError if the layer name isn't acceptable. |
||
1399 | </source> |
||
1400 | <translation type="unfinished"></translation> |
||
1401 | </message> |
||
1402 | <message> |
||
1403 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="208"/> |
||
1404 | <source>isLayerVisible("layer") -> bool |
||
1405 | |||
1406 | Returns whether the layer "layer" is visible or not, a value of True means |
||
1407 | that the layer "layer" is visible, a value of False means that the layer |
||
1408 | "layer" is invisible. |
||
1409 | |||
1410 | May raise NotFoundError if the layer can't be found. |
||
1411 | May raise ValueError if the layer name isn't acceptable. |
||
1412 | </source> |
||
1413 | <translation type="unfinished"></translation> |
||
1414 | </message> |
||
1415 | <message> |
||
1416 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="222"/> |
||
1417 | <source>isLayerPrintable("layer") -> bool |
||
1418 | |||
1419 | Returns whether the layer "layer" is printable or not, a value of True means |
||
1420 | that the layer "layer" can be printed, a value of False means that printing |
||
1421 | the layer "layer" is disabled. |
||
1422 | |||
1423 | May raise NotFoundError if the layer can't be found. |
||
1424 | May raise ValueError if the layer name isn't acceptable. |
||
1425 | </source> |
||
1426 | <translation type="unfinished">isLayerPrintable("layer") -> bool |
||
1427 | |||
1428 | Returns whether the layer "layer" is printable or not, a value of True means |
||
1429 | that the layer "layer" can be printed, a value of False means that printing |
||
1430 | the layer "layer" is disabled. |
||
1431 | |||
1432 | May raise NotFoundError if the layer can't be found. |
||
1433 | May raise ValueError if the layer name isn't acceptable. </translation> |
||
1434 | </message> |
||
1435 | <message> |
||
1436 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="236"/> |
||
1437 | <source>isLayerLocked("layer") -> bool |
||
1438 | |||
1439 | Returns whether the layer "layer" is locked or not, a value of True means |
||
1440 | that the layer "layer" is editable, a value of False means that the layer |
||
1441 | "layer" is locked. |
||
1442 | |||
1443 | May raise NotFoundError if the layer can't be found. |
||
1444 | May raise ValueError if the layer name isn't acceptable. |
||
1445 | </source> |
||
1446 | <translation type="unfinished">isLayerLocked("layer") -> bool |
||
1447 | |||
1448 | Returns whether the layer "layer" is locked or not, a value of True means |
||
1449 | that the layer "layer" is editable, a value of False means that the layer |
||
1450 | "layer" is locked. |
||
1451 | |||
1452 | May raise NotFoundError if the layer can't be found. |
||
1453 | May raise ValueError if the layer name isn't acceptable. |
||
1454 | </translation> |
||
1455 | </message> |
||
1456 | <message> |
||
1457 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="250"/> |
||
1458 | <source>isLayerOutlined("layer") -> bool |
||
1459 | |||
1460 | Returns whether the layer "layer" is outlined or not, a value of True means |
||
1461 | that the layer "layer" is outlined, a value of False means that the layer |
||
1462 | "layer" is normal. |
||
1463 | |||
1464 | May raise NotFoundError if the layer can't be found. |
||
1465 | May raise ValueError if the layer name isn't acceptable. |
||
1466 | </source> |
||
1467 | <translation type="unfinished">isLayerOutlined("layer") -> bool |
||
1468 | |||
1469 | Returns whether the layer "layer" is outlined or not, a value of True means |
||
1470 | that the layer "layer" is outlined, a value of False means that the layer |
||
1471 | "layer" is normal. |
||
1472 | |||
1473 | May raise NotFoundError if the layer can't be found. |
||
1474 | May raise ValueError if the layer name isn't acceptable. |
||
1475 | </translation> |
||
1476 | </message> |
||
1477 | <message> |
||
1478 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="263"/> |
||
1479 | <source>isLayerFlow("layer") -> bool |
||
1480 | |||
1481 | Returns whether text flows around objects on layer "layer", a value of True means |
||
1482 | that text flows around, a value of False means that the text does not flow around. |
||
1483 | |||
1484 | May raise NotFoundError if the layer can't be found. |
||
1485 | May raise ValueError if the layer name isn't acceptable. |
||
1486 | </source> |
||
1487 | <translation type="unfinished">isLayerFlow("layer") -> bool |
||
1488 | |||
1489 | Returns whether text flows around objects on layer "layer", a value of True means |
||
1490 | that text flows around, a value of False means that the text does not flow around. |
||
1491 | |||
1492 | May raise NotFoundError if the layer can't be found. |
||
1493 | May raise ValueError if the layer name isn't acceptable. |
||
1494 | </translation> |
||
1495 | </message> |
||
1496 | <message> |
||
1497 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="275"/> |
||
1498 | <source>getLayerBlendmode("layer") -> int |
||
1499 | |||
1500 | Returns the "layer" layer blendmode, |
||
1501 | |||
1502 | May raise NotFoundError if the layer can't be found. |
||
1503 | May raise ValueError if the layer name isn't acceptable. |
||
1504 | </source> |
||
1505 | <translation type="unfinished">getLayerBlendmode("layer") -> int |
||
1506 | |||
1507 | Returns the "layer" layer blendmode, |
||
1508 | |||
1509 | May raise NotFoundError if the layer can't be found. |
||
1510 | May raise ValueError if the layer name isn't acceptable. |
||
1511 | </translation> |
||
1512 | </message> |
||
1513 | <message> |
||
1514 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="287"/> |
||
1515 | <source>getLayerTransparency("layer") -> float |
||
1516 | |||
1517 | Returns the "layer" layer transparency, |
||
1518 | |||
1519 | May raise NotFoundError if the layer can't be found. |
||
1520 | May raise ValueError if the layer name isn't acceptable. |
||
1521 | </source> |
||
1522 | <translation type="unfinished">getLayerTransparency("layer") -> float |
||
1523 | |||
1524 | Returns the "layer" layer transparency, |
||
1525 | |||
1526 | May raise NotFoundError if the layer can't be found. |
||
1527 | May raise ValueError if the layer name isn't acceptable. |
||
1528 | </translation> |
||
1529 | </message> |
||
1530 | <message> |
||
1531 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="300"/> |
||
1532 | <source>deleteLayer("layer") |
||
1533 | |||
1534 | Deletes the layer with the name "layer". Nothing happens if the layer doesn't |
||
1535 | exists or if it's the only layer in the document. |
||
1536 | |||
1537 | May raise NotFoundError if the layer can't be found. |
||
1538 | May raise ValueError if the layer name isn't acceptable. |
||
1539 | </source> |
||
1540 | <translation type="unfinished">deleteLayer("layer") |
||
1541 | |||
1542 | |||
1543 | Deletes the layer with the name "layer". Nothing happens if the layer doesn't |
||
1544 | exists or if it's the only layer in the document. |
||
1545 | |||
1546 | May raise NotFoundError if the layer can't be found. |
||
1547 | May raise ValueError if the layer name isn't acceptable. </translation> |
||
1548 | </message> |
||
1549 | <message> |
||
1550 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="311"/> |
||
1551 | <source>createLayer(layer) |
||
1552 | |||
1553 | Creates a new layer with the name "name". |
||
1554 | |||
1555 | May raise ValueError if the layer name isn't acceptable. |
||
1556 | </source> |
||
1557 | <translation type="unfinished">createLayer(layer) |
||
1558 | |||
1559 | Creates a new layer with the name "name". |
||
1560 | |||
1561 | May raise ValueError if the layer name isn't acceptable. |
||
1562 | </translation> |
||
1563 | </message> |
||
1564 | <message> |
||
1565 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="320"/> |
||
1566 | <source>getGuiLanguage() -> string |
||
1567 | |||
1568 | Returns a string with the -lang value. |
||
1569 | </source> |
||
1570 | <translation type="unfinished">getGuiLanguage() -> string |
||
1571 | |||
1572 | Returns a string with the -lang value. |
||
1573 | </translation> |
||
1574 | </message> |
||
1575 | <message> |
||
1576 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="329"/> |
||
1577 | <source>moveSelectionToFront() |
||
1578 | |||
1579 | Moves current selection to front. |
||
1580 | </source> |
||
1581 | <translation type="unfinished"></translation> |
||
1582 | </message> |
||
1583 | <message> |
||
1584 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="338"/> |
||
1585 | <source>moveSelectionToFront() |
||
1586 | |||
1587 | Moves current selection to back. |
||
1588 | </source> |
||
1589 | <translation type="unfinished"></translation> |
||
1590 | </message> |
||
1591 | <message> |
||
1592 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="26"/> |
||
1593 | <source>createRect(x, y, width, height, ["name"]) -> string |
||
1594 | |||
1595 | Creates a new rectangle on the current page and returns its name. The |
||
1596 | coordinates are given in the current measurement units of the document |
||
1597 | (see UNIT constants). "name" should be a unique identifier for the object |
||
1598 | because you need this name to reference that object in future. If "name" |
||
1599 | is not given Scribus will create one for you. |
||
1600 | |||
1601 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1602 | </source> |
||
1603 | <translation type="unfinished">createRect(x, y, width, height, ["name"]) -> string |
||
1604 | |||
1605 | Luo uuden nelikulmion nykyiselle sivulle ja palauttaa luodun kohteen nimen. |
||
1606 | Koordinaatit on annettava asiakirjassa käytössä olevalla yksiköllä. Katso (UNIT vakiot). |
||
1607 | "name":n tulee olla yksilöllinen tunniste kohteelle, koska tarvitset nimeä myöhemmin |
||
1608 | viitatessasi nelikulmioon. Jos "name":a ei anneta Scribus luo sen. |
||
1609 | |||
1610 | Saattaa nostaa NameExistsError:n, jos annettu nimi on jo olemassa.</translation> |
||
1611 | </message> |
||
1612 | <message> |
||
1613 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="43"/> |
||
1614 | <source>createEllipse(x, y, width, height, ["name"]) -> string |
||
1615 | |||
1616 | Creates a new ellipse on the current page and returns its name. |
||
1617 | The coordinates are given in the current measurement units of the document |
||
1618 | (see UNIT constants). "name" should be a unique identifier for the object |
||
1619 | because you need this name for further referencing of that object. If "name" |
||
1620 | is not given Scribus will create one for you. |
||
1621 | |||
1622 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1623 | </source> |
||
1624 | <translation type="unfinished">createEllipse(x, y, width, height, ["name"]) -> string |
||
1625 | |||
1626 | Creates a new ellipse on the current page and returns its name. |
||
1627 | The coordinates are given in the current measurement units of the document |
||
1628 | (see UNIT constants). "name" should be a unique identifier for the object |
||
1629 | because you need this name for further referencing of that object. If "name" |
||
1630 | is not given Scribus will create one for you. |
||
1631 | |||
1632 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1633 | </translation> |
||
1634 | </message> |
||
1635 | <message> |
||
1636 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="60"/> |
||
1637 | <source>createImage(x, y, width, height, ["name"]) -> string |
||
1638 | |||
1639 | Creates a new picture frame on the current page and returns its name. The |
||
1640 | coordinates are given in the current measurement units of the document. |
||
1641 | "name" should be a unique identifier for the object because you need this |
||
1642 | name for further access to that object. If "name" is not given Scribus will |
||
1643 | create one for you. |
||
1644 | |||
1645 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1646 | </source> |
||
1647 | <translation type="unfinished">createImage(x, y, width, height, ["name"]) -> string |
||
1648 | |||
1649 | Creates a new picture frame on the current page and returns its name. The |
||
1650 | coordinates are given in the current measurement units of the document. |
||
1651 | "name" should be a unique identifier for the object because you need this |
||
1652 | name for further access to that object. If "name" is not given Scribus will |
||
1653 | create one for you. |
||
1654 | |||
1655 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1656 | </translation> |
||
1657 | </message> |
||
1658 | <message> |
||
1659 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="75"/> |
||
1660 | <source>createText(x, y, width, height, ["name"]) -> string |
||
1661 | |||
1662 | Creates a new text frame on the actual page and returns its name. |
||
1663 | The coordinates are given in the actual measurement unit of the document (see |
||
1664 | UNIT constants). "name" should be a unique identifier for the object because |
||
1665 | you need this name for further referencing of that object. If "name" is not |
||
1666 | given Scribus will create one for you. |
||
1667 | |||
1668 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1669 | </source> |
||
1670 | <translation type="unfinished">createText(x, y, width, height, ["name"]) -> string |
||
1671 | |||
1672 | Creates a new text frame on the actual page and returns its name. |
||
1673 | The coordinates are given in the actual measurement unit of the document (see |
||
1674 | UNIT constants). "name" should be a unique identifier for the object because |
||
1675 | you need this name for further referencing of that object. If "name" is not |
||
1676 | given Scribus will create one for you. |
||
1677 | |||
1678 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1679 | </translation> |
||
1680 | </message> |
||
1681 | <message> |
||
1682 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="90"/> |
||
1683 | <source>createLine(x1, y1, x2, y2, ["name"]) -> string |
||
1684 | |||
1685 | Creates a new line from the point(x1, y1) to the point(x2, y2) and returns |
||
1686 | its name. The coordinates are given in the current measurement unit of the |
||
1687 | document (see UNIT constants). "name" should be a unique identifier for the |
||
1688 | object because you need this name for further access to that object. If |
||
1689 | "name" is not given Scribus will create one for you. |
||
1690 | |||
1691 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1692 | </source> |
||
1693 | <translation type="unfinished">createLine(x1, y1, x2, y2, ["name"]) -> string |
||
1694 | |||
1695 | Creates a new line from the point(x1, y1) to the point(x2, y2) and returns |
||
1696 | its name. The coordinates are given in the current measurement unit of the |
||
1697 | document (see UNIT constants). "name" should be a unique identifier for the |
||
1698 | object because you need this name for further access to that object. If |
||
1699 | "name" is not given Scribus will create one for you. |
||
1700 | |||
1701 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1702 | </translation> |
||
1703 | </message> |
||
1704 | <message> |
||
1705 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="108"/> |
||
1706 | <source>createPolyLine(list, ["name"]) -> string |
||
1707 | |||
1708 | Creates a new polyline and returns its name. The points for the polyline are |
||
1709 | stored in the list "list" in the following order: [x1, y1, x2, y2...xn. yn]. |
||
1710 | The coordinates are given in the current measurement units of the document (see |
||
1711 | UNIT constants). "name" should be a unique identifier for the object because |
||
1712 | you need this name for further access to that object. If "name" is not given |
||
1713 | Scribus will create one for you. |
||
1714 | |||
1715 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1716 | May raise ValueError if an insufficient number of points is passed or if |
||
1717 | the number of values passed don't group into points without leftovers. |
||
1718 | </source> |
||
1719 | <translation type="unfinished">createPolyLine(list, ["name"]) -> string |
||
1720 | |||
1721 | Creates a new polyline and returns its name. The points for the polyline are |
||
1722 | stored in the list "list" in the following order: [x1, y1, x2, y2...xn. yn]. |
||
1723 | The coordinates are given in the current measurement units of the document (see |
||
1724 | UNIT constants). "name" should be a unique identifier for the object because |
||
1725 | you need this name for further access to that object. If "name" is not given |
||
1726 | Scribus will create one for you. |
||
1727 | |||
1728 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1729 | May raise ValueError if an insufficient number of points is passed or if |
||
1730 | the number of values passed don't group into points without leftovers. |
||
1731 | </translation> |
||
1732 | </message> |
||
1733 | <message> |
||
1734 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="128"/> |
||
1735 | <source>createPolygon(list, ["name"]) -> string |
||
1736 | |||
1737 | Creates a new polygon and returns its name. The points for the polygon are |
||
1738 | stored in the list "list" in the following order: [x1, y1, x2, y2...xn. yn]. |
||
1739 | At least three points are required. There is no need to repeat the first point |
||
1740 | to close the polygon. The polygon is automatically closed by connecting the |
||
1741 | first and the last point. The coordinates are given in the current measurement |
||
1742 | units of the document (see UNIT constants). "name" should be a unique |
||
1743 | identifier for the object because you need this name for further access to that |
||
1744 | object. If "name" is not given Scribus will create one for you. |
||
1745 | |||
1746 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1747 | May raise ValueError if an insufficient number of points is passed or if |
||
1748 | the number of values passed don't group into points without leftovers. |
||
1749 | </source> |
||
1750 | <translation type="unfinished">createPolygon(list, ["name"]) -> string |
||
1751 | |||
1752 | Creates a new polygon and returns its name. The points for the polygon are |
||
1753 | stored in the list "list" in the following order: [x1, y1, x2, y2...xn. yn]. |
||
1754 | At least three points are required. There is no need to repeat the first point |
||
1755 | to close the polygon. The polygon is automatically closed by connecting the |
||
1756 | first and the last point. The coordinates are given in the current measurement |
||
1757 | units of the document (see UNIT constants). "name" should be a unique |
||
1758 | identifier for the object because you need this name for further access to that |
||
1759 | object. If "name" is not given Scribus will create one for you. |
||
1760 | |||
1761 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1762 | May raise ValueError if an insufficient number of points is passed or if |
||
1763 | the number of values passed don't group into points without leftovers. |
||
1764 | </translation> |
||
1765 | </message> |
||
1766 | <message> |
||
1767 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="149"/> |
||
1768 | <source>createBezierLine(list, ["name"]) -> string |
||
1769 | |||
1770 | Creates a new bezier curve and returns its name. The points for the bezier |
||
1771 | curve are stored in the list "list" in the following order: |
||
1772 | [x1, y1, kx1, ky1, x2, y2, kx2, ky2...xn. yn, kxn. kyn] |
||
1773 | In the points list, x and y mean the x and y coordinates of the point and kx |
||
1774 | and ky meaning the control point for the curve. The coordinates are given in |
||
1775 | the current measurement units of the document (see UNIT constants). "name" |
||
1776 | should be a unique identifier for the object because you need this name for |
||
1777 | further access to that object. If "name" is not given Scribus will create one |
||
1778 | for you. |
||
1779 | |||
1780 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1781 | May raise ValueError if an insufficient number of points is passed or if |
||
1782 | the number of values passed don't group into points without leftovers. |
||
1783 | </source> |
||
1784 | <translation type="unfinished">createBezierLine(list, ["name"]) -> string |
||
1785 | |||
1786 | |||
1787 | Creates a new bezier curve and returns its name. The points for the bezier |
||
1788 | curve are stored in the list "list" in the following order: |
||
1789 | [x1, y1, kx1, ky1, x2, y2, kx2, ky2...xn. yn, kxn. kyn] |
||
1790 | In the points list, x and y mean the x and y coordinates of the point and kx |
||
1791 | and ky meaning the control point for the curve. The coordinates are given in |
||
1792 | the current measurement units of the document (see UNIT constants). "name" |
||
1793 | should be a unique identifier for the object because you need this name for |
||
1794 | further access to that object. If "name" is not given Scribus will create one |
||
1795 | for you. |
||
1796 | |||
1797 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1798 | May raise ValueError if an insufficient number of points is passed or if |
||
1799 | the number of values passed don't group into points without leftovers. </translation> |
||
1800 | </message> |
||
1801 | <message> |
||
1802 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="165"/> |
||
1803 | <source>createPathText(x, y, "textbox", "beziercurve", ["name"]) -> string |
||
1804 | |||
1805 | Creates a new pathText by merging the two objects "textbox" and |
||
1806 | "beziercurve" and returns its name. The coordinates are given in the current |
||
1807 | measurement unit of the document (see UNIT constants). "name" should be a |
||
1808 | unique identifier for the object because you need this name for further access |
||
1809 | to that object. If "name" is not given Scribus will create one for you. |
||
1810 | |||
1811 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1812 | May raise NotFoundError if one or both of the named base object don't exist. |
||
1813 | </source> |
||
1814 | <translation type="unfinished">createPathText(x, y, "textbox", "beziercurve", ["name"]) -> string |
||
1815 | |||
1816 | Creates a new pathText by merging the two objects "textbox" and |
||
1817 | "beziercurve" and returns its name. The coordinates are given in the current |
||
1818 | measurement unit of the document (see UNIT constants). "name" should be a |
||
1819 | unique identifier for the object because you need this name for further access |
||
1820 | to that object. If "name" is not given Scribus will create one for you. |
||
1821 | |||
1822 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1823 | May raise NotFoundError if one or both of the named base object don't exist. |
||
1824 | </translation> |
||
1825 | </message> |
||
1826 | <message> |
||
1827 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="177"/> |
||
1828 | <source>deleteObject(["name"]) |
||
1829 | |||
1830 | Deletes the item with the name "name". If "name" is not given the currently |
||
1831 | selected item is deleted. |
||
1832 | </source> |
||
1833 | <translation type="unfinished">deleteObject(["name"]) |
||
1834 | |||
1835 | |||
1836 | Deletes the item with the name "name". If "name" is not given the currently |
||
1837 | selected item is deleted. </translation> |
||
1838 | </message> |
||
1839 | <message> |
||
1840 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="193"/> |
||
1841 | <source>textFlowMode("name" [, state]) |
||
1842 | |||
1843 | Enables/disables "Text Flows Around Frame" feature for object "name". |
||
1844 | Called with parameters string name and optional int "state" (0 <= state <= 3). |
||
1845 | Setting "state" to 0 will disable text flow. |
||
1846 | Setting "state" to 1 will make text flow around object frame. |
||
1847 | Setting "state" to 2 will make text flow around bounding box. |
||
1848 | Setting "state" to 3 will make text flow around contour line. |
||
1849 | If "state" is not passed, text flow is toggled. |
||
1850 | </source> |
||
1851 | <translation type="unfinished">textFlowMode("name" [, state]) |
||
1852 | |||
1853 | Enables/disables "Text Flows Around Frame" feature for object "name". |
||
1854 | Called with parameters string name and optional int "state" (0 <= state <= 3). |
||
1855 | Setting "state" to 0 will disable text flow. |
||
1856 | Setting "state" to 1 will make text flow around object frame. |
||
1857 | Setting "state" to 2 will make text flow around bounding box. |
||
1858 | Setting "state" to 3 will make text flow around contour line. |
||
1859 | If "state" is not passed, text flow is toggled. |
||
1860 | </translation> |
||
1861 | </message> |
||
1862 | <message> |
||
1863 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="211"/> |
||
1864 | <source>objectExists(["name"]) -> bool |
||
1865 | |||
1866 | Test if an object with specified name really exists in the document. |
||
1867 | The optional parameter is the object name. When no object name is given, |
||
1868 | returns True if there is something selected. |
||
1869 | </source> |
||
1870 | <translation type="unfinished">objectExists(["name"]) -> bool |
||
1871 | |||
1872 | Test if an object with specified name really exists in the document. |
||
1873 | The optional parameter is the object name. When no object name is given, |
||
1874 | returns True if there is something selected. |
||
1875 | </translation> |
||
1876 | </message> |
||
1877 | <message> |
||
1878 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="227"/> |
||
1879 | <source>setStyle("style" [, "name"]) |
||
1880 | |||
1881 | Apply the named "style" to the object named "name". If is no object name |
||
1882 | given, it's applied on the selected object. |
||
1883 | </source> |
||
1884 | <translation type="unfinished">setStyle("style" [, "name"]) |
||
1885 | |||
1886 | Apply the named "style" to the object named "name". If is no object name |
||
1887 | given, it's applied on the selected object. |
||
1888 | </translation> |
||
1889 | </message> |
||
1890 | <message> |
||
1891 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="240"/> |
||
1892 | <source>getAllStyles() -> list |
||
1893 | |||
1894 | Return a list of the names of all paragraph styles in the current document. |
||
1895 | </source> |
||
1896 | <translation type="unfinished">getAllStyles() -> list |
||
1897 | |||
1898 | Return a list of the names of all paragraph styles in the current document. |
||
1899 | </translation> |
||
1900 | </message> |
||
1901 | <message> |
||
1902 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="252"/> |
||
1903 | <source>duplicateObject(["name"]) -> string |
||
1904 | |||
1905 | creates a Duplicate of the selected Object (or Selection Group). |
||
1906 | </source> |
||
1907 | <translation type="unfinished">duplicateObject(["name"]) -> string |
||
1908 | |||
1909 | creates a Duplicate of the selected Object (or Selection Group). |
||
1910 | </translation> |
||
1911 | </message> |
||
1912 | <message> |
||
1913 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="26"/> |
||
1914 | <source>newPage(where [,"masterpage"]) |
||
1915 | |||
1916 | Creates a new page. If "where" is -1 the new Page is appended to the |
||
1917 | document, otherwise the new page is inserted before "where". Page numbers are |
||
1918 | counted from 1 upwards, no matter what the displayed first page number of your |
||
1919 | document is. The optional parameter "masterpage" specifies the name of the |
||
1920 | master page for the new page. |
||
1921 | |||
1922 | May raise IndexError if the page number is out of range |
||
1923 | </source> |
||
1924 | <translation type="unfinished">newPage(where [,"masterpage"]) |
||
1925 | |||
1926 | Creates a new page. If "where" is -1 the new Page is appended to the |
||
1927 | document, otherwise the new page is inserted before "where". Page numbers are |
||
1928 | counted from 1 upwards, no matter what the displayed first page number of your |
||
1929 | document is. The optional parameter "masterpage" specifies the name of the |
||
1930 | master page for the new page. |
||
1931 | |||
1932 | May raise IndexError if the page number is out of range |
||
1933 | </translation> |
||
1934 | </message> |
||
1935 | <message> |
||
1936 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="36"/> |
||
1937 | <source>currentPage() -> integer |
||
1938 | |||
1939 | Returns the number of the current working page. Page numbers are counted from 1 |
||
1940 | upwards, no matter what the displayed first page number of your document is. |
||
1941 | </source> |
||
1942 | <translation type="unfinished">currentPage() -> integer |
||
1943 | |||
1944 | Returns the number of the current working page. Page numbers are counted from 1 |
||
1945 | upwards, no matter what the displayed first page number of your document is. |
||
1946 | </translation> |
||
1947 | </message> |
||
1948 | <message> |
||
1949 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="45"/> |
||
1950 | <source>redrawAll() |
||
1951 | |||
1952 | Redraws all pages. |
||
1953 | </source> |
||
1954 | <translation type="unfinished">redrawAll() |
||
1955 | |||
1956 | Redraws all pages. |
||
1957 | </translation> |
||
1958 | </message> |
||
1959 | <message> |
||
1960 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="54"/> |
||
1961 | <source>getPageType() -> integer |
||
1962 | |||
1963 | Returns the type of the Page, 0 means left Page, 1 is a middle Page and 2 is a right Page |
||
1964 | </source> |
||
1965 | <translation type="unfinished">getPageType() -> integer |
||
1966 | |||
1967 | Returns the type of the Page, 0 means left Page, 1 is a middle Page and 2 is a right Page |
||
1968 | </translation> |
||
1969 | </message> |
||
1970 | <message> |
||
1971 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="65"/> |
||
1972 | <source>savePageAsEPS("name") |
||
1973 | |||
1974 | Saves the current page as an EPS to the file "name". |
||
1975 | |||
1976 | May raise ScribusError if the save failed. |
||
1977 | </source> |
||
1978 | <translation type="unfinished">savePageAsEPS("name") |
||
1979 | |||
1980 | Saves the current page as an EPS to the file "name". |
||
1981 | |||
1982 | May raise ScribusError if the save failed. |
||
1983 | </translation> |
||
1984 | </message> |
||
1985 | <message> |
||
1986 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="78"/> |
||
1987 | <source>deletePage(nr) |
||
1988 | |||
1989 | Deletes the given page. Does nothing if the document contains only one page. |
||
1990 | Page numbers are counted from 1 upwards, no matter what the displayed first |
||
1991 | page number is. |
||
1992 | |||
1993 | May raise IndexError if the page number is out of range |
||
1994 | </source> |
||
1995 | <translation type="unfinished">deletePage(nr) |
||
1996 | |||
1997 | Deletes the given page. Does nothing if the document contains only one page. |
||
1998 | Page numbers are counted from 1 upwards, no matter what the displayed first |
||
1999 | page number is. |
||
2000 | |||
2001 | May raise IndexError if the page number is out of range |
||
2002 | </translation> |
||
2003 | </message> |
||
2004 | <message> |
||
2005 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="91"/> |
||
2006 | <source>gotoPage(nr) |
||
2007 | |||
2008 | Moves to the page "nr" (that is, makes the current page "nr"). Note that |
||
2009 | gotoPage doesn't (currently) change the page the user's view is displaying, it |
||
2010 | just sets the page that script commands will operates on. |
||
2011 | |||
2012 | May raise IndexError if the page number is out of range. |
||
2013 | </source> |
||
2014 | <translation type="unfinished"></translation> |
||
2015 | </message> |
||
2016 | <message> |
||
2017 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="100"/> |
||
2018 | <source>pageCount() -> integer |
||
2019 | |||
2020 | Returns the number of pages in the document. |
||
2021 | </source> |
||
2022 | <translation type="unfinished">pageCount() -> integer |
||
2023 | |||
2024 | Returns the number of pages in the document. |
||
2025 | </translation> |
||
2026 | </message> |
||
2027 | <message> |
||
2028 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="110"/> |
||
2029 | <source>getHGuides() -> list |
||
2030 | |||
2031 | Returns a list containing positions of the horizontal guides. Values are in the |
||
2032 | document's current units - see UNIT_<type> constants. |
||
2033 | </source> |
||
2034 | <translation type="unfinished">getHGuides() -> list |
||
2035 | |||
2036 | Returns a list containing positions of the horizontal guides. Values are in the |
||
2037 | document's current units - see UNIT_<type> constants. |
||
2038 | </translation> |
||
2039 | </message> |
||
2040 | <message> |
||
2041 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="123"/> |
||
2042 | <source>setHGuides(list) |
||
2043 | |||
2044 | Sets horizontal guides. Input parameter must be a list of guide positions |
||
2045 | measured in the current document units - see UNIT_<type> constants. |
||
2046 | |||
2047 | Example: setHGuides(getHGuides() + [200.0, 210.0] # add new guides without any lost |
||
2048 | setHGuides([90,250]) # replace current guides entirely |
||
2049 | </source> |
||
2050 | <translation type="unfinished">setHGuides(list) |
||
2051 | |||
2052 | Sets horizontal guides. Input parameter must be a list of guide positions |
||
2053 | measured in the current document units - see UNIT_<type> constants. |
||
2054 | |||
2055 | Example: setHGuides(getHGuides() + [200.0, 210.0] # add new guides without any lost |
||
2056 | setHGuides([90,250]) # replace current guides entirely |
||
2057 | </translation> |
||
2058 | </message> |
||
2059 | <message> |
||
2060 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="132"/> |
||
2061 | <source>getVGuides() |
||
2062 | |||
2063 | See getHGuides. |
||
2064 | </source> |
||
2065 | <translation type="unfinished">getVGuides() |
||
2066 | |||
2067 | See getHGuides. |
||
2068 | </translation> |
||
2069 | </message> |
||
2070 | <message> |
||
2071 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="141"/> |
||
2072 | <source>setVGuides() |
||
2073 | |||
2074 | See setHGuides. |
||
2075 | </source> |
||
2076 | <translation type="unfinished">setVGuides() |
||
2077 | |||
2078 | |||
2079 | See setHGuides. </translation> |
||
2080 | </message> |
||
2081 | <message> |
||
2082 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="151"/> |
||
2083 | <source>getPageSize() -> tuple |
||
2084 | |||
2085 | Returns a tuple with page dimensions measured in the document's current units. |
||
2086 | See UNIT_<type> constants and getPageMargins() |
||
2087 | </source> |
||
2088 | <translation type="unfinished">getPageSize() -> tuple |
||
2089 | |||
2090 | Returns a tuple with page dimensions measured in the document's current units. |
||
2091 | See UNIT_<type> constants and getPageMargins() |
||
2092 | </translation> |
||
2093 | </message> |
||
2094 | <message> |
||
2095 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="167"/> |
||
2096 | <source>getPageItems() -> list |
||
2097 | |||
2098 | Returns a list of tuples with items on the current page. The tuple is: |
||
2099 | (name, objectType, order) E.g. [('Text1', 4, 0), ('Image1', 2, 1)] |
||
2100 | means that object named 'Text1' is a text frame (type 4) and is the first at |
||
2101 | the page... |
||
2102 | </source> |
||
2103 | <translation type="unfinished">getPageItems() -> list |
||
2104 | |||
2105 | Returns a list of tuples with items on the current page. The tuple is: |
||
2106 | (name, objectType, order) E.g. [('Text1', 4, 0), ('Image1', 2, 1)] |
||
2107 | means that object named 'Text1' is a text frame (type 4) and is the first at |
||
2108 | the page... |
||
2109 | </translation> |
||
2110 | </message> |
||
2111 | <message> |
||
2112 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="181"/> |
||
2113 | <source>getPageMargins() |
||
2114 | |||
2115 | Returns the page margins as a (top, left, right, bottom) tuple in the current |
||
2116 | units. See UNIT_<type> constants and getPageSize(). |
||
2117 | </source> |
||
2118 | <translation type="unfinished">getPageMargins() |
||
2119 | |||
2120 | Returns the page margins as a (top, left, right, bottom) tuple in the current |
||
2121 | units. See UNIT_<type> constants and getPageSize(). </translation> |
||
2122 | </message> |
||
2123 | <message> |
||
2124 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="198"/> |
||
2125 | <source>importPage("fromDoc", (pageList), [create, imortwhere, importwherePage]) |
||
2126 | |||
2127 | Imports a set of pages (given as a tuple) from an existing document (the file name must be given). This functions maps the "Page->Import" dropdown menu function. |
||
2128 | fromDoc: string; the filename of the document to import pages from |
||
2129 | pageList: tuple with page numbers of pages to import |
||
2130 | create: number; 0 to replace existing pages, 1 (default) to insert new pages |
||
2131 | importWhere: number; the page number (of the current document) at which import the pages |
||
2132 | importWherePage: number; used if create==1; 0 to create pages before selected page; 1 to create pages after selected page; 2 (default) to create pages at the end of the document |
||
2133 | </source> |
||
2134 | <translation type="unfinished"></translation> |
||
2135 | </message> |
||
2136 | <message> |
||
2137 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="22"/> |
||
2138 | <source>setGradientFill(type, "color1", shade1, "color2", shade2, ["name"]) |
||
2139 | |||
2140 | Sets the gradient fill of the object "name" to type. Color descriptions are |
||
2141 | the same as for setFillColor() and setFillShade(). See the constants for |
||
2142 | available types (FILL_<type>). |
||
2143 | </source> |
||
2144 | <translation type="unfinished">setGradientFill(type, "color1", shade1, "color2", shade2, ["name"]) |
||
2145 | |||
2146 | Asettaa liukuväritäytön kohteelle "name". Värin kuvaukset ovat samat kuin |
||
2147 | setFillColor():lla ja setFillShade():lla. Katso vakiot FILL_<type>.</translation> |
||
2148 | </message> |
||
2149 | <message> |
||
2150 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="33"/> |
||
2151 | <source>setFillColor("color", ["name"]) |
||
2152 | |||
2153 | Sets the fill color of the object "name" to the color "color". "color" |
||
2154 | is the name of one of the defined colors. If "name" is not given the |
||
2155 | currently selected item is used. |
||
2156 | </source> |
||
2157 | <translation type="unfinished">setFillColor("color", ["name"]) |
||
2158 | |||
2159 | Sets the fill color of the object "name" to the color "color". "color" |
||
2160 | is the name of one of the defined colors. If "name" is not given the |
||
2161 | currently selected item is used. |
||
2162 | </translation> |
||
2163 | </message> |
||
2164 | <message> |
||
2165 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="43"/> |
||
2166 | <source>setFillTransparency(transparency, ["name"]) |
||
2167 | |||
2168 | Sets the fill transparency of the object "name" to transparency |
||
2169 | If "name" is not given the currently selected item is used. |
||
2170 | </source> |
||
2171 | <translation type="unfinished"></translation> |
||
2172 | </message> |
||
2173 | <message> |
||
2174 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="53"/> |
||
2175 | <source>setFillBlendmode(blendmode, ["name"]) |
||
2176 | |||
2177 | Sets the fill blendmode of the object "name" to blendmode |
||
2178 | If "name" is not given the currently selected item is used. |
||
2179 | </source> |
||
2180 | <translation type="unfinished"></translation> |
||
2181 | </message> |
||
2182 | <message> |
||
2183 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="63"/> |
||
2184 | <source>setLineColor("color", ["name"]) |
||
2185 | |||
2186 | Sets the line color of the object "name" to the color "color". If "name" |
||
2187 | is not given the currently selected item is used. |
||
2188 | </source> |
||
2189 | <translation type="unfinished">setLineColor("color", ["name"]) |
||
2190 | |||
2191 | Sets the line color of the object "name" to the color "color". If "name" |
||
2192 | is not given the currently selected item is used. |
||
2193 | </translation> |
||
2194 | </message> |
||
2195 | <message> |
||
2196 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="73"/> |
||
2197 | <source>setLineTransparency(transparency, ["name"]) |
||
2198 | |||
2199 | Sets the line transparency of the object "name" to transparency |
||
2200 | If "name" is not given the currently selected item is used. |
||
2201 | </source> |
||
2202 | <translation type="unfinished"></translation> |
||
2203 | </message> |
||
2204 | <message> |
||
2205 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="83"/> |
||
2206 | <source>setLineBlendmode(blendmode, ["name"]) |
||
2207 | |||
2208 | Sets the line blendmode of the object "name" to blendmode |
||
2209 | If "name" is not given the currently selected item is used. |
||
2210 | </source> |
||
2211 | <translation type="unfinished"></translation> |
||
2212 | </message> |
||
2213 | <message> |
||
2214 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="96"/> |
||
2215 | <source>setLineWidth(width, ["name"]) |
||
2216 | |||
2217 | Sets line width of the object "name" to "width". "width" must be in the |
||
2218 | range from 0.0 to 12.0 inclusive, and is measured in points. If "name" is not |
||
2219 | given the currently selected item is used. |
||
2220 | |||
2221 | May raise ValueError if the line width is out of bounds. |
||
2222 | </source> |
||
2223 | <translation type="unfinished">setLineWidth(width, ["name"]) |
||
2224 | |||
2225 | Sets line width of the object "name" to "width". "width" must be in the |
||
2226 | range from 0.0 to 12.0 inclusive, and is measured in points. If "name" is not |
||
2227 | given the currently selected item is used. |
||
2228 | |||
2229 | May raise ValueError if the line width is out of bounds. |
||
2230 | </translation> |
||
2231 | </message> |
||
2232 | <message> |
||
2233 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="110"/> |
||
2234 | <source>setLineShade(shade, ["name"]) |
||
2235 | |||
2236 | Sets the shading of the line color of the object "name" to "shade". |
||
2237 | "shade" must be an integer value in the range from 0 (lightest) to 100 |
||
2238 | (full color intensity). If "name" is not given the currently selected item |
||
2239 | is used. |
||
2240 | |||
2241 | May raise ValueError if the line shade is out of bounds. |
||
2242 | </source> |
||
2243 | <translation type="unfinished">setLineShade(shade, ["name"]) |
||
2244 | |||
2245 | Sets the shading of the line color of the object "name" to "shade". |
||
2246 | "shade" must be an integer value in the range from 0 (lightest) to 100 |
||
2247 | (full color intensity). If "name" is not given the currently selected item |
||
2248 | is used. |
||
2249 | |||
2250 | May raise ValueError if the line shade is out of bounds. |
||
2251 | </translation> |
||
2252 | </message> |
||
2253 | <message> |
||
2254 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="121"/> |
||
2255 | <source>setLineJoin(join, ["name"]) |
||
2256 | |||
2257 | Sets the line join style of the object "name" to the style "join". |
||
2258 | If "name" is not given the currently selected item is used. There are |
||
2259 | predefined constants for join - JOIN_<type>. |
||
2260 | </source> |
||
2261 | <translation type="unfinished">setLineJoin(join, ["name"]) |
||
2262 | |||
2263 | Sets the line join style of the object "name" to the style "join". |
||
2264 | If "name" is not given the currently selected item is used. There are |
||
2265 | predefined constants for join - JOIN_<type>. |
||
2266 | </translation> |
||
2267 | </message> |
||
2268 | <message> |
||
2269 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="132"/> |
||
2270 | <source>setLineEnd(endtype, ["name"]) |
||
2271 | |||
2272 | Sets the line cap style of the object "name" to the style "cap". |
||
2273 | If "name" is not given the currently selected item is used. There are |
||
2274 | predefined constants for "cap" - CAP_<type>. |
||
2275 | </source> |
||
2276 | <translation type="unfinished">setLineEnd(endtype, ["name"]) |
||
2277 | |||
2278 | Sets the line cap style of the object "name" to the style "cap". |
||
2279 | If "name" is not given the currently selected item is used. There are |
||
2280 | predefined constants for "cap" - CAP_<type>. |
||
2281 | </translation> |
||
2282 | </message> |
||
2283 | <message> |
||
2284 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="143"/> |
||
2285 | <source>setLineStyle(style, ["name"]) |
||
2286 | |||
2287 | Sets the line style of the object "name" to the style "style". If "name" |
||
2288 | is not given the currently selected item is used. There are predefined |
||
2289 | constants for "style" - LINE_<style>. |
||
2290 | </source> |
||
2291 | <translation type="unfinished">setLineStyle(style, ["name"]) |
||
2292 | |||
2293 | Sets the line style of the object "name" to the style "style". If "name" |
||
2294 | is not given the currently selected item is used. There are predefined |
||
2295 | constants for "style" - LINE_<style>. |
||
2296 | </translation> |
||
2297 | </message> |
||
2298 | <message> |
||
2299 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="157"/> |
||
2300 | <source>setFillShade(shade, ["name"]) |
||
2301 | |||
2302 | Sets the shading of the fill color of the object "name" to "shade". |
||
2303 | "shade" must be an integer value in the range from 0 (lightest) to 100 |
||
2304 | (full Color intensity). If "name" is not given the currently selected |
||
2305 | Item is used. |
||
2306 | |||
2307 | May raise ValueError if the fill shade is out of bounds. |
||
2308 | </source> |
||
2309 | <translation type="unfinished">setFillShade(shade, ["name"]) |
||
2310 | |||
2311 | Sets the shading of the fill color of the object "name" to "shade". |
||
2312 | "shade" must be an integer value in the range from 0 (lightest) to 100 |
||
2313 | (full Color intensity). If "name" is not given the currently selected |
||
2314 | Item is used. |
||
2315 | |||
2316 | May raise ValueError if the fill shade is out of bounds. |
||
2317 | </translation> |
||
2318 | </message> |
||
2319 | <message> |
||
2320 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="169"/> |
||
2321 | <source>setCornerRadius(radius, ["name"]) |
||
2322 | |||
2323 | Sets the corner radius of the object "name". The radius is expressed |
||
2324 | in points. If "name" is not given the currently selected item is used. |
||
2325 | |||
2326 | May raise ValueError if the corner radius is negative. |
||
2327 | </source> |
||
2328 | <translation type="unfinished">setCornerRadius(radius, ["name"]) |
||
2329 | |||
2330 | |||
2331 | Sets the corner radius of the object "name". The radius is expressed |
||
2332 | in points. If "name" is not given the currently selected item is used. |
||
2333 | |||
2334 | May raise ValueError if the corner radius is negative. </translation> |
||
2335 | </message> |
||
2336 | <message> |
||
2337 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="181"/> |
||
2338 | <source>setMultiLine("namedStyle", ["name"]) |
||
2339 | |||
2340 | Sets the line style of the object "name" to the named style "namedStyle". |
||
2341 | If "name" is not given the currently selected item is used. |
||
2342 | |||
2343 | May raise NotFoundError if the line style doesn't exist. |
||
2344 | </source> |
||
2345 | <translation type="unfinished">setMultiLine("namedStyle", ["name"]) |
||
2346 | |||
2347 | Sets the line style of the object "name" to the named style "namedStyle". |
||
2348 | If "name" is not given the currently selected item is used. |
||
2349 | |||
2350 | May raise NotFoundError if the line style doesn't exist. |
||
2351 | </translation> |
||
2352 | </message> |
||
2353 | <message> |
||
2354 | <location filename="../../scribus/plugins/scriptplugin/cmdstyle.h" line="43"/> |
||
2355 | <source>createParagraphStyle(...) |
||
2356 | |||
2357 | Creates a paragraph style. This function takes the following keyword parameters: |
||
2358 | |||
2359 | "name" [required] -> specifies the name of the paragraphstyle to create |
||
2360 | |||
2361 | linespacingmode [optional] -> specifies the linespacing mode; possible modes are: |
||
2362 | |||
2363 | fixed linespacing: 0 |
||
2364 | |||
2365 | automatic linespacing: 1 |
||
2366 | |||
2367 | baseline grid linespacing: 2 |
||
2368 | |||
2369 | linespacing [optional] -> specifies the linespacing if using fixed linespacing |
||
2370 | |||
2371 | alignment [optional] -> specifies the alignment of the paragraph |
||
2372 | |||
2373 | -> left: 0 |
||
2374 | |||
2375 | -> center: 1 |
||
2376 | |||
2377 | -> right: 2 |
||
2378 | |||
2379 | -> justify: 3 |
||
2380 | |||
2381 | -> extend: 4 |
||
2382 | |||
2383 | leftmargin [optional], rightmargin [optional] -> specify the margin |
||
2384 | |||
2385 | gapbefore [optional], gapafter [optional] -> specify the gaps to the heading and following paragraphs |
||
2386 | |||
2387 | firstindent [optional] -> the indent of the first line |
||
2388 | |||
2389 | hasdropcap [optional] -> specifies if there are caps (1 = yes, 0 = no) |
||
2390 | |||
2391 | dropcaplines [optional] -> height (in lines) of the caps if used |
||
2392 | |||
2393 | dropcapoffset [optional] -> offset of the caps if used |
||
2394 | |||
2395 | "charstyle" [optional] -> char style to use |
||
2396 | |||
2397 | </source> |
||
2398 | <translation type="unfinished"></translation> |
||
2399 | </message> |
||
2400 | <message> |
||
2401 | <location filename="../../scribus/plugins/scriptplugin/cmdstyle.h" line="80"/> |
||
2402 | <source>createCharStyle(...) |
||
2403 | |||
2404 | Creates a character style. This function takes the following keyword parameters: |
||
2405 | |||
2406 | "name" [required] -> name of the char style to create |
||
2407 | |||
2408 | "font" [optional] -> name of the font to use |
||
2409 | |||
2410 | fontsize [optional] -> font size to set (double) |
||
2411 | |||
2412 | "features" [optional] -> nearer typographic details can be defined by a string that might contain the following phrases comma-seperated (without spaces!): |
||
2413 | |||
2414 | -> inherit |
||
2415 | |||
2416 | -> bold |
||
2417 | |||
2418 | -> italic |
||
2419 | |||
2420 | -> underline |
||
2421 | |||
2422 | -> underlinewords |
||
2423 | |||
2424 | -> strike |
||
2425 | |||
2426 | -> superscript |
||
2427 | |||
2428 | -> subscript |
||
2429 | |||
2430 | -> outline |
||
2431 | |||
2432 | -> shadowed |
||
2433 | |||
2434 | -> allcaps |
||
2435 | |||
2436 | -> smallcaps |
||
2437 | |||
2438 | "fillcolor" [optional], "fillshade" [optional] -> specify fill options |
||
2439 | |||
2440 | "strokecolor" [optional], "strokeshade" [optional] -> specify stroke options |
||
2441 | |||
2442 | baselineoffset [optional] -> offset of the baseline |
||
2443 | |||
2444 | shadowxoffset [optional], shadowyoffset [optional] -> offset of the shadow if used |
||
2445 | |||
2446 | outlinewidth [optional] -> width of the outline if used |
||
2447 | |||
2448 | underlineoffset [optional], underlinewidth [optional] -> underline options if used |
||
2449 | |||
2450 | strikethruoffset [optional], strikethruwidth [optional] -> strikethru options if used |
||
2451 | |||
2452 | scaleh [optional], scalev [optional] -> scale of the chars |
||
2453 | |||
2454 | tracking [optional] -> tracking of the text |
||
2455 | |||
2456 | "language" [optional] -> language code |
||
2457 | |||
2458 | </source> |
||
2459 | <translation type="unfinished"></translation> |
||
2460 | </message> |
||
2461 | <message> |
||
2462 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="23"/> |
||
2463 | <source>getFontSize(["name"]) -> float |
||
2464 | |||
2465 | Returns the font size in points for the text frame "name". If this text |
||
2466 | frame has some text selected the value assigned to the first character of |
||
2467 | the selection is returned. |
||
2468 | If "name" is not given the currently selected item is used. |
||
2469 | </source> |
||
2470 | <translation type="unfinished">getFontSize(["name"]) -> float |
||
2471 | |||
2472 | Palauttaa fontin koon pisteinä tekstikehykselle "name". Jos tekstikehyksessä |
||
2473 | on tekstiä valittuna palautetaan valinnan ensimmäisen fontin koko. |
||
2474 | Jos "name" ei ole määritelty, käytetään valittuna olevaa kohdetta.</translation> |
||
2475 | </message> |
||
2476 | <message> |
||
2477 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="35"/> |
||
2478 | <source>getFont(["name"]) -> string |
||
2479 | |||
2480 | Returns the font name for the text frame "name". If this text frame |
||
2481 | has some text selected the value assigned to the first character |
||
2482 | of the selection is returned. If "name" is not given the currently |
||
2483 | selected item is used. |
||
2484 | </source> |
||
2485 | <translation type="unfinished">getFont(["name"]) -> string |
||
2486 | |||
2487 | Returns the font name for the text frame "name". If this text frame |
||
2488 | has some text selected the value assigned to the first character |
||
2489 | of the selection is returned. If "name" is not given the currently |
||
2490 | selected item is used. |
||
2491 | </translation> |
||
2492 | </message> |
||
2493 | <message> |
||
2494 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="45"/> |
||
2495 | <source>getTextLength(["name"]) -> integer |
||
2496 | |||
2497 | Returns the length of the text in the text frame "name". |
||
2498 | If "name" is not given the currently selected item is used. |
||
2499 | </source> |
||
2500 | <translation type="unfinished">getTextLength(["name"]) -> integer |
||
2501 | |||
2502 | Returns the length of the text in the text frame "name". |
||
2503 | If "name" is not given the currently selected item is used. |
||
2504 | </translation> |
||
2505 | </message> |
||
2506 | <message> |
||
2507 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="55"/> |
||
2508 | <source>getTextLines(["name"]) -> integer |
||
2509 | |||
2510 | Returns the number of lines of the text in the text frame "name". |
||
2511 | If "name" is not given the currently selected item is used. |
||
2512 | </source> |
||
2513 | <translation type="unfinished">getTextLines(["name"]) -> integer |
||
2514 | |||
2515 | Returns the number of lines of the text in the text frame "name". |
||
2516 | If "name" is not given the currently selected item is used. |
||
2517 | </translation> |
||
2518 | </message> |
||
2519 | <message> |
||
2520 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="67"/> |
||
2521 | <source>getText(["name"]) -> string |
||
2522 | |||
2523 | Returns the text of the text frame "name". If this text frame has some text |
||
2524 | selected, the selected text is returned. All text in the frame, not just |
||
2525 | currently visible text, is returned. If "name" is not given the currently |
||
2526 | selected item is used. |
||
2527 | </source> |
||
2528 | <translation type="unfinished">getText(["name"]) -> string |
||
2529 | |||
2530 | Returns the text of the text frame "name". If this text frame has some text |
||
2531 | selected, the selected text is returned. All text in the frame, not just |
||
2532 | currently visible text, is returned. If "name" is not given the currently |
||
2533 | selected item is used. |
||
2534 | </translation> |
||
2535 | </message> |
||
2536 | <message> |
||
2537 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="79"/> |
||
2538 | <source>getAllText(["name"]) -> string |
||
2539 | |||
2540 | Returns the text of the text frame "name" and of all text frames which are |
||
2541 | linked with this frame. If this textframe has some text selected, the selected |
||
2542 | text is returned. If "name" is not given the currently selected item is |
||
2543 | used. |
||
2544 | </source> |
||
2545 | <translation type="unfinished">getAllText(["name"]) -> string |
||
2546 | |||
2547 | |||
2548 | Returns the text of the text frame "name" and of all text frames which are |
||
2549 | linked with this frame. If this textframe has some text selected, the selected |
||
2550 | text is returned. If "name" is not given the currently selected item is |
||
2551 | used. </translation> |
||
2552 | </message> |
||
2553 | <message> |
||
2554 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="89"/> |
||
2555 | <source>getLineSpacing(["name"]) -> float |
||
2556 | |||
2557 | Returns the line spacing ("leading") of the text frame "name" expressed in |
||
2558 | points. If "name" is not given the currently selected item is used. |
||
2559 | </source> |
||
2560 | <translation type="unfinished">getLineSpacing(["name"]) -> float |
||
2561 | |||
2562 | Returns the line spacing ("leading") of the text frame "name" expressed in |
||
2563 | points. If "name" is not given the currently selected item is used. |
||
2564 | </translation> |
||
2565 | </message> |
||
2566 | <message> |
||
2567 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="100"/> |
||
2568 | <source>getTextDistances(["name"]) -> tuple |
||
2569 | |||
2570 | Returns the text distances of the text frame "name" expressed in points. The |
||
2571 | distances are returned as a tuple like (left, right, top, bottom). If "name" |
||
2572 | is not given the currently selected item is used. |
||
2573 | </source> |
||
2574 | <translation type="unfinished"></translation> |
||
2575 | </message> |
||
2576 | <message> |
||
2577 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="110"/> |
||
2578 | <source>getColumnGap(["name"]) -> float |
||
2579 | |||
2580 | Returns the column gap size of the text frame "name" expressed in points. If |
||
2581 | "name" is not given the currently selected item is used. |
||
2582 | </source> |
||
2583 | <translation type="unfinished">getColumnGap(["name"]) -> float |
||
2584 | |||
2585 | Returns the column gap size of the text frame "name" expressed in points. If |
||
2586 | "name" is not given the currently selected item is used. </translation> |
||
2587 | </message> |
||
2588 | <message> |
||
2589 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="120"/> |
||
2590 | <source>getColumns(["name"]) -> integer |
||
2591 | |||
2592 | Gets the number of columns of the text frame "name". If "name" is not |
||
2593 | given the currently selected item is used. |
||
2594 | </source> |
||
2595 | <translation type="unfinished">getColumns(["name"]) -> integer |
||
2596 | |||
2597 | Gets the number of columns of the text frame "name". If "name" is not |
||
2598 | given the currently selected item is used. </translation> |
||
2599 | </message> |
||
2600 | <message> |
||
2601 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="132"/> |
||
2602 | <source>setText("text", ["name"]) |
||
2603 | |||
2604 | Sets the text of the text frame "name" to the text of the string "text". |
||
2605 | Text must be UTF8 encoded - use e.g. unicode(text, 'iso-8859-2'). See the FAQ |
||
2606 | for more details. If "name" is not given the currently selected item is |
||
2607 | used. |
||
2608 | </source> |
||
2609 | <translation type="unfinished">setText("text", ["name"]) |
||
2610 | |||
2611 | Sets the text of the text frame "name" to the text of the string "text". |
||
2612 | Text must be UTF8 encoded - use e.g. unicode(text, 'iso-8859-2'). See the FAQ |
||
2613 | for more details. If "name" is not given the currently selected item is |
||
2614 | used. |
||
2615 | </translation> |
||
2616 | </message> |
||
2617 | <message> |
||
2618 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="146"/> |
||
2619 | <source>insertText("text", pos, ["name"]) |
||
2620 | |||
2621 | Inserts the text "text" at the position "pos" into the text frame "name". |
||
2622 | Text must be UTF encoded (see setText() as reference) The first character has an |
||
2623 | index of 0. Inserting text at position -1 appends it to the frame. If "name" is |
||
2624 | not given the currently selected Item is used. |
||
2625 | |||
2626 | May throw IndexError for an insertion out of bounds. |
||
2627 | </source> |
||
2628 | <translation type="unfinished"></translation> |
||
2629 | </message> |
||
2630 | <message> |
||
2631 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="159"/> |
||
2632 | <source>setFont("font", ["name"]) |
||
2633 | |||
2634 | Sets the font of the text frame "name" to "font". If there is some text |
||
2635 | selected only the selected text is changed. If "name" is not given the |
||
2636 | currently selected item is used. |
||
2637 | |||
2638 | May throw ValueError if the font cannot be found. |
||
2639 | </source> |
||
2640 | <translation type="unfinished">setFont("font", ["name"]) |
||
2641 | |||
2642 | Sets the font of the text frame "name" to "font". If there is some text |
||
2643 | selected only the selected text is changed. If "name" is not given the |
||
2644 | currently selected item is used. |
||
2645 | |||
2646 | May throw ValueError if the font cannot be found. </translation> |
||
2647 | </message> |
||
2648 | <message> |
||
2649 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="173"/> |
||
2650 | <source>setFontSize(size, ["name"]) |
||
2651 | |||
2652 | Sets the font size of the text frame "name" to "size". "size" is treated |
||
2653 | as a value in points. If there is some text selected only the selected text is |
||
2654 | changed. "size" must be in the range 1 to 512. If "name" is not given the |
||
2655 | currently selected item is used. |
||
2656 | |||
2657 | May throw ValueError for a font size that's out of bounds. |
||
2658 | </source> |
||
2659 | <translation type="unfinished">setFontSize(size, ["name"]) |
||
2660 | |||
2661 | Sets the font size of the text frame "name" to "size". "size" is treated |
||
2662 | as a value in points. If there is some text selected only the selected text is |
||
2663 | changed. "size" must be in the range 1 to 512. If "name" is not given the |
||
2664 | currently selected item is used. |
||
2665 | |||
2666 | May throw ValueError for a font size that's out of bounds. e(size, ["name"]).</translation> |
||
2667 | </message> |
||
2668 | <message> |
||
2669 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="186"/> |
||
2670 | <source>setLineSpacing(size, ["name"]) |
||
2671 | |||
2672 | Sets the line spacing ("leading") of the text frame "name" to "size". |
||
2673 | "size" is a value in points. If "name" is not given the currently selected |
||
2674 | item is used. |
||
2675 | |||
2676 | May throw ValueError if the line spacing is out of bounds. |
||
2677 | </source> |
||
2678 | <translation type="unfinished">setLineSpacing(size, ["name"]) |
||
2679 | |||
2680 | Sets the line spacing ("leading") of the text frame "name" to "size". |
||
2681 | "size" is a value in points. If "name" is not given the currently selected |
||
2682 | item is used. |
||
2683 | |||
2684 | May throw ValueError if the line spacing is out of bounds. </translation> |
||
2685 | </message> |
||
2686 | <message> |
||
2687 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="199"/> |
||
2688 | <source>setTextDistances(left, right, top, bottom, ["name"]) |
||
2689 | |||
2690 | Sets the text distances of the text frame "name" to the values "left" |
||
2691 | "right", "top" and "bottom". If "name" is not given the currently |
||
2692 | selected item is used. |
||
2693 | |||
2694 | May throw ValueError if any of the distances are out of bounds (must be positive). |
||
2695 | </source> |
||
2696 | <translation type="unfinished"></translation> |
||
2697 | </message> |
||
2698 | <message> |
||
2699 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="211"/> |
||
2700 | <source>setColumnGap(size, ["name"]) |
||
2701 | |||
2702 | Sets the column gap of the text frame "name" to the value "size". If |
||
2703 | "name" is not given the currently selected item is used. |
||
2704 | |||
2705 | May throw ValueError if the column gap is out of bounds (must be positive). |
||
2706 | </source> |
||
2707 | <translation type="unfinished">setColumnGap(size, ["name"]) |
||
2708 | |||
2709 | Sets the column gap of the text frame "name" to the value "size". If |
||
2710 | "name" is not given the currently selected item is used. |
||
2711 | |||
2712 | May throw ValueError if the column gap is out of bounds (must be positive). </translation> |
||
2713 | </message> |
||
2714 | <message> |
||
2715 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="223"/> |
||
2716 | <source>setColumns(nr, ["name"]) |
||
2717 | |||
2718 | Sets the number of columns of the text frame "name" to the integer "nr". |
||
2719 | If "name" is not given the currently selected item is used. |
||
2720 | |||
2721 | May throw ValueError if number of columns is not at least one. |
||
2722 | </source> |
||
2723 | <translation type="unfinished">setColumns(nr, ["name"]) |
||
2724 | |||
2725 | Sets the number of columns of the text frame "name" to the integer "nr". |
||
2726 | If "name" is not given the currently selected item is used. |
||
2727 | |||
2728 | May throw ValueError if number of columns is not at least one. </translation> |
||
2729 | </message> |
||
2730 | <message> |
||
2731 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="236"/> |
||
2732 | <source>setTextAlignment(align, ["name"]) |
||
2733 | |||
2734 | Sets the text alignment of the text frame "name" to the specified alignment. |
||
2735 | If "name" is not given the currently selected item is used. "align" should |
||
2736 | be one of the ALIGN_ constants defined in this module - see dir(scribus). |
||
2737 | |||
2738 | May throw ValueError for an invalid alignment constant. |
||
2739 | </source> |
||
2740 | <translation type="unfinished">setTextAlignment(align, ["name"]) |
||
2741 | |||
2742 | Sets the text alignment of the text frame "name" to the specified alignment. |
||
2743 | If "name" is not given the currently selected item is used. "align" should |
||
2744 | be one of the ALIGN_ constants defined in this module - see dir(scribus). |
||
2745 | |||
2746 | May throw ValueError for an invalid alignment constant. </translation> |
||
2747 | </message> |
||
2748 | <message> |
||
2749 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="250"/> |
||
2750 | <source>selectText(start, count, ["name"]) |
||
2751 | |||
2752 | Selects "count" characters of text in the text frame "name" starting from the |
||
2753 | character "start". Character counting starts at 0. If "count" is zero, any |
||
2754 | text selection will be cleared. If "name" is not given the currently |
||
2755 | selected item is used. |
||
2756 | |||
2757 | May throw IndexError if the selection is outside the bounds of the text. |
||
2758 | </source> |
||
2759 | <translation type="unfinished">selectText(start, count, ["name"]) |
||
2760 | |||
2761 | Selects "count" characters of text in the text frame "name" starting from the |
||
2762 | character "start". Character counting starts at 0. If "count" is zero, any |
||
2763 | text selection will be cleared. If "name" is not given the currently |
||
2764 | selected item is used. |
||
2765 | |||
2766 | May throw IndexError if the selection is outside the bounds of the text. |
||
2767 | </translation> |
||
2768 | </message> |
||
2769 | <message> |
||
2770 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="261"/> |
||
2771 | <source>deleteText(["name"]) |
||
2772 | |||
2773 | Deletes any text in the text frame "name". If there is some text selected, |
||
2774 | only the selected text will be deleted. If "name" is not given the currently |
||
2775 | selected item is used. |
||
2776 | </source> |
||
2777 | <translation type="unfinished">deleteText(["name"]) |
||
2778 | |||
2779 | |||
2780 | Deletes any text in the text frame "name". If there is some text selected, |
||
2781 | only the selected text will be deleted. If "name" is not given the currently |
||
2782 | selected item is used. </translation> |
||
2783 | </message> |
||
2784 | <message> |
||
2785 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="272"/> |
||
2786 | <source>setTextColor("color", ["name"]) |
||
2787 | |||
2788 | Sets the text color of the text frame "name" to the color "color". If there |
||
2789 | is some text selected only the selected text is changed. If "name" is not |
||
2790 | given the currently selected item is used. |
||
2791 | </source> |
||
2792 | <translation type="unfinished">setTextColor("color", ["name"]) |
||
2793 | |||
2794 | Sets the text color of the text frame "name" to the color "color". If there |
||
2795 | is some text selected only the selected text is changed. If "name" is not |
||
2796 | given the currently selected item is used. |
||
2797 | </translation> |
||
2798 | </message> |
||
2799 | <message> |
||
2800 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="282"/> |
||
2801 | <source>setTextStroke("color", ["name"]) |
||
2802 | |||
2803 | Set "color" of the text stroke. If "name" is not given the currently |
||
2804 | selected item is used. |
||
2805 | </source> |
||
2806 | <translation type="unfinished">setTextStroke("color", ["name"]) |
||
2807 | |||
2808 | Set "color" of the text stroke. If "name" is not given the currently |
||
2809 | selected item is used. |
||
2810 | </translation> |
||
2811 | </message> |
||
2812 | <message> |
||
2813 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="295"/> |
||
2814 | <source>setTextShade(shade, ["name"]) |
||
2815 | |||
2816 | Sets the shading of the text color of the object "name" to "shade". If |
||
2817 | there is some text selected only the selected text is changed. "shade" must |
||
2818 | be an integer value in the range from 0 (lightest) to 100 (full color |
||
2819 | intensity). If "name" is not given the currently selected item is |
||
2820 | used. |
||
2821 | </source> |
||
2822 | <translation type="unfinished">setTextShade(shade, ["name"]) |
||
2823 | |||
2824 | Sets the shading of the text color of the object "name" to "shade". If |
||
2825 | there is some text selected only the selected text is changed. "shade" must |
||
2826 | be an integer value in the range from 0 (lightest) to 100 (full color |
||
2827 | intensity). If "name" is not given the currently selected item is |
||
2828 | used. |
||
2829 | </translation> |
||
2830 | </message> |
||
2831 | <message> |
||
2832 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="308"/> |
||
2833 | <source>linkTextFrames("fromname", "toname") |
||
2834 | |||
2835 | Link two text frames. The frame named "fromname" is linked to the |
||
2836 | frame named "toname". The target frame must be an empty text frame |
||
2837 | and must not link to or be linked from any other frames already. |
||
2838 | |||
2839 | May throw ScribusException if linking rules are violated. |
||
2840 | </source> |
||
2841 | <translation type="unfinished">linkTextFrames("fromname", "toname") |
||
2842 | |||
2843 | Link two text frames. The frame named "fromname" is linked to the |
||
2844 | frame named "toname". The target frame must be an empty text frame |
||
2845 | and must not link to or be linked from any other frames already. |
||
2846 | |||
2847 | May throw ScribusException if linking rules are violated. |
||
2848 | </translation> |
||
2849 | </message> |
||
2850 | <message> |
||
2851 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="325"/> |
||
2852 | <source>unlinkTextFrames("name") |
||
2853 | |||
2854 | Remove the specified (named) object from the text frame flow/linkage. If the |
||
2855 | frame was in the middle of a chain, the previous and next frames will be |
||
2856 | connected, eg 'a->b->c' becomes 'a->c' when you unlinkTextFrames(b)' |
||
2857 | |||
2858 | May throw ScribusException if linking rules are violated. |
||
2859 | </source> |
||
2860 | <translation type="unfinished">unlinkTextFrames("name") |
||
2861 | |||
2862 | Remove the specified (named) object from the text frame flow/linkage. If the |
||
2863 | frame was in the middle of a chain, the previous and next frames will be |
||
2864 | connected, eg 'a->b->c' becomes 'a->c' when you unlinkTextFrames(b)' |
||
2865 | |||
2866 | May throw ScribusException if linking rules are violated. |
||
2867 | </translation> |
||
2868 | </message> |
||
2869 | <message> |
||
2870 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="338"/> |
||
2871 | <source>traceText(["name"]) |
||
2872 | |||
2873 | Convert the text frame "name" to outlines. If "name" is not given the |
||
2874 | currently selected item is used.</source> |
||
2875 | <translation type="unfinished">traceText(["name"]) |
||
2876 | |||
2877 | Muuta tekstikehys "name" ääriviivoiksi. Jos nimeä ei anneta, käytetään |
||
2878 | valittuna olevaa kohdetta.</translation> |
||
2879 | </message> |
||
2880 | <message> |
||
2881 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="352"/> |
||
2882 | <source>textOverflows(["name", nolinks]) -> integer |
||
2883 | |||
2884 | Returns the actual number of overflowing characters in text frame "name". |
||
2885 | If is nolinks set to non zero value it takes only one frame - it doesn't |
||
2886 | use text frame linking. Without this parameter it search all linking chain. |
||
2887 | |||
2888 | May raise WrongFrameTypeError if the target frame is not an text frame |
||
2889 | </source> |
||
2890 | <translation type="unfinished">textOverflows(["name", nolinks]) -> integer |
||
2891 | |||
2892 | Returns the actual number of overflowing characters in text frame "name". |
||
2893 | If is nolinks set to non zero value it takes only one frame - it doesn't |
||
2894 | use text frame linking. Without this parameter it search all linking chain. |
||
2895 | |||
2896 | May raise WrongFrameTypeError if the target frame is not an text frame |
||
2897 | </translation> |
||
2898 | </message> |
||
2899 | <message> |
||
2900 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="365"/> |
||
2901 | <source>hyphenateText(["name"]) -> bool |
||
2902 | |||
2903 | Does hyphenation on text frame "name". |
||
2904 | If "name" is not given the currently selected item is used. |
||
2905 | |||
2906 | May raise WrongFrameTypeError if the target frame is not a text frame |
||
2907 | </source> |
||
2908 | <translation type="unfinished"></translation> |
||
2909 | </message> |
||
2910 | <message> |
||
2911 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="379"/> |
||
2912 | <source>dehyphenateText(["name"]) -> bool |
||
2913 | |||
2914 | Does dehyphenation on text frame "name". |
||
2915 | If "name" is not given the currently selected item is used. |
||
2916 | |||
2917 | May raise WrongFrameTypeError if the target frame is not a text frame |
||
2918 | </source> |
||
2919 | <translation type="unfinished"></translation> |
||
2920 | </message> |
||
2921 | <message> |
||
2922 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="394"/> |
||
2923 | <source>setPDFBookmark("toggle", ["name"]) |
||
2924 | |||
2925 | Sets whether (toggle = 1) the text frame "name" is a bookmark nor not. |
||
2926 | If "name" is not given the currently selected item is used. |
||
2927 | |||
2928 | May raise WrongFrameTypeError if the target frame is not a text frame |
||
2929 | </source> |
||
2930 | <translation type="unfinished"></translation> |
||
2931 | </message> |
||
2932 | <message> |
||
2933 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="406"/> |
||
2934 | <source>isPDFBookmark(["name"]) -> bool |
||
2935 | |||
2936 | Returns true if the text frame "name" is a PDF bookmark. |
||
2937 | If "name" is not given the currently selected item is used. |
||
2938 | |||
2939 | May raise WrongFrameTypeError if the target frame is not a text frame |
||
2940 | </source> |
||
2941 | <translation type="unfinished">isPDFBookmark(["name"]) -> bool |
||
2942 | |||
2943 | Returns true if the text frame "name" is a PDF bookmark. |
||
2944 | If "name" is not given the currently selected item is used. |
||
2945 | |||
2946 | May raise WrongFrameTypeError if the target frame is not a text frame </translation> |
||
2947 | </message> |
||
2948 | <message> |
||
2949 | <location filename="../../scribus/plugins/scriptplugin/guiapp.h" line="21"/> |
||
2950 | <source>messagebarText("string") |
||
2951 | |||
2952 | Writes the "string" into the Scribus message bar (status line). The text |
||
2953 | must be UTF8 encoded or 'unicode' string(recommended). |
||
2954 | </source> |
||
2955 | <translation type="unfinished">messagebarText("string") |
||
2956 | |||
2957 | Asettaa tekstin "string" Scribuksen tilariville. Teksti täytyy olla UTF8 koodattu tai |
||
2958 | 'unicode' teksti (suositeltavaa).</translation> |
||
2959 | </message> |
||
2960 | <message> |
||
2961 | <location filename="../../scribus/plugins/scriptplugin/guiapp.h" line="34"/> |
||
2962 | <source>progressReset() |
||
2963 | |||
2964 | Cleans up the Scribus progress bar previous settings. It is called before the |
||
2965 | new progress bar use. See progressSet. |
||
2966 | </source> |
||
2967 | <translation type="unfinished">progressReset() |
||
2968 | |||
2969 | Tyhjentää etenemispalkin (progress bar). Katso progressSet.</translation> |
||
2970 | </message> |
||
2971 | <message> |
||
2972 | <location filename="../../scribus/plugins/scriptplugin/guiapp.h" line="47"/> |
||
2973 | <source>progressTotal(max) |
||
2974 | |||
2975 | Sets the progress bar's maximum steps value to the specified number. |
||
2976 | See progressSet. |
||
2977 | </source> |
||
2978 | <translation type="unfinished">progressTotal(max) |
||
2979 | |||
2980 | Asettaa etenemispalkin suurimman mahdollisen arvon. Katso progressSet.</translation> |
||
2981 | </message> |
||
2982 | <message> |
||
2983 | <location filename="../../scribus/plugins/scriptplugin/guiapp.h" line="61"/> |
||
2984 | <source>progressSet(nr) |
||
2985 | |||
2986 | Set the progress bar position to "nr", a value relative to the previously set |
||
2987 | progressTotal. The progress bar uses the concept of steps; you give it the |
||
2988 | total number of steps and the number of steps completed so far and it will |
||
2989 | display the percentage of steps that have been completed. You can specify the |
||
2990 | total number of steps with progressTotal(). The current number of steps is set |
||
2991 | with progressSet(). The progress bar can be rewound to the beginning with |
||
2992 | progressReset(). [based on info taken from Trolltech's Qt docs] |
||
2993 | </source> |
||
2994 | <translation type="unfinished">progressSet(nr) |
||
2995 | |||
2996 | Aseta etenemispalkki nr:n osoittamaan tilaan. |
||
2997 | The progress bar uses the concept of steps; you give it the |
||
2998 | total number of steps and the number of steps completed so far and it will |
||
2999 | display the percentage of steps that have been completed. You can specify the |
||
3000 | total number of steps with progressTotal(). The current number of steps is set |
||
3001 | with progressSet(). The progress bar can be rewound to the beginning with |
||
3002 | progressReset(). [based on info taken from Trolltech's Qt docs]</translation> |
||
3003 | </message> |
||
3004 | <message> |
||
3005 | <location filename="../../scribus/plugins/scriptplugin/guiapp.h" line="69"/> |
||
3006 | <source>setCursor() |
||
3007 | |||
3008 | [UNSUPPORTED!] This might break things, so steer clear for now. |
||
3009 | </source> |
||
3010 | <translation type="unfinished">setCursor() |
||
3011 | |||
3012 | [Ei tuettu!] Tämä saattaa rikkoa asoita. Eli älä käytä ainakaan vielä.</translation> |
||
3013 | </message> |
||
3014 | <message> |
||
3015 | <location filename="../../scribus/plugins/scriptplugin/guiapp.h" line="83"/> |
||
3016 | <source>docChanged(bool) |
||
3017 | |||
3018 | Enable/disable save icon in the Scribus icon bar and the Save menu item. It's |
||
3019 | useful to call this procedure when you're changing the document, because Scribus |
||
3020 | won't automatically notice when you change the document using a script. |
||
3021 | </source> |
||
3022 | <translation type="unfinished">docChanged(bool) |
||
3023 | |||
3024 | Ota käyttöön/Poista käytöstä tallennuskuvake työkalurivillä ja Tiedosto-valikossa. |
||
3025 | On hyvä kutsua tätä funktiota, kun olet muokannut asiakirjaa. Scribus ei huomaa |
||
3026 | automaattisesti skriptin tekemiä muutoksia.</translation> |
||
3027 | </message> |
||
3028 | <message> |
||
3029 | <location filename="../../scribus/plugins/scriptplugin/guiapp.h" line="95"/> |
||
3030 | <source>zoomDocument(double) |
||
3031 | |||
3032 | Zoom the document in main GUI window. Actions have whole number |
||
3033 | values like 20.0, 100.0, etc. Zoom to Fit uses -100 as a marker. |
||
3034 | </source> |
||
3035 | <translation type="unfinished">zoomDocument(double) |
||
3036 | |||
3037 | Zoom the document in main GUI window. Actions have whole number |
||
3038 | values like 20.0, 100.0, etc. Zoom to Fit uses -100 as a marker. |
||
3039 | </translation> |
||
3040 | </message> |
||
3041 | <message> |
||
3042 | <location filename="../../scribus/plugins/scriptplugin/guiapp.h" line="106"/> |
||
3043 | <source>scrollDocument(x,y) |
||
3044 | |||
3045 | Scroll the document in main GUI window by x and y. |
||
3046 | </source> |
||
3047 | <translation type="unfinished"></translation> |
||
3048 | </message> |
||
3049 | <message> |
||
3050 | <location filename="../../scribus/plugins/scriptplugin/svgimport.h" line="21"/> |
||
3051 | <source>placeSVG("filename", x, y) |
||
3052 | |||
3053 | Places the SVG "filename" onto the current page, |
||
3054 | x and y specify the coordinate of the topleft corner of the SVG placed on the page |
||
3055 | |||
3056 | If loading was successful, the selection contains the imported SVG |
||
3057 | </source> |
||
3058 | <translation type="unfinished"></translation> |
||
3059 | </message> |
||
3060 | <message> |
||
3061 | <location filename="../../scribus/plugins/scriptplugin/svgimport.h" line="33"/> |
||
3062 | <source>placeEPS("filename", x, y) |
||
3063 | |||
3064 | Places the EPS "filename" onto the current page, |
||
3065 | x and y specify the coordinate of the topleft corner of the EPS placed on the page |
||
3066 | |||
3067 | If loading was successful, the selection contains the imported EPS |
||
3068 | </source> |
||
3069 | <translation type="unfinished"></translation> |
||
3070 | </message> |
||
3071 | <message> |
||
3072 | <location filename="../../scribus/plugins/scriptplugin/svgimport.h" line="45"/> |
||
3073 | <source>placeSXD("filename", x, y) |
||
3074 | |||
3075 | Places the SXD "filename" onto the current page, |
||
3076 | x and y specify the coordinate of the topleft corner of the SXD placed on the page |
||
3077 | |||
3078 | If loading was successful, the selection contains the imported SXD |
||
3079 | </source> |
||
3080 | <translation type="unfinished"></translation> |
||
3081 | </message> |
||
3082 | <message> |
||
3083 | <location filename="../../scribus/plugins/scriptplugin/svgimport.h" line="57"/> |
||
3084 | <source>placeODG("filename", x, y) |
||
3085 | |||
3086 | Places the ODG "filename" onto the current page, |
||
3087 | x and y specify the coordinate of the topleft corner of the ODG placed on the page |
||
3088 | |||
3089 | If loading was successful, the selection contains the imported ODG |
||
3090 | </source> |
||
3091 | <translation type="unfinished"></translation> |
||
3092 | </message> |
||
3093 | </context> |
||
3094 | <context> |
||
12281 | cbradney | 3095 | <name>@default</name> |
1135 | cbradney | 3096 | <message> |
12918 | cbradney | 3097 | <location filename="" line="0"/> |
3098 | <source>getColorNames() -> list |
||
1135 | cbradney | 3099 | |
3100 | Returns a list containing the names of all defined colors in the document. |
||
3101 | If no document is open, returns a list of the default document colors. |
||
3102 | </source> |
||
12918 | cbradney | 3103 | <translation type="obsolete">getColorNames() -> list |
1135 | cbradney | 3104 | |
3823 | tsoots | 3105 | Returns a list containing the names of all defined colors in the document. |
3106 | If no document is open, returns a list of the default document colors.</translation> |
||
1135 | cbradney | 3107 | </message> |
3108 | <message> |
||
12918 | cbradney | 3109 | <location filename="" line="0"/> |
3110 | <source>newDocDialog() -> bool |
||
1135 | cbradney | 3111 | |
3112 | Displays the "New Document" dialog box. Creates a new document if the user |
||
3113 | accepts the settings. Does not create a document if the user presses cancel. |
||
3114 | Returns true if a new document was created. |
||
3115 | </source> |
||
12918 | cbradney | 3116 | <translation type="obsolete">getColorNames() -> list |
1135 | cbradney | 3117 | |
3118 | Näyttää dialogin "Uusi asiakirja". Luo uuden asiakirjan, jos käyttäjä hyväksyy |
||
3119 | asetukset. Asiakirjaa ei luoda, jos käyttäjä painaa Peruuta-painiketta. |
||
3120 | Palauttaa true, jos uusi asiakirja luotiin.</translation> |
||
3121 | </message> |
||
3122 | <message> |
||
12918 | cbradney | 3123 | <location filename="" line="0"/> |
3124 | <source>getFillColor(["name"]) -> string |
||
1135 | cbradney | 3125 | |
3126 | Returns the name of the fill color of the object "name". |
||
3127 | If "name" is not given the currently selected item is used. |
||
3128 | </source> |
||
12918 | cbradney | 3129 | <translation type="obsolete">getFillColor(["name"]) -> string |
1135 | cbradney | 3130 | |
3131 | Palauttaa täyttövärin nimen kohteelle "name". |
||
3132 | Jos "name" ei ole annettu käytetään valittuna olevaa kohdetta.</translation> |
||
3133 | </message> |
||
3134 | <message> |
||
12918 | cbradney | 3135 | <location filename="" line="0"/> |
3136 | <source>moveObject(dx, dy [, "name"]) |
||
1135 | cbradney | 3137 | |
3138 | Moves the object "name" by dx and dy relative to its current position. The |
||
3139 | distances are expressed in the current measurement unit of the document (see |
||
3140 | UNIT constants). If "name" is not given the currently selected item is used. |
||
3141 | If the object "name" belongs to a group, the whole group is moved. |
||
3142 | </source> |
||
12918 | cbradney | 3143 | <translation type="obsolete">moveObject(dx, dy [, "name"]) |
1135 | cbradney | 3144 | |
3145 | Siirtää kohdetta "name" arvoilla dx ja dy suhteessa nykyiseen sijaintiin. Etäisyydet |
||
10743 | tsoots | 3146 | ilmaistaan asiakirjassa käytössä olevalla yksiköllä (katso UNIT-vakio). Jos "name" ei |
1135 | cbradney | 3147 | ole määritelty, käytetään valittuna olevaa kohdetta. Jos kohde "name" kuuluu |
3148 | ryhmään, koko ryhmää siirretään.</translation> |
||
3149 | </message> |
||
3150 | <message> |
||
12918 | cbradney | 3151 | <location filename="" line="0"/> |
3152 | <source>setRedraw(bool) |
||
1135 | cbradney | 3153 | |
3154 | Disables page redraw when bool = False, otherwise redrawing is enabled. |
||
3155 | This change will persist even after the script exits, so make sure to call |
||
3156 | setRedraw(True) in a finally: clause at the top level of your script. |
||
3157 | </source> |
||
12918 | cbradney | 3158 | <translation type="obsolete">setRedraw(bool) |
1135 | cbradney | 3159 | |
3160 | Estää sivun uudelleenpiirron, kun bool=False. Muuten uudelleen piirto on |
||
3161 | käytössä. Tämä asetus jää voimaan vaikka skriptistä poistutaan. Varmista, |
||
3162 | että kutsut setRedraw(True) finally: -lauseessa ylimmällä tasolla skriptissäsi.</translation> |
||
3163 | </message> |
||
3164 | <message> |
||
12918 | cbradney | 3165 | <location filename="" line="0"/> |
3166 | <source>createRect(x, y, width, height, ["name"]) -> string |
||
1135 | cbradney | 3167 | |
3168 | Creates a new rectangle on the current page and returns its name. The |
||
3169 | coordinates are given in the current measurement units of the document |
||
3170 | (see UNIT constants). "name" should be a unique identifier for the object |
||
3171 | because you need this name to reference that object in future. If "name" |
||
3172 | is not given Scribus will create one for you. |
||
3173 | |||
12918 | cbradney | 3174 | May raise NameExistsError if you explicitly pass a name that's already used. |
1135 | cbradney | 3175 | </source> |
12918 | cbradney | 3176 | <translation type="obsolete">createRect(x, y, width, height, ["name"]) -> string |
1135 | cbradney | 3177 | |
3178 | Luo uuden nelikulmion nykyiselle sivulle ja palauttaa luodun kohteen nimen. |
||
10743 | tsoots | 3179 | Koordinaatit on annettava asiakirjassa käytössä olevalla yksiköllä. Katso (UNIT vakiot). |
1135 | cbradney | 3180 | "name":n tulee olla yksilöllinen tunniste kohteelle, koska tarvitset nimeä myöhemmin |
3181 | viitatessasi nelikulmioon. Jos "name":a ei anneta Scribus luo sen. |
||
3182 | |||
3183 | Saattaa nostaa NameExistsError:n, jos annettu nimi on jo olemassa.</translation> |
||
3184 | </message> |
||
3185 | <message> |
||
12918 | cbradney | 3186 | <location filename="" line="0"/> |
3187 | <source>setGradientFill(type, "color1", shade1, "color2", shade2, ["name"]) |
||
1135 | cbradney | 3188 | |
3189 | Sets the gradient fill of the object "name" to type. Color descriptions are |
||
3190 | the same as for setFillColor() and setFillShade(). See the constants for |
||
12918 | cbradney | 3191 | available types (FILL_<type>). |
1135 | cbradney | 3192 | </source> |
12918 | cbradney | 3193 | <translation type="obsolete">setGradientFill(type, "color1", shade1, "color2", shade2, ["name"]) |
1135 | cbradney | 3194 | |
10743 | tsoots | 3195 | Asettaa liukuväritäytön kohteelle "name". Värin kuvaukset ovat samat kuin |
12918 | cbradney | 3196 | setFillColor():lla ja setFillShade():lla. Katso vakiot FILL_<type>.</translation> |
1135 | cbradney | 3197 | </message> |
3198 | <message> |
||
12918 | cbradney | 3199 | <location filename="" line="0"/> |
3200 | <source>getFontSize(["name"]) -> float |
||
1135 | cbradney | 3201 | |
3202 | Returns the font size in points for the text frame "name". If this text |
||
3203 | frame has some text selected the value assigned to the first character of |
||
3204 | the selection is returned. |
||
3205 | If "name" is not given the currently selected item is used. |
||
3206 | </source> |
||
12918 | cbradney | 3207 | <translation type="obsolete">getFontSize(["name"]) -> float |
1135 | cbradney | 3208 | |
6993 | tsoots | 3209 | Palauttaa fontin koon pisteinä tekstikehykselle "name". Jos tekstikehyksessä |
3210 | on tekstiä valittuna palautetaan valinnan ensimmäisen fontin koko. |
||
1135 | cbradney | 3211 | Jos "name" ei ole määritelty, käytetään valittuna olevaa kohdetta.</translation> |
3212 | </message> |
||
3213 | <message> |
||
12918 | cbradney | 3214 | <location filename="" line="0"/> |
3215 | <source>messagebarText("string") |
||
1135 | cbradney | 3216 | |
3217 | Writes the "string" into the Scribus message bar (status line). The text |
||
12918 | cbradney | 3218 | must be UTF8 encoded or 'unicode' string(recommended). |
1135 | cbradney | 3219 | </source> |
12918 | cbradney | 3220 | <translation type="obsolete">messagebarText("string") |
1135 | cbradney | 3221 | |
3222 | Asettaa tekstin "string" Scribuksen tilariville. Teksti täytyy olla UTF8 koodattu tai |
||
12918 | cbradney | 3223 | 'unicode' teksti (suositeltavaa).</translation> |
1135 | cbradney | 3224 | </message> |
1525 | cbradney | 3225 | <message> |
12918 | cbradney | 3226 | <location filename="" line="0"/> |
3227 | <source>newPage(where [,"masterpage"]) |
||
1525 | cbradney | 3228 | |
3823 | tsoots | 3229 | Creates a new page. If "where" is -1 the new Page is appended to the |
3230 | document, otherwise the new page is inserted before "where". Page numbers are |
||
3231 | counted from 1 upwards, no matter what the displayed first page number of your |
||
3232 | document is. The optional parameter "masterpage" specifies the name of the |
||
3233 | master page for the new page. |
||
3234 | |||
3235 | May raise IndexError if the page number is out of range |
||
2147 | cbradney | 3236 | </source> |
12918 | cbradney | 3237 | <translation type="obsolete">newPage(where [,"masterpage"]) |
1525 | cbradney | 3238 | |
3823 | tsoots | 3239 | Creates a new page. If "where" is -1 the new Page is appended to the |
3240 | document, otherwise the new page is inserted before "where". Page numbers are |
||
3241 | counted from 1 upwards, no matter what the displayed first page number of your |
||
3242 | document is. The optional parameter "masterpage" specifies the name of the |
||
3243 | master page for the new page. |
||
3244 | |||
3245 | May raise IndexError if the page number is out of range |
||
3246 | </translation> |
||
1525 | cbradney | 3247 | </message> |
3064 | cbradney | 3248 | <message> |
12918 | cbradney | 3249 | <location filename="" line="0"/> |
3250 | <source>newDocument(size, margins, orientation, firstPageNumber, |
||
3251 | unit, pagesType, firstPageOrder, numPages) -> bool |
||
3064 | cbradney | 3252 | |
3253 | Creates a new document and returns true if successful. The parameters have the |
||
3254 | following meaning: |
||
3255 | |||
3823 | tsoots | 3256 | size = A tuple (width, height) describing the size of the document. You can |
12918 | cbradney | 3257 | use predefined constants named PAPER_<paper_type> e.g. PAPER_A4 etc. |
3064 | cbradney | 3258 | |
3823 | tsoots | 3259 | margins = A tuple (left, right, top, bottom) describing the document |
3260 | margins |
||
3064 | cbradney | 3261 | |
3823 | tsoots | 3262 | orientation = the page orientation - constants PORTRAIT, LANDSCAPE |
3064 | cbradney | 3263 | |
3823 | tsoots | 3264 | firstPageNumer = is the number of the first page in the document used for |
12918 | cbradney | 3265 | pagenumbering. While you'll usually want 1, it's useful to have higher |
3266 | numbers if you're creating a document in several parts. |
||
3064 | cbradney | 3267 | |
3823 | tsoots | 3268 | unit: this value sets the measurement units used by the document. Use a |
3269 | predefined constant for this, one of: UNIT_INCHES, UNIT_MILLIMETERS, |
||
3270 | UNIT_PICAS, UNIT_POINTS. |
||
3064 | cbradney | 3271 | |
3823 | tsoots | 3272 | pagesType = One of the predefined constants PAGE_n. PAGE_1 is single page, |
3273 | PAGE_2 is for double sided documents, PAGE_3 is for 3 pages fold and |
||
3274 | PAGE_4 is 4-fold. |
||
3064 | cbradney | 3275 | |
3823 | tsoots | 3276 | firstPageOrder = What is position of first page in the document. |
3277 | Indexed from 0 (0 = first). |
||
3064 | cbradney | 3278 | |
6993 | tsoots | 3279 | numPage = Number of pages to be created. |
3280 | |||
3064 | cbradney | 3281 | The values for width, height and the margins are expressed in the given unit |
3282 | for the document. PAPER_* constants are expressed in points. If your document |
||
3283 | is not in points, make sure to account for this. |
||
3284 | |||
3823 | tsoots | 3285 | example: newDocument(PAPER_A4, (10, 10, 20, 20), LANDSCAPE, 7, UNIT_POINTS, |
6993 | tsoots | 3286 | PAGE_4, 3, 1) |
3823 | tsoots | 3287 | |
3288 | May raise ScribusError if is firstPageOrder bigger than allowed by pagesType. |
||
3064 | cbradney | 3289 | </source> |
12918 | cbradney | 3290 | <translation type="obsolete">newDocument(size, margins, orientation, firstPageNumber, |
3291 | unit, pagesType, firstPageOrder, numPages) -> bool |
||
3064 | cbradney | 3292 | |
3823 | tsoots | 3293 | Creates a new document and returns true if successful. The parameters have the |
3294 | following meaning: |
||
3064 | cbradney | 3295 | |
3823 | tsoots | 3296 | size = A tuple (width, height) describing the size of the document. You can |
12918 | cbradney | 3297 | use predefined constants named PAPER_<paper_type> e.g. PAPER_A4 etc. |
3064 | cbradney | 3298 | |
3823 | tsoots | 3299 | margins = A tuple (left, right, top, bottom) describing the document |
3300 | margins |
||
3301 | |||
3302 | orientation = the page orientation - constants PORTRAIT, LANDSCAPE |
||
3303 | |||
3304 | firstPageNumer = is the number of the first page in the document used for |
||
12918 | cbradney | 3305 | pagenumbering. While you'll usually want 1, it's useful to have higher |
3306 | numbers if you're creating a document in several parts. |
||
3823 | tsoots | 3307 | |
3308 | unit: this value sets the measurement units used by the document. Use a |
||
3309 | predefined constant for this, one of: UNIT_INCHES, UNIT_MILLIMETERS, |
||
3310 | UNIT_PICAS, UNIT_POINTS. |
||
3311 | |||
3312 | pagesType = One of the predefined constants PAGE_n. PAGE_1 is single page, |
||
3313 | PAGE_2 is for double sided documents, PAGE_3 is for 3 pages fold and |
||
3314 | PAGE_4 is 4-fold. |
||
3315 | |||
3316 | firstPageOrder = What is position of first page in the document. |
||
3317 | Indexed from 0 (0 = first). |
||
3318 | |||
6434 | cbradney | 3319 | numPage = Number of pages to be created. |
3320 | |||
3321 | The values for width, height and the margins are expressed in the given unit |
||
3322 | for the document. PAPER_* constants are expressed in points. If your document |
||
3323 | is not in points, make sure to account for this. |
||
3324 | |||
3325 | example: newDocument(PAPER_A4, (10, 10, 20, 20), LANDSCAPE, 7, UNIT_POINTS, |
||
3326 | PAGE_4, 3, 1) |
||
3327 | |||
3328 | May raise ScribusError if is firstPageOrder bigger than allowed by pagesType. |
||
6993 | tsoots | 3329 | </translation> |
6434 | cbradney | 3330 | </message> |
1135 | cbradney | 3331 | <message> |
12918 | cbradney | 3332 | <location filename="" line="0"/> |
3333 | <source>getColor("name") -> tuple |
||
1135 | cbradney | 3334 | |
3335 | Returns a tuple (C, M, Y, K) containing the four color components of the |
||
3336 | color "name" from the current document. If no document is open, returns |
||
3337 | the value of the named color from the default document colors. |
||
3338 | |||
12918 | cbradney | 3339 | May raise NotFoundError if the named color wasn't found. |
1135 | cbradney | 3340 | May raise ValueError if an invalid color name is specified. |
3341 | </source> |
||
12918 | cbradney | 3342 | <translation type="obsolete">getColor("name") -> tuple |
1135 | cbradney | 3343 | |
3344 | Palauttaa tuplen (C, M, Y, K) värille "name" nykyisestä asiakirjasta. Jos asiakirjaa |
||
3345 | ei ole avoinna, palauttaa värin oletusväreistä. |
||
3346 | |||
3347 | Saattaa nostaa NotFoundError:n, jos väriä ei löydy. |
||
3348 | Saattaa nostaa ValueError:n, jos värin nimi on viallinen.</translation> |
||
3349 | </message> |
||
3350 | <message> |
||
12918 | cbradney | 3351 | <location filename="" line="0"/> |
3352 | <source>changeColor("name", c, m, y, k) |
||
1135 | cbradney | 3353 | |
3354 | Changes the color "name" to the specified CMYK value. The color value is |
||
3355 | defined via four components c = Cyan, m = Magenta, y = Yellow and k = Black. |
||
3356 | Color components should be in the range from 0 to 255. |
||
3357 | |||
12918 | cbradney | 3358 | May raise NotFoundError if the named color wasn't found. |
1135 | cbradney | 3359 | May raise ValueError if an invalid color name is specified. |
3360 | </source> |
||
12918 | cbradney | 3361 | <translation type="obsolete">changeColor("name", c, m, y, k) |
1135 | cbradney | 3362 | |
3363 | Vaihtaa värin "name" vastaamaan väriä c, m, y, k (kaikki määritelty välillä 0, 255).</translation> |
||
3364 | </message> |
||
3365 | <message> |
||
12918 | cbradney | 3366 | <location filename="" line="0"/> |
3367 | <source>deleteColor("name", "replace") |
||
1135 | cbradney | 3368 | |
3369 | Deletes the color "name". Every occurence of that color is replaced by the |
||
3370 | color "replace". If not specified, "replace" defaults to the color |
||
3371 | "None" - transparent. |
||
3372 | |||
3373 | deleteColor works on the default document colors if there is no document open. |
||
3374 | In that case, "replace", if specified, has no effect. |
||
3375 | |||
12918 | cbradney | 3376 | May raise NotFoundError if a named color wasn't found. |
1135 | cbradney | 3377 | May raise ValueError if an invalid color name is specified. |
3378 | </source> |
||
12918 | cbradney | 3379 | <translation type="obsolete">deleteColor("name", "replace") |
1135 | cbradney | 3380 | |
3381 | Poistaa värin "nimi", joka korvataan värillä "replace". Oletuksena "replace" on None (läpinäkyvä). |
||
3382 | |||
3383 | deleteColors toimii asiakirjassa määritellyillä väreillä, asiakirja on avoinna. |
||
3384 | |||
3385 | Saattaa nostaa NotFoundError:n, jos nimettyä väriä ei löydy. |
||
3386 | Saattaa nostaa ValueError:n, jos värin nimi on viallinen.</translation> |
||
3387 | </message> |
||
3388 | <message> |
||
12918 | cbradney | 3389 | <location filename="" line="0"/> |
3390 | <source>replaceColor("name", "replace") |
||
1135 | cbradney | 3391 | |
3392 | Every occurence of the color "name" is replaced by the color "replace". |
||
3393 | |||
12918 | cbradney | 3394 | May raise NotFoundError if a named color wasn't found. |
1135 | cbradney | 3395 | May raise ValueError if an invalid color name is specified. |
3396 | </source> |
||
12918 | cbradney | 3397 | <translation type="obsolete">replaceColor("name", "replace") |
1135 | cbradney | 3398 | |
3399 | Jokainen ilmentymä väristä "name" korvataan värillä "replace". |
||
3400 | |||
3401 | Saattaa nostaa NotFoundError:n, jos nimettyä väriä ei löydy. |
||
3402 | Saattaa nostaa ValueError:n, jos värin nimi on viallinen.</translation> |
||
3403 | </message> |
||
3404 | <message> |
||
12918 | cbradney | 3405 | <location filename="" line="0"/> |
3406 | <source>messageBox("caption", "message", |
||
1135 | cbradney | 3407 | icon=ICON_NONE, button1=BUTTON_OK|BUTTONOPT_DEFAULT, |
12918 | cbradney | 3408 | button2=BUTTON_NONE, button3=BUTTON_NONE) -> integer |
1135 | cbradney | 3409 | |
3410 | Displays a message box with the title "caption", the message "message", and |
||
3411 | an icon "icon" and up to 3 buttons. By default no icon is used and a single |
||
3412 | button, OK, is displayed. Only the caption and message arguments are required, |
||
3413 | though setting an icon and appropriate button(s) is strongly |
||
3414 | recommended. The message text may contain simple HTML-like markup. |
||
3415 | |||
3416 | Returns the number of the button the user pressed. Button numbers start |
||
3417 | at 1. |
||
3418 | |||
3419 | For the icon and the button parameters there are predefined constants available |
||
3420 | with the same names as in the Qt Documentation. These are the BUTTON_* and |
||
3421 | ICON_* constants defined in the module. There are also two extra constants that |
||
3422 | can be binary-ORed with button constants: |
||
3423 | BUTTONOPT_DEFAULT Pressing enter presses this button. |
||
3424 | BUTTONOPT_ESCAPE Pressing escape presses this button. |
||
3425 | |||
3426 | Usage examples: |
||
12918 | cbradney | 3427 | result = messageBox('Script failed', |
3428 | 'This script only works when you have a text frame selected.', |
||
1135 | cbradney | 3429 | ICON_ERROR) |
12918 | cbradney | 3430 | result = messageBox('Monkeys!', 'Something went ook! <i>Was it a monkey?</i>', |
1135 | cbradney | 3431 | ICON_WARNING, BUTTON_YES|BUTTONOPT_DEFAULT, |
3432 | BUTTON_NO, BUTTON_IGNORE|BUTTONOPT_ESCAPE) |
||
3433 | |||
3434 | Defined button and icon constants: |
||
3435 | BUTTON_NONE, BUTTON_ABORT, BUTTON_CANCEL, BUTTON_IGNORE, BUTTON_NO, |
||
3436 | BUTTON_NOALL, BUTTON_OK, BUTTON_RETRY, BUTTON_YES, BUTTON_YESALL, |
||
3437 | ICON_NONE, ICON_INFORMATION, ICON_WARNING, ICON_CRITICAL. |
||
3438 | </source> |
||
12918 | cbradney | 3439 | <translation type="obsolete">messageBox("caption", "message", |
2147 | cbradney | 3440 | icon=ICON_NONE, button1=BUTTON_OK|BUTTONOPT_DEFAULT, |
12918 | cbradney | 3441 | button2=BUTTON_NONE, button3=BUTTON_NONE) -> integer |
2147 | cbradney | 3442 | |
3443 | Displays a message box with the title "caption", the message "message", and |
||
3444 | an icon "icon" and up to 3 buttons. By default no icon is used and a single |
||
3445 | button, OK, is displayed. Only the caption and message arguments are required, |
||
3446 | though setting an icon and appropriate button(s) is strongly |
||
3447 | recommended. The message text may contain simple HTML-like markup. |
||
3448 | |||
3449 | Returns the number of the button the user pressed. Button numbers start |
||
3450 | at 1. |
||
3451 | |||
3452 | For the icon and the button parameters there are predefined constants available |
||
3453 | with the same names as in the Qt Documentation. These are the BUTTON_* and |
||
3454 | ICON_* constants defined in the module. There are also two extra constants that |
||
3455 | can be binary-ORed with button constants: |
||
3456 | BUTTONOPT_DEFAULT Pressing enter presses this button. |
||
3457 | BUTTONOPT_ESCAPE Pressing escape presses this button. |
||
3458 | |||
3459 | Usage examples: |
||
12918 | cbradney | 3460 | result = messageBox('Script failed', |
3461 | 'This script only works when you have a text frame selected.', |
||
2147 | cbradney | 3462 | ICON_ERROR) |
12918 | cbradney | 3463 | result = messageBox('Monkeys!', 'Something went ook! <i>Was it a monkey?</i>', |
2147 | cbradney | 3464 | ICON_WARNING, BUTTON_YES|BUTTONOPT_DEFAULT, |
3465 | BUTTON_NO, BUTTON_IGNORE|BUTTONOPT_ESCAPE) |
||
3466 | |||
3467 | Defined button and icon constants: |
||
3468 | BUTTON_NONE, BUTTON_ABORT, BUTTON_CANCEL, BUTTON_IGNORE, BUTTON_NO, |
||
3469 | BUTTON_NOALL, BUTTON_OK, BUTTON_RETRY, BUTTON_YES, BUTTON_YESALL, |
||
3470 | ICON_NONE, ICON_INFORMATION, ICON_WARNING, ICON_CRITICAL.</translation> |
||
1135 | cbradney | 3471 | </message> |
3472 | <message> |
||
12918 | cbradney | 3473 | <location filename="" line="0"/> |
3474 | <source>valueDialog(caption, message [,defaultvalue]) -> string |
||
1135 | cbradney | 3475 | |
12918 | cbradney | 3476 | Shows the common 'Ask for string' dialog and returns its value as a string |
3477 | Parameters: window title, text in the window and optional 'default' value. |
||
1135 | cbradney | 3478 | |
12918 | cbradney | 3479 | Example: valueDialog('title', 'text in the window', 'optional') |
1135 | cbradney | 3480 | </source> |
12918 | cbradney | 3481 | <translation type="obsolete">valueDialog(caption, message [,defaultvalue]) -> string |
1135 | cbradney | 3482 | |
3483 | Näyttää yleisen "Kysy string"-dialogin ja palauttaa sen arvon. Parametrit: ikkunan |
||
3484 | otsikko, ikkunan teksti ja oletusarvo</translation> |
||
3485 | </message> |
||
3486 | <message> |
||
12918 | cbradney | 3487 | <location filename="" line="0"/> |
3488 | <source>closeDoc() |
||
1135 | cbradney | 3489 | |
3490 | Closes the current document without prompting to save. |
||
3491 | |||
3492 | May throw NoDocOpenError if there is no document to close |
||
3493 | </source> |
||
12918 | cbradney | 3494 | <translation type="obsolete">closeDoc() |
1135 | cbradney | 3495 | |
3496 | Sulkee aktiivisen asiakirjan, ilman tallennusdialogia. |
||
3497 | |||
3498 | Saattaa heittää NoDocOpenError, jos suljettavia asiakirjoja ei ole</translation> |
||
3499 | </message> |
||
3500 | <message> |
||
12918 | cbradney | 3501 | <location filename="" line="0"/> |
3502 | <source>haveDoc() -> bool |
||
1135 | cbradney | 3503 | |
3504 | Returns true if there is a document open. |
||
3505 | </source> |
||
12918 | cbradney | 3506 | <translation type="obsolete">haveDoc() -> bool |
1135 | cbradney | 3507 | |
3508 | Palauttaa true, jos yksikin asiakirja on avoinna.</translation> |
||
3509 | </message> |
||
3510 | <message> |
||
12918 | cbradney | 3511 | <location filename="" line="0"/> |
3512 | <source>openDoc("name") |
||
1135 | cbradney | 3513 | |
3514 | Opens the document "name". |
||
3515 | |||
3516 | May raise ScribusError if the document could not be opened. |
||
3517 | </source> |
||
12918 | cbradney | 3518 | <translation type="obsolete">openDoc("name") |
1135 | cbradney | 3519 | |
3520 | Avaa asiakirjan "name". |
||
3521 | |||
3522 | Saattaa aiheuttaa ScribusErrorin, jos asiakirjaa ei voida avata.</translation> |
||
3523 | </message> |
||
3524 | <message> |
||
12918 | cbradney | 3525 | <location filename="" line="0"/> |
3526 | <source>saveDoc() |
||
1135 | cbradney | 3527 | |
3528 | Saves the current document with its current name, returns true if successful. |
||
3529 | If the document has not already been saved, this may bring up an interactive |
||
3530 | save file dialog. |
||
3531 | |||
3532 | If the save fails, there is currently no way to tell. |
||
3533 | </source> |
||
12918 | cbradney | 3534 | <translation type="obsolete">saveDoc() |
1135 | cbradney | 3535 | |
3536 | Tallennusdialogi. Tallennuksen epäonnistumista ei voi tällä hetkellä päätellä mistään.</translation> |
||
3537 | </message> |
||
3538 | <message> |
||
12918 | cbradney | 3539 | <location filename="" line="0"/> |
3540 | <source>saveDocAs("name") |
||
1135 | cbradney | 3541 | |
3542 | Saves the current document under the new name "name" (which may be a full or |
||
3543 | relative path). |
||
3544 | |||
3545 | May raise ScribusError if the save fails. |
||
3546 | </source> |
||
12918 | cbradney | 3547 | <translation type="obsolete">saveDocAs("name") |
1135 | cbradney | 3548 | |
3549 | Tallentaa aktiivisen asiakirjan nimellä "nimi", joka voi olla täydellinen tai suhteellinen polku. |
||
3550 | |||
3551 | Saattaa aiheuttaa ScribusError:n, jos tallennus epäonnistuu.</translation> |
||
3552 | </message> |
||
3553 | <message> |
||
12918 | cbradney | 3554 | <location filename="" line="0"/> |
3555 | <source>setUnit(type) |
||
1135 | cbradney | 3556 | |
3557 | Changes the measurement unit of the document. Possible values for "unit" are |
||
12918 | cbradney | 3558 | defined as constants UNIT_<type>. |
1135 | cbradney | 3559 | |
3560 | May raise ValueError if an invalid unit is passed. |
||
3561 | </source> |
||
12918 | cbradney | 3562 | <translation type="obsolete">setUnit(type) |
1135 | cbradney | 3563 | |
12918 | cbradney | 3564 | Vaihtaa asiakirjan mittayksikköä. Mahdolliset yksiköt on määritelty vakiona UNIT_<type>. |
1135 | cbradney | 3565 | |
3566 | Saattaa aiheuttaa ValueError:n, jos käytetään virheellistä yksikköä.</translation> |
||
3567 | </message> |
||
3568 | <message> |
||
12918 | cbradney | 3569 | <location filename="" line="0"/> |
3570 | <source>getUnit() -> integer (Scribus unit constant) |
||
1135 | cbradney | 3571 | |
3572 | Returns the measurement units of the document. The returned value will be one |
||
3573 | of the UNIT_* constants: |
||
3574 | UNIT_INCHES, UNIT_MILLIMETERS, UNIT_PICAS, UNIT_POINTS. |
||
3575 | </source> |
||
12918 | cbradney | 3576 | <translation type="obsolete">getUnit() -> integer (Scribus unit constant) |
1135 | cbradney | 3577 | |
3578 | Palauttaa asiakirjan mittayksikön. Arvo on yksi UNIT_* vakioista. |
||
3579 | UNIT_INCHES, UNIT_MILLIMETERS, UNIT_PICAS, UNIT_POINTS. |
||
3580 | </translation> |
||
3581 | </message> |
||
3582 | <message> |
||
12918 | cbradney | 3583 | <location filename="" line="0"/> |
3584 | <source>loadStylesFromFile("filename") |
||
1135 | cbradney | 3585 | |
3586 | Loads paragraph styles from the Scribus document at "filename" into the |
||
3587 | current document. |
||
3588 | </source> |
||
12918 | cbradney | 3589 | <translation type="obsolete">loadStylesFromFile("filename") |
1135 | cbradney | 3590 | |
3591 | Lataa kappaletyylit Scribus-asiakirjasta "filename" aktiiviseen asiakirjaan.</translation> |
||
3592 | </message> |
||
3593 | <message> |
||
12918 | cbradney | 3594 | <location filename="" line="0"/> |
3595 | <source>setDocType(facingPages, firstPageLeft) |
||
1135 | cbradney | 3596 | |
3597 | Sets the document type. To get facing pages set the first parameter to |
||
3598 | FACINGPAGES, to switch facingPages off use NOFACINGPAGES instead. If you want |
||
3599 | to be the first page a left side set the second parameter to FIRSTPAGELEFT, for |
||
3600 | a right page use FIRSTPAGERIGHT. |
||
3601 | </source> |
||
12918 | cbradney | 3602 | <translation type="obsolete">setDocType(facingPages, firstPageLeft) |
2147 | cbradney | 3603 | |
3604 | Sets the document type. To get facing pages set the first parameter to |
||
3605 | FACINGPAGES, to switch facingPages off use NOFACINGPAGES instead. If you want |
||
3606 | to be the first page a left side set the second parameter to FIRSTPAGELEFT, for |
||
3607 | a right page use FIRSTPAGERIGHT. |
||
1135 | cbradney | 3608 | |
3609 | </translation> |
||
3610 | </message> |
||
3611 | <message> |
||
12918 | cbradney | 3612 | <location filename="" line="0"/> |
3613 | <source>getLineColor(["name"]) -> string |
||
1135 | cbradney | 3614 | |
3615 | Returns the name of the line color of the object "name". |
||
3616 | If "name" is not given the currently selected item is used. |
||
3617 | </source> |
||
12918 | cbradney | 3618 | <translation type="obsolete">getLineColor(["name"]) -> string |
1135 | cbradney | 3619 | |
3620 | Palauttaa kohteen "name" viivan värin. Ilman "name":a palauttaa |
||
3621 | valittuna olevan kohteen kehyksen värin.</translation> |
||
3622 | </message> |
||
3623 | <message> |
||
12918 | cbradney | 3624 | <location filename="" line="0"/> |
3625 | <source>getLineWidth(["name"]) -> integer |
||
1135 | cbradney | 3626 | |
3627 | Returns the line width of the object "name". If "name" |
||
3628 | is not given the currently selected Item is used. |
||
3629 | </source> |
||
12918 | cbradney | 3630 | <translation type="obsolete">getLineWidth(["name"]) -> integer |
1135 | cbradney | 3631 | |
3632 | Palauttaa kohteen "name" viivan leveyden. Jos "name":a |
||
3633 | ei anneta käytetään valittuna olevaa kohdetta.</translation> |
||
3634 | </message> |
||
3635 | <message> |
||
12918 | cbradney | 3636 | <location filename="" line="0"/> |
3637 | <source>getLineShade(["name"]) -> integer |
||
1135 | cbradney | 3638 | |
3639 | Returns the shading value of the line color of the object "name". |
||
3640 | If "name" is not given the currently selected item is used. |
||
3641 | </source> |
||
12918 | cbradney | 3642 | <translation type="obsolete">getLineShade(["name"]) -> integer |
1135 | cbradney | 3643 | |
3644 | Palauttaa kohteen "name" viivan värin sävyn. Jos "name":a ei |
||
3645 | anneta käytetään valittuna olevaa kohdetta.</translation> |
||
3646 | </message> |
||
3647 | <message> |
||
12918 | cbradney | 3648 | <location filename="" line="0"/> |
3649 | <source>getLineEnd(["name"]) -> integer (see constants) |
||
1135 | cbradney | 3650 | |
3651 | Returns the line cap style of the object "name". If "name" is not given the |
||
3652 | currently selected item is used. The cap types are: |
||
3653 | CAP_FLAT, CAP_ROUND, CAP_SQUARE |
||
3654 | </source> |
||
12918 | cbradney | 3655 | <translation type="obsolete">getLineEnd(["name"]) -> integer (see constants) |
2147 | cbradney | 3656 | |
3657 | Returns the line cap style of the object "name". If "name" is not given the |
||
3658 | currently selected item is used. The cap types are: |
||
3659 | CAP_FLAT, CAP_ROUND, CAP_SQUARE </translation> |
||
1135 | cbradney | 3660 | </message> |
3661 | <message> |
||
12918 | cbradney | 3662 | <location filename="" line="0"/> |
3663 | <source>getLineStyle(["name"]) -> integer (see constants) |
||
1135 | cbradney | 3664 | |
3665 | Returns the line style of the object "name". If "name" is not given the |
||
3666 | currently selected item is used. Line style constants are: |
||
3667 | LINE_DASH, LINE_DASHDOT, LINE_DASHDOTDOT, LINE_DOT, LINE_SOLID |
||
3668 | </source> |
||
12918 | cbradney | 3669 | <translation type="obsolete">getLineStyle(["name"]) -> integer (see constants) |
2147 | cbradney | 3670 | |
3671 | Returns the line style of the object "name". If "name" is not given the |
||
3672 | currently selected item is used. Line style constants are: |
||
3673 | LINE_DASH, LINE_DASHDOT, LINE_DASHDOTDOT, LINE_DOT, LINE_SOLID |
||
1135 | cbradney | 3674 | </translation> |
3675 | </message> |
||
3676 | <message> |
||
12918 | cbradney | 3677 | <location filename="" line="0"/> |
3678 | <source>getFillShade(["name"]) -> integer |
||
1135 | cbradney | 3679 | |
3680 | Returns the shading value of the fill color of the object "name". |
||
3681 | If "name" is not given the currently selected item is used. |
||
3682 | </source> |
||
12918 | cbradney | 3683 | <translation type="obsolete">getFillShade(["name"]) -> integer |
2147 | cbradney | 3684 | |
3685 | Returns the shading value of the fill color of the object "name". |
||
3686 | If "name" is not given the currently selected item is used. |
||
1135 | cbradney | 3687 | </translation> |
3688 | </message> |
||
3689 | <message> |
||
12918 | cbradney | 3690 | <location filename="" line="0"/> |
3691 | <source>getImageScale(["name"]) -> (x,y) |
||
1135 | cbradney | 3692 | |
3693 | Returns a (x, y) tuple containing the scaling values of the image frame |
||
3694 | "name". If "name" is not given the currently selected item is used. |
||
3695 | </source> |
||
12918 | cbradney | 3696 | <translation type="obsolete">getImageScale(["name"]) -> (x,y) |
2147 | cbradney | 3697 | |
3698 | Returns a (x, y) tuple containing the scaling values of the image frame |
||
3699 | "name". If "name" is not given the currently selected item is used. |
||
1135 | cbradney | 3700 | </translation> |
3701 | </message> |
||
3702 | <message> |
||
12918 | cbradney | 3703 | <location filename="" line="0"/> |
3704 | <source>getImageName(["name"]) -> string |
||
1135 | cbradney | 3705 | |
3706 | Returns the filename for the image in the image frame. If "name" is not |
||
3707 | given the currently selected item is used. |
||
3708 | </source> |
||
12918 | cbradney | 3709 | <translation type="obsolete">getImageName(["name"]) -> string |
2147 | cbradney | 3710 | |
3711 | Returns the filename for the image in the image frame. If "name" is not |
||
3712 | given the currently selected item is used. |
||
1135 | cbradney | 3713 | </translation> |
3714 | </message> |
||
3715 | <message> |
||
12918 | cbradney | 3716 | <location filename="" line="0"/> |
3717 | <source>getSize(["name"]) -> (width,height) |
||
1135 | cbradney | 3718 | |
3719 | Returns a (width, height) tuple with the size of the object "name". |
||
3720 | If "name" is not given the currently selected item is used. The size is |
||
12918 | cbradney | 3721 | expressed in the current measurement unit of the document - see UNIT_<type> |
1135 | cbradney | 3722 | for reference. |
3723 | </source> |
||
12918 | cbradney | 3724 | <translation type="obsolete">getSize(["name"]) -> (width,height) |
2147 | cbradney | 3725 | |
3726 | Returns a (width, height) tuple with the size of the object "name". |
||
3727 | If "name" is not given the currently selected item is used. The size is |
||
12918 | cbradney | 3728 | expressed in the current measurement unit of the document - see UNIT_<type> |
2147 | cbradney | 3729 | for reference. |
1135 | cbradney | 3730 | </translation> |
3731 | </message> |
||
3732 | <message> |
||
12918 | cbradney | 3733 | <location filename="" line="0"/> |
3734 | <source>getRotation(["name"]) -> integer |
||
1135 | cbradney | 3735 | |
3736 | Returns the rotation of the object "name". The value is expressed in degrees, |
||
3737 | and clockwise is positive. If "name" is not given the currently selected item |
||
3738 | is used. |
||
3739 | </source> |
||
12918 | cbradney | 3740 | <translation type="obsolete">getRotation(["name"]) -> integer |
1135 | cbradney | 3741 | |
2147 | cbradney | 3742 | Returns the rotation of the object "name". The value is expressed in degrees, |
3743 | and clockwise is positive. If "name" is not given the currently selected item |
||
3744 | is used.</translation> |
||
1135 | cbradney | 3745 | </message> |
3746 | <message> |
||
12918 | cbradney | 3747 | <location filename="" line="0"/> |
3748 | <source>getAllObjects() -> list |
||
1135 | cbradney | 3749 | |
3750 | Returns a list containing the names of all objects on the current page. |
||
3751 | </source> |
||
12918 | cbradney | 3752 | <translation type="obsolete">getAllObjects() -> list |
1135 | cbradney | 3753 | |
2147 | cbradney | 3754 | Returns a list containing the names of all objects on the current page.</translation> |
1135 | cbradney | 3755 | </message> |
3756 | <message> |
||
12918 | cbradney | 3757 | <location filename="" line="0"/> |
3758 | <source>moveObjectAbs(x, y [, "name"]) |
||
1135 | cbradney | 3759 | |
3760 | Moves the object "name" to a new location. The coordinates are expressed in |
||
3761 | the current measurement unit of the document (see UNIT constants). If "name" |
||
3762 | is not given the currently selected item is used. If the object "name" |
||
3763 | belongs to a group, the whole group is moved. |
||
3764 | </source> |
||
12918 | cbradney | 3765 | <translation type="obsolete">moveObjectAbs(x, y [, "name"]) |
2147 | cbradney | 3766 | |
3767 | Moves the object "name" to a new location. The coordinates are expressed in |
||
3768 | the current measurement unit of the document (see UNIT constants). If "name" |
||
3769 | is not given the currently selected item is used. If the object "name" |
||
3770 | belongs to a group, the whole group is moved. |
||
1135 | cbradney | 3771 | </translation> |
3772 | </message> |
||
3773 | <message> |
||
12918 | cbradney | 3774 | <location filename="" line="0"/> |
3775 | <source>sizeObject(width, height [, "name"]) |
||
1135 | cbradney | 3776 | |
3777 | Resizes the object "name" to the given width and height. If "name" |
||
3778 | is not given the currently selected item is used. |
||
3779 | </source> |
||
12918 | cbradney | 3780 | <translation type="obsolete">sizeObject(width, height [, "name"]) |
2147 | cbradney | 3781 | |
3782 | Resizes the object "name" to the given width and height. If "name" |
||
3783 | is not given the currently selected item is used. |
||
1135 | cbradney | 3784 | </translation> |
3785 | </message> |
||
3786 | <message> |
||
12918 | cbradney | 3787 | <location filename="" line="0"/> |
3788 | <source>getSelectedObject([nr]) -> string |
||
1135 | cbradney | 3789 | |
3790 | Returns the name of the selected object. "nr" if given indicates the number |
||
3791 | of the selected object, e.g. 0 means the first selected object, 1 means the |
||
3792 | second selected Object and so on. |
||
3793 | </source> |
||
12918 | cbradney | 3794 | <translation type="obsolete">getSelectedObject([nr]) -> string |
2147 | cbradney | 3795 | |
3796 | Returns the name of the selected object. "nr" if given indicates the number |
||
3797 | of the selected object, e.g. 0 means the first selected object, 1 means the |
||
3798 | second selected Object and so on. |
||
1135 | cbradney | 3799 | </translation> |
3800 | </message> |
||
3801 | <message> |
||
12918 | cbradney | 3802 | <location filename="" line="0"/> |
3803 | <source>selectionCount() -> integer |
||
1135 | cbradney | 3804 | |
3805 | Returns the number of selected objects. |
||
3806 | </source> |
||
12918 | cbradney | 3807 | <translation type="obsolete">selectionCount() -> integer |
2147 | cbradney | 3808 | |
3809 | Returns the number of selected objects. |
||
1135 | cbradney | 3810 | </translation> |
3811 | </message> |
||
3812 | <message> |
||
12918 | cbradney | 3813 | <location filename="" line="0"/> |
3814 | <source>selectObject("name") |
||
1135 | cbradney | 3815 | |
3816 | Selects the object with the given "name". |
||
3817 | </source> |
||
12918 | cbradney | 3818 | <translation type="obsolete">selectObject("name") |
2147 | cbradney | 3819 | |
3820 | Selects the object with the given "name". |
||
1135 | cbradney | 3821 | </translation> |
3822 | </message> |
||
3823 | <message> |
||
12918 | cbradney | 3824 | <location filename="" line="0"/> |
3825 | <source>deselectAll() |
||
1135 | cbradney | 3826 | |
3827 | Deselects all objects in the whole document. |
||
3828 | </source> |
||
12918 | cbradney | 3829 | <translation type="obsolete">deselectAll() |
2147 | cbradney | 3830 | |
3831 | Deselects all objects in the whole document. |
||
1135 | cbradney | 3832 | </translation> |
3833 | </message> |
||
3834 | <message> |
||
12918 | cbradney | 3835 | <location filename="" line="0"/> |
3836 | <source>groupObjects(list) |
||
1135 | cbradney | 3837 | |
3838 | Groups the objects named in "list" together. "list" must contain the names |
||
3839 | of the objects to be grouped. If "list" is not given the currently selected |
||
3840 | items are used. |
||
3841 | </source> |
||
12918 | cbradney | 3842 | <translation type="obsolete">groupObjects(list) |
2147 | cbradney | 3843 | |
3844 | Groups the objects named in "list" together. "list" must contain the names |
||
3845 | of the objects to be grouped. If "list" is not given the currently selected |
||
3846 | items are used. |
||
1135 | cbradney | 3847 | </translation> |
3848 | </message> |
||
3849 | <message> |
||
12918 | cbradney | 3850 | <location filename="" line="0"/> |
3851 | <source>unGroupObjects("name") |
||
1135 | cbradney | 3852 | |
3853 | Destructs the group the object "name" belongs to.If "name" is not given the currently selected item is used.</source> |
||
12918 | cbradney | 3854 | <translation type="obsolete">unGroupObjects("name") |
2147 | cbradney | 3855 | |
3856 | Destructs the group the object "name" belongs to.If "name" is not given the currently selected item is used. |
||
1135 | cbradney | 3857 | </translation> |
3858 | </message> |
||
3859 | <message> |
||
12918 | cbradney | 3860 | <location filename="" line="0"/> |
3861 | <source>scaleGroup(factor [,"name"]) |
||
1135 | cbradney | 3862 | |
3863 | Scales the group the object "name" belongs to. Values greater than 1 enlarge |
||
3864 | the group, values smaller than 1 make the group smaller e.g a value of 0.5 |
||
3865 | scales the group to 50 % of its original size, a value of 1.5 scales the group |
||
3866 | to 150 % of its original size. The value for "factor" must be greater than |
||
3867 | 0. If "name" is not given the currently selected item is used. |
||
3868 | |||
3869 | May raise ValueError if an invalid scale factor is passed. |
||
3870 | </source> |
||
12918 | cbradney | 3871 | <translation type="obsolete">scaleGroup(factor [,"name"]) |
2147 | cbradney | 3872 | |
3873 | Scales the group the object "name" belongs to. Values greater than 1 enlarge |
||
3874 | the group, values smaller than 1 make the group smaller e.g a value of 0.5 |
||
3875 | scales the group to 50 % of its original size, a value of 1.5 scales the group |
||
3876 | to 150 % of its original size. The value for "factor" must be greater than |
||
3877 | 0. If "name" is not given the currently selected item is used. |
||
3878 | |||
3879 | May raise ValueError if an invalid scale factor is passed. |
||
1135 | cbradney | 3880 | </translation> |
3881 | </message> |
||
3882 | <message> |
||
12918 | cbradney | 3883 | <location filename="" line="0"/> |
3884 | <source>loadImage("filename" [, "name"]) |
||
1135 | cbradney | 3885 | |
3886 | Loads the picture "picture" into the image frame "name". If "name" is |
||
3887 | not given the currently selected item is used. |
||
3888 | |||
3889 | May raise WrongFrameTypeError if the target frame is not an image frame |
||
3890 | </source> |
||
12918 | cbradney | 3891 | <translation type="obsolete">loadImage("filename" [, "name"]) |
2147 | cbradney | 3892 | |
3893 | Loads the picture "picture" into the image frame "name". If "name" is |
||
3894 | not given the currently selected item is used. |
||
3895 | |||
3896 | May raise WrongFrameTypeError if the target frame is not an image frame |
||
1135 | cbradney | 3897 | </translation> |
3898 | </message> |
||
3899 | <message> |
||
12918 | cbradney | 3900 | <location filename="" line="0"/> |
3901 | <source>scaleImage(x, y [, "name"]) |
||
1135 | cbradney | 3902 | |
3903 | Sets the scaling factors of the picture in the image frame "name". |
||
3904 | If "name" is not given the currently selected item is used. A number of 1 |
||
3905 | means 100 %. |
||
3906 | |||
3907 | May raise WrongFrameTypeError if the target frame is not an image frame |
||
3908 | </source> |
||
12918 | cbradney | 3909 | <translation type="obsolete">scaleImage(x, y [, "name"]) |
2147 | cbradney | 3910 | |
3911 | Sets the scaling factors of the picture in the image frame "name". |
||
3912 | If "name" is not given the currently selected item is used. A number of 1 |
||
3913 | means 100 %. |
||
3914 | |||
3915 | May raise WrongFrameTypeError if the target frame is not an image frame |
||
1135 | cbradney | 3916 | </translation> |
3917 | </message> |
||
3918 | <message> |
||
12918 | cbradney | 3919 | <location filename="" line="0"/> |
3920 | <source>lockObject(["name"]) -> bool |
||
1135 | cbradney | 3921 | |
12918 | cbradney | 3922 | Locks the object "name" if it's unlocked or unlock it if it's locked. |
1135 | cbradney | 3923 | If "name" is not given the currently selected item is used. Returns true |
3924 | if locked. |
||
3925 | </source> |
||
12918 | cbradney | 3926 | <translation type="obsolete">lockObject(["name"]) -> bool |
2147 | cbradney | 3927 | |
12918 | cbradney | 3928 | Locks the object "name" if it's unlocked or unlock it if it's locked. |
2147 | cbradney | 3929 | If "name" is not given the currently selected item is used. Returns true |
3930 | if locked. |
||
1135 | cbradney | 3931 | </translation> |
3932 | </message> |
||
3933 | <message> |
||
12918 | cbradney | 3934 | <location filename="" line="0"/> |
3935 | <source>isLocked(["name"]) -> bool |
||
1135 | cbradney | 3936 | |
3937 | Returns true if is the object "name" locked. If "name" is not given the |
||
3938 | currently selected item is used. |
||
3939 | </source> |
||
12918 | cbradney | 3940 | <translation type="obsolete">isLocked(["name"]) -> bool |
2147 | cbradney | 3941 | |
3942 | Returns true if is the object "name" locked. If "name" is not given the |
||
3943 | currently selected item is used. |
||
1135 | cbradney | 3944 | </translation> |
3945 | </message> |
||
3946 | <message> |
||
12918 | cbradney | 3947 | <location filename="" line="0"/> |
3948 | <source>getFontNames() -> list |
||
1135 | cbradney | 3949 | |
3950 | Returns a list with the names of all available fonts. |
||
3951 | </source> |
||
12918 | cbradney | 3952 | <translation type="obsolete">getFontNames() -> list |
2147 | cbradney | 3953 | |
3954 | Returns a list with the names of all available fonts. |
||
1135 | cbradney | 3955 | </translation> |
3956 | </message> |
||
3957 | <message> |
||
12918 | cbradney | 3958 | <location filename="" line="0"/> |
3959 | <source>getXFontNames() -> list of tuples |
||
1135 | cbradney | 3960 | |
12918 | cbradney | 3961 | Returns a larger font info. It's a list of the tuples with: |
1135 | cbradney | 3962 | [ (Scribus name, Family, Real name, subset (1|0), embed PS (1|0), font file), (...), ... ] |
3963 | </source> |
||
12918 | cbradney | 3964 | <translation type="obsolete">getXFontNames() -> list of tuples |
2147 | cbradney | 3965 | |
12918 | cbradney | 3966 | Returns a larger font info. It's a list of the tuples with: |
2147 | cbradney | 3967 | [ (Scribus name, Family, Real name, subset (1|0), embed PS (1|0), font file), (...), ... ] |
1135 | cbradney | 3968 | </translation> |
3969 | </message> |
||
3970 | <message> |
||
12918 | cbradney | 3971 | <location filename="" line="0"/> |
3972 | <source>getLayers() -> list |
||
1135 | cbradney | 3973 | |
3974 | Returns a list with the names of all defined layers. |
||
3975 | </source> |
||
12918 | cbradney | 3976 | <translation type="obsolete">getLayers() -> list |
1135 | cbradney | 3977 | |
2147 | cbradney | 3978 | |
3979 | Returns a list with the names of all defined layers. </translation> |
||
1135 | cbradney | 3980 | </message> |
3981 | <message> |
||
12918 | cbradney | 3982 | <location filename="" line="0"/> |
3983 | <source>setActiveLayer("name") |
||
1135 | cbradney | 3984 | |
3985 | Sets the active layer to the layer named "name". |
||
3986 | |||
12918 | cbradney | 3987 | May raise NotFoundError if the layer can't be found. |
3988 | May raise ValueError if the layer name isn't acceptable. |
||
1135 | cbradney | 3989 | </source> |
12918 | cbradney | 3990 | <translation type="obsolete">setActiveLayer("name") |
2147 | cbradney | 3991 | |
3992 | Sets the active layer to the layer named "name". |
||
3993 | |||
12918 | cbradney | 3994 | May raise NotFoundError if the layer can't be found. |
3995 | May raise ValueError if the layer name isn't acceptable. |
||
1135 | cbradney | 3996 | </translation> |
3997 | </message> |
||
3998 | <message> |
||
12918 | cbradney | 3999 | <location filename="" line="0"/> |
4000 | <source>getActiveLayer() -> string |
||
1135 | cbradney | 4001 | |
4002 | Returns the name of the current active layer. |
||
4003 | </source> |
||
12918 | cbradney | 4004 | <translation type="obsolete">getActiveLayer() -> string |
2147 | cbradney | 4005 | |
4006 | Returns the name of the current active layer. |
||
1135 | cbradney | 4007 | </translation> |
4008 | </message> |
||
4009 | <message> |
||
12918 | cbradney | 4010 | <location filename="" line="0"/> |
4011 | <source>sentToLayer("layer" [, "name"]) |
||
1135 | cbradney | 4012 | |
4013 | Sends the object "name" to the layer "layer". The layer must exist. |
||
4014 | If "name" is not given the currently selected item is used. |
||
4015 | |||
12918 | cbradney | 4016 | May raise NotFoundError if the layer can't be found. |
4017 | May raise ValueError if the layer name isn't acceptable. |
||
1135 | cbradney | 4018 | </source> |
12918 | cbradney | 4019 | <translation type="obsolete">sentToLayer("layer" [, "name"]) |
2147 | cbradney | 4020 | |
4021 | Sends the object "name" to the layer "layer". The layer must exist. |
||
4022 | If "name" is not given the currently selected item is used. |
||
4023 | |||
12918 | cbradney | 4024 | May raise NotFoundError if the layer can't be found. |
4025 | May raise ValueError if the layer name isn't acceptable. |
||
1135 | cbradney | 4026 | </translation> |
4027 | </message> |
||
4028 | <message> |
||
12918 | cbradney | 4029 | <location filename="" line="0"/> |
4030 | <source>setLayerVisible("layer", visible) |
||
1135 | cbradney | 4031 | |
4032 | Sets the layer "layer" to be visible or not. If is the visible set to false |
||
4033 | the layer is invisible. |
||
4034 | |||
12918 | cbradney | 4035 | May raise NotFoundError if the layer can't be found. |
4036 | May raise ValueError if the layer name isn't acceptable. |
||
1135 | cbradney | 4037 | </source> |
12918 | cbradney | 4038 | <translation type="obsolete">setLayerVisible("layer", visible) |
2147 | cbradney | 4039 | |
4040 | Sets the layer "layer" to be visible or not. If is the visible set to false |
||
4041 | the layer is invisible. |
||
4042 | |||
12918 | cbradney | 4043 | May raise NotFoundError if the layer can't be found. |
4044 | May raise ValueError if the layer name isn't acceptable. |
||
1135 | cbradney | 4045 | </translation> |
4046 | </message> |
||
4047 | <message> |
||
12918 | cbradney | 4048 | <location filename="" line="0"/> |
4049 | <source>deleteLayer("layer") |
||
1135 | cbradney | 4050 | |
12918 | cbradney | 4051 | Deletes the layer with the name "layer". Nothing happens if the layer doesn't |
4052 | exists or if it's the only layer in the document. |
||
1135 | cbradney | 4053 | |
12918 | cbradney | 4054 | May raise NotFoundError if the layer can't be found. |
4055 | May raise ValueError if the layer name isn't acceptable. |
||
1135 | cbradney | 4056 | </source> |
12918 | cbradney | 4057 | <translation type="obsolete">deleteLayer("layer") |
1135 | cbradney | 4058 | |
2147 | cbradney | 4059 | |
12918 | cbradney | 4060 | Deletes the layer with the name "layer". Nothing happens if the layer doesn't |
4061 | exists or if it's the only layer in the document. |
||
2147 | cbradney | 4062 | |
12918 | cbradney | 4063 | May raise NotFoundError if the layer can't be found. |
4064 | May raise ValueError if the layer name isn't acceptable. </translation> |
||
1135 | cbradney | 4065 | </message> |
4066 | <message> |
||
12918 | cbradney | 4067 | <location filename="" line="0"/> |
4068 | <source>createLayer(layer) |
||
1135 | cbradney | 4069 | |
4070 | Creates a new layer with the name "name". |
||
4071 | |||
12918 | cbradney | 4072 | May raise ValueError if the layer name isn't acceptable. |
1135 | cbradney | 4073 | </source> |
12918 | cbradney | 4074 | <translation type="obsolete">createLayer(layer) |
2147 | cbradney | 4075 | |
4076 | Creates a new layer with the name "name". |
||
4077 | |||
12918 | cbradney | 4078 | May raise ValueError if the layer name isn't acceptable. |
1135 | cbradney | 4079 | </translation> |
4080 | </message> |
||
4081 | <message> |
||
12918 | cbradney | 4082 | <location filename="" line="0"/> |
4083 | <source>getGuiLanguage() -> string |
||
1135 | cbradney | 4084 | |
4085 | Returns a string with the -lang value. |
||
4086 | </source> |
||
12918 | cbradney | 4087 | <translation type="obsolete">getGuiLanguage() -> string |
2147 | cbradney | 4088 | |
4089 | Returns a string with the -lang value. |
||
1135 | cbradney | 4090 | </translation> |
4091 | </message> |
||
4092 | <message> |
||
12918 | cbradney | 4093 | <location filename="" line="0"/> |
4094 | <source>createEllipse(x, y, width, height, ["name"]) -> string |
||
1135 | cbradney | 4095 | |
4096 | Creates a new ellipse on the current page and returns its name. |
||
4097 | The coordinates are given in the current measurement units of the document |
||
4098 | (see UNIT constants). "name" should be a unique identifier for the object |
||
4099 | because you need this name for further referencing of that object. If "name" |
||
4100 | is not given Scribus will create one for you. |
||
4101 | |||
12918 | cbradney | 4102 | May raise NameExistsError if you explicitly pass a name that's already used. |
1135 | cbradney | 4103 | </source> |
12918 | cbradney | 4104 | <translation type="obsolete">createEllipse(x, y, width, height, ["name"]) -> string |
2147 | cbradney | 4105 | |
4106 | Creates a new ellipse on the current page and returns its name. |
||
4107 | The coordinates are given in the current measurement units of the document |
||
4108 | (see UNIT constants). "name" should be a unique identifier for the object |
||
4109 | because you need this name for further referencing of that object. If "name" |
||
4110 | is not given Scribus will create one for you. |
||
4111 | |||
12918 | cbradney | 4112 | May raise NameExistsError if you explicitly pass a name that's already used. |
1135 | cbradney | 4113 | </translation> |
4114 | </message> |
||
4115 | <message> |
||
12918 | cbradney | 4116 | <location filename="" line="0"/> |
4117 | <source>createImage(x, y, width, height, ["name"]) -> string |
||
1135 | cbradney | 4118 | |
4119 | Creates a new picture frame on the current page and returns its name. The |
||
4120 | coordinates are given in the current measurement units of the document. |
||
4121 | "name" should be a unique identifier for the object because you need this |
||
4122 | name for further access to that object. If "name" is not given Scribus will |
||
4123 | create one for you. |
||
4124 | |||
12918 | cbradney | 4125 | May raise NameExistsError if you explicitly pass a name that's already used. |
1135 | cbradney | 4126 | </source> |
12918 | cbradney | 4127 | <translation type="obsolete">createImage(x, y, width, height, ["name"]) -> string |
2147 | cbradney | 4128 | |
4129 | Creates a new picture frame on the current page and returns its name. The |
||
4130 | coordinates are given in the current measurement units of the document. |
||
4131 | "name" should be a unique identifier for the object because you need this |
||
4132 | name for further access to that object. If "name" is not given Scribus will |
||
4133 | create one for you. |
||
4134 | |||
12918 | cbradney | 4135 | May raise NameExistsError if you explicitly pass a name that's already used. |
1135 | cbradney | 4136 | </translation> |
4137 | </message> |
||
4138 | <message> |
||
12918 | cbradney | 4139 | <location filename="" line="0"/> |
4140 | <source>createText(x, y, width, height, ["name"]) -> string |
||
1135 | cbradney | 4141 | |
4142 | Creates a new text frame on the actual page and returns its name. |
||
4143 | The coordinates are given in the actual measurement unit of the document (see |
||
4144 | UNIT constants). "name" should be a unique identifier for the object because |
||
4145 | you need this name for further referencing of that object. If "name" is not |
||
4146 | given Scribus will create one for you. |
||
4147 | |||
12918 | cbradney | 4148 | May raise NameExistsError if you explicitly pass a name that's already used. |
1135 | cbradney | 4149 | </source> |
12918 | cbradney | 4150 | <translation type="obsolete">createText(x, y, width, height, ["name"]) -> string |
2147 | cbradney | 4151 | |
4152 | Creates a new text frame on the actual page and returns its name. |
||
4153 | The coordinates are given in the actual measurement unit of the document (see |
||
4154 | UNIT constants). "name" should be a unique identifier for the object because |
||
4155 | you need this name for further referencing of that object. If "name" is not |
||
4156 | given Scribus will create one for you. |
||
4157 | |||
12918 | cbradney | 4158 | May raise NameExistsError if you explicitly pass a name that's already used. |
1135 | cbradney | 4159 | </translation> |
4160 | </message> |
||
4161 | <message> |
||
12918 | cbradney | 4162 | <location filename="" line="0"/> |
4163 | <source>createLine(x1, y1, x2, y2, ["name"]) -> string |
||
1135 | cbradney | 4164 | |
4165 | Creates a new line from the point(x1, y1) to the point(x2, y2) and returns |
||
4166 | its name. The coordinates are given in the current measurement unit of the |
||
4167 | document (see UNIT constants). "name" should be a unique identifier for the |
||
4168 | object because you need this name for further access to that object. If |
||
4169 | "name" is not given Scribus will create one for you. |
||
4170 | |||
12918 | cbradney | 4171 | May raise NameExistsError if you explicitly pass a name that's already used. |
1135 | cbradney | 4172 | </source> |
12918 | cbradney | 4173 | <translation type="obsolete">createLine(x1, y1, x2, y2, ["name"]) -> string |
2147 | cbradney | 4174 | |
4175 | Creates a new line from the point(x1, y1) to the point(x2, y2) and returns |
||
4176 | its name. The coordinates are given in the current measurement unit of the |
||
4177 | document (see UNIT constants). "name" should be a unique identifier for the |
||
4178 | object because you need this name for further access to that object. If |
||
4179 | "name" is not given Scribus will create one for you. |
||
4180 | |||
12918 | cbradney | 4181 | May raise NameExistsError if you explicitly pass a name that's already used. |
1135 | cbradney | 4182 | </translation> |
4183 | </message> |
||
4184 | <message> |
||
12918 | cbradney | 4185 | <location filename="" line="0"/> |
4186 | <source>createPolyLine(list, ["name"]) -> string |
||
1135 | cbradney | 4187 | |
4188 | Creates a new polyline and returns its name. The points for the polyline are |
||
4189 | stored in the list "list" in the following order: [x1, y1, x2, y2...xn. yn]. |
||
4190 | The coordinates are given in the current measurement units of the document (see |
||
4191 | UNIT constants). "name" should be a unique identifier for the object because |
||
4192 | you need this name for further access to that object. If "name" is not given |
||
4193 | Scribus will create one for you. |
||
4194 | |||
12918 | cbradney | 4195 | May raise NameExistsError if you explicitly pass a name that's already used. |
1135 | cbradney | 4196 | May raise ValueError if an insufficient number of points is passed or if |
12918 | cbradney | 4197 | the number of values passed don't group into points without leftovers. |
1135 | cbradney | 4198 | </source> |
12918 | cbradney | 4199 | <translation type="obsolete">createPolyLine(list, ["name"]) -> string |
2147 | cbradney | 4200 | |
4201 | Creates a new polyline and returns its name. The points for the polyline are |
||
4202 | stored in the list "list" in the following order: [x1, y1, x2, y2...xn. yn]. |
||
4203 | The coordinates are given in the current measurement units of the document (see |
||
4204 | UNIT constants). "name" should be a unique identifier for the object because |
||
4205 | you need this name for further access to that object. If "name" is not given |
||
4206 | Scribus will create one for you. |
||
4207 | |||
12918 | cbradney | 4208 | May raise NameExistsError if you explicitly pass a name that's already used. |
2147 | cbradney | 4209 | May raise ValueError if an insufficient number of points is passed or if |
12918 | cbradney | 4210 | the number of values passed don't group into points without leftovers. |
1135 | cbradney | 4211 | </translation> |
4212 | </message> |
||
4213 | <message> |
||
12918 | cbradney | 4214 | <location filename="" line="0"/> |
4215 | <source>createPolygon(list, ["name"]) -> string |
||
1135 | cbradney | 4216 | |
4217 | Creates a new polygon and returns its name. The points for the polygon are |
||
4218 | stored in the list "list" in the following order: [x1, y1, x2, y2...xn. yn]. |
||
4219 | At least three points are required. There is no need to repeat the first point |
||
4220 | to close the polygon. The polygon is automatically closed by connecting the |
||
4221 | first and the last point. The coordinates are given in the current measurement |
||
4222 | units of the document (see UNIT constants). "name" should be a unique |
||
4223 | identifier for the object because you need this name for further access to that |
||
4224 | object. If "name" is not given Scribus will create one for you. |
||
4225 | |||
12918 | cbradney | 4226 | May raise NameExistsError if you explicitly pass a name that's already used. |
1135 | cbradney | 4227 | May raise ValueError if an insufficient number of points is passed or if |
12918 | cbradney | 4228 | the number of values passed don't group into points without leftovers. |
1135 | cbradney | 4229 | </source> |
12918 | cbradney | 4230 | <translation type="obsolete">createPolygon(list, ["name"]) -> string |
2147 | cbradney | 4231 | |
4232 | Creates a new polygon and returns its name. The points for the polygon are |
||
4233 | stored in the list "list" in the following order: [x1, y1, x2, y2...xn. yn]. |
||
4234 | At least three points are required. There is no need to repeat the first point |
||
4235 | to close the polygon. The polygon is automatically closed by connecting the |
||
4236 | first and the last point. The coordinates are given in the current measurement |
||
4237 | units of the document (see UNIT constants). "name" should be a unique |
||
4238 | identifier for the object because you need this name for further access to that |