Rev 14100 | Rev 14746 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 14100 | Rev 14489 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | <?xml version="1.0" encoding="utf-8"?> |
1 | <?xml version="1.0" encoding="utf-8"?> |
- | 2 | <!DOCTYPE TS> |
|
2 | <!DOCTYPE TS><TS version="1.1"> |
3 | <TS version="2.0"> |
3 | <context> |
4 | <context> |
4 | <name></name> |
5 | <name></name> |
5 | <message> |
6 | <message> |
6 | <location filename="../../scribus/plugins/scriptplugin/cmdcolor.h" line="21"/> |
7 | <location filename="../../../scribus/plugins/scriptplugin/cmdcolor.h" line="17"/> |
7 | <source>getColorNames() -> list |
8 | <source>getColorNames() -> list |
8 | 9 | ||
9 | Returns a list containing the names of all defined colors in the document. |
10 | 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 | If no document is open, returns a list of the default document colors. |
11 | </source> |
12 | </source> |
Line 14... | Line 15... | ||
14 | Returns a list containing the names of all defined colours in the document. |
15 | Returns a list containing the names of all defined colours in the document. |
15 | If no document is open, returns a list of the default document colours. |
16 | If no document is open, returns a list of the default document colours. |
16 | </translation> |
17 | </translation> |
17 | </message> |
18 | </message> |
18 | <message> |
19 | <message> |
19 | <location filename="../../scribus/plugins/scriptplugin/cmdcolor.h" line="35"/> |
20 | <location filename="../../../scribus/plugins/scriptplugin/cmdcolor.h" line="27"/> |
20 | <source>getColor("name") -> tuple |
21 | <source>getColor("name") -> tuple |
21 | 22 | ||
22 | Returns a tuple (C, M, Y, K) containing the four color components of the |
23 | Returns a tuple (C, M, Y, K) containing the four color components of the |
23 | color "name" from the current document. If no document is open, returns |
24 | color "name" from the current document. If no document is open, returns |
24 | the value of the named color from the default document colors. |
25 | the value of the named color from the default document colors. |
Line 35... | Line 36... | ||
35 | May raise NotFoundError if the named colour wasn't found. |
36 | May raise NotFoundError if the named colour wasn't found. |
36 | May raise ValueError if an invalid colour name is specified. |
37 | May raise ValueError if an invalid colour name is specified. |
37 | </translation> |
38 | </translation> |
38 | </message> |
39 | </message> |
39 | <message> |
40 | <message> |
40 | <location filename="../../scribus/plugins/scriptplugin/cmdcolor.h" line="50"/> |
41 | <location filename="../../../scribus/plugins/scriptplugin/cmdcolor.h" line="41"/> |
41 | <source>getColorAsRGB("name") -> tuple |
42 | <source>getColorAsRGB("name") -> tuple |
42 | 43 | ||
43 | Returns a tuple (R,G,B) containing the three color components of the |
44 | Returns a tuple (R,G,B) containing the three color components of the |
44 | color "name" from the current document, converted to the RGB color |
45 | color "name" from the current document, converted to the RGB color |
45 | space. If no document is open, returns the value of the named color |
46 | space. If no document is open, returns the value of the named color |
Line 58... | Line 59... | ||
58 | May raise NotFoundError if the named colour wasn't found. |
59 | May raise NotFoundError if the named colour wasn't found. |
59 | May raise ValueError if an invalid colour name is specified. |
60 | May raise ValueError if an invalid colour name is specified. |
60 | </translation> |
61 | </translation> |
61 | </message> |
62 | </message> |
62 | <message> |
63 | <message> |
63 | <location filename="../../scribus/plugins/scriptplugin/cmdcolor.h" line="64"/> |
64 | <location filename="../../../scribus/plugins/scriptplugin/cmdcolor.h" line="56"/> |
64 | <source>changeColor("name", c, m, y, k) |
65 | <source>changeColor("name", c, m, y, k) |
65 | 66 | ||
66 | Changes the color "name" to the specified CMYK value. The color value is |
67 | Changes the color "name" to the specified CMYK value. The color value is |
67 | defined via four components c = Cyan, m = Magenta, y = Yellow and k = Black. |
68 | defined via four components c = Cyan, m = Magenta, y = Yellow and k = Black. |
68 | Color components should be in the range from 0 to 255. |
69 | Color components should be in the range from 0 to 255. |
Line 79... | Line 80... | ||
79 | May raise NotFoundError if the named colour wasn't found. |
80 | May raise NotFoundError if the named colour wasn't found. |
80 | May raise ValueError if an invalid colour name is specified. |
81 | May raise ValueError if an invalid colour name is specified. |
81 | </translation> |
82 | </translation> |
82 | </message> |
83 | </message> |
83 | <message> |
84 | <message> |
84 | <location filename="../../scribus/plugins/scriptplugin/cmdcolor.h" line="77"/> |
85 | <location filename="../../../scribus/plugins/scriptplugin/cmdcolor.h" line="70"/> |
85 | <source>defineColor("name", c, m, y, k) |
86 | <source>defineColor("name", c, m, y, k) |
86 | 87 | ||
87 | Defines a new color "name". The color Value is defined via four components: |
88 | Defines a new color "name". The color Value is defined via four components: |
88 | c = Cyan, m = Magenta, y = Yellow and k = Black. Color components should be in |
89 | c = Cyan, m = Magenta, y = Yellow and k = Black. Color components should be in |
89 | the range from 0 to 255. |
90 | the range from 0 to 255. |
Line 91... | Line 92... | ||
91 | May raise ValueError if an invalid color name is specified. |
92 | May raise ValueError if an invalid color name is specified. |
92 | </source> |
93 | </source> |
93 | <translation type="unfinished"></translation> |
94 | <translation type="unfinished"></translation> |
94 | </message> |
95 | </message> |
95 | <message> |
96 | <message> |
96 | <location filename="../../scribus/plugins/scriptplugin/cmdcolor.h" line="94"/> |
97 | <location filename="../../../scribus/plugins/scriptplugin/cmdcolor.h" line="83"/> |
97 | <source>deleteColor("name", "replace") |
98 | <source>deleteColor("name", "replace") |
98 | 99 | ||
99 | Deletes the color "name". Every occurence of that color is replaced by the |
100 | Deletes the color "name". Every occurence of that color is replaced by the |
100 | color "replace". If not specified, "replace" defaults to the color |
101 | color "replace". If not specified, "replace" defaults to the color |
101 | "None" - transparent. |
102 | "None" - transparent. |
Line 118... | Line 119... | ||
118 | May raise NotFoundError if a named colour wasn't found. |
119 | May raise NotFoundError if a named colour wasn't found. |
119 | May raise ValueError if an invalid colour name is specified. |
120 | May raise ValueError if an invalid colour name is specified. |
120 | </translation> |
121 | </translation> |
121 | </message> |
122 | </message> |
122 | <message> |
123 | <message> |
123 | <location filename="../../scribus/plugins/scriptplugin/cmdcolor.h" line="106"/> |
124 | <location filename="../../../scribus/plugins/scriptplugin/cmdcolor.h" line="100"/> |
124 | <source>replaceColor("name", "replace") |
125 | <source>replaceColor("name", "replace") |
125 | 126 | ||
126 | Every occurence of the color "name" is replaced by the color "replace". |
127 | Every occurence of the color "name" is replaced by the color "replace". |
127 | 128 | ||
128 | May raise NotFoundError if a named color wasn't found. |
129 | May raise NotFoundError if a named color wasn't found. |
Line 135... | Line 136... | ||
135 | May raise NotFoundError if a named colour wasn't found. |
136 | May raise NotFoundError if a named colour wasn't found. |
136 | May raise ValueError if an invalid colour name is specified. |
137 | May raise ValueError if an invalid colour name is specified. |
137 | </translation> |
138 | </translation> |
138 | </message> |
139 | </message> |
139 | <message> |
140 | <message> |
140 | <location filename="../../scribus/plugins/scriptplugin/cmddialog.h" line="22"/> |
141 | <location filename="../../../scribus/plugins/scriptplugin/cmddialog.h" line="17"/> |
141 | <source>newDocDialog() -> bool |
142 | <source>newDocDialog() -> bool |
142 | 143 | ||
143 | Displays the "New Document" dialog box. Creates a new document if the user |
144 | Displays the "New Document" dialog box. Creates a new document if the user |
144 | accepts the settings. Does not create a document if the user presses cancel. |
145 | accepts the settings. Does not create a document if the user presses cancel. |
145 | Returns true if a new document was created. |
146 | Returns true if a new document was created. |
Line 150... | Line 151... | ||
150 | accepts the settings. Does not create a document if the user presses cancel. |
151 | accepts the settings. Does not create a document if the user presses cancel. |
151 | Returns true if a new document was created. |
152 | Returns true if a new document was created. |
152 | </translation> |
153 | </translation> |
153 | </message> |
154 | </message> |
154 | <message> |
155 | <message> |
155 | <location filename="../../scribus/plugins/scriptplugin/cmddialog.h" line="46"/> |
156 | <location filename="../../../scribus/plugins/scriptplugin/cmddialog.h" line="28"/> |
156 | <source>fileDialog("caption", ["filter", "defaultname", haspreview, issave, isdir]) -> string with filename |
157 | <source>fileDialog("caption", ["filter", "defaultname", haspreview, issave, isdir]) -> string with filename |
157 | 158 | ||
158 | Shows a File Open dialog box with the caption "caption". Files are filtered |
159 | Shows a File Open dialog box with the caption "caption". Files are filtered |
159 | with the filter string "filter". A default filename or file path can also |
160 | with the filter string "filter". A default filename or file path can also |
160 | supplied, leave this string empty when you don't want to use it. A value of |
161 | supplied, leave this string empty when you don't want to use it. A value of |
Line 173... | Line 174... | ||
173 | Example: fileDialog('Save report', defaultname='report.txt', issave=True) |
174 | Example: fileDialog('Save report', defaultname='report.txt', issave=True) |
174 | </source> |
175 | </source> |
175 | <translation type="unfinished"></translation> |
176 | <translation type="unfinished"></translation> |
176 | </message> |
177 | </message> |
177 | <message> |
178 | <message> |
178 | <location filename="../../scribus/plugins/scriptplugin/cmddialog.h" line="88"/> |
179 | <location filename="../../../scribus/plugins/scriptplugin/cmddialog.h" line="56"/> |
179 | <source>messageBox("caption", "message", |
180 | <source>messageBox("caption", "message", |
180 | icon=ICON_NONE, button1=BUTTON_OK|BUTTONOPT_DEFAULT, |
181 | icon=ICON_NONE, button1=BUTTON_OK|BUTTONOPT_DEFAULT, |
181 | button2=BUTTON_NONE, button3=BUTTON_NONE) -> integer |
182 | button2=BUTTON_NONE, button3=BUTTON_NONE) -> integer |
182 | 183 | ||
183 | Displays a message box with the title "caption", the message "message", and |
184 | Displays a message box with the title "caption", the message "message", and |
Line 242... | Line 243... | ||
242 | BUTTON_NOALL, BUTTON_OK, BUTTON_RETRY, BUTTON_YES, BUTTON_YESALL, |
243 | BUTTON_NOALL, BUTTON_OK, BUTTON_RETRY, BUTTON_YES, BUTTON_YESALL, |
243 | ICON_NONE, ICON_INFORMATION, ICON_WARNING, ICON_CRITICAL. |
244 | ICON_NONE, ICON_INFORMATION, ICON_WARNING, ICON_CRITICAL. |
244 | </translation> |
245 | </translation> |
245 | </message> |
246 | </message> |
246 | <message> |
247 | <message> |
247 | <location filename="../../scribus/plugins/scriptplugin/cmddialog.h" line="101"/> |
248 | <location filename="../../../scribus/plugins/scriptplugin/cmddialog.h" line="95"/> |
248 | <source>valueDialog(caption, message [,defaultvalue]) -> string |
249 | <source>valueDialog(caption, message [,defaultvalue]) -> string |
249 | 250 | ||
250 | Shows the common 'Ask for string' dialog and returns its value as a string |
251 | Shows the common 'Ask for string' dialog and returns its value as a string |
251 | Parameters: window title, text in the window and optional 'default' value. |
252 | Parameters: window title, text in the window and optional 'default' value. |
252 | 253 | ||
Line 259... | Line 260... | ||
259 | 260 | ||
260 | Example: valueDialog('title', 'text in the window', 'optional') |
261 | Example: valueDialog('title', 'text in the window', 'optional') |
261 | </translation> |
262 | </translation> |
262 | </message> |
263 | </message> |
263 | <message> |
264 | <message> |
264 | <location filename="../../scribus/plugins/scriptplugin/cmddialog.h" line="111"/> |
265 | <location filename="../../../scribus/plugins/scriptplugin/cmddialog.h" line="107"/> |
265 | <source>newStyleDialog() -> string |
266 | <source>newStyleDialog() -> string |
266 | 267 | ||
267 | Shows 'Create new paragraph style' dialog. Function returns real |
268 | Shows 'Create new paragraph style' dialog. Function returns real |
268 | style name or None when user cancels the dialog. |
269 | style name or None when user cancels the dialog. |
269 | </source> |
270 | </source> |
Line 272... | Line 273... | ||
272 | Shows 'Create new paragraph style' dialog. Function returns real |
273 | Shows 'Create new paragraph style' dialog. Function returns real |
273 | style name or None when user cancels the dialog. |
274 | style name or None when user cancels the dialog. |
274 | </translation> |
275 | </translation> |
275 | </message> |
276 | </message> |
276 | <message> |
277 | <message> |
277 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="55"/> |
278 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="16"/> |
278 | <source>newDocument(size, margins, orientation, firstPageNumber, |
279 | <source>newDocument(size, margins, orientation, firstPageNumber, |
279 | unit, pagesType, firstPageOrder, numPages) -> bool |
280 | unit, pagesType, firstPageOrder, numPages) -> bool |
280 | 281 | ||
281 | Creates a new document and returns true if successful. The parameters have the |
282 | Creates a new document and returns true if successful. The parameters have the |
282 | following meaning: |
283 | following meaning: |
Line 316... | Line 317... | ||
316 | May raise ScribusError if is firstPageOrder bigger than allowed by pagesType. |
317 | May raise ScribusError if is firstPageOrder bigger than allowed by pagesType. |
317 | </source> |
318 | </source> |
318 | <translation type="unfinished"></translation> |
319 | <translation type="unfinished"></translation> |
319 | </message> |
320 | </message> |
320 | <message> |
321 | <message> |
321 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="96"/> |
322 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="62"/> |
322 | <source>newDoc(size, margins, orientation, firstPageNumber, |
323 | <source>newDoc(size, margins, orientation, firstPageNumber, |
323 | unit, facingPages, firstSideLeft) -> bool |
324 | unit, facingPages, firstSideLeft) -> bool |
324 | 325 | ||
325 | WARNING: Obsolete procedure! Use newDocument instead. |
326 | WARNING: Obsolete procedure! Use newDocument instead. |
326 | 327 | ||
Line 389... | Line 390... | ||
389 | example: newDoc(PAPER_A4, (10, 10, 20, 20), LANDSCAPE, 1, UNIT_POINTS, |
390 | example: newDoc(PAPER_A4, (10, 10, 20, 20), LANDSCAPE, 1, UNIT_POINTS, |
390 | FACINGPAGES, FIRSTPAGERIGHT) |
391 | FACINGPAGES, FIRSTPAGERIGHT) |
391 | </translation> |
392 | </translation> |
392 | </message> |
393 | </message> |
393 | <message> |
394 | <message> |
394 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="108"/> |
395 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="103"/> |
395 | <source>closeDoc() |
396 | <source>closeDoc() |
396 | 397 | ||
397 | Closes the current document without prompting to save. |
398 | Closes the current document without prompting to save. |
398 | 399 | ||
399 | May throw NoDocOpenError if there is no document to close |
400 | May throw NoDocOpenError if there is no document to close |
Line 404... | Line 405... | ||
404 | 405 | ||
405 | May throw NoDocOpenError if there is no document to close |
406 | May throw NoDocOpenError if there is no document to close |
406 | </translation> |
407 | </translation> |
407 | </message> |
408 | </message> |
408 | <message> |
409 | <message> |
409 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="117"/> |
410 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="114"/> |
410 | <source>haveDoc() -> bool |
411 | <source>haveDoc() -> bool |
411 | 412 | ||
412 | Returns true if there is a document open. |
413 | Returns true if there is a document open. |
413 | </source> |
414 | </source> |
414 | <translation type="unfinished">haveDoc() -> bool |
415 | <translation type="unfinished">haveDoc() -> bool |
415 | 416 | ||
416 | Returns true if there is a document open. |
417 | Returns true if there is a document open. |
417 | </translation> |
418 | </translation> |
418 | </message> |
419 | </message> |
419 | <message> |
420 | <message> |
420 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="128"/> |
421 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="123"/> |
421 | <source>openDoc("name") |
422 | <source>openDoc("name") |
422 | 423 | ||
423 | Opens the document "name". |
424 | Opens the document "name". |
424 | 425 | ||
425 | May raise ScribusError if the document could not be opened. |
426 | May raise ScribusError if the document could not be opened. |
Line 430... | Line 431... | ||
430 | 431 | ||
431 | May raise ScribusError if the document could not be opened. |
432 | May raise ScribusError if the document could not be opened. |
432 | </translation> |
433 | </translation> |
433 | </message> |
434 | </message> |
434 | <message> |
435 | <message> |
435 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="141"/> |
436 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="134"/> |
436 | <source>saveDoc() |
437 | <source>saveDoc() |
437 | 438 | ||
438 | Saves the current document with its current name, returns true if successful. |
439 | Saves the current document with its current name, returns true if successful. |
439 | If the document has not already been saved, this may bring up an interactive |
440 | If the document has not already been saved, this may bring up an interactive |
440 | save file dialog. |
441 | save file dialog. |
Line 449... | Line 450... | ||
449 | 450 | ||
450 | If the save fails, there is currently no way to tell. |
451 | If the save fails, there is currently no way to tell. |
451 | </translation> |
452 | </translation> |
452 | </message> |
453 | </message> |
453 | <message> |
454 | <message> |
- | 455 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="146"/> |
|
- | 456 | <source>getDocName() -> string |
|
- | 457 | ||
- | 458 | Returns the name the document was saved under. |
|
- | 459 | If the document was not saved before the name is empty. |
|
- | 460 | </source> |
|
- | 461 | <translation type="unfinished"></translation> |
|
- | 462 | </message> |
|
- | 463 | <message> |
|
454 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="152"/> |
464 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="156"/> |
455 | <source>saveDocAs("name") |
465 | <source>saveDocAs("name") |
456 | 466 | ||
457 | Saves the current document under the new name "name" (which may be a full or |
467 | Saves the current document under the new name "name" (which may be a full or |
458 | relative path). |
468 | relative path). |
459 | 469 | ||
Line 466... | Line 476... | ||
466 | 476 | ||
467 | May raise ScribusError if the save fails. |
477 | May raise ScribusError if the save fails. |
468 | </translation> |
478 | </translation> |
469 | </message> |
479 | </message> |
470 | <message> |
480 | <message> |
471 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="162"/> |
481 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="168"/> |
472 | <source>setInfo("author", "info", "description") -> bool |
482 | <source>setInfo("author", "info", "description") -> bool |
473 | 483 | ||
474 | Sets the document information. "Author", "Info", "Description" are |
484 | Sets the document information. "Author", "Info", "Description" are |
475 | strings. |
485 | strings. |
476 | </source> |
486 | </source> |
477 | <translation type="unfinished"></translation> |
487 | <translation type="unfinished"></translation> |
478 | </message> |
488 | </message> |
479 | <message> |
489 | <message> |
480 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="173"/> |
490 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="178"/> |
481 | <source>setMargins(lr, rr, tr, br) |
491 | <source>setMargins(lr, rr, tr, br) |
482 | 492 | ||
483 | Sets the margins of the document, Qt::DockLeft(lr), Qt::DockRight(rr), Qt::DockTop(tr) and Qt::DockBottom(br) |
493 | Sets the margins of the document, Qt::DockLeft(lr), Qt::DockRight(rr), Qt::DockTop(tr) and Qt::DockBottom(br) |
484 | margins are given in the measurement units of the document - see UNIT_<type> |
494 | margins are given in the measurement units of the document - see UNIT_<type> |
485 | constants. |
495 | constants. |
486 | </source> |
496 | </source> |
487 | <translation type="unfinished"></translation> |
497 | <translation type="unfinished"></translation> |
488 | </message> |
498 | </message> |
489 | <message> |
499 | <message> |
490 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="185"/> |
500 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="189"/> |
491 | <source>setUnit(type) |
501 | <source>setUnit(type) |
492 | 502 | ||
493 | Changes the measurement unit of the document. Possible values for "unit" are |
503 | Changes the measurement unit of the document. Possible values for "unit" are |
494 | defined as constants UNIT_<type>. |
504 | defined as constants UNIT_<type>. |
495 | 505 | ||
Line 502... | Line 512... | ||
502 | 512 | ||
503 | May raise ValueError if an invalid unit is passed. |
513 | May raise ValueError if an invalid unit is passed. |
504 | </translation> |
514 | </translation> |
505 | </message> |
515 | </message> |
506 | <message> |
516 | <message> |
507 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="196"/> |
517 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="201"/> |
508 | <source>getUnit() -> integer (Scribus unit constant) |
518 | <source>getUnit() -> integer (Scribus unit constant) |
509 | 519 | ||
510 | Returns the measurement units of the document. The returned value will be one |
520 | Returns the measurement units of the document. The returned value will be one |
511 | of the UNIT_* constants: |
521 | of the UNIT_* constants: |
512 | UNIT_INCHES, UNIT_MILLIMETERS, UNIT_PICAS, UNIT_POINTS. |
522 | UNIT_INCHES, UNIT_MILLIMETERS, UNIT_PICAS, UNIT_POINTS. |
Line 517... | Line 527... | ||
517 | of the UNIT_* constants: |
527 | of the UNIT_* constants: |
518 | UNIT_INCHES, UNIT_MILLIMETERS, UNIT_PICAS, UNIT_POINTS. |
528 | UNIT_INCHES, UNIT_MILLIMETERS, UNIT_PICAS, UNIT_POINTS. |
519 | </translation> |
529 | </translation> |
520 | </message> |
530 | </message> |
521 | <message> |
531 | <message> |
522 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="206"/> |
532 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="212"/> |
523 | <source>loadStylesFromFile("filename") |
533 | <source>loadStylesFromFile("filename") |
524 | 534 | ||
525 | Loads paragraph styles from the Scribus document at "filename" into the |
535 | Loads paragraph styles from the Scribus document at "filename" into the |
526 | current document. |
536 | current document. |
527 | </source> |
537 | </source> |
Line 530... | Line 540... | ||
530 | Loads paragraph styles from the Scribus document at "filename" into the |
540 | Loads paragraph styles from the Scribus document at "filename" into the |
531 | current document. |
541 | current document. |
532 | </translation> |
542 | </translation> |
533 | </message> |
543 | </message> |
534 | <message> |
544 | <message> |
535 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="218"/> |
545 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="222"/> |
536 | <source>setDocType(facingPages, firstPageLeft) |
546 | <source>setDocType(facingPages, firstPageLeft) |
537 | 547 | ||
538 | Sets the document type. To get facing pages set the first parameter to |
548 | Sets the document type. To get facing pages set the first parameter to |
539 | FACINGPAGES, to switch facingPages off use NOFACINGPAGES instead. If you want |
549 | FACINGPAGES, to switch facingPages off use NOFACINGPAGES instead. If you want |
540 | to be the first page a left side set the second parameter to FIRSTPAGELEFT, for |
550 | to be the first page a left side set the second parameter to FIRSTPAGELEFT, for |
Line 547... | Line 557... | ||
547 | to be the first page a left side set the second parameter to FIRSTPAGELEFT, for |
557 | to be the first page a left side set the second parameter to FIRSTPAGELEFT, for |
548 | a right page use FIRSTPAGERIGHT. |
558 | a right page use FIRSTPAGERIGHT. |
549 | </translation> |
559 | </translation> |
550 | </message> |
560 | </message> |
551 | <message> |
561 | <message> |
552 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="226"/> |
562 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="232"/> |
553 | <source>closeMasterPage() |
563 | <source>closeMasterPage() |
554 | 564 | ||
555 | Closes the currently active master page, if any, and returns editing |
565 | Closes the currently active master page, if any, and returns editing |
556 | to normal. Begin editing with editMasterPage(). |
566 | to normal. Begin editing with editMasterPage(). |
557 | </source> |
567 | </source> |
Line 560... | Line 570... | ||
560 | Closes the currently active master page, if any, and returns editing |
570 | Closes the currently active master page, if any, and returns editing |
561 | to normal. Begin editing with editMasterPage(). |
571 | to normal. Begin editing with editMasterPage(). |
562 | </translation> |
572 | </translation> |
563 | </message> |
573 | </message> |
564 | <message> |
574 | <message> |
565 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="233"/> |
575 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="240"/> |
566 | <source>masterPageNames() |
576 | <source>masterPageNames() |
567 | 577 | ||
568 | Returns a list of the names of all master pages in the document. |
578 | Returns a list of the names of all master pages in the document. |
569 | </source> |
579 | </source> |
570 | <translation type="unfinished">masterPageNames() |
580 | <translation type="unfinished">masterPageNames() |
571 | 581 | ||
572 | Returns a list of the names of all master pages in the document. |
582 | Returns a list of the names of all master pages in the document. |
573 | </translation> |
583 | </translation> |
574 | </message> |
584 | </message> |
575 | <message> |
585 | <message> |
576 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="241"/> |
586 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="247"/> |
577 | <source>editMasterPage(pageName) |
587 | <source>editMasterPage(pageName) |
578 | 588 | ||
579 | Enables master page editing and opens the named master page |
589 | Enables master page editing and opens the named master page |
580 | for editing. Finish editing with closeMasterPage(). |
590 | for editing. Finish editing with closeMasterPage(). |
581 | </source> |
591 | </source> |
Line 584... | Line 594... | ||
584 | Enables master page editing and opens the named master page |
594 | Enables master page editing and opens the named master page |
585 | for editing. Finish editing with closeMasterPage(). |
595 | for editing. Finish editing with closeMasterPage(). |
586 | </translation> |
596 | </translation> |
587 | </message> |
597 | </message> |
588 | <message> |
598 | <message> |
589 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="249"/> |
599 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="255"/> |
590 | <source>createMasterPage(pageName) |
600 | <source>createMasterPage(pageName) |
591 | 601 | ||
592 | Creates a new master page named pageName and opens it for |
602 | Creates a new master page named pageName and opens it for |
593 | editing. |
603 | editing. |
594 | </source> |
604 | </source> |
Line 597... | Line 607... | ||
597 | Creates a new master page named pageName and opens it for |
607 | Creates a new master page named pageName and opens it for |
598 | editing. |
608 | editing. |
599 | </translation> |
609 | </translation> |
600 | </message> |
610 | </message> |
601 | <message> |
611 | <message> |
602 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="256"/> |
612 | <location filename="../../../scribus/plugins/scriptplugin/cmddoc.h" line="263"/> |
603 | <source>deleteMasterPage(pageName) |
613 | <source>deleteMasterPage(pageName) |
604 | 614 | ||
605 | Delete the named master page. |
615 | Delete the named master page. |
606 | </source> |
616 | </source> |
607 | <translation type="unfinished">deleteMasterPage(pageName) |
617 | <translation type="unfinished">deleteMasterPage(pageName) |
608 | 618 | ||
609 | Delete the named master page. |
619 | Delete the named master page. |
610 | </translation> |
620 | </translation> |
611 | </message> |
621 | </message> |
612 | <message> |
622 | <message> |
613 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="21"/> |
623 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="17"/> |
614 | <source>getFillColor(["name"]) -> string |
624 | <source>getFillColor(["name"]) -> string |
615 | 625 | ||
616 | Returns the name of the fill color of the object "name". |
626 | Returns the name of the fill color of the object "name". |
617 | If "name" is not given the currently selected item is used. |
627 | If "name" is not given the currently selected item is used. |
618 | </source> |
628 | </source> |
Line 621... | Line 631... | ||
621 | Returns the name of the fill colour of the object "name". |
631 | Returns the name of the fill colour of the object "name". |
622 | If "name" is not given the currently selected item is used. |
632 | If "name" is not given the currently selected item is used. |
623 | </translation> |
633 | </translation> |
624 | </message> |
634 | </message> |
625 | <message> |
635 | <message> |
626 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="31"/> |
636 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="27"/> |
627 | <source>getFillTransparency(["name"]) -> float |
637 | <source>getFillTransparency(["name"]) -> float |
628 | 638 | ||
629 | Returns the fill transparency of the object "name". If "name" |
639 | Returns the fill transparency of the object "name". If "name" |
630 | is not given the currently selected Item is used. |
640 | is not given the currently selected Item is used. |
631 | </source> |
641 | </source> |
632 | <translation type="unfinished"></translation> |
642 | <translation type="unfinished"></translation> |
633 | </message> |
643 | </message> |
634 | <message> |
644 | <message> |
635 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="41"/> |
645 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="37"/> |
636 | <source>getFillBlendmode(["name"]) -> integer |
646 | <source>getFillBlendmode(["name"]) -> integer |
637 | 647 | ||
638 | Returns the fill blendmode of the object "name". If "name" |
648 | Returns the fill blendmode of the object "name". If "name" |
639 | is not given the currently selected Item is used. |
649 | is not given the currently selected Item is used. |
640 | </source> |
650 | </source> |
641 | <translation type="unfinished"></translation> |
651 | <translation type="unfinished"></translation> |
642 | </message> |
652 | </message> |
643 | <message> |
653 | <message> |
644 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="51"/> |
654 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="47"/> |
645 | <source>getLineColor(["name"]) -> string |
655 | <source>getLineColor(["name"]) -> string |
646 | 656 | ||
647 | Returns the name of the line color of the object "name". |
657 | Returns the name of the line color of the object "name". |
648 | If "name" is not given the currently selected item is used. |
658 | If "name" is not given the currently selected item is used. |
649 | </source> |
659 | </source> |
Line 652... | Line 662... | ||
652 | Returns the name of the line colour of the object "name". |
662 | Returns the name of the line colour of the object "name". |
653 | If "name" is not given the currently selected item is used. |
663 | If "name" is not given the currently selected item is used. |
654 | </translation> |
664 | </translation> |
655 | </message> |
665 | </message> |
656 | <message> |
666 | <message> |
657 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="61"/> |
667 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="57"/> |
658 | <source>getLineTransparency(["name"]) -> float |
668 | <source>getLineTransparency(["name"]) -> float |
659 | 669 | ||
660 | Returns the line transparency of the object "name". If "name" |
670 | Returns the line transparency of the object "name". If "name" |
661 | is not given the currently selected Item is used. |
671 | is not given the currently selected Item is used. |
662 | </source> |
672 | </source> |
663 | <translation type="unfinished"></translation> |
673 | <translation type="unfinished"></translation> |
664 | </message> |
674 | </message> |
665 | <message> |
675 | <message> |
666 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="71"/> |
676 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="67"/> |
667 | <source>getLineBlendmode(["name"]) -> integer |
677 | <source>getLineBlendmode(["name"]) -> integer |
668 | 678 | ||
669 | Returns the line blendmode of the object "name". If "name" |
679 | Returns the line blendmode of the object "name". If "name" |
670 | is not given the currently selected Item is used. |
680 | is not given the currently selected Item is used. |
671 | </source> |
681 | </source> |
672 | <translation type="unfinished"></translation> |
682 | <translation type="unfinished"></translation> |
673 | </message> |
683 | </message> |
674 | <message> |
684 | <message> |
675 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="81"/> |
685 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="77"/> |
676 | <source>getLineWidth(["name"]) -> integer |
686 | <source>getLineWidth(["name"]) -> integer |
677 | 687 | ||
678 | Returns the line width of the object "name". If "name" |
688 | Returns the line width of the object "name". If "name" |
679 | is not given the currently selected Item is used. |
689 | is not given the currently selected Item is used. |
680 | </source> |
690 | </source> |
Line 683... | Line 693... | ||
683 | Returns the line width of the object "name". If "name" |
693 | Returns the line width of the object "name". If "name" |
684 | is not given the currently selected Item is used. |
694 | is not given the currently selected Item is used. |
685 | </translation> |
695 | </translation> |
686 | </message> |
696 | </message> |
687 | <message> |
697 | <message> |
688 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="91"/> |
698 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="87"/> |
689 | <source>getLineShade(["name"]) -> integer |
699 | <source>getLineShade(["name"]) -> integer |
690 | 700 | ||
691 | Returns the shading value of the line color of the object "name". |
701 | Returns the shading value of the line color of the object "name". |
692 | If "name" is not given the currently selected item is used. |
702 | If "name" is not given the currently selected item is used. |
693 | </source> |
703 | </source> |
Line 696... | Line 706... | ||
696 | Returns the shading value of the line colour of the object "name". |
706 | Returns the shading value of the line colour of the object "name". |
697 | If "name" is not given the currently selected item is used. |
707 | If "name" is not given the currently selected item is used. |
698 | </translation> |
708 | </translation> |
699 | </message> |
709 | </message> |
700 | <message> |
710 | <message> |
701 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="102"/> |
711 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="97"/> |
702 | <source>getLineJoin(["name"]) -> integer (see constants) |
712 | <source>getLineJoin(["name"]) -> integer (see constants) |
703 | 713 | ||
704 | Returns the line join style of the object "name". If "name" is not given |
714 | Returns the line join style of the object "name". If "name" is not given |
705 | the currently selected item is used. The join types are: |
715 | the currently selected item is used. The join types are: |
706 | JOIN_BEVEL, JOIN_MITTER, JOIN_ROUND |
716 | JOIN_BEVEL, JOIN_MITTER, JOIN_ROUND |
707 | </source> |
717 | </source> |
708 | <translation type="unfinished"></translation> |
718 | <translation type="unfinished"></translation> |
709 | </message> |
719 | </message> |
710 | <message> |
720 | <message> |
711 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="113"/> |
721 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="108"/> |
712 | <source>getLineEnd(["name"]) -> integer (see constants) |
722 | <source>getLineEnd(["name"]) -> integer (see constants) |
713 | 723 | ||
714 | Returns the line cap style of the object "name". If "name" is not given the |
724 | Returns the line cap style of the object "name". If "name" is not given the |
715 | currently selected item is used. The cap types are: |
725 | currently selected item is used. The cap types are: |
716 | CAP_FLAT, CAP_ROUND, CAP_SQUARE |
726 | CAP_FLAT, CAP_ROUND, CAP_SQUARE |
Line 721... | Line 731... | ||
721 | currently selected item is used. The cap types are: |
731 | currently selected item is used. The cap types are: |
722 | CAP_FLAT, CAP_ROUND, CAP_SQUARE |
732 | CAP_FLAT, CAP_ROUND, CAP_SQUARE |
723 | </translation> |
733 | </translation> |
724 | </message> |
734 | </message> |
725 | <message> |
735 | <message> |
726 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="124"/> |
736 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="119"/> |
727 | <source>getLineStyle(["name"]) -> integer (see constants) |
737 | <source>getLineStyle(["name"]) -> integer (see constants) |
728 | 738 | ||
729 | Returns the line style of the object "name". If "name" is not given the |
739 | Returns the line style of the object "name". If "name" is not given the |
730 | currently selected item is used. Line style constants are: |
740 | currently selected item is used. Line style constants are: |
731 | LINE_DASH, LINE_DASHDOT, LINE_DASHDOTDOT, LINE_DOT, LINE_SOLID |
741 | LINE_DASH, LINE_DASHDOT, LINE_DASHDOTDOT, LINE_DOT, LINE_SOLID |
Line 736... | Line 746... | ||
736 | currently selected item is used. Line style constants are: |
746 | currently selected item is used. Line style constants are: |
737 | LINE_DASH, LINE_DASHDOT, LINE_DASHDOTDOT, LINE_DOT, LINE_SOLID |
747 | LINE_DASH, LINE_DASHDOT, LINE_DASHDOTDOT, LINE_DOT, LINE_SOLID |
738 | </translation> |
748 | </translation> |
739 | </message> |
749 | </message> |
740 | <message> |
750 | <message> |
741 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="134"/> |
751 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="130"/> |
742 | <source>getFillShade(["name"]) -> integer |
752 | <source>getFillShade(["name"]) -> integer |
743 | 753 | ||
744 | Returns the shading value of the fill color of the object "name". |
754 | Returns the shading value of the fill color of the object "name". |
745 | If "name" is not given the currently selected item is used. |
755 | If "name" is not given the currently selected item is used. |
746 | </source> |
756 | </source> |
Line 749... | Line 759... | ||
749 | Returns the shading value of the fill colour of the object "name". |
759 | Returns the shading value of the fill colour of the object "name". |
750 | If "name" is not given the currently selected item is used. |
760 | If "name" is not given the currently selected item is used. |
751 | </translation> |
761 | </translation> |
752 | </message> |
762 | </message> |
753 | <message> |
763 | <message> |
754 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="145"/> |
764 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="140"/> |
755 | <source>getCornerRadius(["name"]) -> integer |
765 | <source>getCornerRadius(["name"]) -> integer |
756 | 766 | ||
757 | Returns the corner radius of the object "name". The radius is |
767 | Returns the corner radius of the object "name". The radius is |
758 | expressed in points. If "name" is not given the currently |
768 | expressed in points. If "name" is not given the currently |
759 | selected item is used. |
769 | selected item is used. |
760 | </source> |
770 | </source> |
761 | <translation type="unfinished"></translation> |
771 | <translation type="unfinished"></translation> |
762 | </message> |
772 | </message> |
763 | <message> |
773 | <message> |
764 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="155"/> |
774 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="151"/> |
765 | <source>getImageScale(["name"]) -> (x,y) |
775 | <source>getImageScale(["name"]) -> (x,y) |
766 | 776 | ||
767 | Returns a (x, y) tuple containing the scaling values of the image frame |
777 | Returns a (x, y) tuple containing the scaling values of the image frame |
768 | "name". If "name" is not given the currently selected item is used. |
778 | "name". If "name" is not given the currently selected item is used. |
769 | </source> |
779 | </source> |
Line 772... | Line 782... | ||
772 | Returns a (x, y) tuple containing the scaling values of the image frame |
782 | Returns a (x, y) tuple containing the scaling values of the image frame |
773 | "name". If "name" is not given the currently selected item is used. |
783 | "name". If "name" is not given the currently selected item is used. |
774 | </translation> |
784 | </translation> |
775 | </message> |
785 | </message> |
776 | <message> |
786 | <message> |
777 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="165"/> |
787 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="161"/> |
778 | <source>getImageName(["name"]) -> string |
788 | <source>getImageName(["name"]) -> string |
779 | 789 | ||
780 | Returns the filename for the image in the image frame. If "name" is not |
790 | Returns the filename for the image in the image frame. If "name" is not |
781 | given the currently selected item is used. |
791 | given the currently selected item is used. |
782 | </source> |
792 | </source> |
Line 785... | Line 795... | ||
785 | Returns the filename for the image in the image frame. If "name" is not |
795 | Returns the filename for the image in the image frame. If "name" is not |
786 | given the currently selected item is used. |
796 | given the currently selected item is used. |
787 | </translation> |
797 | </translation> |
788 | </message> |
798 | </message> |
789 | <message> |
799 | <message> |
790 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="177"/> |
800 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="171"/> |
791 | <source>getPosition(["name"]) -> (x,y) |
801 | <source>getPosition(["name"]) -> (x,y) |
792 | 802 | ||
793 | Returns a (x, y) tuple with the position of the object "name". |
803 | Returns a (x, y) tuple with the position of the object "name". |
794 | If "name" is not given the currently selected item is used. |
804 | If "name" is not given the currently selected item is used. |
795 | The position is expressed in the actual measurement unit of the document |
805 | The position is expressed in the actual measurement unit of the document |
796 | - see UNIT_<type> for reference. |
806 | - see UNIT_<type> for reference. |
797 | </source> |
807 | </source> |
798 | <translation type="unfinished"></translation> |
808 | <translation type="unfinished"></translation> |
799 | </message> |
809 | </message> |
800 | <message> |
810 | <message> |
801 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="189"/> |
811 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="183"/> |
802 | <source>getSize(["name"]) -> (width,height) |
812 | <source>getSize(["name"]) -> (width,height) |
803 | 813 | ||
804 | Returns a (width, height) tuple with the size of the object "name". |
814 | Returns a (width, height) tuple with the size of the object "name". |
805 | If "name" is not given the currently selected item is used. The size is |
815 | If "name" is not given the currently selected item is used. The size is |
806 | expressed in the current measurement unit of the document - see UNIT_<type> |
816 | expressed in the current measurement unit of the document - see UNIT_<type> |
Line 813... | Line 823... | ||
813 | expressed in the current measurement unit of the document - see UNIT_<type> |
823 | expressed in the current measurement unit of the document - see UNIT_<type> |
814 | for reference. |
824 | for reference. |
815 | </translation> |
825 | </translation> |
816 | </message> |
826 | </message> |
817 | <message> |
827 | <message> |
818 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="200"/> |
828 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="195"/> |
819 | <source>getRotation(["name"]) -> integer |
829 | <source>getRotation(["name"]) -> integer |
820 | 830 | ||
821 | Returns the rotation of the object "name". The value is expressed in degrees, |
831 | Returns the rotation of the object "name". The value is expressed in degrees, |
822 | and clockwise is positive. If "name" is not given the currently selected item |
832 | and clockwise is positive. If "name" is not given the currently selected item |
823 | is used. |
833 | is used. |
Line 828... | Line 838... | ||
828 | and clockwise is positive. If "name" is not given the currently selected item |
838 | and clockwise is positive. If "name" is not given the currently selected item |
829 | is used. |
839 | is used. |
830 | </translation> |
840 | </translation> |
831 | </message> |
841 | </message> |
832 | <message> |
842 | <message> |
833 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="209"/> |
843 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetprop.h" line="206"/> |
834 | <source>getAllObjects() -> list |
844 | <source>getAllObjects() -> list |
835 | 845 | ||
836 | Returns a list containing the names of all objects on the current page. |
846 | Returns a list containing the names of all objects on the current page. |
837 | </source> |
847 | </source> |
838 | <translation type="unfinished">getAllObjects() -> list |
848 | <translation type="unfinished">getAllObjects() -> list |
839 | 849 | ||
840 | Returns a list containing the names of all objects on the current page. |
850 | Returns a list containing the names of all objects on the current page. |
841 | </translation> |
851 | </translation> |
842 | </message> |
852 | </message> |
843 | <message> |
853 | <message> |
844 | <location filename="../../scribus/plugins/scriptplugin/cmdgetsetprop.h" line="83"/> |
854 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetsetprop.h" line="77"/> |
845 | <source>getPropertyCType(object, property, includesuper=True) |
855 | <source>getPropertyCType(object, property, includesuper=True) |
846 | 856 | ||
847 | Returns the name of the C type of `property' of `object'. See getProperty() |
857 | Returns the name of the C type of `property' of `object'. See getProperty() |
848 | for details of arguments. |
858 | for details of arguments. |
849 | 859 | ||
Line 856... | Line 866... | ||
856 | 866 | ||
857 | If `includesuper' is true, search inherited properties too. |
867 | If `includesuper' is true, search inherited properties too. |
858 | </translation> |
868 | </translation> |
859 | </message> |
869 | </message> |
860 | <message> |
870 | <message> |
861 | <location filename="../../scribus/plugins/scriptplugin/cmdgetsetprop.h" line="101"/> |
871 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetsetprop.h" line="96"/> |
862 | <source>getPropertyNames(object, includesuper=True) |
872 | <source>getPropertyNames(object, includesuper=True) |
863 | 873 | ||
864 | Return a list of property names supported by `object'. |
874 | Return a list of property names supported by `object'. |
865 | If `includesuper' is true, return properties supported |
875 | If `includesuper' is true, return properties supported |
866 | by parent classes as well. |
876 | by parent classes as well. |
Line 871... | Line 881... | ||
871 | If `includesuper' is true, return properties supported |
881 | If `includesuper' is true, return properties supported |
872 | by parent classes as well. |
882 | by parent classes as well. |
873 | </translation> |
883 | </translation> |
874 | </message> |
884 | </message> |
875 | <message> |
885 | <message> |
876 | <location filename="../../scribus/plugins/scriptplugin/cmdgetsetprop.h" line="135"/> |
886 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetsetprop.h" line="123"/> |
877 | <source>getProperty(object, property) |
887 | <source>getProperty(object, property) |
878 | 888 | ||
879 | Return the value of the property `property' of the passed `object'. |
889 | Return the value of the property `property' of the passed `object'. |
880 | 890 | ||
881 | The `object' argument may be a string, in which case the named PageItem |
891 | The `object' argument may be a string, in which case the named PageItem |
Line 900... | Line 910... | ||
900 | 910 | ||
901 | The return value varies depending on the type of the property. |
911 | The return value varies depending on the type of the property. |
902 | </translation> |
912 | </translation> |
903 | </message> |
913 | </message> |
904 | <message> |
914 | <message> |
905 | <location filename="../../scribus/plugins/scriptplugin/cmdgetsetprop.h" line="165"/> |
915 | <location filename="../../../scribus/plugins/scriptplugin/cmdgetsetprop.h" line="158"/> |
906 | <source>setProperty(object, property, value) |
916 | <source>setProperty(object, property, value) |
907 | 917 | ||
908 | Set `property' of `object' to `value'. If `value' cannot be converted to a type |
918 | Set `property' of `object' to `value'. If `value' cannot be converted to a type |
909 | compatible with the type of `property', an exception is raised. An exception may |
919 | compatible with the type of `property', an exception is raised. An exception may |
910 | also be raised if the underlying setter fails. |
920 | also be raised if the underlying setter fails. |
Line 919... | Line 929... | ||
919 | 929 | ||
920 | See getProperty() for more information. |
930 | See getProperty() for more information. |
921 | </translation> |
931 | </translation> |
922 | </message> |
932 | </message> |
923 | <message> |
933 | <message> |
924 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="23"/> |
934 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="17"/> |
925 | <source>moveObject(dx, dy [, "name"]) |
935 | <source>moveObject(dx, dy [, "name"]) |
926 | 936 | ||
927 | Moves the object "name" by dx and dy relative to its current position. The |
937 | Moves the object "name" by dx and dy relative to its current position. The |
928 | distances are expressed in the current measurement unit of the document (see |
938 | distances are expressed in the current measurement unit of the document (see |
929 | UNIT constants). If "name" is not given the currently selected item is used. |
939 | UNIT constants). If "name" is not given the currently selected item is used. |
Line 936... | Line 946... | ||
936 | UNIT constants). If "name" is not given the currently selected item is used. |
946 | UNIT constants). If "name" is not given the currently selected item is used. |
937 | If the object "name" belongs to a group, the whole group is moved. |
947 | If the object "name" belongs to a group, the whole group is moved. |
938 | </translation> |
948 | </translation> |
939 | </message> |
949 | </message> |
940 | <message> |
950 | <message> |
941 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="35"/> |
951 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="29"/> |
942 | <source>moveObjectAbs(x, y [, "name"]) |
952 | <source>moveObjectAbs(x, y [, "name"]) |
943 | 953 | ||
944 | Moves the object "name" to a new location. The coordinates are expressed in |
954 | Moves the object "name" to a new location. The coordinates are expressed in |
945 | the current measurement unit of the document (see UNIT constants). If "name" |
955 | the current measurement unit of the document (see UNIT constants). If "name" |
946 | is not given the currently selected item is used. If the object "name" |
956 | is not given the currently selected item is used. If the object "name" |
Line 953... | Line 963... | ||
953 | is not given the currently selected item is used. If the object "name" |
963 | is not given the currently selected item is used. If the object "name" |
954 | belongs to a group, the whole group is moved. |
964 | belongs to a group, the whole group is moved. |
955 | </translation> |
965 | </translation> |
956 | </message> |
966 | </message> |
957 | <message> |
967 | <message> |
958 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="48"/> |
968 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="41"/> |
959 | <source>rotateObject(rot [, "name"]) |
969 | <source>rotateObject(rot [, "name"]) |
960 | 970 | ||
961 | Rotates the object "name" by "rot" degrees relatively. The object is |
971 | Rotates the object "name" by "rot" degrees relatively. The object is |
962 | rotated by the vertex that is currently selected as the rotation point - by |
972 | rotated by the vertex that is currently selected as the rotation point - by |
963 | default, the top left vertex at zero rotation. Positive values mean counter |
973 | default, the top left vertex at zero rotation. Positive values mean counter |
Line 965... | Line 975... | ||
965 | given the currently selected item is used. |
975 | given the currently selected item is used. |
966 | </source> |
976 | </source> |
967 | <translation type="unfinished"></translation> |
977 | <translation type="unfinished"></translation> |
968 | </message> |
978 | </message> |
969 | <message> |
979 | <message> |
970 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="59"/> |
980 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="54"/> |
971 | <source>rotateObjectAbs(rot [, "name"]) |
981 | <source>rotateObjectAbs(rot [, "name"]) |
972 | 982 | ||
973 | Sets the rotation of the object "name" to "rot". Positive values |
983 | Sets the rotation of the object "name" to "rot". Positive values |
974 | mean counter clockwise rotation. If "name" is not given the currently |
984 | mean counter clockwise rotation. If "name" is not given the currently |
975 | selected item is used. |
985 | selected item is used. |
976 | </source> |
986 | </source> |
977 | <translation type="unfinished"></translation> |
987 | <translation type="unfinished"></translation> |
978 | </message> |
988 | </message> |
979 | <message> |
989 | <message> |
980 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="69"/> |
990 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="65"/> |
981 | <source>sizeObject(width, height [, "name"]) |
991 | <source>sizeObject(width, height [, "name"]) |
982 | 992 | ||
983 | Resizes the object "name" to the given width and height. If "name" |
993 | Resizes the object "name" to the given width and height. If "name" |
984 | is not given the currently selected item is used. |
994 | is not given the currently selected item is used. |
985 | </source> |
995 | </source> |
Line 988... | Line 998... | ||
988 | Resizes the object "name" to the given width and height. If "name" |
998 | Resizes the object "name" to the given width and height. If "name" |
989 | is not given the currently selected item is used. |
999 | is not given the currently selected item is used. |
990 | </translation> |
1000 | </translation> |
991 | </message> |
1001 | </message> |
992 | <message> |
1002 | <message> |
993 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="80"/> |
1003 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="75"/> |
994 | <source>getSelectedObject([nr]) -> string |
1004 | <source>getSelectedObject([nr]) -> string |
995 | 1005 | ||
996 | Returns the name of the selected object. "nr" if given indicates the number |
1006 | Returns the name of the selected object. "nr" if given indicates the number |
997 | of the selected object, e.g. 0 means the first selected object, 1 means the |
1007 | of the selected object, e.g. 0 means the first selected object, 1 means the |
998 | second selected Object and so on. |
1008 | second selected Object and so on. |
Line 1003... | Line 1013... | ||
1003 | of the selected object, e.g. 0 means the first selected object, 1 means the |
1013 | of the selected object, e.g. 0 means the first selected object, 1 means the |
1004 | second selected Object and so on. |
1014 | second selected Object and so on. |
1005 | </translation> |
1015 | </translation> |
1006 | </message> |
1016 | </message> |
1007 | <message> |
1017 | <message> |
1008 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="89"/> |
1018 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="86"/> |
1009 | <source>selectionCount() -> integer |
1019 | <source>selectionCount() -> integer |
1010 | 1020 | ||
1011 | Returns the number of selected objects. |
1021 | Returns the number of selected objects. |
1012 | </source> |
1022 | </source> |
1013 | <translation type="unfinished">selectionCount() -> integer |
1023 | <translation type="unfinished">selectionCount() -> integer |
1014 | 1024 | ||
1015 | Returns the number of selected objects. |
1025 | Returns the number of selected objects. |
1016 | </translation> |
1026 | </translation> |
1017 | </message> |
1027 | </message> |
1018 | <message> |
1028 | <message> |
1019 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="98"/> |
1029 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="95"/> |
1020 | <source>selectObject("name") |
1030 | <source>selectObject("name") |
1021 | 1031 | ||
1022 | Selects the object with the given "name". |
1032 | Selects the object with the given "name". |
1023 | </source> |
1033 | </source> |
1024 | <translation type="unfinished">selectObject("name") |
1034 | <translation type="unfinished">selectObject("name") |
1025 | 1035 | ||
1026 | Selects the object with the given "name". |
1036 | Selects the object with the given "name". |
1027 | </translation> |
1037 | </translation> |
1028 | </message> |
1038 | </message> |
1029 | <message> |
1039 | <message> |
1030 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="107"/> |
1040 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="104"/> |
1031 | <source>deselectAll() |
1041 | <source>deselectAll() |
1032 | 1042 | ||
1033 | Deselects all objects in the whole document. |
1043 | Deselects all objects in the whole document. |
1034 | </source> |
1044 | </source> |
1035 | <translation type="unfinished">deselectAll() |
1045 | <translation type="unfinished">deselectAll() |
1036 | 1046 | ||
1037 | Deselects all objects in the whole document. |
1047 | Deselects all objects in the whole document. |
1038 | </translation> |
1048 | </translation> |
1039 | </message> |
1049 | </message> |
1040 | <message> |
1050 | <message> |
1041 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="118"/> |
1051 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="113"/> |
1042 | <source>groupObjects(list) |
1052 | <source>groupObjects(list) |
1043 | 1053 | ||
1044 | Groups the objects named in "list" together. "list" must contain the names |
1054 | Groups the objects named in "list" together. "list" must contain the names |
1045 | of the objects to be grouped. If "list" is not given the currently selected |
1055 | of the objects to be grouped. If "list" is not given the currently selected |
1046 | items are used. |
1056 | items are used. |
Line 1051... | Line 1061... | ||
1051 | of the objects to be grouped. If "list" is not given the currently selected |
1061 | of the objects to be grouped. If "list" is not given the currently selected |
1052 | items are used. |
1062 | items are used. |
1053 | </translation> |
1063 | </translation> |
1054 | </message> |
1064 | </message> |
1055 | <message> |
1065 | <message> |
1056 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="126"/> |
1066 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="124"/> |
1057 | <source>unGroupObjects("name") |
1067 | <source>unGroupObjects("name") |
1058 | 1068 | ||
1059 | Destructs the group the object "name" belongs to.If "name" is not given the currently selected item is used.</source> |
1069 | Destructs the group the object "name" belongs to.If "name" is not given the currently selected item is used.</source> |
1060 | <translation type="unfinished">unGroupObjects("name") |
1070 | <translation type="unfinished">unGroupObjects("name") |
1061 | 1071 | ||
1062 | Destructs the group the object "name" belongs to.If "name" is not given the currently selected item is used.</translation> |
1072 | Destructs the group the object "name" belongs to.If "name" is not given the currently selected item is used.</translation> |
1063 | </message> |
1073 | </message> |
1064 | <message> |
1074 | <message> |
1065 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="141"/> |
1075 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="132"/> |
1066 | <source>scaleGroup(factor [,"name"]) |
1076 | <source>scaleGroup(factor [,"name"]) |
1067 | 1077 | ||
1068 | Scales the group the object "name" belongs to. Values greater than 1 enlarge |
1078 | Scales the group the object "name" belongs to. Values greater than 1 enlarge |
1069 | the group, values smaller than 1 make the group smaller e.g a value of 0.5 |
1079 | the group, values smaller than 1 make the group smaller e.g a value of 0.5 |
1070 | scales the group to 50 % of its original size, a value of 1.5 scales the group |
1080 | scales the group to 50 % of its original size, a value of 1.5 scales the group |
Line 1083... | Line 1093... | ||
1083 | 1093 | ||
1084 | May raise ValueError if an invalid scale factor is passed. |
1094 | May raise ValueError if an invalid scale factor is passed. |
1085 | </translation> |
1095 | </translation> |
1086 | </message> |
1096 | </message> |
1087 | <message> |
1097 | <message> |
1088 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="153"/> |
1098 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="147"/> |
1089 | <source>loadImage("filename" [, "name"]) |
1099 | <source>loadImage("filename" [, "name"]) |
1090 | 1100 | ||
1091 | Loads the picture "picture" into the image frame "name". If "name" is |
1101 | Loads the picture "picture" into the image frame "name". If "name" is |
1092 | not given the currently selected item is used. |
1102 | not given the currently selected item is used. |
1093 | 1103 | ||
Line 1100... | Line 1110... | ||
1100 | 1110 | ||
1101 | May raise WrongFrameTypeError if the target frame is not an image frame |
1111 | May raise WrongFrameTypeError if the target frame is not an image frame |
1102 | </translation> |
1112 | </translation> |
1103 | </message> |
1113 | </message> |
1104 | <message> |
1114 | <message> |
1105 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="166"/> |
- | |
1106 | <source>scaleImage(x, y [, "name"]) |
1115 | <source>scaleImage(x, y [, "name"]) |
1107 | 1116 | ||
1108 | Sets the scaling factors of the picture in the image frame "name". |
1117 | Sets the scaling factors of the picture in the image frame "name". |
1109 | If "name" is not given the currently selected item is used. A number of 1 |
1118 | If "name" is not given the currently selected item is used. A number of 1 |
1110 | means 100 %. |
1119 | means 100 %. |
Line 1119... | Line 1128... | ||
1119 | 1128 | ||
1120 | May raise WrongFrameTypeError if the target frame is not an image frame |
1129 | May raise WrongFrameTypeError if the target frame is not an image frame |
1121 | </translation> |
1130 | </translation> |
1122 | </message> |
1131 | </message> |
1123 | <message> |
1132 | <message> |
1124 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="191"/> |
1133 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="186"/> |
1125 | <source>lockObject(["name"]) -> bool |
1134 | <source>lockObject(["name"]) -> bool |
1126 | 1135 | ||
1127 | Locks the object "name" if it's unlocked or unlock it if it's locked. |
1136 | Locks the object "name" if it's unlocked or unlock it if it's locked. |
1128 | If "name" is not given the currently selected item is used. Returns true |
1137 | If "name" is not given the currently selected item is used. Returns true |
1129 | if locked. |
1138 | if locked. |
Line 1134... | Line 1143... | ||
1134 | If "name" is not given the currently selected item is used. Returns true |
1143 | If "name" is not given the currently selected item is used. Returns true |
1135 | if locked. |
1144 | if locked. |
1136 | </translation> |
1145 | </translation> |
1137 | </message> |
1146 | </message> |
1138 | <message> |
1147 | <message> |
1139 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="201"/> |
1148 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="197"/> |
1140 | <source>isLocked(["name"]) -> bool |
1149 | <source>isLocked(["name"]) -> bool |
1141 | 1150 | ||
1142 | Returns true if is the object "name" locked. If "name" is not given the |
1151 | Returns true if is the object "name" locked. If "name" is not given the |
1143 | currently selected item is used. |
1152 | currently selected item is used. |
1144 | </source> |
1153 | </source> |
Line 1147... | Line 1156... | ||
1147 | Returns true if is the object "name" locked. If "name" is not given the |
1156 | Returns true if is the object "name" locked. If "name" is not given the |
1148 | currently selected item is used. |
1157 | currently selected item is used. |
1149 | </translation> |
1158 | </translation> |
1150 | </message> |
1159 | </message> |
1151 | <message> |
1160 | <message> |
1152 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="213"/> |
1161 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="206"/> |
1153 | <source>setScaleImageToFrame(scaletoframe, proportional=None, name=<selection>) |
1162 | <source>setScaleImageToFrame(scaletoframe, proportional=None, name=<selection>) |
1154 | 1163 | ||
1155 | Sets the scale to frame on the selected or specified image frame to `scaletoframe'. |
1164 | Sets the scale to frame on the selected or specified image frame to `scaletoframe'. |
1156 | If `proportional' is specified, set fixed aspect ratio scaling to `proportional'. |
1165 | If `proportional' is specified, set fixed aspect ratio scaling to `proportional'. |
1157 | Both `scaletoframe' and `proportional' are boolean. |
1166 | Both `scaletoframe' and `proportional' are boolean. |
Line 1166... | Line 1175... | ||
1166 | 1175 | ||
1167 | May raise WrongFrameTypeError. |
1176 | May raise WrongFrameTypeError. |
1168 | </translation> |
1177 | </translation> |
1169 | </message> |
1178 | </message> |
1170 | <message> |
1179 | <message> |
1171 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="24"/> |
1180 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="19"/> |
1172 | <source>setRedraw(bool) |
1181 | <source>setRedraw(bool) |
1173 | 1182 | ||
1174 | Disables page redraw when bool = False, otherwise redrawing is enabled. |
1183 | Disables page redraw when bool = False, otherwise redrawing is enabled. |
1175 | This change will persist even after the script exits, so make sure to call |
1184 | This change will persist even after the script exits, so make sure to call |
1176 | setRedraw(True) in a finally: clause at the top level of your script. |
1185 | setRedraw(True) in a finally: clause at the top level of your script. |
Line 1181... | Line 1190... | ||
1181 | This change will persist even after the script exits, so make sure to call |
1190 | This change will persist even after the script exits, so make sure to call |
1182 | setRedraw(True) in a finally: clause at the top level of your script. |
1191 | setRedraw(True) in a finally: clause at the top level of your script. |
1183 | </translation> |
1192 | </translation> |
1184 | </message> |
1193 | </message> |
1185 | <message> |
1194 | <message> |
1186 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="33"/> |
1195 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="30"/> |
1187 | <source>getFontNames() -> list |
1196 | <source>getFontNames() -> list |
1188 | 1197 | ||
1189 | Returns a list with the names of all available fonts. |
1198 | Returns a list with the names of all available fonts. |
1190 | </source> |
1199 | </source> |
1191 | <translation type="unfinished">getFontNames() -> list |
1200 | <translation type="unfinished">getFontNames() -> list |
1192 | 1201 | ||
1193 | Returns a list with the names of all available fonts. |
1202 | Returns a list with the names of all available fonts. |
1194 | </translation> |
1203 | </translation> |
1195 | </message> |
1204 | </message> |
1196 | <message> |
1205 | <message> |
1197 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="43"/> |
1206 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="39"/> |
1198 | <source>getXFontNames() -> list of tuples |
1207 | <source>getXFontNames() -> list of tuples |
1199 | 1208 | ||
1200 | Returns a larger font info. It's a list of the tuples with: |
1209 | Returns a larger font info. It's a list of the tuples with: |
1201 | [ (Scribus name, Family, Real name, subset (1|0), embed PS (1|0), font file), (...), ... ] |
1210 | [ (Scribus name, Family, Real name, subset (1|0), embed PS (1|0), font file), (...), ... ] |
1202 | </source> |
1211 | </source> |
Line 1205... | Line 1214... | ||
1205 | Returns a larger font info. It's a list of the tuples with: |
1214 | Returns a larger font info. It's a list of the tuples with: |
1206 | [ (Scribus name, Family, Real name, subset (1|0), embed PS (1|0), font file), (...), ... ] |
1215 | [ (Scribus name, Family, Real name, subset (1|0), embed PS (1|0), font file), (...), ... ] |
1207 | </translation> |
1216 | </translation> |
1208 | </message> |
1217 | </message> |
1209 | <message> |
1218 | <message> |
1210 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="62"/> |
1219 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="52"/> |
1211 | <source>renderFont("name", "filename", "sample", size, format="PPM") -> bool |
1220 | <source>renderFont("name", "filename", "sample", size, format="PPM") -> bool |
1212 | 1221 | ||
1213 | Creates an image preview of font "name" with given text "sample" and size. |
1222 | Creates an image preview of font "name" with given text "sample" and size. |
1214 | If "filename" is not "", image is saved into "filename". Otherwise |
1223 | If "filename" is not "", image is saved into "filename". Otherwise |
1215 | image data is returned as a string. The optional "format" argument |
1224 | image data is returned as a string. The optional "format" argument |
Line 1230... | Line 1239... | ||
1230 | May raise NotFoundError if the specified font can't be found. |
1239 | May raise NotFoundError if the specified font can't be found. |
1231 | May raise ValueError if an empty sample or filename is passed. |
1240 | May raise ValueError if an empty sample or filename is passed. |
1232 | </translation> |
1241 | </translation> |
1233 | </message> |
1242 | </message> |
1234 | <message> |
1243 | <message> |
1235 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="71"/> |
1244 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="68"/> |
1236 | <source>getLayers() -> list |
1245 | <source>getLayers() -> list |
1237 | 1246 | ||
1238 | Returns a list with the names of all defined layers. |
1247 | Returns a list with the names of all defined layers. |
1239 | </source> |
1248 | </source> |
1240 | <translation type="unfinished">getLayers() -> list |
1249 | <translation type="unfinished">getLayers() -> list |
1241 | 1250 | ||
1242 | Returns a list with the names of all defined layers. |
1251 | Returns a list with the names of all defined layers. |
1243 | </translation> |
1252 | </translation> |
1244 | </message> |
1253 | </message> |
1245 | <message> |
1254 | <message> |
1246 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="83"/> |
1255 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="77"/> |
1247 | <source>setActiveLayer("name") |
1256 | <source>setActiveLayer("name") |
1248 | 1257 | ||
1249 | Sets the active layer to the layer named "name". |
1258 | Sets the active layer to the layer named "name". |
1250 | 1259 | ||
1251 | May raise NotFoundError if the layer can't be found. |
1260 | May raise NotFoundError if the layer can't be found. |
Line 1258... | Line 1267... | ||
1258 | May raise NotFoundError if the layer can't be found. |
1267 | May raise NotFoundError if the layer can't be found. |
1259 | May raise ValueError if the layer name isn't acceptable. |
1268 | May raise ValueError if the layer name isn't acceptable. |
1260 | </translation> |
1269 | </translation> |
1261 | </message> |
1270 | </message> |
1262 | <message> |
1271 | <message> |
1263 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="92"/> |
1272 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="89"/> |
1264 | <source>getActiveLayer() -> string |
1273 | <source>getActiveLayer() -> string |
1265 | 1274 | ||
1266 | Returns the name of the current active layer. |
1275 | Returns the name of the current active layer. |
1267 | </source> |
1276 | </source> |
1268 | <translation type="unfinished">getActiveLayer() -> string |
1277 | <translation type="unfinished">getActiveLayer() -> string |
1269 | 1278 | ||
1270 | Returns the name of the current active layer. |
1279 | Returns the name of the current active layer. |
1271 | </translation> |
1280 | </translation> |
1272 | </message> |
1281 | </message> |
1273 | <message> |
1282 | <message> |
1274 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="105"/> |
1283 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="98"/> |
1275 | <source>sentToLayer("layer" [, "name"]) |
1284 | <source>sentToLayer("layer" [, "name"]) |
1276 | 1285 | ||
1277 | Sends the object "name" to the layer "layer". The layer must exist. |
1286 | Sends the object "name" to the layer "layer". The layer must exist. |
1278 | If "name" is not given the currently selected item is used. |
1287 | If "name" is not given the currently selected item is used. |
1279 | 1288 | ||
Line 1288... | Line 1297... | ||
1288 | May raise NotFoundError if the layer can't be found. |
1297 | May raise NotFoundError if the layer can't be found. |
1289 | May raise ValueError if the layer name isn't acceptable. |
1298 | May raise ValueError if the layer name isn't acceptable. |
1290 | </translation> |
1299 | </translation> |
1291 | </message> |
1300 | </message> |
1292 | <message> |
1301 | <message> |
1293 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="118"/> |
1302 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="111"/> |
1294 | <source>setLayerVisible("layer", visible) |
1303 | <source>setLayerVisible("layer", visible) |
1295 | 1304 | ||
1296 | Sets the layer "layer" to be visible or not. If is the visible set to false |
1305 | Sets the layer "layer" to be visible or not. If is the visible set to false |
1297 | the layer is invisible. |
1306 | the layer is invisible. |
1298 | 1307 | ||
Line 1307... | Line 1316... | ||
1307 | May raise NotFoundError if the layer can't be found. |
1316 | May raise NotFoundError if the layer can't be found. |
1308 | May raise ValueError if the layer name isn't acceptable. |
1317 | May raise ValueError if the layer name isn't acceptable. |
1309 | </translation> |
1318 | </translation> |
1310 | </message> |
1319 | </message> |
1311 | <message> |
1320 | <message> |
1312 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="131"/> |
1321 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="124"/> |
1313 | <source>setLayerPrintable("layer", printable) |
1322 | <source>setLayerPrintable("layer", printable) |
1314 | 1323 | ||
1315 | Sets the layer "layer" to be printable or not. If is the |
1324 | Sets the layer "layer" to be printable or not. If is the |
1316 | printable set to false the layer won't be printed. |
1325 | printable set to false the layer won't be printed. |
1317 | 1326 | ||
Line 1319... | Line 1328... | ||
1319 | May raise ValueError if the layer name isn't acceptable. |
1328 | May raise ValueError if the layer name isn't acceptable. |
1320 | </source> |
1329 | </source> |
1321 | <translation type="unfinished"></translation> |
1330 | <translation type="unfinished"></translation> |
1322 | </message> |
1331 | </message> |
1323 | <message> |
1332 | <message> |
1324 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="144"/> |
1333 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="137"/> |
1325 | <source>setLayerLocked("layer", locked) |
1334 | <source>setLayerLocked("layer", locked) |
1326 | 1335 | ||
1327 | Sets the layer "layer" to be locked or not. If locked is set to |
1336 | Sets the layer "layer" to be locked or not. If locked is set to |
1328 | true the layer will be locked. |
1337 | true the layer will be locked. |
1329 | 1338 | ||
Line 1331... | Line 1340... | ||
1331 | May raise ValueError if the layer name isn't acceptable. |
1340 | May raise ValueError if the layer name isn't acceptable. |
1332 | </source> |
1341 | </source> |
1333 | <translation type="unfinished"></translation> |
1342 | <translation type="unfinished"></translation> |
1334 | </message> |
1343 | </message> |
1335 | <message> |
1344 | <message> |
1336 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="157"/> |
1345 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="150"/> |
1337 | <source>setLayerOutlined("layer", outline) |
1346 | <source>setLayerOutlined("layer", outline) |
1338 | 1347 | ||
1339 | Sets the layer "layer" to be locked or not. If outline is set to |
1348 | Sets the layer "layer" to be locked or not. If outline is set to |
1340 | true the layer will be displayed outlined. |
1349 | true the layer will be displayed outlined. |
1341 | 1350 | ||
Line 1343... | Line 1352... | ||
1343 | May raise ValueError if the layer name isn't acceptable. |
1352 | May raise ValueError if the layer name isn't acceptable. |
1344 | </source> |
1353 | </source> |
1345 | <translation type="unfinished"></translation> |
1354 | <translation type="unfinished"></translation> |
1346 | </message> |
1355 | </message> |
1347 | <message> |
1356 | <message> |
1348 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="170"/> |
1357 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="163"/> |
1349 | <source>setLayerFlow("layer", flow) |
1358 | <source>setLayerFlow("layer", flow) |
1350 | 1359 | ||
1351 | Sets the layers "layer" flowcontrol to flow. If flow is set to |
1360 | Sets the layers "layer" flowcontrol to flow. If flow is set to |
1352 | true text in layers above this one will flow around objects on this layer. |
1361 | true text in layers above this one will flow around objects on this layer. |
1353 | 1362 | ||
Line 1355... | Line 1364... | ||
1355 | May raise ValueError if the layer name isn't acceptable. |
1364 | May raise ValueError if the layer name isn't acceptable. |
1356 | </source> |
1365 | </source> |
1357 | <translation type="unfinished"></translation> |
1366 | <translation type="unfinished"></translation> |
1358 | </message> |
1367 | </message> |
1359 | <message> |
1368 | <message> |
1360 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="182"/> |
1369 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="176"/> |
1361 | <source>setLayerBlendmode("layer", blend) |
1370 | <source>setLayerBlendmode("layer", blend) |
1362 | 1371 | ||
1363 | Sets the layers "layer" blendmode to blend. |
1372 | Sets the layers "layer" blendmode to blend. |
1364 | 1373 | ||
1365 | May raise NotFoundError if the layer can't be found. |
1374 | May raise NotFoundError if the layer can't be found. |
1366 | May raise ValueError if the layer name isn't acceptable. |
1375 | May raise ValueError if the layer name isn't acceptable. |
1367 | </source> |
1376 | </source> |
1368 | <translation type="unfinished"></translation> |
1377 | <translation type="unfinished"></translation> |
1369 | </message> |
1378 | </message> |
1370 | <message> |
1379 | <message> |
1371 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="194"/> |
1380 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="188"/> |
1372 | <source>setLayerTransparency("layer", trans) |
1381 | <source>setLayerTransparency("layer", trans) |
1373 | 1382 | ||
1374 | Sets the layers "layer" transparency to trans. |
1383 | Sets the layers "layer" transparency to trans. |
1375 | 1384 | ||
1376 | May raise NotFoundError if the layer can't be found. |
1385 | May raise NotFoundError if the layer can't be found. |
1377 | May raise ValueError if the layer name isn't acceptable. |
1386 | May raise ValueError if the layer name isn't acceptable. |
1378 | </source> |
1387 | </source> |
1379 | <translation type="unfinished"></translation> |
1388 | <translation type="unfinished"></translation> |
1380 | </message> |
1389 | </message> |
1381 | <message> |
1390 | <message> |
1382 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="208"/> |
1391 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="200"/> |
1383 | <source>isLayerVisible("layer") -> bool |
1392 | <source>isLayerVisible("layer") -> bool |
1384 | 1393 | ||
1385 | Returns whether the layer "layer" is visible or not, a value of True means |
1394 | Returns whether the layer "layer" is visible or not, a value of True means |
1386 | that the layer "layer" is visible, a value of False means that the layer |
1395 | that the layer "layer" is visible, a value of False means that the layer |
1387 | "layer" is invisible. |
1396 | "layer" is invisible. |
Line 1390... | Line 1399... | ||
1390 | May raise ValueError if the layer name isn't acceptable. |
1399 | May raise ValueError if the layer name isn't acceptable. |
1391 | </source> |
1400 | </source> |
1392 | <translation type="unfinished"></translation> |
1401 | <translation type="unfinished"></translation> |
1393 | </message> |
1402 | </message> |
1394 | <message> |
1403 | <message> |
1395 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="222"/> |
1404 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="214"/> |
1396 | <source>isLayerPrintable("layer") -> bool |
1405 | <source>isLayerPrintable("layer") -> bool |
1397 | 1406 | ||
1398 | Returns whether the layer "layer" is printable or not, a value of True means |
1407 | Returns whether the layer "layer" is printable or not, a value of True means |
1399 | that the layer "layer" can be printed, a value of False means that printing |
1408 | that the layer "layer" can be printed, a value of False means that printing |
1400 | the layer "layer" is disabled. |
1409 | the layer "layer" is disabled. |
Line 1411... | Line 1420... | ||
1411 | May raise NotFoundError if the layer can't be found. |
1420 | May raise NotFoundError if the layer can't be found. |
1412 | May raise ValueError if the layer name isn't acceptable. |
1421 | May raise ValueError if the layer name isn't acceptable. |
1413 | </translation> |
1422 | </translation> |
1414 | </message> |
1423 | </message> |
1415 | <message> |
1424 | <message> |
1416 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="236"/> |
1425 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="228"/> |
1417 | <source>isLayerLocked("layer") -> bool |
1426 | <source>isLayerLocked("layer") -> bool |
1418 | 1427 | ||
1419 | Returns whether the layer "layer" is locked or not, a value of True means |
1428 | Returns whether the layer "layer" is locked or not, a value of True means |
1420 | that the layer "layer" is editable, a value of False means that the layer |
1429 | that the layer "layer" is editable, a value of False means that the layer |
1421 | "layer" is locked. |
1430 | "layer" is locked. |
Line 1424... | Line 1433... | ||
1424 | May raise ValueError if the layer name isn't acceptable. |
1433 | May raise ValueError if the layer name isn't acceptable. |
1425 | </source> |
1434 | </source> |
1426 | <translation type="unfinished"></translation> |
1435 | <translation type="unfinished"></translation> |
1427 | </message> |
1436 | </message> |
1428 | <message> |
1437 | <message> |
1429 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="250"/> |
1438 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="242"/> |
1430 | <source>isLayerOutlined("layer") -> bool |
1439 | <source>isLayerOutlined("layer") -> bool |
1431 | 1440 | ||
1432 | Returns whether the layer "layer" is outlined or not, a value of True means |
1441 | Returns whether the layer "layer" is outlined or not, a value of True means |
1433 | that the layer "layer" is outlined, a value of False means that the layer |
1442 | that the layer "layer" is outlined, a value of False means that the layer |
1434 | "layer" is normal. |
1443 | "layer" is normal. |
Line 1437... | Line 1446... | ||
1437 | May raise ValueError if the layer name isn't acceptable. |
1446 | May raise ValueError if the layer name isn't acceptable. |
1438 | </source> |
1447 | </source> |
1439 | <translation type="unfinished"></translation> |
1448 | <translation type="unfinished"></translation> |
1440 | </message> |
1449 | </message> |
1441 | <message> |
1450 | <message> |
1442 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="263"/> |
1451 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="256"/> |
1443 | <source>isLayerFlow("layer") -> bool |
1452 | <source>isLayerFlow("layer") -> bool |
1444 | 1453 | ||
1445 | Returns whether text flows around objects on layer "layer", a value of True means |
1454 | Returns whether text flows around objects on layer "layer", a value of True means |
1446 | that text flows around, a value of False means that the text does not flow around. |
1455 | that text flows around, a value of False means that the text does not flow around. |
1447 | 1456 | ||
Line 1449... | Line 1458... | ||
1449 | May raise ValueError if the layer name isn't acceptable. |
1458 | May raise ValueError if the layer name isn't acceptable. |
1450 | </source> |
1459 | </source> |
1451 | <translation type="unfinished"></translation> |
1460 | <translation type="unfinished"></translation> |
1452 | </message> |
1461 | </message> |
1453 | <message> |
1462 | <message> |
1454 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="275"/> |
1463 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="269"/> |
1455 | <source>getLayerBlendmode("layer") -> int |
1464 | <source>getLayerBlendmode("layer") -> int |
1456 | 1465 | ||
1457 | Returns the "layer" layer blendmode, |
1466 | Returns the "layer" layer blendmode, |
1458 | 1467 | ||
1459 | May raise NotFoundError if the layer can't be found. |
1468 | May raise NotFoundError if the layer can't be found. |
1460 | May raise ValueError if the layer name isn't acceptable. |
1469 | May raise ValueError if the layer name isn't acceptable. |
1461 | </source> |
1470 | </source> |
1462 | <translation type="unfinished"></translation> |
1471 | <translation type="unfinished"></translation> |
1463 | </message> |
1472 | </message> |
1464 | <message> |
1473 | <message> |
1465 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="287"/> |
1474 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="281"/> |
1466 | <source>getLayerTransparency("layer") -> float |
1475 | <source>getLayerTransparency("layer") -> float |
1467 | 1476 | ||
1468 | Returns the "layer" layer transparency, |
1477 | Returns the "layer" layer transparency, |
1469 | 1478 | ||
1470 | May raise NotFoundError if the layer can't be found. |
1479 | May raise NotFoundError if the layer can't be found. |
1471 | May raise ValueError if the layer name isn't acceptable. |
1480 | May raise ValueError if the layer name isn't acceptable. |
1472 | </source> |
1481 | </source> |
1473 | <translation type="unfinished"></translation> |
1482 | <translation type="unfinished"></translation> |
1474 | </message> |
1483 | </message> |
1475 | <message> |
1484 | <message> |
1476 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="300"/> |
1485 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="293"/> |
1477 | <source>deleteLayer("layer") |
1486 | <source>deleteLayer("layer") |
1478 | 1487 | ||
1479 | Deletes the layer with the name "layer". Nothing happens if the layer doesn't |
1488 | Deletes the layer with the name "layer". Nothing happens if the layer doesn't |
1480 | exists or if it's the only layer in the document. |
1489 | exists or if it's the only layer in the document. |
1481 | 1490 | ||
Line 1490... | Line 1499... | ||
1490 | May raise NotFoundError if the layer can't be found. |
1499 | May raise NotFoundError if the layer can't be found. |
1491 | May raise ValueError if the layer name isn't acceptable. |
1500 | May raise ValueError if the layer name isn't acceptable. |
1492 | </translation> |
1501 | </translation> |
1493 | </message> |
1502 | </message> |
1494 | <message> |
1503 | <message> |
1495 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="311"/> |
1504 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="306"/> |
1496 | <source>createLayer(layer) |
1505 | <source>createLayer(layer) |
1497 | 1506 | ||
1498 | Creates a new layer with the name "name". |
1507 | Creates a new layer with the name "name". |
1499 | 1508 | ||
1500 | May raise ValueError if the layer name isn't acceptable. |
1509 | May raise ValueError if the layer name isn't acceptable. |
Line 1505... | Line 1514... | ||
1505 | 1514 | ||
1506 | May raise ValueError if the layer name isn't acceptable. |
1515 | May raise ValueError if the layer name isn't acceptable. |
1507 | </translation> |
1516 | </translation> |
1508 | </message> |
1517 | </message> |
1509 | <message> |
1518 | <message> |
1510 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="320"/> |
1519 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="317"/> |
1511 | <source>getGuiLanguage() -> string |
1520 | <source>getGuiLanguage() -> string |
1512 | 1521 | ||
1513 | Returns a string with the -lang value. |
1522 | Returns a string with the -lang value. |
1514 | </source> |
1523 | </source> |
1515 | <translation type="unfinished">getGuiLanguage() -> string |
1524 | <translation type="unfinished">getGuiLanguage() -> string |
1516 | 1525 | ||
1517 | Returns a string with the -lang value. |
1526 | Returns a string with the -lang value. |
1518 | </translation> |
1527 | </translation> |
1519 | </message> |
1528 | </message> |
1520 | <message> |
1529 | <message> |
1521 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="329"/> |
1530 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="326"/> |
1522 | <source>moveSelectionToFront() |
1531 | <source>moveSelectionToFront() |
1523 | 1532 | ||
1524 | Moves current selection to front. |
1533 | Moves current selection to front. |
1525 | </source> |
1534 | </source> |
1526 | <translation type="unfinished"></translation> |
1535 | <translation type="unfinished"></translation> |
1527 | </message> |
1536 | </message> |
1528 | <message> |
1537 | <message> |
1529 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="338"/> |
1538 | <location filename="../../../scribus/plugins/scriptplugin/cmdmisc.h" line="335"/> |
1530 | <source>moveSelectionToFront() |
1539 | <source>moveSelectionToFront() |
1531 | 1540 | ||
1532 | Moves current selection to back. |
1541 | Moves current selection to back. |
1533 | </source> |
1542 | </source> |
1534 | <translation type="unfinished"></translation> |
1543 | <translation type="unfinished"></translation> |
1535 | </message> |
1544 | </message> |
1536 | <message> |
1545 | <message> |
1537 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="26"/> |
1546 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="17"/> |
1538 | <source>createRect(x, y, width, height, ["name"]) -> string |
1547 | <source>createRect(x, y, width, height, ["name"]) -> string |
1539 | 1548 | ||
1540 | Creates a new rectangle on the current page and returns its name. The |
1549 | Creates a new rectangle on the current page and returns its name. The |
1541 | coordinates are given in the current measurement units of the document |
1550 | coordinates are given in the current measurement units of the document |
1542 | (see UNIT constants). "name" should be a unique identifier for the object |
1551 | (see UNIT constants). "name" should be a unique identifier for the object |
Line 1555... | Line 1564... | ||
1555 | 1564 | ||
1556 | May raise NameExistsError if you explicitly pass a name that's already used. |
1565 | May raise NameExistsError if you explicitly pass a name that's already used. |
1557 | </translation> |
1566 | </translation> |
1558 | </message> |
1567 | </message> |
1559 | <message> |
1568 | <message> |
1560 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="43"/> |
1569 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="34"/> |
1561 | <source>createEllipse(x, y, width, height, ["name"]) -> string |
1570 | <source>createEllipse(x, y, width, height, ["name"]) -> string |
1562 | 1571 | ||
1563 | Creates a new ellipse on the current page and returns its name. |
1572 | Creates a new ellipse on the current page and returns its name. |
1564 | The coordinates are given in the current measurement units of the document |
1573 | The coordinates are given in the current measurement units of the document |
1565 | (see UNIT constants). "name" should be a unique identifier for the object |
1574 | (see UNIT constants). "name" should be a unique identifier for the object |
Line 1578... | Line 1587... | ||
1578 | 1587 | ||
1579 | May raise NameExistsError if you explicitly pass a name that's already used. |
1588 | May raise NameExistsError if you explicitly pass a name that's already used. |
1580 | </translation> |
1589 | </translation> |
1581 | </message> |
1590 | </message> |
1582 | <message> |
1591 | <message> |
1583 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="60"/> |
1592 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="51"/> |
1584 | <source>createImage(x, y, width, height, ["name"]) -> string |
1593 | <source>createImage(x, y, width, height, ["name"]) -> string |
1585 | 1594 | ||
1586 | Creates a new picture frame on the current page and returns its name. The |
1595 | Creates a new picture frame on the current page and returns its name. The |
1587 | coordinates are given in the current measurement units of the document. |
1596 | coordinates are given in the current measurement units of the document. |
1588 | "name" should be a unique identifier for the object because you need this |
1597 | "name" should be a unique identifier for the object because you need this |
Line 1601... | Line 1610... | ||
1601 | 1610 | ||
1602 | May raise NameExistsError if you explicitly pass a name that's already used. |
1611 | May raise NameExistsError if you explicitly pass a name that's already used. |
1603 | </translation> |
1612 | </translation> |
1604 | </message> |
1613 | </message> |
1605 | <message> |
1614 | <message> |
1606 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="75"/> |
1615 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="66"/> |
1607 | <source>createText(x, y, width, height, ["name"]) -> string |
1616 | <source>createText(x, y, width, height, ["name"]) -> string |
1608 | 1617 | ||
1609 | Creates a new text frame on the actual page and returns its name. |
1618 | Creates a new text frame on the actual page and returns its name. |
1610 | The coordinates are given in the actual measurement unit of the document (see |
1619 | The coordinates are given in the actual measurement unit of the document (see |
1611 | UNIT constants). "name" should be a unique identifier for the object because |
1620 | UNIT constants). "name" should be a unique identifier for the object because |
Line 1624... | Line 1633... | ||
1624 | 1633 | ||
1625 | May raise NameExistsError if you explicitly pass a name that's already used. |
1634 | May raise NameExistsError if you explicitly pass a name that's already used. |
1626 | </translation> |
1635 | </translation> |
1627 | </message> |
1636 | </message> |
1628 | <message> |
1637 | <message> |
1629 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="90"/> |
1638 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="81"/> |
1630 | <source>createLine(x1, y1, x2, y2, ["name"]) -> string |
1639 | <source>createLine(x1, y1, x2, y2, ["name"]) -> string |
1631 | 1640 | ||
1632 | Creates a new line from the point(x1, y1) to the point(x2, y2) and returns |
1641 | Creates a new line from the point(x1, y1) to the point(x2, y2) and returns |
1633 | its name. The coordinates are given in the current measurement unit of the |
1642 | its name. The coordinates are given in the current measurement unit of the |
1634 | document (see UNIT constants). "name" should be a unique identifier for the |
1643 | document (see UNIT constants). "name" should be a unique identifier for the |
Line 1647... | Line 1656... | ||
1647 | 1656 | ||
1648 | May raise NameExistsError if you explicitly pass a name that's already used. |
1657 | May raise NameExistsError if you explicitly pass a name that's already used. |
1649 | </translation> |
1658 | </translation> |
1650 | </message> |
1659 | </message> |
1651 | <message> |
1660 | <message> |
1652 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="108"/> |
1661 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="96"/> |
1653 | <source>createPolyLine(list, ["name"]) -> string |
1662 | <source>createPolyLine(list, ["name"]) -> string |
1654 | 1663 | ||
1655 | Creates a new polyline and returns its name. The points for the polyline are |
1664 | Creates a new polyline and returns its name. The points for the polyline are |
1656 | stored in the list "list" in the following order: [x1, y1, x2, y2...xn. yn]. |
1665 | stored in the list "list" in the following order: [x1, y1, x2, y2...xn. yn]. |
1657 | The coordinates are given in the current measurement units of the document (see |
1666 | The coordinates are given in the current measurement units of the document (see |
Line 1676... | Line 1685... | ||
1676 | May raise ValueError if an insufficient number of points is passed or if |
1685 | May raise ValueError if an insufficient number of points is passed or if |
1677 | the number of values passed don't group into points without leftovers. |
1686 | the number of values passed don't group into points without leftovers. |
1678 | </translation> |
1687 | </translation> |
1679 | </message> |
1688 | </message> |
1680 | <message> |
1689 | <message> |
1681 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="128"/> |
1690 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="114"/> |
1682 | <source>createPolygon(list, ["name"]) -> string |
1691 | <source>createPolygon(list, ["name"]) -> string |
1683 | 1692 | ||
1684 | Creates a new polygon and returns its name. The points for the polygon are |
1693 | Creates a new polygon and returns its name. The points for the polygon are |
1685 | stored in the list "list" in the following order: [x1, y1, x2, y2...xn. yn]. |
1694 | stored in the list "list" in the following order: [x1, y1, x2, y2...xn. yn]. |
1686 | At least three points are required. There is no need to repeat the first point |
1695 | At least three points are required. There is no need to repeat the first point |
Line 1709... | Line 1718... | ||
1709 | May raise ValueError if an insufficient number of points is passed or if |
1718 | May raise ValueError if an insufficient number of points is passed or if |
1710 | the number of values passed don't group into points without leftovers. |
1719 | the number of values passed don't group into points without leftovers. |
1711 | </translation> |
1720 | </translation> |
1712 | </message> |
1721 | </message> |
1713 | <message> |
1722 | <message> |
1714 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="149"/> |
1723 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="134"/> |
1715 | <source>createBezierLine(list, ["name"]) -> string |
1724 | <source>createBezierLine(list, ["name"]) -> string |
1716 | 1725 | ||
1717 | Creates a new bezier curve and returns its name. The points for the bezier |
1726 | Creates a new bezier curve and returns its name. The points for the bezier |
1718 | curve are stored in the list "list" in the following order: |
1727 | curve are stored in the list "list" in the following order: |
1719 | [x1, y1, kx1, ky1, x2, y2, kx2, ky2...xn. yn, kxn. kyn] |
1728 | [x1, y1, kx1, ky1, x2, y2, kx2, ky2...xn. yn, kxn. kyn] |
Line 1744... | Line 1753... | ||
1744 | May raise ValueError if an insufficient number of points is passed or if |
1753 | May raise ValueError if an insufficient number of points is passed or if |
1745 | the number of values passed don't group into points without leftovers. |
1754 | the number of values passed don't group into points without leftovers. |
1746 | </translation> |
1755 | </translation> |
1747 | </message> |
1756 | </message> |
1748 | <message> |
1757 | <message> |
1749 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="165"/> |
1758 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="155"/> |
1750 | <source>createPathText(x, y, "textbox", "beziercurve", ["name"]) -> string |
1759 | <source>createPathText(x, y, "textbox", "beziercurve", ["name"]) -> string |
1751 | 1760 | ||
1752 | Creates a new pathText by merging the two objects "textbox" and |
1761 | Creates a new pathText by merging the two objects "textbox" and |
1753 | "beziercurve" and returns its name. The coordinates are given in the current |
1762 | "beziercurve" and returns its name. The coordinates are given in the current |
1754 | measurement unit of the document (see UNIT constants). "name" should be a |
1763 | measurement unit of the document (see UNIT constants). "name" should be a |
Line 1769... | Line 1778... | ||
1769 | May raise NameExistsError if you explicitly pass a name that's already used. |
1778 | May raise NameExistsError if you explicitly pass a name that's already used. |
1770 | May raise NotFoundError if one or both of the named base object don't exist. |
1779 | May raise NotFoundError if one or both of the named base object don't exist. |
1771 | </translation> |
1780 | </translation> |
1772 | </message> |
1781 | </message> |
1773 | <message> |
1782 | <message> |
1774 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="177"/> |
1783 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="173"/> |
1775 | <source>deleteObject(["name"]) |
1784 | <source>deleteObject(["name"]) |
1776 | 1785 | ||
1777 | Deletes the item with the name "name". If "name" is not given the currently |
1786 | Deletes the item with the name "name". If "name" is not given the currently |
1778 | selected item is deleted. |
1787 | selected item is deleted. |
1779 | </source> |
1788 | </source> |
Line 1782... | Line 1791... | ||
1782 | Deletes the item with the name "name". If "name" is not given the currently |
1791 | Deletes the item with the name "name". If "name" is not given the currently |
1783 | selected item is deleted. |
1792 | selected item is deleted. |
1784 | </translation> |
1793 | </translation> |
1785 | </message> |
1794 | </message> |
1786 | <message> |
1795 | <message> |
1787 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="193"/> |
1796 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="184"/> |
1788 | <source>textFlowMode("name" [, state]) |
1797 | <source>textFlowMode("name" [, state]) |
1789 | 1798 | ||
1790 | Enables/disables "Text Flows Around Frame" feature for object "name". |
1799 | Enables/disables "Text Flows Around Frame" feature for object "name". |
1791 | Called with parameters string name and optional int "state" (0 <= state <= 3). |
1800 | Called with parameters string name and optional int "state" (0 <= state <= 3). |
1792 | Setting "state" to 0 will disable text flow. |
1801 | Setting "state" to 0 will disable text flow. |
Line 1796... | Line 1805... | ||
1796 | If "state" is not passed, text flow is toggled. |
1805 | If "state" is not passed, text flow is toggled. |
1797 | </source> |
1806 | </source> |
1798 | <translation type="unfinished"></translation> |
1807 | <translation type="unfinished"></translation> |
1799 | </message> |
1808 | </message> |
1800 | <message> |
1809 | <message> |
1801 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="211"/> |
1810 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="206"/> |
1802 | <source>objectExists(["name"]) -> bool |
1811 | <source>objectExists(["name"]) -> bool |
1803 | 1812 | ||
1804 | Test if an object with specified name really exists in the document. |
1813 | Test if an object with specified name really exists in the document. |
1805 | The optional parameter is the object name. When no object name is given, |
1814 | The optional parameter is the object name. When no object name is given, |
1806 | returns True if there is something selected. |
1815 | returns True if there is something selected. |
Line 1811... | Line 1820... | ||
1811 | The optional parameter is the object name. When no object name is given, |
1820 | The optional parameter is the object name. When no object name is given, |
1812 | returns True if there is something selected. |
1821 | returns True if there is something selected. |
1813 | </translation> |
1822 | </translation> |
1814 | </message> |
1823 | </message> |
1815 | <message> |
1824 | <message> |
1816 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="227"/> |
1825 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="223"/> |
1817 | <source>setStyle("style" [, "name"]) |
1826 | <source>setStyle("style" [, "name"]) |
1818 | 1827 | ||
1819 | Apply the named "style" to the object named "name". If is no object name |
1828 | Apply the named "style" to the object named "name". If is no object name |
1820 | given, it's applied on the selected object. |
1829 | given, it's applied on the selected object. |
1821 | </source> |
1830 | </source> |
Line 1824... | Line 1833... | ||
1824 | Apply the named "style" to the object named "name". If is no object name |
1833 | Apply the named "style" to the object named "name". If is no object name |
1825 | given, it's applied on the selected object. |
1834 | given, it's applied on the selected object. |
1826 | </translation> |
1835 | </translation> |
1827 | </message> |
1836 | </message> |
1828 | <message> |
1837 | <message> |
1829 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="240"/> |
1838 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="237"/> |
1830 | <source>getAllStyles() -> list |
1839 | <source>getAllStyles() -> list |
1831 | 1840 | ||
1832 | Return a list of the names of all paragraph styles in the current document. |
1841 | Return a list of the names of all paragraph styles in the current document. |
1833 | </source> |
1842 | </source> |
1834 | <translation type="unfinished">getAllStyles() -> list |
1843 | <translation type="unfinished">getAllStyles() -> list |
1835 | 1844 | ||
1836 | Return a list of the names of all paragraph styles in the current document. |
1845 | Return a list of the names of all paragraph styles in the current document. |
1837 | </translation> |
1846 | </translation> |
1838 | </message> |
1847 | </message> |
1839 | <message> |
1848 | <message> |
1840 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="252"/> |
1849 | <location filename="../../../scribus/plugins/scriptplugin/cmdobj.h" line="249"/> |
1841 | <source>duplicateObject(["name"]) -> string |
1850 | <source>duplicateObject(["name"]) -> string |
1842 | 1851 | ||
1843 | creates a Duplicate of the selected Object (or Selection Group). |
1852 | creates a Duplicate of the selected Object (or Selection Group). |
1844 | </source> |
1853 | </source> |
1845 | <translation type="unfinished"></translation> |
1854 | <translation type="unfinished"></translation> |
1846 | </message> |
1855 | </message> |
1847 | <message> |
1856 | <message> |
1848 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="26"/> |
1857 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="17"/> |
1849 | <source>newPage(where [,"masterpage"]) |
1858 | <source>newPage(where [,"masterpage"]) |
1850 | 1859 | ||
1851 | Creates a new page. If "where" is -1 the new Page is appended to the |
1860 | Creates a new page. If "where" is -1 the new Page is appended to the |
1852 | document, otherwise the new page is inserted before "where". Page numbers are |
1861 | document, otherwise the new page is inserted before "where". Page numbers are |
1853 | counted from 1 upwards, no matter what the displayed first page number of your |
1862 | counted from 1 upwards, no matter what the displayed first page number of your |
Line 1866... | Line 1875... | ||
1866 | 1875 | ||
1867 | May raise IndexError if the page number is out of range |
1876 | May raise IndexError if the page number is out of range |
1868 | </translation> |
1877 | </translation> |
1869 | </message> |
1878 | </message> |
1870 | <message> |
1879 | <message> |
1871 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="36"/> |
1880 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="32"/> |
1872 | <source>currentPage() -> integer |
1881 | <source>currentPage() -> integer |
1873 | 1882 | ||
1874 | Returns the number of the current working page. Page numbers are counted from 1 |
1883 | Returns the number of the current working page. Page numbers are counted from 1 |
1875 | upwards, no matter what the displayed first page number of your document is. |
1884 | upwards, no matter what the displayed first page number of your document is. |
1876 | </source> |
1885 | </source> |
Line 1879... | Line 1888... | ||
1879 | Returns the number of the current working page. Page numbers are counted from 1 |
1888 | Returns the number of the current working page. Page numbers are counted from 1 |
1880 | upwards, no matter what the displayed first page number of your document is. |
1889 | upwards, no matter what the displayed first page number of your document is. |
1881 | </translation> |
1890 | </translation> |
1882 | </message> |
1891 | </message> |
1883 | <message> |
1892 | <message> |
1884 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="45"/> |
1893 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="42"/> |
1885 | <source>redrawAll() |
1894 | <source>redrawAll() |
1886 | 1895 | ||
1887 | Redraws all pages. |
1896 | Redraws all pages. |
1888 | </source> |
1897 | </source> |
1889 | <translation type="unfinished">redrawAll() |
1898 | <translation type="unfinished">redrawAll() |
1890 | 1899 | ||
1891 | Redraws all pages. |
1900 | Redraws all pages. |
1892 | </translation> |
1901 | </translation> |
1893 | </message> |
1902 | </message> |
1894 | <message> |
1903 | <message> |
1895 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="54"/> |
1904 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="51"/> |
1896 | <source>getPageType() -> integer |
1905 | <source>getPageType() -> integer |
1897 | 1906 | ||
1898 | Returns the type of the Page, 0 means left Page, 1 is a middle Page and 2 is a right Page |
1907 | Returns the type of the Page, 0 means left Page, 1 is a middle Page and 2 is a right Page |
1899 | </source> |
1908 | </source> |
1900 | <translation type="unfinished"></translation> |
1909 | <translation type="unfinished"></translation> |
1901 | </message> |
1910 | </message> |
1902 | <message> |
1911 | <message> |
1903 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="65"/> |
1912 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="60"/> |
1904 | <source>savePageAsEPS("name") |
1913 | <source>savePageAsEPS("name") |
1905 | 1914 | ||
1906 | Saves the current page as an EPS to the file "name". |
1915 | Saves the current page as an EPS to the file "name". |
1907 | 1916 | ||
1908 | May raise ScribusError if the save failed. |
1917 | May raise ScribusError if the save failed. |
Line 1913... | Line 1922... | ||
1913 | 1922 | ||
1914 | May raise ScribusError if the save failed. |
1923 | May raise ScribusError if the save failed. |
1915 | </translation> |
1924 | </translation> |
1916 | </message> |
1925 | </message> |
1917 | <message> |
1926 | <message> |
1918 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="78"/> |
1927 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="71"/> |
1919 | <source>deletePage(nr) |
1928 | <source>deletePage(nr) |
1920 | 1929 | ||
1921 | Deletes the given page. Does nothing if the document contains only one page. |
1930 | Deletes the given page. Does nothing if the document contains only one page. |
1922 | Page numbers are counted from 1 upwards, no matter what the displayed first |
1931 | Page numbers are counted from 1 upwards, no matter what the displayed first |
1923 | page number is. |
1932 | page number is. |
Line 1932... | Line 1941... | ||
1932 | 1941 | ||
1933 | May raise IndexError if the page number is out of range |
1942 | May raise IndexError if the page number is out of range |
1934 | </translation> |
1943 | </translation> |
1935 | </message> |
1944 | </message> |
1936 | <message> |
1945 | <message> |
1937 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="91"/> |
1946 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="84"/> |
1938 | <source>gotoPage(nr) |
1947 | <source>gotoPage(nr) |
1939 | 1948 | ||
1940 | Moves to the page "nr" (that is, makes the current page "nr"). Note that |
1949 | Moves to the page "nr" (that is, makes the current page "nr"). Note that |
1941 | gotoPage doesn't (currently) change the page the user's view is displaying, it |
1950 | gotoPage doesn't (currently) change the page the user's view is displaying, it |
1942 | just sets the page that script commands will operates on. |
1951 | just sets the page that script commands will operates on. |
Line 1944... | Line 1953... | ||
1944 | May raise IndexError if the page number is out of range. |
1953 | May raise IndexError if the page number is out of range. |
1945 | </source> |
1954 | </source> |
1946 | <translation type="unfinished"></translation> |
1955 | <translation type="unfinished"></translation> |
1947 | </message> |
1956 | </message> |
1948 | <message> |
1957 | <message> |
1949 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="100"/> |
1958 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="97"/> |
1950 | <source>pageCount() -> integer |
1959 | <source>pageCount() -> integer |
1951 | 1960 | ||
1952 | Returns the number of pages in the document. |
1961 | Returns the number of pages in the document. |
1953 | </source> |
1962 | </source> |
1954 | <translation type="unfinished">pageCount() -> integer |
1963 | <translation type="unfinished">pageCount() -> integer |
1955 | 1964 | ||
1956 | Returns the number of pages in the document. |
1965 | Returns the number of pages in the document. |
1957 | </translation> |
1966 | </translation> |
1958 | </message> |
1967 | </message> |
1959 | <message> |
1968 | <message> |
1960 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="110"/> |
1969 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="106"/> |
1961 | <source>getHGuides() -> list |
1970 | <source>getHGuides() -> list |
1962 | 1971 | ||
1963 | Returns a list containing positions of the horizontal guides. Values are in the |
1972 | Returns a list containing positions of the horizontal guides. Values are in the |
1964 | document's current units - see UNIT_<type> constants. |
1973 | document's current units - see UNIT_<type> constants. |
1965 | </source> |
1974 | </source> |
Line 1968... | Line 1977... | ||
1968 | Returns a list containing positions of the horizontal guides. Values are in the |
1977 | Returns a list containing positions of the horizontal guides. Values are in the |
1969 | document's current units - see UNIT_<type> constants. |
1978 | document's current units - see UNIT_<type> constants. |
1970 | </translation> |
1979 | </translation> |
1971 | </message> |
1980 | </message> |
1972 | <message> |
1981 | <message> |
1973 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="123"/> |
1982 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="116"/> |
1974 | <source>setHGuides(list) |
1983 | <source>setHGuides(list) |
1975 | 1984 | ||
1976 | Sets horizontal guides. Input parameter must be a list of guide positions |
1985 | Sets horizontal guides. Input parameter must be a list of guide positions |
1977 | measured in the current document units - see UNIT_<type> constants. |
1986 | measured in the current document units - see UNIT_<type> constants. |
1978 | 1987 | ||
Line 1987... | Line 1996... | ||
1987 | Example: setHGuides(getHGuides() + [200.0, 210.0] # add new guides without any lost |
1996 | Example: setHGuides(getHGuides() + [200.0, 210.0] # add new guides without any lost |
1988 | setHGuides([90,250]) # replace current guides entirely |
1997 | setHGuides([90,250]) # replace current guides entirely |
1989 | </translation> |
1998 | </translation> |
1990 | </message> |
1999 | </message> |
1991 | <message> |
2000 | <message> |
1992 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="132"/> |
2001 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="129"/> |
1993 | <source>getVGuides() |
2002 | <source>getVGuides() |
1994 | 2003 | ||
1995 | See getHGuides. |
2004 | See getHGuides. |
1996 | </source> |
2005 | </source> |
1997 | <translation type="unfinished">getVGuides() |
2006 | <translation type="unfinished">getVGuides() |
1998 | 2007 | ||
1999 | See getHGuides. |
2008 | See getHGuides. |
2000 | </translation> |
2009 | </translation> |
2001 | </message> |
2010 | </message> |
2002 | <message> |
2011 | <message> |
2003 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="141"/> |
2012 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="138"/> |
2004 | <source>setVGuides() |
2013 | <source>setVGuides() |
2005 | 2014 | ||
2006 | See setHGuides. |
2015 | See setHGuides. |
2007 | </source> |
2016 | </source> |
2008 | <translation type="unfinished">setVGuides() |
2017 | <translation type="unfinished">setVGuides() |
2009 | 2018 | ||
2010 | See setHGuides. |
2019 | See setHGuides. |
2011 | </translation> |
2020 | </translation> |
2012 | </message> |
2021 | </message> |
2013 | <message> |
2022 | <message> |
2014 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="151"/> |
2023 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="147"/> |
2015 | <source>getPageSize() -> tuple |
2024 | <source>getPageSize() -> tuple |
2016 | 2025 | ||
2017 | Returns a tuple with page dimensions measured in the document's current units. |
2026 | Returns a tuple with page dimensions measured in the document's current units. |
2018 | See UNIT_<type> constants and getPageMargins() |
2027 | See UNIT_<type> constants and getPageMargins() |
2019 | </source> |
2028 | </source> |
Line 2022... | Line 2031... | ||
2022 | Returns a tuple with page dimensions measured in the document's current units. |
2031 | Returns a tuple with page dimensions measured in the document's current units. |
2023 | See UNIT_<type> constants and getPageMargins() |
2032 | See UNIT_<type> constants and getPageMargins() |
2024 | </translation> |
2033 | </translation> |
2025 | </message> |
2034 | </message> |
2026 | <message> |
2035 | <message> |
2027 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="167"/> |
2036 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="161"/> |
- | 2037 | <source>getPageNSize() -> tuple |
|
- | 2038 | ||
- | 2039 | Returns a tuple with a particular page's size measured in the document's current units. |
|
- | 2040 | See UNIT_<type> constants and getPageMargins() |
|
- | 2041 | </source> |
|
- | 2042 | <translation type="unfinished"></translation> |
|
- | 2043 | </message> |
|
- | 2044 | <message> |
|
- | 2045 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="174"/> |
|
- | 2046 | <source>getPageNMargins() -> tuple |
|
- | 2047 | ||
- | 2048 | Returns a tuple with a particular page's margins measured in the document's current units. |
|
- | 2049 | See UNIT_<type> constants and getPageMargins() |
|
- | 2050 | </source> |
|
- | 2051 | <translation type="unfinished"></translation> |
|
- | 2052 | </message> |
|
- | 2053 | <message> |
|
- | 2054 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="187"/> |
|
2028 | <source>getPageItems() -> list |
2055 | <source>getPageItems() -> list |
2029 | 2056 | ||
2030 | Returns a list of tuples with items on the current page. The tuple is: |
2057 | Returns a list of tuples with items on the current page. The tuple is: |
2031 | (name, objectType, order) E.g. [('Text1', 4, 0), ('Image1', 2, 1)] |
2058 | (name, objectType, order) E.g. [('Text1', 4, 0), ('Image1', 2, 1)] |
2032 | means that object named 'Text1' is a text frame (type 4) and is the first at |
2059 | means that object named 'Text1' is a text frame (type 4) and is the first at |
Line 2039... | Line 2066... | ||
2039 | means that object named 'Text1' is a text frame (type 4) and is the first at |
2066 | means that object named 'Text1' is a text frame (type 4) and is the first at |
2040 | the page... |
2067 | the page... |
2041 | </translation> |
2068 | </translation> |
2042 | </message> |
2069 | </message> |
2043 | <message> |
2070 | <message> |
2044 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="181"/> |
2071 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="203"/> |
2045 | <source>getPageMargins() |
2072 | <source>getPageMargins() |
2046 | 2073 | ||
2047 | Returns the page margins as a (top, left, right, bottom) tuple in the current |
2074 | Returns the page margins as a (top, left, right, bottom) tuple in the current |
2048 | units. See UNIT_<type> constants and getPageSize(). |
2075 | units. See UNIT_<type> constants and getPageSize(). |
2049 | </source> |
2076 | </source> |
Line 2052... | Line 2079... | ||
2052 | Returns the page margins as a (top, left, right, bottom) tuple in the current |
2079 | Returns the page margins as a (top, left, right, bottom) tuple in the current |
2053 | units. See UNIT_<type> constants and getPageSize(). |
2080 | units. See UNIT_<type> constants and getPageSize(). |
2054 | </translation> |
2081 | </translation> |
2055 | </message> |
2082 | </message> |
2056 | <message> |
2083 | <message> |
2057 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="198"/> |
2084 | <location filename="../../../scribus/plugins/scriptplugin/cmdpage.h" line="216"/> |
2058 | <source>importPage("fromDoc", (pageList), [create, imortwhere, importwherePage]) |
2085 | <source>importPage("fromDoc", (pageList), [create, imortwhere, importwherePage]) |
2059 | 2086 | ||
2060 | 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. |
2087 | 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. |
2061 | fromDoc: string; the filename of the document to import pages from |
2088 | fromDoc: string; the filename of the document to import pages from |
2062 | pageList: tuple with page numbers of pages to import |
2089 | pageList: tuple with page numbers of pages to import |
Line 2065... | Line 2092... | ||
2065 | 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 |
2092 | 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 |
2066 | </source> |
2093 | </source> |
2067 | <translation type="unfinished"></translation> |
2094 | <translation type="unfinished"></translation> |
2068 | </message> |
2095 | </message> |
2069 | <message> |
2096 | <message> |
2070 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="22"/> |
2097 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="17"/> |
2071 | <source>setGradientFill(type, "color1", shade1, "color2", shade2, ["name"]) |
2098 | <source>setGradientFill(type, "color1", shade1, "color2", shade2, ["name"]) |
2072 | 2099 | ||
2073 | Sets the gradient fill of the object "name" to type. Color descriptions are |
2100 | Sets the gradient fill of the object "name" to type. Color descriptions are |
2074 | the same as for setFillColor() and setFillShade(). See the constants for |
2101 | the same as for setFillColor() and setFillShade(). See the constants for |
2075 | available types (FILL_<type>). |
2102 | available types (FILL_<type>). |
Line 2080... | Line 2107... | ||
2080 | the same as for setFillColor() and setFillShade(). See the constants for |
2107 | the same as for setFillColor() and setFillShade(). See the constants for |
2081 | available types (FILL_<type>). |
2108 | available types (FILL_<type>). |
2082 | </translation> |
2109 | </translation> |
2083 | </message> |
2110 | </message> |
2084 | <message> |
2111 | <message> |
2085 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="44"/> |
2112 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="39"/> |
2086 | <source>setFillColor("color", ["name"]) |
2113 | <source>setFillColor("color", ["name"]) |
2087 | 2114 | ||
2088 | Sets the fill color of the object "name" to the color "color". "color" |
2115 | Sets the fill color of the object "name" to the color "color". "color" |
2089 | is the name of one of the defined colors. If "name" is not given the |
2116 | is the name of one of the defined colors. If "name" is not given the |
2090 | currently selected item is used. |
2117 | currently selected item is used. |
Line 2095... | Line 2122... | ||
2095 | is the name of one of the defined colours. If "name" is not given the |
2122 | is the name of one of the defined colours. If "name" is not given the |
2096 | currently selected item is used. |
2123 | currently selected item is used. |
2097 | </translation> |
2124 | </translation> |
2098 | </message> |
2125 | </message> |
2099 | <message> |
2126 | <message> |
2100 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="54"/> |
2127 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="50"/> |
2101 | <source>setFillTransparency(transparency, ["name"]) |
2128 | <source>setFillTransparency(transparency, ["name"]) |
2102 | 2129 | ||
2103 | Sets the fill transparency of the object "name" to transparency |
2130 | Sets the fill transparency of the object "name" to transparency |
2104 | If "name" is not given the currently selected item is used. |
2131 | If "name" is not given the currently selected item is used. |
2105 | </source> |
2132 | </source> |
2106 | <translation type="unfinished"></translation> |
2133 | <translation type="unfinished"></translation> |
2107 | </message> |
2134 | </message> |
2108 | <message> |
2135 | <message> |
2109 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="64"/> |
2136 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="60"/> |
2110 | <source>setFillBlendmode(blendmode, ["name"]) |
2137 | <source>setFillBlendmode(blendmode, ["name"]) |
2111 | 2138 | ||
2112 | Sets the fill blendmode of the object "name" to blendmode |
2139 | Sets the fill blendmode of the object "name" to blendmode |
2113 | If "name" is not given the currently selected item is used. |
2140 | If "name" is not given the currently selected item is used. |
2114 | </source> |
2141 | </source> |
2115 | <translation type="unfinished"></translation> |
2142 | <translation type="unfinished"></translation> |
2116 | </message> |
2143 | </message> |
2117 | <message> |
2144 | <message> |
2118 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="74"/> |
2145 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="70"/> |
2119 | <source>setLineColor("color", ["name"]) |
2146 | <source>setLineColor("color", ["name"]) |
2120 | 2147 | ||
2121 | Sets the line color of the object "name" to the color "color". If "name" |
2148 | Sets the line color of the object "name" to the color "color". If "name" |
2122 | is not given the currently selected item is used. |
2149 | is not given the currently selected item is used. |
2123 | </source> |
2150 | </source> |
Line 2126... | Line 2153... | ||
2126 | Sets the line colour of the object "name" to the colour "color". If "name" |
2153 | Sets the line colour of the object "name" to the colour "color". If "name" |
2127 | is not given the currently selected item is used. |
2154 | is not given the currently selected item is used. |
2128 | </translation> |
2155 | </translation> |
2129 | </message> |
2156 | </message> |
2130 | <message> |
2157 | <message> |
2131 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="84"/> |
2158 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="80"/> |
2132 | <source>setLineTransparency(transparency, ["name"]) |
2159 | <source>setLineTransparency(transparency, ["name"]) |
2133 | 2160 | ||
2134 | Sets the line transparency of the object "name" to transparency |
2161 | Sets the line transparency of the object "name" to transparency |
2135 | If "name" is not given the currently selected item is used. |
2162 | If "name" is not given the currently selected item is used. |
2136 | </source> |
2163 | </source> |
2137 | <translation type="unfinished"></translation> |
2164 | <translation type="unfinished"></translation> |
2138 | </message> |
2165 | </message> |
2139 | <message> |
2166 | <message> |
2140 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="94"/> |
2167 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="90"/> |
2141 | <source>setLineBlendmode(blendmode, ["name"]) |
2168 | <source>setLineBlendmode(blendmode, ["name"]) |
2142 | 2169 | ||
2143 | Sets the line blendmode of the object "name" to blendmode |
2170 | Sets the line blendmode of the object "name" to blendmode |
2144 | If "name" is not given the currently selected item is used. |
2171 | If "name" is not given the currently selected item is used. |
2145 | </source> |
2172 | </source> |
2146 | <translation type="unfinished"></translation> |
2173 | <translation type="unfinished"></translation> |
2147 | </message> |
2174 | </message> |
2148 | <message> |
2175 | <message> |
2149 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="107"/> |
2176 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="100"/> |
2150 | <source>setLineWidth(width, ["name"]) |
2177 | <source>setLineWidth(width, ["name"]) |
2151 | 2178 | ||
2152 | Sets line width of the object "name" to "width". "width" must be in the |
2179 | Sets line width of the object "name" to "width". "width" must be in the |
2153 | range from 0.0 to 12.0 inclusive, and is measured in points. If "name" is not |
2180 | range from 0.0 to 12.0 inclusive, and is measured in points. If "name" is not |
2154 | given the currently selected item is used. |
2181 | given the currently selected item is used. |
Line 2163... | Line 2190... | ||
2163 | 2190 | ||
2164 | May raise ValueError if the line width is out of bounds. |
2191 | May raise ValueError if the line width is out of bounds. |
2165 | </translation> |
2192 | </translation> |
2166 | </message> |
2193 | </message> |
2167 | <message> |
2194 | <message> |
2168 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="121"/> |
2195 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="113"/> |
2169 | <source>setLineShade(shade, ["name"]) |
2196 | <source>setLineShade(shade, ["name"]) |
2170 | 2197 | ||
2171 | Sets the shading of the line color of the object "name" to "shade". |
2198 | Sets the shading of the line color of the object "name" to "shade". |
2172 | "shade" must be an integer value in the range from 0 (lightest) to 100 |
2199 | "shade" must be an integer value in the range from 0 (lightest) to 100 |
2173 | (full color intensity). If "name" is not given the currently selected item |
2200 | (full color intensity). If "name" is not given the currently selected item |
Line 2184... | Line 2211... | ||
2184 | 2211 | ||
2185 | May raise ValueError if the line shade is out of bounds. |
2212 | May raise ValueError if the line shade is out of bounds. |
2186 | </translation> |
2213 | </translation> |
2187 | </message> |
2214 | </message> |
2188 | <message> |
2215 | <message> |
2189 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="132"/> |
2216 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="127"/> |
2190 | <source>setLineJoin(join, ["name"]) |
2217 | <source>setLineJoin(join, ["name"]) |
2191 | 2218 | ||
2192 | Sets the line join style of the object "name" to the style "join". |
2219 | Sets the line join style of the object "name" to the style "join". |
2193 | If "name" is not given the currently selected item is used. There are |
2220 | If "name" is not given the currently selected item is used. There are |
2194 | predefined constants for join - JOIN_<type>. |
2221 | predefined constants for join - JOIN_<type>. |
Line 2199... | Line 2226... | ||
2199 | If "name" is not given the currently selected item is used. There are |
2226 | If "name" is not given the currently selected item is used. There are |
2200 | predefined constants for join - JOIN_<type>. |
2227 | predefined constants for join - JOIN_<type>. |
2201 | </translation> |
2228 | </translation> |
2202 | </message> |
2229 | </message> |
2203 | <message> |
2230 | <message> |
2204 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="143"/> |
2231 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="138"/> |
2205 | <source>setLineEnd(endtype, ["name"]) |
2232 | <source>setLineEnd(endtype, ["name"]) |
2206 | 2233 | ||
2207 | Sets the line cap style of the object "name" to the style "cap". |
2234 | Sets the line cap style of the object "name" to the style "cap". |
2208 | If "name" is not given the currently selected item is used. There are |
2235 | If "name" is not given the currently selected item is used. There are |
2209 | predefined constants for "cap" - CAP_<type>. |
2236 | predefined constants for "cap" - CAP_<type>. |
Line 2214... | Line 2241... | ||
2214 | If "name" is not given the currently selected item is used. There are |
2241 | If "name" is not given the currently selected item is used. There are |
2215 | predefined constants for "cap" - CAP_<type>. |
2242 | predefined constants for "cap" - CAP_<type>. |
2216 | </translation> |
2243 | </translation> |
2217 | </message> |
2244 | </message> |
2218 | <message> |
2245 | <message> |
2219 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="154"/> |
2246 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="149"/> |
2220 | <source>setLineStyle(style, ["name"]) |
2247 | <source>setLineStyle(style, ["name"]) |
2221 | 2248 | ||
2222 | Sets the line style of the object "name" to the style "style". If "name" |
2249 | Sets the line style of the object "name" to the style "style". If "name" |
2223 | is not given the currently selected item is used. There are predefined |
2250 | is not given the currently selected item is used. There are predefined |
2224 | constants for "style" - LINE_<style>. |
2251 | constants for "style" - LINE_<style>. |
Line 2229... | Line 2256... | ||
2229 | is not given the currently selected item is used. There are predefined |
2256 | is not given the currently selected item is used. There are predefined |
2230 | constants for "style" - LINE_<style>. |
2257 | constants for "style" - LINE_<style>. |
2231 | </translation> |
2258 | </translation> |
2232 | </message> |
2259 | </message> |
2233 | <message> |
2260 | <message> |
2234 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="168"/> |
2261 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="160"/> |
2235 | <source>setFillShade(shade, ["name"]) |
2262 | <source>setFillShade(shade, ["name"]) |
2236 | 2263 | ||
2237 | Sets the shading of the fill color of the object "name" to "shade". |
2264 | Sets the shading of the fill color of the object "name" to "shade". |
2238 | "shade" must be an integer value in the range from 0 (lightest) to 100 |
2265 | "shade" must be an integer value in the range from 0 (lightest) to 100 |
2239 | (full Color intensity). If "name" is not given the currently selected |
2266 | (full Color intensity). If "name" is not given the currently selected |
Line 2250... | Line 2277... | ||
2250 | 2277 | ||
2251 | May raise ValueError if the fill shade is out of bounds. |
2278 | May raise ValueError if the fill shade is out of bounds. |
2252 | </translation> |
2279 | </translation> |
2253 | </message> |
2280 | </message> |
2254 | <message> |
2281 | <message> |
2255 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="180"/> |
2282 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="174"/> |
2256 | <source>setCornerRadius(radius, ["name"]) |
2283 | <source>setCornerRadius(radius, ["name"]) |
2257 | 2284 | ||
2258 | Sets the corner radius of the object "name". The radius is expressed |
2285 | Sets the corner radius of the object "name". The radius is expressed |
2259 | in points. If "name" is not given the currently selected item is used. |
2286 | in points. If "name" is not given the currently selected item is used. |
2260 | 2287 | ||
Line 2267... | Line 2294... | ||
2267 | 2294 | ||
2268 | May raise ValueError if the corner radius is negative. |
2295 | May raise ValueError if the corner radius is negative. |
2269 | </translation> |
2296 | </translation> |
2270 | </message> |
2297 | </message> |
2271 | <message> |
2298 | <message> |
2272 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="192"/> |
2299 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="186"/> |
2273 | <source>setMultiLine("namedStyle", ["name"]) |
2300 | <source>setMultiLine("namedStyle", ["name"]) |
2274 | 2301 | ||
2275 | Sets the line style of the object "name" to the named style "namedStyle". |
2302 | Sets the line style of the object "name" to the named style "namedStyle". |
2276 | If "name" is not given the currently selected item is used. |
2303 | If "name" is not given the currently selected item is used. |
2277 | 2304 | ||
Line 2284... | Line 2311... | ||
2284 | 2311 | ||
2285 | May raise NotFoundError if the line style doesn't exist. |
2312 | May raise NotFoundError if the line style doesn't exist. |
2286 | </translation> |
2313 | </translation> |
2287 | </message> |
2314 | </message> |
2288 | <message> |
2315 | <message> |
2289 | <location filename="../../scribus/plugins/scriptplugin/cmdstyle.h" line="43"/> |
2316 | <location filename="../../../scribus/plugins/scriptplugin/cmdstyle.h" line="22"/> |
2290 | <source>createParagraphStyle(...) |
2317 | <source>createParagraphStyle(...) |
2291 | 2318 | ||
2292 | Creates a paragraph style. This function takes the following keyword parameters: |
2319 | Creates a paragraph style. This function takes the following keyword parameters: |
2293 | 2320 | ||
2294 | "name" [required] -> specifies the name of the paragraphstyle to create |
2321 | "name" [required] -> specifies the name of the paragraphstyle to create |
Line 2331... | Line 2358... | ||
2331 | 2358 | ||
2332 | </source> |
2359 | </source> |
2333 | <translation type="unfinished"></translation> |
2360 | <translation type="unfinished"></translation> |
2334 | </message> |
2361 | </message> |
2335 | <message> |
2362 | <message> |
2336 | <location filename="../../scribus/plugins/scriptplugin/cmdstyle.h" line="80"/> |
2363 | <location filename="../../../scribus/plugins/scriptplugin/cmdstyle.h" line="52"/> |
2337 | <source>createCharStyle(...) |
2364 | <source>createCharStyle(...) |
2338 | 2365 | ||
2339 | Creates a character style. This function takes the following keyword parameters: |
2366 | Creates a character style. This function takes the following keyword parameters: |
2340 | 2367 | ||
2341 | "name" [required] -> name of the char style to create |
2368 | "name" [required] -> name of the char style to create |
Line 2392... | Line 2419... | ||
2392 | 2419 | ||
2393 | </source> |
2420 | </source> |
2394 | <translation type="unfinished"></translation> |
2421 | <translation type="unfinished"></translation> |
2395 | </message> |
2422 | </message> |
2396 | <message> |
2423 | <message> |
2397 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="23"/> |
2424 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="17"/> |
2398 | <source>getFontSize(["name"]) -> float |
2425 | <source>getFontSize(["name"]) -> float |
2399 | 2426 | ||
2400 | Returns the font size in points for the text frame "name". If this text |
2427 | Returns the font size in points for the text frame "name". If this text |
2401 | frame has some text selected the value assigned to the first character of |
2428 | frame has some text selected the value assigned to the first character of |
2402 | the selection is returned. |
2429 | the selection is returned. |
Line 2409... | Line 2436... | ||
2409 | the selection is returned. |
2436 | the selection is returned. |
2410 | If "name" is not given the currently selected item is used. |
2437 | If "name" is not given the currently selected item is used. |
2411 | </translation> |
2438 | </translation> |
2412 | </message> |
2439 | </message> |
2413 | <message> |
2440 | <message> |
2414 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="35"/> |
2441 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="29"/> |
2415 | <source>getFont(["name"]) -> string |
2442 | <source>getFont(["name"]) -> string |
2416 | 2443 | ||
2417 | Returns the font name for the text frame "name". If this text frame |
2444 | Returns the font name for the text frame "name". If this text frame |
2418 | has some text selected the value assigned to the first character |
2445 | has some text selected the value assigned to the first character |
2419 | of the selection is returned. If "name" is not given the currently |
2446 | of the selection is returned. If "name" is not given the currently |
Line 2426... | Line 2453... | ||
2426 | of the selection is returned. If "name" is not given the currently |
2453 | of the selection is returned. If "name" is not given the currently |
2427 | selected item is used. |
2454 | selected item is used. |
2428 | </translation> |
2455 | </translation> |
2429 | </message> |
2456 | </message> |
2430 | <message> |
2457 | <message> |
2431 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="45"/> |
2458 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="41"/> |
2432 | <source>getTextLength(["name"]) -> integer |
2459 | <source>getTextLength(["name"]) -> integer |
2433 | 2460 | ||
2434 | Returns the length of the text in the text frame "name". |
2461 | Returns the length of the text in the text frame "name". |
2435 | If "name" is not given the currently selected item is used. |
2462 | If "name" is not given the currently selected item is used. |
2436 | </source> |
2463 | </source> |
Line 2439... | Line 2466... | ||
2439 | Returns the length of the text in the text frame "name". |
2466 | Returns the length of the text in the text frame "name". |
2440 | If "name" is not given the currently selected item is used. |
2467 | If "name" is not given the currently selected item is used. |
2441 | </translation> |
2468 | </translation> |
2442 | </message> |
2469 | </message> |
2443 | <message> |
2470 | <message> |
2444 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="55"/> |
2471 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="51"/> |
2445 | <source>getTextLines(["name"]) -> integer |
2472 | <source>getTextLines(["name"]) -> integer |
2446 | 2473 | ||
2447 | Returns the number of lines of the text in the text frame "name". |
2474 | Returns the number of lines of the text in the text frame "name". |
2448 | If "name" is not given the currently selected item is used. |
2475 | If "name" is not given the currently selected item is used. |
2449 | </source> |
2476 | </source> |
2450 | <translation type="unfinished"></translation> |
2477 | <translation type="unfinished"></translation> |
2451 | </message> |
2478 | </message> |
2452 | <message> |
2479 | <message> |
2453 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="67"/> |
2480 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="61"/> |
2454 | <source>getText(["name"]) -> string |
2481 | <source>getText(["name"]) -> string |
2455 | 2482 | ||
2456 | Returns the text of the text frame "name". If this text frame has some text |
2483 | Returns the text of the text frame "name". If this text frame has some text |
2457 | selected, the selected text is returned. All text in the frame, not just |
2484 | selected, the selected text is returned. All text in the frame, not just |
2458 | currently visible text, is returned. If "name" is not given the currently |
2485 | currently visible text, is returned. If "name" is not given the currently |
Line 2465... | Line 2492... | ||
2465 | currently visible text, is returned. If "name" is not given the currently |
2492 | currently visible text, is returned. If "name" is not given the currently |
2466 | selected item is used. |
2493 | selected item is used. |
2467 | </translation> |
2494 | </translation> |
2468 | </message> |
2495 | </message> |
2469 | <message> |
2496 | <message> |
2470 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="79"/> |
2497 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="73"/> |
2471 | <source>getAllText(["name"]) -> string |
2498 | <source>getAllText(["name"]) -> string |
2472 | 2499 | ||
2473 | Returns the text of the text frame "name" and of all text frames which are |
2500 | Returns the text of the text frame "name" and of all text frames which are |
2474 | linked with this frame. If this textframe has some text selected, the selected |
2501 | linked with this frame. If this textframe has some text selected, the selected |
2475 | text is returned. If "name" is not given the currently selected item is |
2502 | text is returned. If "name" is not given the currently selected item is |
Line 2482... | Line 2509... | ||
2482 | text is returned. If "name" is not given the currently selected item is |
2509 | text is returned. If "name" is not given the currently selected item is |
2483 | used. |
2510 | used. |
2484 | </translation> |
2511 | </translation> |
2485 | </message> |
2512 | </message> |
2486 | <message> |
2513 | <message> |
2487 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="89"/> |
2514 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="85"/> |
2488 | <source>getLineSpacing(["name"]) -> float |
2515 | <source>getLineSpacing(["name"]) -> float |
2489 | 2516 | ||
2490 | Returns the line spacing ("leading") of the text frame "name" expressed in |
2517 | Returns the line spacing ("leading") of the text frame "name" expressed in |
2491 | points. If "name" is not given the currently selected item is used. |
2518 | points. If "name" is not given the currently selected item is used. |
2492 | </source> |
2519 | </source> |
Line 2495... | Line 2522... | ||
2495 | Returns the line spacing ("leading") of the text frame "name" expressed in |
2522 | Returns the line spacing ("leading") of the text frame "name" expressed in |
2496 | points. If "name" is not given the currently selected item is used. |
2523 | points. If "name" is not given the currently selected item is used. |
2497 | </translation> |
2524 | </translation> |
2498 | </message> |
2525 | </message> |
2499 | <message> |
2526 | <message> |
2500 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="100"/> |
2527 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="95"/> |
2501 | <source>getTextDistances(["name"]) -> tuple |
2528 | <source>getTextDistances(["name"]) -> tuple |
2502 | 2529 | ||
2503 | Returns the text distances of the text frame "name" expressed in points. The |
2530 | Returns the text distances of the text frame "name" expressed in points. The |
2504 | distances are returned as a tuple like (left, right, top, bottom). If "name" |
2531 | distances are returned as a tuple like (left, right, top, bottom). If "name" |
2505 | is not given the currently selected item is used. |
2532 | is not given the currently selected item is used. |
2506 | </source> |
2533 | </source> |
2507 | <translation type="unfinished"></translation> |
2534 | <translation type="unfinished"></translation> |
2508 | </message> |
2535 | </message> |
2509 | <message> |
2536 | <message> |
2510 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="110"/> |
2537 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="106"/> |
2511 | <source>getColumnGap(["name"]) -> float |
2538 | <source>getColumnGap(["name"]) -> float |
2512 | 2539 | ||
2513 | Returns the column gap size of the text frame "name" expressed in points. If |
2540 | Returns the column gap size of the text frame "name" expressed in points. If |
2514 | "name" is not given the currently selected item is used. |
2541 | "name" is not given the currently selected item is used. |
2515 | </source> |
2542 | </source> |
Line 2518... | Line 2545... | ||
2518 | Returns the column gap size of the text frame "name" expressed in points. If |
2545 | Returns the column gap size of the text frame "name" expressed in points. If |
2519 | "name" is not given the currently selected item is used. |
2546 | "name" is not given the currently selected item is used. |
2520 | </translation> |
2547 | </translation> |
2521 | </message> |
2548 | </message> |
2522 | <message> |
2549 | <message> |
2523 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="120"/> |
2550 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="116"/> |
2524 | <source>getColumns(["name"]) -> integer |
2551 | <source>getColumns(["name"]) -> integer |
2525 | 2552 | ||
2526 | Gets the number of columns of the text frame "name". If "name" is not |
2553 | Gets the number of columns of the text frame "name". If "name" is not |
2527 | given the currently selected item is used. |
2554 | given the currently selected item is used. |
2528 | </source> |
2555 | </source> |
Line 2531... | Line 2558... | ||
2531 | Gets the number of columns of the text frame "name". If "name" is not |
2558 | Gets the number of columns of the text frame "name". If "name" is not |
2532 | given the currently selected item is used. |
2559 | given the currently selected item is used. |
2533 | </translation> |
2560 | </translation> |
2534 | </message> |
2561 | </message> |
2535 | <message> |
2562 | <message> |
2536 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="132"/> |
2563 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="126"/> |
2537 | <source>setText("text", ["name"]) |
2564 | <source>setText("text", ["name"]) |
2538 | 2565 | ||
2539 | Sets the text of the text frame "name" to the text of the string "text". |
2566 | Sets the text of the text frame "name" to the text of the string "text". |
2540 | Text must be UTF8 encoded - use e.g. unicode(text, 'iso-8859-2'). See the FAQ |
2567 | Text must be UTF8 encoded - use e.g. unicode(text, 'iso-8859-2'). See the FAQ |
2541 | for more details. If "name" is not given the currently selected item is |
2568 | for more details. If "name" is not given the currently selected item is |
Line 2548... | Line 2575... | ||
2548 | for more details. If "name" is not given the currently selected item is |
2575 | for more details. If "name" is not given the currently selected item is |
2549 | used. |
2576 | used. |
2550 | </translation> |
2577 | </translation> |
2551 | </message> |
2578 | </message> |
2552 | <message> |
2579 | <message> |
2553 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="146"/> |
2580 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="138"/> |
2554 | <source>insertText("text", pos, ["name"]) |
2581 | <source>insertText("text", pos, ["name"]) |
2555 | 2582 | ||
2556 | Inserts the text "text" at the position "pos" into the text frame "name". |
2583 | Inserts the text "text" at the position "pos" into the text frame "name". |
2557 | Text must be UTF encoded (see setText() as reference) The first character has an |
2584 | Text must be UTF encoded (see setText() as reference) The first character has an |
2558 | index of 0. Inserting text at position -1 appends it to the frame. If "name" is |
2585 | index of 0. Inserting text at position -1 appends it to the frame. If "name" is |
Line 2561... | Line 2588... | ||
2561 | May throw IndexError for an insertion out of bounds. |
2588 | May throw IndexError for an insertion out of bounds. |
2562 | </source> |
2589 | </source> |
2563 | <translation type="unfinished"></translation> |
2590 | <translation type="unfinished"></translation> |
2564 | </message> |
2591 | </message> |
2565 | <message> |
2592 | <message> |
2566 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="159"/> |
2593 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="152"/> |
2567 | <source>setFont("font", ["name"]) |
2594 | <source>setFont("font", ["name"]) |
2568 | 2595 | ||
2569 | Sets the font of the text frame "name" to "font". If there is some text |
2596 | Sets the font of the text frame "name" to "font". If there is some text |
2570 | selected only the selected text is changed. If "name" is not given the |
2597 | selected only the selected text is changed. If "name" is not given the |
2571 | currently selected item is used. |
2598 | currently selected item is used. |
Line 2580... | Line 2607... | ||
2580 | 2607 | ||
2581 | May throw ValueError if the font cannot be found. |
2608 | May throw ValueError if the font cannot be found. |
2582 | </translation> |
2609 | </translation> |
2583 | </message> |
2610 | </message> |
2584 | <message> |
2611 | <message> |
2585 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="173"/> |
2612 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="165"/> |
2586 | <source>setFontSize(size, ["name"]) |
2613 | <source>setFontSize(size, ["name"]) |
2587 | 2614 | ||
2588 | Sets the font size of the text frame "name" to "size". "size" is treated |
2615 | Sets the font size of the text frame "name" to "size". "size" is treated |
2589 | as a value in points. If there is some text selected only the selected text is |
2616 | as a value in points. If there is some text selected only the selected text is |
2590 | changed. "size" must be in the range 1 to 512. If "name" is not given the |
2617 | changed. "size" must be in the range 1 to 512. If "name" is not given the |
Line 2601... | Line 2628... | ||
2601 | 2628 | ||
2602 | May throw ValueError for a font size that's out of bounds. |
2629 | May throw ValueError for a font size that's out of bounds. |
2603 | </translation> |
2630 | </translation> |
2604 | </message> |
2631 | </message> |
2605 | <message> |
2632 | <message> |
2606 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="186"/> |
2633 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="179"/> |
2607 | <source>setLineSpacing(size, ["name"]) |
2634 | <source>setLineSpacing(size, ["name"]) |
2608 | 2635 | ||
2609 | Sets the line spacing ("leading") of the text frame "name" to "size". |
2636 | Sets the line spacing ("leading") of the text frame "name" to "size". |
2610 | "size" is a value in points. If "name" is not given the currently selected |
2637 | "size" is a value in points. If "name" is not given the currently selected |
2611 | item is used. |
2638 | item is used. |
Line 2620... | Line 2647... | ||
2620 | 2647 | ||
2621 | May throw ValueError if the line spacing is out of bounds. |
2648 | May throw ValueError if the line spacing is out of bounds. |
2622 | </translation> |
2649 | </translation> |
2623 | </message> |
2650 | </message> |
2624 | <message> |
2651 | <message> |
2625 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="199"/> |
2652 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="192"/> |
2626 | <source>setTextDistances(left, right, top, bottom, ["name"]) |
2653 | <source>setTextDistances(left, right, top, bottom, ["name"]) |
2627 | 2654 | ||
2628 | Sets the text distances of the text frame "name" to the values "left" |
2655 | Sets the text distances of the text frame "name" to the values "left" |
2629 | "right", "top" and "bottom". If "name" is not given the currently |
2656 | "right", "top" and "bottom". If "name" is not given the currently |
2630 | selected item is used. |
2657 | selected item is used. |
Line 2632... | Line 2659... | ||
2632 | May throw ValueError if any of the distances are out of bounds (must be positive). |
2659 | May throw ValueError if any of the distances are out of bounds (must be positive). |
2633 | </source> |
2660 | </source> |
2634 | <translation type="unfinished"></translation> |
2661 | <translation type="unfinished"></translation> |
2635 | </message> |
2662 | </message> |
2636 | <message> |
2663 | <message> |
2637 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="211"/> |
2664 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="205"/> |
2638 | <source>setColumnGap(size, ["name"]) |
2665 | <source>setColumnGap(size, ["name"]) |
2639 | 2666 | ||
2640 | Sets the column gap of the text frame "name" to the value "size". If |
2667 | Sets the column gap of the text frame "name" to the value "size". If |
2641 | "name" is not given the currently selected item is used. |
2668 | "name" is not given the currently selected item is used. |
2642 | 2669 | ||
Line 2649... | Line 2676... | ||
2649 | 2676 | ||
2650 | May throw ValueError if the column gap is out of bounds (must be positive). |
2677 | May throw ValueError if the column gap is out of bounds (must be positive). |
2651 | </translation> |
2678 | </translation> |
2652 | </message> |
2679 | </message> |
2653 | <message> |
2680 | <message> |
2654 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="223"/> |
2681 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="217"/> |
2655 | <source>setColumns(nr, ["name"]) |
2682 | <source>setColumns(nr, ["name"]) |
2656 | 2683 | ||
2657 | Sets the number of columns of the text frame "name" to the integer "nr". |
2684 | Sets the number of columns of the text frame "name" to the integer "nr". |
2658 | If "name" is not given the currently selected item is used. |
2685 | If "name" is not given the currently selected item is used. |
2659 | 2686 | ||
Line 2666... | Line 2693... | ||
2666 | 2693 | ||
2667 | May throw ValueError if number of columns is not at least one. |
2694 | May throw ValueError if number of columns is not at least one. |
2668 | </translation> |
2695 | </translation> |
2669 | </message> |
2696 | </message> |
2670 | <message> |
2697 | <message> |
2671 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="236"/> |
2698 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="229"/> |
2672 | <source>setTextAlignment(align, ["name"]) |
2699 | <source>setTextAlignment(align, ["name"]) |
2673 | 2700 | ||
2674 | Sets the text alignment of the text frame "name" to the specified alignment. |
2701 | Sets the text alignment of the text frame "name" to the specified alignment. |
2675 | If "name" is not given the currently selected item is used. "align" should |
2702 | If "name" is not given the currently selected item is used. "align" should |
2676 | be one of the ALIGN_ constants defined in this module - see dir(scribus). |
2703 | be one of the ALIGN_ constants defined in this module - see dir(scribus). |
Line 2685... | Line 2712... | ||
2685 | 2712 | ||
2686 | May throw ValueError for an invalid alignment constant. |
2713 | May throw ValueError for an invalid alignment constant. |
2687 | </translation> |
2714 | </translation> |
2688 | </message> |
2715 | </message> |
2689 | <message> |
2716 | <message> |
2690 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="250"/> |
2717 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="242"/> |
2691 | <source>selectText(start, count, ["name"]) |
2718 | <source>selectText(start, count, ["name"]) |
2692 | 2719 | ||
2693 | Selects "count" characters of text in the text frame "name" starting from the |
2720 | Selects "count" characters of text in the text frame "name" starting from the |
2694 | character "start". Character counting starts at 0. If "count" is zero, any |
2721 | character "start". Character counting starts at 0. If "count" is zero, any |
2695 | text selection will be cleared. If "name" is not given the currently |
2722 | text selection will be cleared. If "name" is not given the currently |
Line 2706... | Line 2733... | ||
2706 | 2733 | ||
2707 | May throw IndexError if the selection is outside the bounds of the text. |
2734 | May throw IndexError if the selection is outside the bounds of the text. |
2708 | </translation> |
2735 | </translation> |
2709 | </message> |
2736 | </message> |
2710 | <message> |
2737 | <message> |
2711 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="261"/> |
2738 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="256"/> |
2712 | <source>deleteText(["name"]) |
2739 | <source>deleteText(["name"]) |
2713 | 2740 | ||
2714 | Deletes any text in the text frame "name". If there is some text selected, |
2741 | Deletes any text in the text frame "name". If there is some text selected, |
2715 | only the selected text will be deleted. If "name" is not given the currently |
2742 | only the selected text will be deleted. If "name" is not given the currently |
2716 | selected item is used. |
2743 | selected item is used. |
Line 2721... | Line 2748... | ||
2721 | only the selected text will be deleted. If "name" is not given the currently |
2748 | only the selected text will be deleted. If "name" is not given the currently |
2722 | selected item is used. |
2749 | selected item is used. |
2723 | </translation> |
2750 | </translation> |
2724 | </message> |
2751 | </message> |
2725 | <message> |
2752 | <message> |
2726 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="272"/> |
2753 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="267"/> |
2727 | <source>setTextColor("color", ["name"]) |
2754 | <source>setTextColor("color", ["name"]) |
2728 | 2755 | ||
2729 | Sets the text color of the text frame "name" to the color "color". If there |
2756 | Sets the text color of the text frame "name" to the color "color". If there |
2730 | is some text selected only the selected text is changed. If "name" is not |
2757 | is some text selected only the selected text is changed. If "name" is not |
2731 | given the currently selected item is used. |
2758 | given the currently selected item is used. |
Line 2736... | Line 2763... | ||
2736 | is some text selected only the selected text is changed. If "name" is not |
2763 | is some text selected only the selected text is changed. If "name" is not |
2737 | given the currently selected item is used. |
2764 | given the currently selected item is used. |
2738 | </translation> |
2765 | </translation> |
2739 | </message> |
2766 | </message> |
2740 | <message> |
2767 | <message> |
2741 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="282"/> |
2768 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="278"/> |
2742 | <source>setTextStroke("color", ["name"]) |
2769 | <source>setTextStroke("color", ["name"]) |
2743 | 2770 | ||
2744 | Set "color" of the text stroke. If "name" is not given the currently |
2771 | Set "color" of the text stroke. If "name" is not given the currently |
2745 | selected item is used. |
2772 | selected item is used. |
2746 | </source> |
2773 | </source> |
Line 2749... | Line 2776... | ||
2749 | Set "color" of the text stroke. If "name" is not given the currently |
2776 | Set "color" of the text stroke. If "name" is not given the currently |
2750 | selected item is used. |
2777 | selected item is used. |
2751 | </translation> |
2778 | </translation> |
2752 | </message> |
2779 | </message> |
2753 | <message> |
2780 | <message> |
2754 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="315"/> |
2781 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="308"/> |
2755 | <source>setTextShade(shade, ["name"]) |
2782 | <source>setTextShade(shade, ["name"]) |
2756 | 2783 | ||
2757 | Sets the shading of the text color of the object "name" to "shade". If |
2784 | Sets the shading of the text color of the object "name" to "shade". If |
2758 | there is some text selected only the selected text is changed. "shade" must |
2785 | there is some text selected only the selected text is changed. "shade" must |
2759 | be an integer value in the range from 0 (lightest) to 100 (full color |
2786 | be an integer value in the range from 0 (lightest) to 100 (full color |
Line 2768... | Line 2795... | ||
2768 | intensity). If "name" is not given the currently selected item is |
2795 | intensity). If "name" is not given the currently selected item is |
2769 | used. |
2796 | used. |
2770 | </translation> |
2797 | </translation> |
2771 | </message> |
2798 | </message> |
2772 | <message> |
2799 | <message> |
2773 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="328"/> |
2800 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="321"/> |
2774 | <source>linkTextFrames("fromname", "toname") |
2801 | <source>linkTextFrames("fromname", "toname") |
2775 | 2802 | ||
2776 | Link two text frames. The frame named "fromname" is linked to the |
2803 | Link two text frames. The frame named "fromname" is linked to the |
2777 | frame named "toname". The target frame must be an empty text frame |
2804 | frame named "toname". The target frame must be an empty text frame |
2778 | and must not link to or be linked from any other frames already. |
2805 | and must not link to or be linked from any other frames already. |
Line 2787... | Line 2814... | ||
2787 | 2814 | ||
2788 | May throw ScribusException if linking rules are violated. |
2815 | May throw ScribusException if linking rules are violated. |
2789 | </translation> |
2816 | </translation> |
2790 | </message> |
2817 | </message> |
2791 | <message> |
2818 | <message> |
2792 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="345"/> |
2819 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="338"/> |
2793 | <source>unlinkTextFrames("name") |
2820 | <source>unlinkTextFrames("name") |
2794 | 2821 | ||
2795 | Remove the specified (named) object from the text frame flow/linkage. If the |
2822 | Remove the specified (named) object from the text frame flow/linkage. If the |
2796 | frame was in the middle of a chain, the previous and next frames will be |
2823 | frame was in the middle of a chain, the previous and next frames will be |
2797 | connected, eg 'a->b->c' becomes 'a->c' when you unlinkTextFrames(b)' |
2824 | connected, eg 'a->b->c' becomes 'a->c' when you unlinkTextFrames(b)' |
Line 2806... | Line 2833... | ||
2806 | 2833 | ||
2807 | May throw ScribusException if linking rules are violated. |
2834 | May throw ScribusException if linking rules are violated. |
2808 | </translation> |
2835 | </translation> |
2809 | </message> |
2836 | </message> |
2810 | <message> |
2837 | <message> |
2811 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="358"/> |
2838 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="355"/> |
2812 | <source>traceText(["name"]) |
2839 | <source>traceText(["name"]) |
2813 | 2840 | ||
2814 | Convert the text frame "name" to outlines. If "name" is not given the |
2841 | Convert the text frame "name" to outlines. If "name" is not given the |
2815 | currently selected item is used.</source> |
2842 | currently selected item is used.</source> |
2816 | <translation type="unfinished">traceText(["name"]) |
2843 | <translation type="unfinished">traceText(["name"]) |
2817 | 2844 | ||
2818 | Convert the text frame "name" to outlines. If "name" is not given the |
2845 | Convert the text frame "name" to outlines. If "name" is not given the |
2819 | currently selected item is used.</translation> |
2846 | currently selected item is used.</translation> |
2820 | </message> |
2847 | </message> |
2821 | <message> |
2848 | <message> |
2822 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="372"/> |
2849 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="366"/> |
2823 | <source>textOverflows(["name", nolinks]) -> integer |
2850 | <source>textOverflows(["name", nolinks]) -> integer |
2824 | 2851 | ||
2825 | Returns the actual number of overflowing characters in text frame "name". |
2852 | Returns the actual number of overflowing characters in text frame "name". |
2826 | If is nolinks set to non zero value it takes only one frame - it doesn't |
2853 | If is nolinks set to non zero value it takes only one frame - it doesn't |
2827 | use text frame linking. Without this parameter it search all linking chain. |
2854 | use text frame linking. Without this parameter it search all linking chain. |
Line 2836... | Line 2863... | ||
2836 | 2863 | ||
2837 | May raise WrongFrameTypeError if the target frame is not an text frame |
2864 | May raise WrongFrameTypeError if the target frame is not an text frame |
2838 | </translation> |
2865 | </translation> |
2839 | </message> |
2866 | </message> |
2840 | <message> |
2867 | <message> |
2841 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="385"/> |
2868 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="379"/> |
2842 | <source>hyphenateText(["name"]) -> bool |
2869 | <source>hyphenateText(["name"]) -> bool |
2843 | 2870 | ||
2844 | Does hyphenation on text frame "name". |
2871 | Does hyphenation on text frame "name". |
2845 | If "name" is not given the currently selected item is used. |
2872 | If "name" is not given the currently selected item is used. |
2846 | 2873 | ||
2847 | May raise WrongFrameTypeError if the target frame is not a text frame |
2874 | May raise WrongFrameTypeError if the target frame is not a text frame |
2848 | </source> |
2875 | </source> |
2849 | <translation type="unfinished"></translation> |
2876 | <translation type="unfinished"></translation> |
2850 | </message> |
2877 | </message> |
2851 | <message> |
2878 | <message> |
2852 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="399"/> |
2879 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="393"/> |
2853 | <source>dehyphenateText(["name"]) -> bool |
2880 | <source>dehyphenateText(["name"]) -> bool |
2854 | 2881 | ||
2855 | Does dehyphenation on text frame "name". |
2882 | Does dehyphenation on text frame "name". |
2856 | If "name" is not given the currently selected item is used. |
2883 | If "name" is not given the currently selected item is used. |
2857 | 2884 | ||
2858 | May raise WrongFrameTypeError if the target frame is not a text frame |
2885 | May raise WrongFrameTypeError if the target frame is not a text frame |
2859 | </source> |
2886 | </source> |
2860 | <translation type="unfinished"></translation> |
2887 | <translation type="unfinished"></translation> |
2861 | </message> |
2888 | </message> |
2862 | <message> |
2889 | <message> |
2863 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="414"/> |
2890 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="408"/> |
2864 | <source>setPDFBookmark("toggle", ["name"]) |
2891 | <source>setPDFBookmark("toggle", ["name"]) |
2865 | 2892 | ||
2866 | Sets whether (toggle = 1) the text frame "name" is a bookmark nor not. |
2893 | Sets whether (toggle = 1) the text frame "name" is a bookmark nor not. |
2867 | If "name" is not given the currently selected item is used. |
2894 | If "name" is not given the currently selected item is used. |
2868 | 2895 | ||
2869 | May raise WrongFrameTypeError if the target frame is not a text frame |
2896 | May raise WrongFrameTypeError if the target frame is not a text frame |
2870 | </source> |
2897 | </source> |
2871 | <translation type="unfinished"></translation> |
2898 | <translation type="unfinished"></translation> |
2872 | </message> |
2899 | </message> |
2873 | <message> |
2900 | <message> |
2874 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="426"/> |
2901 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="420"/> |
2875 | <source>isPDFBookmark(["name"]) -> bool |
2902 | <source>isPDFBookmark(["name"]) -> bool |
2876 | 2903 | ||
2877 | Returns true if the text frame "name" is a PDF bookmark. |
2904 | Returns true if the text frame "name" is a PDF bookmark. |
2878 | If "name" is not given the currently selected item is used. |
2905 | If "name" is not given the currently selected item is used. |
2879 | 2906 | ||
Line 2886... | Line 2913... | ||
2886 | 2913 | ||
2887 | May raise WrongFrameTypeError if the target frame is not a text frame |
2914 | May raise WrongFrameTypeError if the target frame is not a text frame |
2888 | </translation> |
2915 | </translation> |
2889 | </message> |
2916 | </message> |
2890 | <message> |
2917 | <message> |
2891 | <location filename="../../scribus/plugins/scriptplugin/guiapp.h" line="21"/> |
2918 | <location filename="../../../scribus/plugins/scriptplugin/guiapp.h" line="17"/> |
2892 | <source>messagebarText("string") |
2919 | <source>messagebarText("string") |
2893 | 2920 | ||
2894 | Writes the "string" into the Scribus message bar (status line). The text |
2921 | Writes the "string" into the Scribus message bar (status line). The text |
2895 | must be UTF8 encoded or 'unicode' string(recommended). |
2922 | must be UTF8 encoded or 'unicode' string(recommended). |
2896 | </source> |
2923 | </source> |
Line 2899... | Line 2926... | ||
2899 | Writes the "string" into the Scribus message bar (status line). The text |
2926 | Writes the "string" into the Scribus message bar (status line). The text |
2900 | must be UTF8 encoded or 'unicode' string(recommended). |
2927 | must be UTF8 encoded or 'unicode' string(recommended). |
2901 | </translation> |
2928 | </translation> |
2902 | </message> |
2929 | </message> |
2903 | <message> |
2930 | <message> |
2904 | <location filename="../../scribus/plugins/scriptplugin/guiapp.h" line="34"/> |
2931 | <location filename="../../../scribus/plugins/scriptplugin/guiapp.h" line="30"/> |
2905 | <source>progressReset() |
2932 | <source>progressReset() |
2906 | 2933 | ||
2907 | Cleans up the Scribus progress bar previous settings. It is called before the |
2934 | Cleans up the Scribus progress bar previous settings. It is called before the |
2908 | new progress bar use. See progressSet. |
2935 | new progress bar use. See progressSet. |
2909 | </source> |
2936 | </source> |
Line 2912... | Line 2939... | ||
2912 | Cleans up the Scribus progress bar previous settings. It is called before the |
2939 | Cleans up the Scribus progress bar previous settings. It is called before the |
2913 | new progress bar use. See progressSet. |
2940 | new progress bar use. See progressSet. |
2914 | </translation> |
2941 | </translation> |
2915 | </message> |
2942 | </message> |
2916 | <message> |
2943 | <message> |
2917 | <location filename="../../scribus/plugins/scriptplugin/guiapp.h" line="47"/> |
2944 | <location filename="../../../scribus/plugins/scriptplugin/guiapp.h" line="43"/> |
2918 | <source>progressTotal(max) |
2945 | <source>progressTotal(max) |
2919 | 2946 | ||
2920 | Sets the progress bar's maximum steps value to the specified number. |
2947 | Sets the progress bar's maximum steps value to the specified number. |
2921 | See progressSet. |
2948 | See progressSet. |
2922 | </source> |
2949 | </source> |
Line 2925... | Line 2952... | ||
2925 | Sets the progress bar's maximum steps value to the specified number. |
2952 | Sets the progress bar's maximum steps value to the specified number. |
2926 | See progressSet. |
2953 | See progressSet. |
2927 | </translation> |
2954 | </translation> |
2928 | </message> |
2955 | </message> |
2929 | <message> |
2956 | <message> |
2930 | <location filename="../../scribus/plugins/scriptplugin/guiapp.h" line="61"/> |
2957 | <location filename="../../../scribus/plugins/scriptplugin/guiapp.h" line="52"/> |
2931 | <source>progressSet(nr) |
2958 | <source>progressSet(nr) |
2932 | 2959 | ||
2933 | Set the progress bar position to "nr", a value relative to the previously set |
2960 | Set the progress bar position to "nr", a value relative to the previously set |
2934 | progressTotal. The progress bar uses the concept of steps; you give it the |
2961 | progressTotal. The progress bar uses the concept of steps; you give it the |
2935 | total number of steps and the number of steps completed so far and it will |
2962 | total number of steps and the number of steps completed so far and it will |
Line 2948... | Line 2975... | ||
2948 | with progressSet(). The progress bar can be rewound to the beginning with |
2975 | with progressSet(). The progress bar can be rewound to the beginning with |
2949 | progressReset(). [based on info taken from Trolltech's Qt docs] |
2976 | progressReset(). [based on info taken from Trolltech's Qt docs] |
2950 | </translation> |
2977 | </translation> |
2951 | </message> |
2978 | </message> |
2952 | <message> |
2979 | <message> |
2953 | <location filename="../../scribus/plugins/scriptplugin/guiapp.h" line="69"/> |
2980 | <location filename="../../../scribus/plugins/scriptplugin/guiapp.h" line="66"/> |
2954 | <source>setCursor() |
2981 | <source>setCursor() |
2955 | 2982 | ||
2956 | [UNSUPPORTED!] This might break things, so steer clear for now. |
2983 | [UNSUPPORTED!] This might break things, so steer clear for now. |
2957 | </source> |
2984 | </source> |
2958 | <translation type="unfinished">setCursor() |
2985 | <translation type="unfinished">setCursor() |
2959 | 2986 | ||
2960 | [UNSUPPORTED!] This might break things, so steer clear for now. |
2987 | [UNSUPPORTED!] This might break things, so steer clear for now. |
2961 | </translation> |
2988 | </translation> |
2962 | </message> |
2989 | </message> |
2963 | <message> |
2990 | <message> |
2964 | <location filename="../../scribus/plugins/scriptplugin/guiapp.h" line="83"/> |
2991 | <location filename="../../../scribus/plugins/scriptplugin/guiapp.h" line="78"/> |
2965 | <source>docChanged(bool) |
2992 | <source>docChanged(bool) |
2966 | 2993 | ||
2967 | Enable/disable save icon in the Scribus icon bar and the Save menu item. It's |
2994 | Enable/disable save icon in the Scribus icon bar and the Save menu item. It's |
2968 | useful to call this procedure when you're changing the document, because Scribus |
2995 | useful to call this procedure when you're changing the document, because Scribus |
2969 | won't automatically notice when you change the document using a script. |
2996 | won't automatically notice when you change the document using a script. |
Line 2974... | Line 3001... | ||
2974 | useful to call this procedure when you're changing the document, because Scribus |
3001 | useful to call this procedure when you're changing the document, because Scribus |
2975 | won't automatically notice when you change the document using a script. |
3002 | won't automatically notice when you change the document using a script. |
2976 | </translation> |
3003 | </translation> |
2977 | </message> |
3004 | </message> |
2978 | <message> |
3005 | <message> |
2979 | <location filename="../../scribus/plugins/scriptplugin/guiapp.h" line="95"/> |
3006 | <location filename="../../../scribus/plugins/scriptplugin/guiapp.h" line="91"/> |
2980 | <source>zoomDocument(double) |
3007 | <source>zoomDocument(double) |
2981 | 3008 | ||
2982 | Zoom the document in main GUI window. Actions have whole number |
3009 | Zoom the document in main GUI window. Actions have whole number |
2983 | values like 20.0, 100.0, etc. Zoom to Fit uses -100 as a marker. |
3010 | values like 20.0, 100.0, etc. Zoom to Fit uses -100 as a marker. |
2984 | </source> |
3011 | </source> |
Line 2987... | Line 3014... | ||
2987 | Zoom the document in main GUI window. Actions have whole number |
3014 | Zoom the document in main GUI window. Actions have whole number |
2988 | values like 20.0, 100.0, etc. Zoom to Fit uses -100 as a marker. |
3015 | values like 20.0, 100.0, etc. Zoom to Fit uses -100 as a marker. |
2989 | </translation> |
3016 | </translation> |
2990 | </message> |
3017 | </message> |
2991 | <message> |
3018 | <message> |
2992 | <location filename="../../scribus/plugins/scriptplugin/guiapp.h" line="106"/> |
3019 | <location filename="../../../scribus/plugins/scriptplugin/guiapp.h" line="103"/> |
2993 | <source>scrollDocument(x,y) |
3020 | <source>scrollDocument(x,y) |
2994 | 3021 | ||
2995 | Scroll the document in main GUI window by x and y. |
3022 | Scroll the document in main GUI window by x and y. |
2996 | </source> |
3023 | </source> |
2997 | <translation type="unfinished"></translation> |
3024 | <translation type="unfinished"></translation> |
2998 | </message> |
3025 | </message> |
2999 | <message> |
3026 | <message> |
3000 | <location filename="../../scribus/plugins/scriptplugin/svgimport.h" line="21"/> |
3027 | <location filename="../../../scribus/plugins/scriptplugin/svgimport.h" line="15"/> |
3001 | <source>placeSVG("filename", x, y) |
3028 | <source>placeSVG("filename", x, y) |
3002 | 3029 | ||
3003 | Places the SVG "filename" onto the current page, |
3030 | Places the SVG "filename" onto the current page, |
3004 | x and y specify the coordinate of the topleft corner of the SVG placed on the page |
3031 | x and y specify the coordinate of the topleft corner of the SVG placed on the page |
3005 | 3032 | ||
3006 | If loading was successful, the selection contains the imported SVG |
3033 | If loading was successful, the selection contains the imported SVG |
3007 | </source> |
3034 | </source> |
3008 | <translation type="unfinished"></translation> |
3035 | <translation type="unfinished"></translation> |
3009 | </message> |
3036 | </message> |
3010 | <message> |
3037 | <message> |
3011 | <location filename="../../scribus/plugins/scriptplugin/svgimport.h" line="33"/> |
3038 | <location filename="../../../scribus/plugins/scriptplugin/svgimport.h" line="27"/> |
3012 | <source>placeEPS("filename", x, y) |
3039 | <source>placeEPS("filename", x, y) |
3013 | 3040 | ||
3014 | Places the EPS "filename" onto the current page, |
3041 | Places the EPS "filename" onto the current page, |
3015 | x and y specify the coordinate of the topleft corner of the EPS placed on the page |
3042 | x and y specify the coordinate of the topleft corner of the EPS placed on the page |
3016 | 3043 | ||
3017 | If loading was successful, the selection contains the imported EPS |
3044 | If loading was successful, the selection contains the imported EPS |
3018 | </source> |
3045 | </source> |
3019 | <translation type="unfinished"></translation> |
3046 | <translation type="unfinished"></translation> |
3020 | </message> |
3047 | </message> |
3021 | <message> |
3048 | <message> |
3022 | <location filename="../../scribus/plugins/scriptplugin/svgimport.h" line="45"/> |
3049 | <location filename="../../../scribus/plugins/scriptplugin/svgimport.h" line="39"/> |
3023 | <source>placeSXD("filename", x, y) |
3050 | <source>placeSXD("filename", x, y) |
3024 | 3051 | ||
3025 | Places the SXD "filename" onto the current page, |
3052 | Places the SXD "filename" onto the current page, |
3026 | x and y specify the coordinate of the topleft corner of the SXD placed on the page |
3053 | x and y specify the coordinate of the topleft corner of the SXD placed on the page |
3027 | 3054 | ||
3028 | If loading was successful, the selection contains the imported SXD |
3055 | If loading was successful, the selection contains the imported SXD |
3029 | </source> |
3056 | </source> |
3030 | <translation type="unfinished"></translation> |
3057 | <translation type="unfinished"></translation> |
3031 | </message> |
3058 | </message> |
3032 | <message> |
3059 | <message> |
3033 | <location filename="../../scribus/plugins/scriptplugin/svgimport.h" line="57"/> |
3060 | <location filename="../../../scribus/plugins/scriptplugin/svgimport.h" line="51"/> |
3034 | <source>placeODG("filename", x, y) |
3061 | <source>placeODG("filename", x, y) |
3035 | 3062 | ||
3036 | Places the ODG "filename" onto the current page, |
3063 | Places the ODG "filename" onto the current page, |
3037 | x and y specify the coordinate of the topleft corner of the ODG placed on the page |
3064 | x and y specify the coordinate of the topleft corner of the ODG placed on the page |
3038 | 3065 | ||
3039 | If loading was successful, the selection contains the imported ODG |
3066 | If loading was successful, the selection contains the imported ODG |
3040 | </source> |
3067 | </source> |
3041 | <translation type="unfinished"></translation> |
3068 | <translation type="unfinished"></translation> |
3042 | </message> |
3069 | </message> |
3043 | <message> |
3070 | <message> |
3044 | <location filename="../../scribus/plugins/scriptplugin/cmdcolor.h" line="120"/> |
3071 | <location filename="../../../scribus/plugins/scriptplugin/cmdcolor.h" line="113"/> |
3045 | <source>isSpotColor("name") -> bool |
3072 | <source>isSpotColor("name") -> bool |
3046 | 3073 | ||
3047 | Returns True if the color "name" is a spot color. |
3074 | Returns True if the color "name" is a spot color. |
3048 | See also setSpotColor() |
3075 | See also setSpotColor() |
3049 | 3076 | ||
Line 3051... | Line 3078... | ||
3051 | May raise ValueError if an invalid color name is specified. |
3078 | May raise ValueError if an invalid color name is specified. |
3052 | </source> |
3079 | </source> |
3053 | <translation type="unfinished"></translation> |
3080 | <translation type="unfinished"></translation> |
3054 | </message> |
3081 | </message> |
3055 | <message> |
3082 | <message> |
3056 | <location filename="../../scribus/plugins/scriptplugin/cmdcolor.h" line="135"/> |
3083 | <location filename="../../../scribus/plugins/scriptplugin/cmdcolor.h" line="128"/> |
3057 | <source>setSpotColor("name", spot) |
3084 | <source>setSpotColor("name", spot) |
3058 | 3085 | ||
3059 | Set the color "name" as a spot color if spot parameter is True. |
3086 | Set the color "name" as a spot color if spot parameter is True. |
3060 | See also isSpotColor() |
3087 | See also isSpotColor() |
3061 | 3088 | ||
Line 3063... | Line 3090... | ||
3063 | May raise ValueError if an invalid color name is specified. |
3090 | May raise ValueError if an invalid color name is specified. |
3064 | </source> |
3091 | </source> |
3065 | <translation type="unfinished"></translation> |
3092 | <translation type="unfinished"></translation> |
3066 | </message> |
3093 | </message> |
3067 | <message> |
3094 | <message> |
3068 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="167"/> |
3095 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="159"/> |
3069 | <source>scaleImage(x, y [, "name"]) |
3096 | <source>scaleImage(x, y [, "name"]) |
3070 | 3097 | ||
3071 | Sets the internal scaling factors of the picture in the image frame "name". |
3098 | Sets the internal scaling factors of the picture in the image frame "name". |
3072 | If "name" is not given the currently selected item is used. A number of 1 |
3099 | If "name" is not given the currently selected item is used. A number of 1 |
3073 | means 100 %. Internal scaling factors are different from the values shown on |
3100 | means 100 %. Internal scaling factors are different from the values shown on |
Line 3076... | Line 3103... | ||
3076 | May raise WrongFrameTypeError if the target frame is not an image frame |
3103 | May raise WrongFrameTypeError if the target frame is not an image frame |
3077 | </source> |
3104 | </source> |
3078 | <translation type="unfinished"></translation> |
3105 | <translation type="unfinished"></translation> |
3079 | </message> |
3106 | </message> |
3080 | <message> |
3107 | <message> |
3081 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="180"/> |
3108 | <location filename="../../../scribus/plugins/scriptplugin/cmdmani.h" line="173"/> |
3082 | <source>setImageScale(x, y [, "name"]) |
3109 | <source>setImageScale(x, y [, "name"]) |
3083 | 3110 | ||
3084 | Sets the scaling factors of the picture in the image frame "name". |
3111 | Sets the scaling factors of the picture in the image frame "name". |
3085 | If "name" is not given the currently selected item is used. A number of 1 |
3112 | If "name" is not given the currently selected item is used. A number of 1 |
3086 | means 100 %. Scaling factors are equal to the values shown on properties palette. |
3113 | means 100 %. Scaling factors are equal to the values shown on properties palette. |
Line 3088... | Line 3115... | ||
3088 | May raise WrongFrameTypeError if the target frame is not an image frame |
3115 | May raise WrongFrameTypeError if the target frame is not an image frame |
3089 | </source> |
3116 | </source> |
3090 | <translation type="unfinished"></translation> |
3117 | <translation type="unfinished"></translation> |
3091 | </message> |
3118 | </message> |
3092 | <message> |
3119 | <message> |
3093 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="33"/> |
3120 | <location filename="../../../scribus/plugins/scriptplugin/cmdsetprop.h" line="28"/> |
3094 | <source>setGradientStop("color", shade, opacity, ramppoint, ["name"]) |
3121 | <source>setGradientStop("color", shade, opacity, ramppoint, ["name"]) |
3095 | 3122 | ||
3096 | Set or add a gradient stop to the gradient fill of the object "name" at position ramppoint. |
3123 | Set or add a gradient stop to the gradient fill of the object "name" at position ramppoint. |
3097 | Color descriptions are the same as for setFillColor() and setFillShade(). setGradientFill() |
3124 | Color descriptions are the same as for setFillColor() and setFillShade(). setGradientFill() |
3098 | must have been called previously for the gradient fill to be visible. |
3125 | must have been called previously for the gradient fill to be visible. |
3099 | </source> |
3126 | </source> |
3100 | <translation type="unfinished"></translation> |
3127 | <translation type="unfinished"></translation> |
3101 | </message> |
3128 | </message> |
3102 | <message> |
3129 | <message> |
3103 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="292"/> |
3130 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="288"/> |
3104 | <source>setTextScalingV(scale, ["name"]) |
3131 | <source>setTextScalingV(scale, ["name"]) |
3105 | 3132 | ||
3106 | Sets the vertical character scaling of the object "name" to "scale" in percent. |
3133 | Sets the vertical character scaling of the object "name" to "scale" in percent. |
3107 | If "name" is not given the currently selected item is used. |
3134 | If "name" is not given the currently selected item is used. |
3108 | </source> |
3135 | </source> |
3109 | <translation type="unfinished"></translation> |
3136 | <translation type="unfinished"></translation> |
3110 | </message> |
3137 | </message> |
3111 | <message> |
3138 | <message> |
3112 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="302"/> |
3139 | <location filename="../../../scribus/plugins/scriptplugin/cmdtext.h" line="298"/> |
3113 | <source>setTextScalingH(scale, ["name"]) |
3140 | <source>setTextScalingH(scale, ["name"]) |
3114 | 3141 | ||
3115 | Sets the horizontal character scaling of the object "name" to "scale" in percent. |
3142 | Sets the horizontal character scaling of the object "name" to "scale" in percent. |
3116 | If "name" is not given the currently selected item is used. |
3143 | If "name" is not given the currently selected item is used. |
3117 | </source> |
3144 | </source> |
Line 3119... | Line 3146... | ||
3119 | </message> |
3146 | </message> |
3120 | </context> |
3147 | </context> |
3121 | <context> |
3148 | <context> |
3122 | <name>@default</name> |
3149 | <name>@default</name> |
3123 | <message> |
3150 | <message> |
3124 | <location filename="../../scribus/plugins/scriptplugin/cmdcolor.h" line="21"/> |
- | |
3125 | <source>getColorNames() -> list |
3151 | <source>getColorNames() -> list |
3126 | 3152 | ||
3127 | Returns a list containing the names of all defined colors in the document. |
3153 | Returns a list containing the names of all defined colors in the document. |
3128 | If no document is open, returns a list of the default document colors. |
3154 | If no document is open, returns a list of the default document colors. |
3129 | </source> |
3155 | </source> |
Line 3132... | Line 3158... | ||
3132 | Returns a list containing the names of all defined colours in the document. |
3158 | Returns a list containing the names of all defined colours in the document. |
3133 | If no document is open, returns a list of the default document colours. |
3159 | If no document is open, returns a list of the default document colours. |
3134 | </translation> |
3160 | </translation> |
3135 | </message> |
3161 | </message> |
3136 | <message> |
3162 | <message> |
3137 | <location filename="../../scribus/plugins/scriptplugin/cmddialog.h" line="22"/> |
- | |
3138 | <source>newDocDialog() -> bool |
3163 | <source>newDocDialog() -> bool |
3139 | 3164 | ||
3140 | Displays the "New Document" dialog box. Creates a new document if the user |
3165 | Displays the "New Document" dialog box. Creates a new document if the user |
3141 | accepts the settings. Does not create a document if the user presses cancel. |
3166 | accepts the settings. Does not create a document if the user presses cancel. |
3142 | Returns true if a new document was created. |
3167 | Returns true if a new document was created. |
Line 3147... | Line 3172... | ||
3147 | accepts the settings. Does not create a document if the user presses cancel. |
3172 | accepts the settings. Does not create a document if the user presses cancel. |
3148 | Returns true if a new document was created. |
3173 | Returns true if a new document was created. |
3149 | </translation> |
3174 | </translation> |
3150 | </message> |
3175 | </message> |
3151 | <message> |
3176 | <message> |
3152 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="21"/> |
- | |
3153 | <source>getFillColor(["name"]) -> string |
3177 | <source>getFillColor(["name"]) -> string |
3154 | 3178 | ||
3155 | Returns the name of the fill color of the object "name". |
3179 | Returns the name of the fill color of the object "name". |
3156 | If "name" is not given the currently selected item is used. |
3180 | If "name" is not given the currently selected item is used. |
3157 | </source> |
3181 | </source> |
Line 3160... | Line 3184... | ||
3160 | Returns the name of the fill colour of the object "name". |
3184 | Returns the name of the fill colour of the object "name". |
3161 | If "name" is not given the currently selected item is used. |
3185 | If "name" is not given the currently selected item is used. |
3162 | </translation> |
3186 | </translation> |
3163 | </message> |
3187 | </message> |
3164 | <message> |
3188 | <message> |
3165 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="23"/> |
- | |
3166 | <source>moveObject(dx, dy [, "name"]) |
3189 | <source>moveObject(dx, dy [, "name"]) |
3167 | 3190 | ||
3168 | Moves the object "name" by dx and dy relative to its current position. The |
3191 | Moves the object "name" by dx and dy relative to its current position. The |
3169 | distances are expressed in the current measurement unit of the document (see |
3192 | distances are expressed in the current measurement unit of the document (see |
3170 | UNIT constants). If "name" is not given the currently selected item is used. |
3193 | UNIT constants). If "name" is not given the currently selected item is used. |
Line 3177... | Line 3200... | ||
3177 | UNIT constants). If "name" is not given the currently selected item is used. |
3200 | UNIT constants). If "name" is not given the currently selected item is used. |
3178 | If the object "name" belongs to a group, the whole group is moved. |
3201 | If the object "name" belongs to a group, the whole group is moved. |
3179 | </translation> |
3202 | </translation> |
3180 | </message> |
3203 | </message> |
3181 | <message> |
3204 | <message> |
3182 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="24"/> |
- | |
3183 | <source>setRedraw(bool) |
3205 | <source>setRedraw(bool) |
3184 | 3206 | ||
3185 | Disables page redraw when bool = False, otherwise redrawing is enabled. |
3207 | Disables page redraw when bool = False, otherwise redrawing is enabled. |
3186 | This change will persist even after the script exits, so make sure to call |
3208 | This change will persist even after the script exits, so make sure to call |
3187 | setRedraw(True) in a finally: clause at the top level of your script. |
3209 | setRedraw(True) in a finally: clause at the top level of your script. |
Line 3192... | Line 3214... | ||
3192 | This change will persist even after the script exits, so make sure to call |
3214 | This change will persist even after the script exits, so make sure to call |
3193 | setRedraw(True) in a finally: clause at the top level of your script. |
3215 | setRedraw(True) in a finally: clause at the top level of your script. |
3194 | </translation> |
3216 | </translation> |
3195 | </message> |
3217 | </message> |
3196 | <message> |
3218 | <message> |
3197 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="26"/> |
- | |
3198 | <source>createRect(x, y, width, height, ["name"]) -> string |
3219 | <source>createRect(x, y, width, height, ["name"]) -> string |
3199 | 3220 | ||
3200 | Creates a new rectangle on the current page and returns its name. The |
3221 | Creates a new rectangle on the current page and returns its name. The |
3201 | coordinates are given in the current measurement units of the document |
3222 | coordinates are given in the current measurement units of the document |
3202 | (see UNIT constants). "name" should be a unique identifier for the object |
3223 | (see UNIT constants). "name" should be a unique identifier for the object |
Line 3215... | Line 3236... | ||
3215 | 3236 | ||
3216 | May raise NameExistsError if you explicitly pass a name that's already used. |
3237 | May raise NameExistsError if you explicitly pass a name that's already used. |
3217 | </translation> |
3238 | </translation> |
3218 | </message> |
3239 | </message> |
3219 | <message> |
3240 | <message> |
3220 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="26"/> |
- | |
3221 | <source>newPage(where [,"masterpage"]) |
3241 | <source>newPage(where [,"masterpage"]) |
3222 | 3242 | ||
3223 | Creates a new page. If "where" is -1 the new Page is appended to the |
3243 | Creates a new page. If "where" is -1 the new Page is appended to the |
3224 | document, otherwise the new page is inserted before "where". Page numbers are |
3244 | document, otherwise the new page is inserted before "where". Page numbers are |
3225 | counted from 1 upwards, no matter what the displayed first page number of your |
3245 | counted from 1 upwards, no matter what the displayed first page number of your |
Line 3238... | Line 3258... | ||
3238 | 3258 | ||
3239 | May raise IndexError if the page number is out of range |
3259 | May raise IndexError if the page number is out of range |
3240 | </translation> |
3260 | </translation> |
3241 | </message> |
3261 | </message> |
3242 | <message> |
3262 | <message> |
3243 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="22"/> |
- | |
3244 | <source>setGradientFill(type, "color1", shade1, "color2", shade2, ["name"]) |
3263 | <source>setGradientFill(type, "color1", shade1, "color2", shade2, ["name"]) |
3245 | 3264 | ||
3246 | Sets the gradient fill of the object "name" to type. Color descriptions are |
3265 | Sets the gradient fill of the object "name" to type. Color descriptions are |
3247 | the same as for setFillColor() and setFillShade(). See the constants for |
3266 | the same as for setFillColor() and setFillShade(). See the constants for |
3248 | available types (FILL_<type>). |
3267 | available types (FILL_<type>). |
Line 3253... | Line 3272... | ||
3253 | the same as for setFillColor() and setFillShade(). See the constants for |
3272 | the same as for setFillColor() and setFillShade(). See the constants for |
3254 | available types (FILL_<type>). |
3273 | available types (FILL_<type>). |
3255 | </translation> |
3274 | </translation> |
3256 | </message> |
3275 | </message> |
3257 | <message> |
3276 | <message> |
3258 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="23"/> |
- | |
3259 | <source>getFontSize(["name"]) -> float |
3277 | <source>getFontSize(["name"]) -> float |
3260 | 3278 | ||
3261 | Returns the font size in points for the text frame "name". If this text |
3279 | Returns the font size in points for the text frame "name". If this text |
3262 | frame has some text selected the value assigned to the first character of |
3280 | frame has some text selected the value assigned to the first character of |
3263 | the selection is returned. |
3281 | the selection is returned. |
Line 3270... | Line 3288... | ||
3270 | the selection is returned. |
3288 | the selection is returned. |
3271 | If "name" is not given the currently selected item is used. |
3289 | If "name" is not given the currently selected item is used. |
3272 | </translation> |
3290 | </translation> |
3273 | </message> |
3291 | </message> |
3274 | <message> |
3292 | <message> |
3275 | <location filename="../../scribus/plugins/scriptplugin/guiapp.h" line="21"/> |
- | |
3276 | <source>messagebarText("string") |
3293 | <source>messagebarText("string") |
3277 | 3294 | ||
3278 | Writes the "string" into the Scribus message bar (status line). The text |
3295 | Writes the "string" into the Scribus message bar (status line). The text |
3279 | must be UTF8 encoded or 'unicode' string(recommended). |
3296 | must be UTF8 encoded or 'unicode' string(recommended). |
3280 | </source> |
3297 | </source> |
Line 3283... | Line 3300... | ||
3283 | Writes the "string" into the Scribus message bar (status line). The text |
3300 | Writes the "string" into the Scribus message bar (status line). The text |
3284 | must be UTF8 encoded or 'unicode' string(recommended). |
3301 | must be UTF8 encoded or 'unicode' string(recommended). |
3285 | </translation> |
3302 | </translation> |
3286 | </message> |
3303 | </message> |
3287 | <message> |
3304 | <message> |
3288 | <location filename="" line="136966688"/> |
- | |
3289 | <source>importSVG("string") |
3305 | <source>importSVG("string") |
3290 | 3306 | ||
3291 | The "string" must be a valid filename for a SVG image. The text |
3307 | The "string" must be a valid filename for a SVG image. The text |
3292 | must be UTF8 encoded or 'unicode' string(recommended). |
3308 | must be UTF8 encoded or 'unicode' string(recommended). |
3293 | </source> |
3309 | </source> |
Line 3296... | Line 3312... | ||
3296 | The "string" must be a valid filename for a SVG image. The text |
3312 | The "string" must be a valid filename for a SVG image. The text |
3297 | must be UTF8 encoded or 'unicode' string(recommended). |
3313 | must be UTF8 encoded or 'unicode' string(recommended). |
3298 | </translation> |
3314 | </translation> |
3299 | </message> |
3315 | </message> |
3300 | <message> |
3316 | <message> |
3301 | <location filename="" line="136966688"/> |
- | |
3302 | <source>newDocument(size, margins, orientation, firstPageNumber, |
3317 | <source>newDocument(size, margins, orientation, firstPageNumber, |
3303 | unit, pagesType, firstPageOrder) -> bool |
3318 | unit, pagesType, firstPageOrder) -> bool |
3304 | 3319 | ||
3305 | Creates a new document and returns true if successful. The parameters have the |
3320 | Creates a new document and returns true if successful. The parameters have the |
3306 | following meaning: |
3321 | following meaning: |
Line 3375... | Line 3390... | ||
3375 | 3390 | ||
3376 | May raise ScribusError if is firstPageOrder bigger than allowed by pagesType. |
3391 | May raise ScribusError if is firstPageOrder bigger than allowed by pagesType. |
3377 | </translation> |
3392 | </translation> |
3378 | </message> |
3393 | </message> |
3379 | <message> |
3394 | <message> |
3380 | <location filename="../../scribus/plugins/scriptplugin/cmdcolor.h" line="35"/> |
- | |
3381 | <source>getColor("name") -> tuple |
3395 | <source>getColor("name") -> tuple |
3382 | 3396 | ||
3383 | Returns a tuple (C, M, Y, K) containing the four color components of the |
3397 | Returns a tuple (C, M, Y, K) containing the four color components of the |
3384 | color "name" from the current document. If no document is open, returns |
3398 | color "name" from the current document. If no document is open, returns |
3385 | the value of the named color from the default document colors. |
3399 | the value of the named color from the default document colors. |
Line 3396... | Line 3410... | ||
3396 | May raise NotFoundError if the named colour wasn't found. |
3410 | May raise NotFoundError if the named colour wasn't found. |
3397 | May raise ValueError if an invalid colour name is specified. |
3411 | May raise ValueError if an invalid colour name is specified. |
3398 | </translation> |
3412 | </translation> |
3399 | </message> |
3413 | </message> |
3400 | <message> |
3414 | <message> |
3401 | <location filename="../../scribus/plugins/scriptplugin/cmdcolor.h" line="50"/> |
- | |
3402 | <source>getColorAsRGB("name") -> tuple |
3415 | <source>getColorAsRGB("name") -> tuple |
3403 | 3416 | ||
3404 | Returns a tuple (R,G,B) containing the three color components of the |
3417 | Returns a tuple (R,G,B) containing the three color components of the |
3405 | color "name" from the current document, converted to the RGB color |
3418 | color "name" from the current document, converted to the RGB color |
3406 | space. If no document is open, returns the value of the named color |
3419 | space. If no document is open, returns the value of the named color |
Line 3419... | Line 3432... | ||
3419 | May raise NotFoundError if the named colour wasn't found. |
3432 | May raise NotFoundError if the named colour wasn't found. |
3420 | May raise ValueError if an invalid colour name is specified. |
3433 | May raise ValueError if an invalid colour name is specified. |
3421 | </translation> |
3434 | </translation> |
3422 | </message> |
3435 | </message> |
3423 | <message> |
3436 | <message> |
3424 | <location filename="../../scribus/plugins/scriptplugin/cmdcolor.h" line="64"/> |
- | |
3425 | <source>changeColor("name", c, m, y, k) |
3437 | <source>changeColor("name", c, m, y, k) |
3426 | 3438 | ||
3427 | Changes the color "name" to the specified CMYK value. The color value is |
3439 | Changes the color "name" to the specified CMYK value. The color value is |
3428 | defined via four components c = Cyan, m = Magenta, y = Yellow and k = Black. |
3440 | defined via four components c = Cyan, m = Magenta, y = Yellow and k = Black. |
3429 | Color components should be in the range from 0 to 255. |
3441 | Color components should be in the range from 0 to 255. |
Line 3440... | Line 3452... | ||
3440 | May raise NotFoundError if the named colour wasn't found. |
3452 | May raise NotFoundError if the named colour wasn't found. |
3441 | May raise ValueError if an invalid colour name is specified. |
3453 | May raise ValueError if an invalid colour name is specified. |
3442 | </translation> |
3454 | </translation> |
3443 | </message> |
3455 | </message> |
3444 | <message> |
3456 | <message> |
3445 | <location filename="" line="136966688"/> |
- | |
3446 | <source>defineColor("name", c, m, y, k) |
3457 | <source>defineColor("name", c, m, y, k) |
3447 | 3458 | ||
3448 | Defines a new color "name". The color Value is defined via four components: |
3459 | Defines a new color "name". The color Value is defined via four components: |
3449 | c = Cyan, m = Magenta, y = Yello and k = Black. Color components should be in |
3460 | c = Cyan, m = Magenta, y = Yello and k = Black. Color components should be in |
3450 | the range from 0 to 255. |
3461 | the range from 0 to 255. |
Line 3459... | Line 3470... | ||
3459 | 3470 | ||
3460 | May raise ValueError if an invalid colour name is specified. |
3471 | May raise ValueError if an invalid colour name is specified. |
3461 | </translation> |
3472 | </translation> |
3462 | </message> |
3473 | </message> |
3463 | <message> |
3474 | <message> |
3464 | <location filename="../../scribus/plugins/scriptplugin/cmdcolor.h" line="94"/> |
- | |
3465 | <source>deleteColor("name", "replace") |
3475 | <source>deleteColor("name", "replace") |
3466 | 3476 | ||
3467 | Deletes the color "name". Every occurence of that color is replaced by the |
3477 | Deletes the color "name". Every occurence of that color is replaced by the |
3468 | color "replace". If not specified, "replace" defaults to the color |
3478 | color "replace". If not specified, "replace" defaults to the color |
3469 | "None" - transparent. |
3479 | "None" - transparent. |
Line 3486... | Line 3496... | ||
3486 | May raise NotFoundError if a named colour wasn't found. |
3496 | May raise NotFoundError if a named colour wasn't found. |
3487 | May raise ValueError if an invalid colour name is specified. |
3497 | May raise ValueError if an invalid colour name is specified. |
3488 | </translation> |
3498 | </translation> |
3489 | </message> |
3499 | </message> |
3490 | <message> |
3500 | <message> |
3491 | <location filename="../../scribus/plugins/scriptplugin/cmdcolor.h" line="106"/> |
- | |
3492 | <source>replaceColor("name", "replace") |
3501 | <source>replaceColor("name", "replace") |
3493 | 3502 | ||
3494 | Every occurence of the color "name" is replaced by the color "replace". |
3503 | Every occurence of the color "name" is replaced by the color "replace". |
3495 | 3504 | ||
3496 | May raise NotFoundError if a named color wasn't found. |
3505 | May raise NotFoundError if a named color wasn't found. |
Line 3503... | Line 3512... | ||
3503 | May raise NotFoundError if a named colour wasn't found. |
3512 | May raise NotFoundError if a named colour wasn't found. |
3504 | May raise ValueError if an invalid colour name is specified. |
3513 | May raise ValueError if an invalid colour name is specified. |
3505 | </translation> |
3514 | </translation> |
3506 | </message> |
3515 | </message> |
3507 | <message> |
3516 | <message> |
3508 | <location filename="../plugins/scriptplugin/cmddialog.h" line="46"/> |
- | |
3509 | <source>fileDialog("caption", ["filter", "defaultname", haspreview, issave, isdir]) -> string with filename |
3517 | <source>fileDialog("caption", ["filter", "defaultname", haspreview, issave, isdir]) -> string with filename |
3510 | 3518 | ||
3511 | Shows a File Open dialog box with the caption "caption". Files are filtered |
3519 | Shows a File Open dialog box with the caption "caption". Files are filtered |
3512 | with the filter string "filter". A default filename or file path can also |
3520 | with the filter string "filter". A default filename or file path can also |
3513 | supplied, leave this string empty when you don't want to use it. A value of |
3521 | supplied, leave this string empty when you don't want to use it. A value of |
Line 3544... | Line 3552... | ||
3544 | Example: fileDialog('Open input', 'CSV files (*.csv)') |
3552 | Example: fileDialog('Open input', 'CSV files (*.csv)') |
3545 | Example: fileDialog('Save report', defaultname='report.txt', issave=True) |
3553 | Example: fileDialog('Save report', defaultname='report.txt', issave=True) |
3546 | </translation> |
3554 | </translation> |
3547 | </message> |
3555 | </message> |
3548 | <message> |
3556 | <message> |
3549 | <location filename="../../scribus/plugins/scriptplugin/cmddialog.h" line="88"/> |
- | |
3550 | <source>messageBox("caption", "message", |
3557 | <source>messageBox("caption", "message", |
3551 | icon=ICON_NONE, button1=BUTTON_OK|BUTTONOPT_DEFAULT, |
3558 | icon=ICON_NONE, button1=BUTTON_OK|BUTTONOPT_DEFAULT, |
3552 | button2=BUTTON_NONE, button3=BUTTON_NONE) -> integer |
3559 | button2=BUTTON_NONE, button3=BUTTON_NONE) -> integer |
3553 | 3560 | ||
3554 | Displays a message box with the title "caption", the message "message", and |
3561 | Displays a message box with the title "caption", the message "message", and |
Line 3613... | Line 3620... | ||
3613 | BUTTON_NOALL, BUTTON_OK, BUTTON_RETRY, BUTTON_YES, BUTTON_YESALL, |
3620 | BUTTON_NOALL, BUTTON_OK, BUTTON_RETRY, BUTTON_YES, BUTTON_YESALL, |
3614 | ICON_NONE, ICON_INFORMATION, ICON_WARNING, ICON_CRITICAL. |
3621 | ICON_NONE, ICON_INFORMATION, ICON_WARNING, ICON_CRITICAL. |
3615 | </translation> |
3622 | </translation> |
3616 | </message> |
3623 | </message> |
3617 | <message> |
3624 | <message> |
3618 | <location filename="../../scribus/plugins/scriptplugin/cmddialog.h" line="101"/> |
- | |
3619 | <source>valueDialog(caption, message [,defaultvalue]) -> string |
3625 | <source>valueDialog(caption, message [,defaultvalue]) -> string |
3620 | 3626 | ||
3621 | Shows the common 'Ask for string' dialog and returns its value as a string |
3627 | Shows the common 'Ask for string' dialog and returns its value as a string |
3622 | Parameters: window title, text in the window and optional 'default' value. |
3628 | Parameters: window title, text in the window and optional 'default' value. |
3623 | 3629 | ||
Line 3630... | Line 3636... | ||
3630 | 3636 | ||
3631 | Example: valueDialog('title', 'text in the window', 'optional') |
3637 | Example: valueDialog('title', 'text in the window', 'optional') |
3632 | </translation> |
3638 | </translation> |
3633 | </message> |
3639 | </message> |
3634 | <message> |
3640 | <message> |
3635 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="108"/> |
- | |
3636 | <source>closeDoc() |
3641 | <source>closeDoc() |
3637 | 3642 | ||
3638 | Closes the current document without prompting to save. |
3643 | Closes the current document without prompting to save. |
3639 | 3644 | ||
3640 | May throw NoDocOpenError if there is no document to close |
3645 | May throw NoDocOpenError if there is no document to close |
Line 3645... | Line 3650... | ||
3645 | 3650 | ||
3646 | May throw NoDocOpenError if there is no document to close |
3651 | May throw NoDocOpenError if there is no document to close |
3647 | </translation> |
3652 | </translation> |
3648 | </message> |
3653 | </message> |
3649 | <message> |
3654 | <message> |
3650 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="117"/> |
- | |
3651 | <source>haveDoc() -> bool |
3655 | <source>haveDoc() -> bool |
3652 | 3656 | ||
3653 | Returns true if there is a document open. |
3657 | Returns true if there is a document open. |
3654 | </source> |
3658 | </source> |
3655 | <translation type="obsolete">haveDoc() -> bool |
3659 | <translation type="obsolete">haveDoc() -> bool |
3656 | 3660 | ||
3657 | Returns true if there is a document open. |
3661 | Returns true if there is a document open. |
3658 | </translation> |
3662 | </translation> |
3659 | </message> |
3663 | </message> |
3660 | <message> |
3664 | <message> |
3661 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="128"/> |
- | |
3662 | <source>openDoc("name") |
3665 | <source>openDoc("name") |
3663 | 3666 | ||
3664 | Opens the document "name". |
3667 | Opens the document "name". |
3665 | 3668 | ||
3666 | May raise ScribusError if the document could not be opened. |
3669 | May raise ScribusError if the document could not be opened. |
Line 3671... | Line 3674... | ||
3671 | 3674 | ||
3672 | May raise ScribusError if the document could not be opened. |
3675 | May raise ScribusError if the document could not be opened. |
3673 | </translation> |
3676 | </translation> |
3674 | </message> |
3677 | </message> |
3675 | <message> |
3678 | <message> |
3676 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="141"/> |
- | |
3677 | <source>saveDoc() |
3679 | <source>saveDoc() |
3678 | 3680 | ||
3679 | Saves the current document with its current name, returns true if successful. |
3681 | Saves the current document with its current name, returns true if successful. |
3680 | If the document has not already been saved, this may bring up an interactive |
3682 | If the document has not already been saved, this may bring up an interactive |
3681 | save file dialog. |
3683 | save file dialog. |
Line 3690... | Line 3692... | ||
3690 | 3692 | ||
3691 | If the save fails, there is currently no way to tell. |
3693 | If the save fails, there is currently no way to tell. |
3692 | </translation> |
3694 | </translation> |
3693 | </message> |
3695 | </message> |
3694 | <message> |
3696 | <message> |
3695 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="152"/> |
- | |
3696 | <source>saveDocAs("name") |
3697 | <source>saveDocAs("name") |
3697 | 3698 | ||
3698 | Saves the current document under the new name "name" (which may be a full or |
3699 | Saves the current document under the new name "name" (which may be a full or |
3699 | relative path). |
3700 | relative path). |
3700 | 3701 | ||
Line 3707... | Line 3708... | ||
3707 | 3708 | ||
3708 | May raise ScribusError if the save fails. |
3709 | May raise ScribusError if the save fails. |
3709 | </translation> |
3710 | </translation> |
3710 | </message> |
3711 | </message> |
3711 | <message> |
3712 | <message> |
3712 | <location filename="" line="136966688"/> |
- | |
3713 | <source>saveDocAs("author", "info", "description") -> bool |
3713 | <source>saveDocAs("author", "info", "description") -> bool |
3714 | 3714 | ||
3715 | Sets the document information. "Author", "Info", "Description" are |
3715 | Sets the document information. "Author", "Info", "Description" are |
3716 | strings. |
3716 | strings. |
3717 | </source> |
3717 | </source> |
Line 3720... | Line 3720... | ||
3720 | Sets the document information. "Author", "Info", "Description" are |
3720 | Sets the document information. "Author", "Info", "Description" are |
3721 | strings. |
3721 | strings. |
3722 | </translation> |
3722 | </translation> |
3723 | </message> |
3723 | </message> |
3724 | <message> |
3724 | <message> |
3725 | <location filename="" line="136966688"/> |
- | |
3726 | <source>setMargins(lr, rr, tr, br) |
3725 | <source>setMargins(lr, rr, tr, br) |
3727 | 3726 | ||
3728 | Sets the margins of the document, Left(lr), Right(rr), Top(tr) and Bottom(br) |
3727 | Sets the margins of the document, Left(lr), Right(rr), Top(tr) and Bottom(br) |
3729 | margins are given in the measurement units of the document - see UNIT_<type> |
3728 | margins are given in the measurement units of the document - see UNIT_<type> |
3730 | constants. |
3729 | constants. |
Line 3735... | Line 3734... | ||
3735 | margins are given in the measurement units of the document - see UNIT_<type> |
3734 | margins are given in the measurement units of the document - see UNIT_<type> |
3736 | constants. |
3735 | constants. |
3737 | </translation> |
3736 | </translation> |
3738 | </message> |
3737 | </message> |
3739 | <message> |
3738 | <message> |
3740 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="185"/> |
- | |
3741 | <source>setUnit(type) |
3739 | <source>setUnit(type) |
3742 | 3740 | ||
3743 | Changes the measurement unit of the document. Possible values for "unit" are |
3741 | Changes the measurement unit of the document. Possible values for "unit" are |
3744 | defined as constants UNIT_<type>. |
3742 | defined as constants UNIT_<type>. |
3745 | 3743 | ||
Line 3752... | Line 3750... | ||
3752 | 3750 | ||
3753 | May raise ValueError if an invalid unit is passed. |
3751 | May raise ValueError if an invalid unit is passed. |
3754 | </translation> |
3752 | </translation> |
3755 | </message> |
3753 | </message> |
3756 | <message> |
3754 | <message> |
3757 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="196"/> |
- | |
3758 | <source>getUnit() -> integer (Scribus unit constant) |
3755 | <source>getUnit() -> integer (Scribus unit constant) |
3759 | 3756 | ||
3760 | Returns the measurement units of the document. The returned value will be one |
3757 | Returns the measurement units of the document. The returned value will be one |
3761 | of the UNIT_* constants: |
3758 | of the UNIT_* constants: |
3762 | UNIT_INCHES, UNIT_MILLIMETERS, UNIT_PICAS, UNIT_POINTS. |
3759 | UNIT_INCHES, UNIT_MILLIMETERS, UNIT_PICAS, UNIT_POINTS. |
Line 3767... | Line 3764... | ||
3767 | of the UNIT_* constants: |
3764 | of the UNIT_* constants: |
3768 | UNIT_INCHES, UNIT_MILLIMETERS, UNIT_PICAS, UNIT_POINTS. |
3765 | UNIT_INCHES, UNIT_MILLIMETERS, UNIT_PICAS, UNIT_POINTS. |
3769 | </translation> |
3766 | </translation> |
3770 | </message> |
3767 | </message> |
3771 | <message> |
3768 | <message> |
3772 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="206"/> |
- | |
3773 | <source>loadStylesFromFile("filename") |
3769 | <source>loadStylesFromFile("filename") |
3774 | 3770 | ||
3775 | Loads paragraph styles from the Scribus document at "filename" into the |
3771 | Loads paragraph styles from the Scribus document at "filename" into the |
3776 | current document. |
3772 | current document. |
3777 | </source> |
3773 | </source> |
Line 3780... | Line 3776... | ||
3780 | Loads paragraph styles from the Scribus document at "filename" into the |
3776 | Loads paragraph styles from the Scribus document at "filename" into the |
3781 | current document. |
3777 | current document. |
3782 | </translation> |
3778 | </translation> |
3783 | </message> |
3779 | </message> |
3784 | <message> |
3780 | <message> |
3785 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="218"/> |
- | |
3786 | <source>setDocType(facingPages, firstPageLeft) |
3781 | <source>setDocType(facingPages, firstPageLeft) |
3787 | 3782 | ||
3788 | Sets the document type. To get facing pages set the first parameter to |
3783 | Sets the document type. To get facing pages set the first parameter to |
3789 | FACINGPAGES, to switch facingPages off use NOFACINGPAGES instead. If you want |
3784 | FACINGPAGES, to switch facingPages off use NOFACINGPAGES instead. If you want |
3790 | to be the first page a left side set the second parameter to FIRSTPAGELEFT, for |
3785 | to be the first page a left side set the second parameter to FIRSTPAGELEFT, for |
Line 3797... | Line 3792... | ||
3797 | to be the first page a left side set the second parameter to FIRSTPAGELEFT, for |
3792 | to be the first page a left side set the second parameter to FIRSTPAGELEFT, for |
3798 | a right page use FIRSTPAGERIGHT. |
3793 | a right page use FIRSTPAGERIGHT. |
3799 | </translation> |
3794 | </translation> |
3800 | </message> |
3795 | </message> |
3801 | <message> |
3796 | <message> |
3802 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="51"/> |
- | |
3803 | <source>getLineColor(["name"]) -> string |
3797 | <source>getLineColor(["name"]) -> string |
3804 | 3798 | ||
3805 | Returns the name of the line color of the object "name". |
3799 | Returns the name of the line color of the object "name". |
3806 | If "name" is not given the currently selected item is used. |
3800 | If "name" is not given the currently selected item is used. |
3807 | </source> |
3801 | </source> |
Line 3810... | Line 3804... | ||
3810 | Returns the name of the line colour of the object "name". |
3804 | Returns the name of the line colour of the object "name". |
3811 | If "name" is not given the currently selected item is used. |
3805 | If "name" is not given the currently selected item is used. |
3812 | </translation> |
3806 | </translation> |
3813 | </message> |
3807 | </message> |
3814 | <message> |
3808 | <message> |
3815 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="81"/> |
- | |
3816 | <source>getLineWidth(["name"]) -> integer |
3809 | <source>getLineWidth(["name"]) -> integer |
3817 | 3810 | ||
3818 | Returns the line width of the object "name". If "name" |
3811 | Returns the line width of the object "name". If "name" |
3819 | is not given the currently selected Item is used. |
3812 | is not given the currently selected Item is used. |
3820 | </source> |
3813 | </source> |
Line 3823... | Line 3816... | ||
3823 | Returns the line width of the object "name". If "name" |
3816 | Returns the line width of the object "name". If "name" |
3824 | is not given the currently selected Item is used. |
3817 | is not given the currently selected Item is used. |
3825 | </translation> |
3818 | </translation> |
3826 | </message> |
3819 | </message> |
3827 | <message> |
3820 | <message> |
3828 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="91"/> |
- | |
3829 | <source>getLineShade(["name"]) -> integer |
3821 | <source>getLineShade(["name"]) -> integer |
3830 | 3822 | ||
3831 | Returns the shading value of the line color of the object "name". |
3823 | Returns the shading value of the line color of the object "name". |
3832 | If "name" is not given the currently selected item is used. |
3824 | If "name" is not given the currently selected item is used. |
3833 | </source> |
3825 | </source> |
Line 3836... | Line 3828... | ||
3836 | Returns the shading value of the line colour of the object "name". |
3828 | Returns the shading value of the line colour of the object "name". |
3837 | If "name" is not given the currently selected item is used. |
3829 | If "name" is not given the currently selected item is used. |
3838 | </translation> |
3830 | </translation> |
3839 | </message> |
3831 | </message> |
3840 | <message> |
3832 | <message> |
3841 | <location filename="../plugins/scriptplugin/cmdgetprop.h" line="102"/> |
- | |
3842 | <source>getLineJoin(["name"]) -> integer (see contants) |
3833 | <source>getLineJoin(["name"]) -> integer (see contants) |
3843 | 3834 | ||
3844 | Returns the line join style of the object "name". If "name" is not given |
3835 | Returns the line join style of the object "name". If "name" is not given |
3845 | the currently selected item is used. The join types are: |
3836 | the currently selected item is used. The join types are: |
3846 | JOIN_BEVEL, JOIN_MITTER, JOIN_ROUND |
3837 | JOIN_BEVEL, JOIN_MITTER, JOIN_ROUND |
Line 3851... | Line 3842... | ||
3851 | the currently selected item is used. The join types are: |
3842 | the currently selected item is used. The join types are: |
3852 | JOIN_BEVEL, JOIN_MITTER, JOIN_ROUND |
3843 | JOIN_BEVEL, JOIN_MITTER, JOIN_ROUND |
3853 | </translation> |
3844 | </translation> |
3854 | </message> |
3845 | </message> |
3855 | <message> |
3846 | <message> |
3856 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="113"/> |
- | |
3857 | <source>getLineEnd(["name"]) -> integer (see constants) |
3847 | <source>getLineEnd(["name"]) -> integer (see constants) |
3858 | 3848 | ||
3859 | Returns the line cap style of the object "name". If "name" is not given the |
3849 | Returns the line cap style of the object "name". If "name" is not given the |
3860 | currently selected item is used. The cap types are: |
3850 | currently selected item is used. The cap types are: |
3861 | CAP_FLAT, CAP_ROUND, CAP_SQUARE |
3851 | CAP_FLAT, CAP_ROUND, CAP_SQUARE |
Line 3866... | Line 3856... | ||
3866 | currently selected item is used. The cap types are: |
3856 | currently selected item is used. The cap types are: |
3867 | CAP_FLAT, CAP_ROUND, CAP_SQUARE |
3857 | CAP_FLAT, CAP_ROUND, CAP_SQUARE |
3868 | </translation> |
3858 | </translation> |
3869 | </message> |
3859 | </message> |
3870 | <message> |
3860 | <message> |
3871 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="124"/> |
- | |
3872 | <source>getLineStyle(["name"]) -> integer (see constants) |
3861 | <source>getLineStyle(["name"]) -> integer (see constants) |
3873 | 3862 | ||
3874 | Returns the line style of the object "name". If "name" is not given the |
3863 | Returns the line style of the object "name". If "name" is not given the |
3875 | currently selected item is used. Line style constants are: |
3864 | currently selected item is used. Line style constants are: |
3876 | LINE_DASH, LINE_DASHDOT, LINE_DASHDOTDOT, LINE_DOT, LINE_SOLID |
3865 | LINE_DASH, LINE_DASHDOT, LINE_DASHDOTDOT, LINE_DOT, LINE_SOLID |
Line 3881... | Line 3870... | ||
3881 | currently selected item is used. Line style constants are: |
3870 | currently selected item is used. Line style constants are: |
3882 | LINE_DASH, LINE_DASHDOT, LINE_DASHDOTDOT, LINE_DOT, LINE_SOLID |
3871 | LINE_DASH, LINE_DASHDOT, LINE_DASHDOTDOT, LINE_DOT, LINE_SOLID |
3883 | </translation> |
3872 | </translation> |
3884 | </message> |
3873 | </message> |
3885 | <message> |
3874 | <message> |
3886 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="134"/> |
- | |
3887 | <source>getFillShade(["name"]) -> integer |
3875 | <source>getFillShade(["name"]) -> integer |
3888 | 3876 | ||
3889 | Returns the shading value of the fill color of the object "name". |
3877 | Returns the shading value of the fill color of the object "name". |
3890 | If "name" is not given the currently selected item is used. |
3878 | If "name" is not given the currently selected item is used. |
3891 | </source> |
3879 | </source> |
Line 3894... | Line 3882... | ||
3894 | Returns the shading value of the fill colour of the object "name". |
3882 | Returns the shading value of the fill colour of the object "name". |
3895 | If "name" is not given the currently selected item is used. |
3883 | If "name" is not given the currently selected item is used. |
3896 | </translation> |
3884 | </translation> |
3897 | </message> |
3885 | </message> |
3898 | <message> |
3886 | <message> |
3899 | <location filename="" line="136966688"/> |
- | |
3900 | <source>getCornerRadius(["name"]) -> integer |
3887 | <source>getCornerRadius(["name"]) -> integer |
3901 | 3888 | ||
3902 | Returns the corner radius of the object "name". The radius isexpressed in points. If "name" is not given the currentlyselected item is used. |
3889 | Returns the corner radius of the object "name". The radius isexpressed in points. If "name" is not given the currentlyselected item is used. |
3903 | </source> |
3890 | </source> |
3904 | <translation type="obsolete">getCornerRadius(["name"]) -> integer |
3891 | <translation type="obsolete">getCornerRadius(["name"]) -> integer |
3905 | 3892 | ||
3906 | Returns the corner radius of the object "name". The radius isexpressed in points. If "name" is not given the currentlyselected item is used. |
3893 | Returns the corner radius of the object "name". The radius isexpressed in points. If "name" is not given the currentlyselected item is used. |
3907 | </translation> |
3894 | </translation> |
3908 | </message> |
3895 | </message> |
3909 | <message> |
3896 | <message> |
3910 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="155"/> |
- | |
3911 | <source>getImageScale(["name"]) -> (x,y) |
3897 | <source>getImageScale(["name"]) -> (x,y) |
3912 | 3898 | ||
3913 | Returns a (x, y) tuple containing the scaling values of the image frame |
3899 | Returns a (x, y) tuple containing the scaling values of the image frame |
3914 | "name". If "name" is not given the currently selected item is used. |
3900 | "name". If "name" is not given the currently selected item is used. |
3915 | </source> |
3901 | </source> |
Line 3918... | Line 3904... | ||
3918 | Returns a (x, y) tuple containing the scaling values of the image frame |
3904 | Returns a (x, y) tuple containing the scaling values of the image frame |
3919 | "name". If "name" is not given the currently selected item is used. |
3905 | "name". If "name" is not given the currently selected item is used. |
3920 | </translation> |
3906 | </translation> |
3921 | </message> |
3907 | </message> |
3922 | <message> |
3908 | <message> |
3923 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="165"/> |
- | |
3924 | <source>getImageName(["name"]) -> string |
3909 | <source>getImageName(["name"]) -> string |
3925 | 3910 | ||
3926 | Returns the filename for the image in the image frame. If "name" is not |
3911 | Returns the filename for the image in the image frame. If "name" is not |
3927 | given the currently selected item is used. |
3912 | given the currently selected item is used. |
3928 | </source> |
3913 | </source> |
Line 3931... | Line 3916... | ||
3931 | Returns the filename for the image in the image frame. If "name" is not |
3916 | Returns the filename for the image in the image frame. If "name" is not |
3932 | given the currently selected item is used. |
3917 | given the currently selected item is used. |
3933 | </translation> |
3918 | </translation> |
3934 | </message> |
3919 | </message> |
3935 | <message> |
3920 | <message> |
3936 | <location filename="" line="136966688"/> |
- | |
3937 | <source>getPosition(["name"]) -> (x,y) |
3921 | <source>getPosition(["name"]) -> (x,y) |
3938 | 3922 | ||
3939 | Returns a (x, y) tuple with the position of the object "name". |
3923 | Returns a (x, y) tuple with the position of the object "name". |
3940 | If "name" is not given the currently selected item is used.The position is expressed in the actual measurement unit of the document |
3924 | If "name" is not given the currently selected item is used.The position is expressed in the actual measurement unit of the document |
3941 | - see UNIT_<type> for reference. |
3925 | - see UNIT_<type> for reference. |
Line 3946... | Line 3930... | ||
3946 | If "name" is not given the currently selected item is used.The position is expressed in the actual measurement unit of the document |
3930 | If "name" is not given the currently selected item is used.The position is expressed in the actual measurement unit of the document |
3947 | - see UNIT_<type> for reference. |
3931 | - see UNIT_<type> for reference. |
3948 | </translation> |
3932 | </translation> |
3949 | </message> |
3933 | </message> |
3950 | <message> |
3934 | <message> |
3951 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="189"/> |
- | |
3952 | <source>getSize(["name"]) -> (width,height) |
3935 | <source>getSize(["name"]) -> (width,height) |
3953 | 3936 | ||
3954 | Returns a (width, height) tuple with the size of the object "name". |
3937 | Returns a (width, height) tuple with the size of the object "name". |
3955 | If "name" is not given the currently selected item is used. The size is |
3938 | If "name" is not given the currently selected item is used. The size is |
3956 | expressed in the current measurement unit of the document - see UNIT_<type> |
3939 | expressed in the current measurement unit of the document - see UNIT_<type> |
Line 3963... | Line 3946... | ||
3963 | expressed in the current measurement unit of the document - see UNIT_<type> |
3946 | expressed in the current measurement unit of the document - see UNIT_<type> |
3964 | for reference. |
3947 | for reference. |
3965 | </translation> |
3948 | </translation> |
3966 | </message> |
3949 | </message> |
3967 | <message> |
3950 | <message> |
3968 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="200"/> |
- | |
3969 | <source>getRotation(["name"]) -> integer |
3951 | <source>getRotation(["name"]) -> integer |
3970 | 3952 | ||
3971 | Returns the rotation of the object "name". The value is expressed in degrees, |
3953 | Returns the rotation of the object "name". The value is expressed in degrees, |
3972 | and clockwise is positive. If "name" is not given the currently selected item |
3954 | and clockwise is positive. If "name" is not given the currently selected item |
3973 | is used. |
3955 | is used. |
Line 3978... | Line 3960... | ||
3978 | and clockwise is positive. If "name" is not given the currently selected item |
3960 | and clockwise is positive. If "name" is not given the currently selected item |
3979 | is used. |
3961 | is used. |
3980 | </translation> |
3962 | </translation> |
3981 | </message> |
3963 | </message> |
3982 | <message> |
3964 | <message> |
3983 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="209"/> |
- | |
3984 | <source>getAllObjects() -> list |
3965 | <source>getAllObjects() -> list |
3985 | 3966 | ||
3986 | Returns a list containing the names of all objects on the current page. |
3967 | Returns a list containing the names of all objects on the current page. |
3987 | </source> |
3968 | </source> |
3988 | <translation type="obsolete">getAllObjects() -> list |
3969 | <translation type="obsolete">getAllObjects() -> list |
3989 | 3970 | ||
3990 | Returns a list containing the names of all objects on the current page. |
3971 | Returns a list containing the names of all objects on the current page. |
3991 | </translation> |
3972 | </translation> |
3992 | </message> |
3973 | </message> |
3993 | <message> |
3974 | <message> |
3994 | <location filename="../../scribus/plugins/scriptplugin/cmdgetsetprop.h" line="83"/> |
- | |
3995 | <source>getPropertyCType(object, property, includesuper=True) |
3975 | <source>getPropertyCType(object, property, includesuper=True) |
3996 | 3976 | ||
3997 | Returns the name of the C type of `property' of `object'. See getProperty() |
3977 | Returns the name of the C type of `property' of `object'. See getProperty() |
3998 | for details of arguments. |
3978 | for details of arguments. |
3999 | 3979 | ||
Line 4006... | Line 3986... | ||
4006 | 3986 | ||
4007 | If `includesuper' is true, search inherited properties too. |
3987 | If `includesuper' is true, search inherited properties too. |
4008 | </translation> |
3988 | </translation> |
4009 | </message> |
3989 | </message> |
4010 | <message> |
3990 | <message> |
4011 | <location filename="../../scribus/plugins/scriptplugin/cmdgetsetprop.h" line="101"/> |
- | |
4012 | <source>getPropertyNames(object, includesuper=True) |
3991 | <source>getPropertyNames(object, includesuper=True) |
4013 | 3992 | ||
4014 | Return a list of property names supported by `object'. |
3993 | Return a list of property names supported by `object'. |
4015 | If `includesuper' is true, return properties supported |
3994 | If `includesuper' is true, return properties supported |
4016 | by parent classes as well. |
3995 | by parent classes as well. |
Line 4021... | Line 4000... | ||
4021 | If `includesuper' is true, return properties supported |
4000 | If `includesuper' is true, return properties supported |
4022 | by parent classes as well. |
4001 | by parent classes as well. |
4023 | </translation> |
4002 | </translation> |
4024 | </message> |
4003 | </message> |
4025 | <message> |
4004 | <message> |
4026 | <location filename="../../scribus/plugins/scriptplugin/cmdgetsetprop.h" line="135"/> |
- | |
4027 | <source>getProperty(object, property) |
4005 | <source>getProperty(object, property) |
4028 | 4006 | ||
4029 | Return the value of the property `property' of the passed `object'. |
4007 | Return the value of the property `property' of the passed `object'. |
4030 | 4008 | ||
4031 | The `object' argument may be a string, in which case the named PageItem |
4009 | The `object' argument may be a string, in which case the named PageItem |
Line 4050... | Line 4028... | ||
4050 | 4028 | ||
4051 | The return value varies depending on the type of the property. |
4029 | The return value varies depending on the type of the property. |
4052 | </translation> |
4030 | </translation> |
4053 | </message> |
4031 | </message> |
4054 | <message> |
4032 | <message> |
4055 | <location filename="../../scribus/plugins/scriptplugin/cmdgetsetprop.h" line="165"/> |
- | |
4056 | <source>setProperty(object, property, value) |
4033 | <source>setProperty(object, property, value) |
4057 | 4034 | ||
4058 | Set `property' of `object' to `value'. If `value' cannot be converted to a type |
4035 | Set `property' of `object' to `value'. If `value' cannot be converted to a type |
4059 | compatible with the type of `property', an exception is raised. An exception may |
4036 | compatible with the type of `property', an exception is raised. An exception may |
4060 | also be raised if the underlying setter fails. |
4037 | also be raised if the underlying setter fails. |
Line 4069... | Line 4046... | ||
4069 | 4046 | ||
4070 | See getProperty() for more information. |
4047 | See getProperty() for more information. |
4071 | </translation> |
4048 | </translation> |
4072 | </message> |
4049 | </message> |
4073 | <message> |
4050 | <message> |
4074 | <location filename="../plugins/scriptplugin/cmdgetsetprop.h" line="184"/> |
- | |
4075 | <source>getChildren(object, ofclass=None, ofname=None, regexpmatch=False, recursive=True) |
4051 | <source>getChildren(object, ofclass=None, ofname=None, regexpmatch=False, recursive=True) |
4076 | 4052 | ||
4077 | Return a list of children of `object', possibly restricted to children |
4053 | Return a list of children of `object', possibly restricted to children |
4078 | of class named `ofclass' or children named `ofname'. If `recursive' is true, |
4054 | of class named `ofclass' or children named `ofname'. If `recursive' is true, |
4079 | search recursively through children, grandchildren, etc. |
4055 | search recursively through children, grandchildren, etc. |
Line 4088... | Line 4064... | ||
4088 | 4064 | ||
4089 | See QObject::children() in the Qt docs for more information. |
4065 | See QObject::children() in the Qt docs for more information. |
4090 | </translation> |
4066 | </translation> |
4091 | </message> |
4067 | </message> |
4092 | <message> |
4068 | <message> |
4093 | <location filename="../plugins/scriptplugin/cmdgetsetprop.h" line="201"/> |
- | |
4094 | <source>getChild(object, childname, ofclass=None, recursive=True) |
4069 | <source>getChild(object, childname, ofclass=None, recursive=True) |
4095 | 4070 | ||
4096 | Return the first child of `object' named `childname', possibly restricting |
4071 | Return the first child of `object' named `childname', possibly restricting |
4097 | the search to children of type name `ofclass'. If `recursive' is true, |
4072 | the search to children of type name `ofclass'. If `recursive' is true, |
4098 | search recursively through children, grandchildren, etc. |
4073 | search recursively through children, grandchildren, etc. |
Line 4103... | Line 4078... | ||
4103 | the search to children of type name `ofclass'. If `recursive' is true, |
4078 | the search to children of type name `ofclass'. If `recursive' is true, |
4104 | search recursively through children, grandchildren, etc. |
4079 | search recursively through children, grandchildren, etc. |
4105 | </translation> |
4080 | </translation> |
4106 | </message> |
4081 | </message> |
4107 | <message> |
4082 | <message> |
4108 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="35"/> |
- | |
4109 | <source>moveObjectAbs(x, y [, "name"]) |
4083 | <source>moveObjectAbs(x, y [, "name"]) |
4110 | 4084 | ||
4111 | Moves the object "name" to a new location. The coordinates are expressed in |
4085 | Moves the object "name" to a new location. The coordinates are expressed in |
4112 | the current measurement unit of the document (see UNIT constants). If "name" |
4086 | the current measurement unit of the document (see UNIT constants). If "name" |
4113 | is not given the currently selected item is used. If the object "name" |
4087 | is not given the currently selected item is used. If the object "name" |
Line 4120... | Line 4094... | ||
4120 | is not given the currently selected item is used. If the object "name" |
4094 | is not given the currently selected item is used. If the object "name" |
4121 | belongs to a group, the whole group is moved. |
4095 | belongs to a group, the whole group is moved. |
4122 | </translation> |
4096 | </translation> |
4123 | </message> |
4097 | </message> |
4124 | <message> |
4098 | <message> |
4125 | <location filename="../plugins/scriptplugin/cmdmani.h" line="48"/> |
- | |
4126 | <source>rotateObject(rot [, "name"]) |
4099 | <source>rotateObject(rot [, "name"]) |
4127 | 4100 | ||
4128 | Rotates the object "name" by "rot" degrees relatively. The object is |
4101 | Rotates the object "name" by "rot" degrees relatively. The object is |
4129 | rotated by the vertex that is currently selected as the rotation point - by |
4102 | rotated by the vertex that is currently selected as the rotation point - by |
4130 | default, the top left vertext at zero rotation. Positive values mean counter |
4103 | default, the top left vertext at zero rotation. Positive values mean counter |
Line 4139... | Line 4112... | ||
4139 | clockwise rotation when the default rotation point is used. If "name" is not |
4112 | clockwise rotation when the default rotation point is used. If "name" is not |
4140 | given the currently selected item is used. |
4113 | given the currently selected item is used. |
4141 | </translation> |
4114 | </translation> |
4142 | </message> |
4115 | </message> |
4143 | <message> |
4116 | <message> |
4144 | <location filename="" line="136966688"/> |
- | |
4145 | <source>rotateObjectAbs(rot [, "name"]) |
4117 | <source>rotateObjectAbs(rot [, "name"]) |
4146 | 4118 | ||
4147 | Sets the rotation of the object "name" to "rot". Positve values |
4119 | Sets the rotation of the object "name" to "rot". Positve values |
4148 | mean counter clockwise rotation. If "name" is not given the currently |
4120 | mean counter clockwise rotation. If "name" is not given the currently |
4149 | selected item is used. |
4121 | selected item is used. |
Line 4154... | Line 4126... | ||
4154 | mean counter clockwise rotation. If "name" is not given the currently |
4126 | mean counter clockwise rotation. If "name" is not given the currently |
4155 | selected item is used. |
4127 | selected item is used. |
4156 | </translation> |
4128 | </translation> |
4157 | </message> |
4129 | </message> |
4158 | <message> |
4130 | <message> |
4159 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="69"/> |
- | |
4160 | <source>sizeObject(width, height [, "name"]) |
4131 | <source>sizeObject(width, height [, "name"]) |
4161 | 4132 | ||
4162 | Resizes the object "name" to the given width and height. If "name" |
4133 | Resizes the object "name" to the given width and height. If "name" |
4163 | is not given the currently selected item is used. |
4134 | is not given the currently selected item is used. |
4164 | </source> |
4135 | </source> |
Line 4167... | Line 4138... | ||
4167 | Resizes the object "name" to the given width and height. If "name" |
4138 | Resizes the object "name" to the given width and height. If "name" |
4168 | is not given the currently selected item is used. |
4139 | is not given the currently selected item is used. |
4169 | </translation> |
4140 | </translation> |
4170 | </message> |
4141 | </message> |
4171 | <message> |
4142 | <message> |
4172 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="80"/> |
- | |
4173 | <source>getSelectedObject([nr]) -> string |
4143 | <source>getSelectedObject([nr]) -> string |
4174 | 4144 | ||
4175 | Returns the name of the selected object. "nr" if given indicates the number |
4145 | Returns the name of the selected object. "nr" if given indicates the number |
4176 | of the selected object, e.g. 0 means the first selected object, 1 means the |
4146 | of the selected object, e.g. 0 means the first selected object, 1 means the |
4177 | second selected Object and so on. |
4147 | second selected Object and so on. |
Line 4182... | Line 4152... | ||
4182 | of the selected object, e.g. 0 means the first selected object, 1 means the |
4152 | of the selected object, e.g. 0 means the first selected object, 1 means the |
4183 | second selected Object and so on. |
4153 | second selected Object and so on. |
4184 | </translation> |
4154 | </translation> |
4185 | </message> |
4155 | </message> |
4186 | <message> |
4156 | <message> |
4187 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="89"/> |
- | |
4188 | <source>selectionCount() -> integer |
4157 | <source>selectionCount() -> integer |
4189 | 4158 | ||
4190 | Returns the number of selected objects. |
4159 | Returns the number of selected objects. |
4191 | </source> |
4160 | </source> |
4192 | <translation type="obsolete">selectionCount() -> integer |
4161 | <translation type="obsolete">selectionCount() -> integer |
4193 | 4162 | ||
4194 | Returns the number of selected objects. |
4163 | Returns the number of selected objects. |
4195 | </translation> |
4164 | </translation> |
4196 | </message> |
4165 | </message> |
4197 | <message> |
4166 | <message> |
4198 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="98"/> |
- | |
4199 | <source>selectObject("name") |
4167 | <source>selectObject("name") |
4200 | 4168 | ||
4201 | Selects the object with the given "name". |
4169 | Selects the object with the given "name". |
4202 | </source> |
4170 | </source> |
4203 | <translation type="obsolete">selectObject("name") |
4171 | <translation type="obsolete">selectObject("name") |
4204 | 4172 | ||
4205 | Selects the object with the given "name". |
4173 | Selects the object with the given "name". |
4206 | </translation> |
4174 | </translation> |
4207 | </message> |
4175 | </message> |
4208 | <message> |
4176 | <message> |
4209 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="107"/> |
- | |
4210 | <source>deselectAll() |
4177 | <source>deselectAll() |
4211 | 4178 | ||
4212 | Deselects all objects in the whole document. |
4179 | Deselects all objects in the whole document. |
4213 | </source> |
4180 | </source> |
4214 | <translation type="obsolete">deselectAll() |
4181 | <translation type="obsolete">deselectAll() |
4215 | 4182 | ||
4216 | Deselects all objects in the whole document. |
4183 | Deselects all objects in the whole document. |
4217 | </translation> |
4184 | </translation> |
4218 | </message> |
4185 | </message> |
4219 | <message> |
4186 | <message> |
4220 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="118"/> |
- | |
4221 | <source>groupObjects(list) |
4187 | <source>groupObjects(list) |
4222 | 4188 | ||
4223 | Groups the objects named in "list" together. "list" must contain the names |
4189 | Groups the objects named in "list" together. "list" must contain the names |
4224 | of the objects to be grouped. If "list" is not given the currently selected |
4190 | of the objects to be grouped. If "list" is not given the currently selected |
4225 | items are used. |
4191 | items are used. |
Line 4230... | Line 4196... | ||
4230 | of the objects to be grouped. If "list" is not given the currently selected |
4196 | of the objects to be grouped. If "list" is not given the currently selected |
4231 | items are used. |
4197 | items are used. |
4232 | </translation> |
4198 | </translation> |
4233 | </message> |
4199 | </message> |
4234 | <message> |
4200 | <message> |
4235 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="126"/> |
- | |
4236 | <source>unGroupObjects("name") |
4201 | <source>unGroupObjects("name") |
4237 | 4202 | ||
4238 | Destructs the group the object "name" belongs to.If "name" is not given the currently selected item is used.</source> |
4203 | Destructs the group the object "name" belongs to.If "name" is not given the currently selected item is used.</source> |
4239 | <translation type="obsolete">unGroupObjects("name") |
4204 | <translation type="obsolete">unGroupObjects("name") |
4240 | 4205 | ||
4241 | Destructs the group the object "name" belongs to.If "name" is not given the currently selected item is used.</translation> |
4206 | Destructs the group the object "name" belongs to.If "name" is not given the currently selected item is used.</translation> |
4242 | </message> |
4207 | </message> |
4243 | <message> |
4208 | <message> |
4244 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="141"/> |
- | |
4245 | <source>scaleGroup(factor [,"name"]) |
4209 | <source>scaleGroup(factor [,"name"]) |
4246 | 4210 | ||
4247 | Scales the group the object "name" belongs to. Values greater than 1 enlarge |
4211 | Scales the group the object "name" belongs to. Values greater than 1 enlarge |
4248 | the group, values smaller than 1 make the group smaller e.g a value of 0.5 |
4212 | the group, values smaller than 1 make the group smaller e.g a value of 0.5 |
4249 | scales the group to 50 % of its original size, a value of 1.5 scales the group |
4213 | scales the group to 50 % of its original size, a value of 1.5 scales the group |
Line 4262... | Line 4226... | ||
4262 | 4226 | ||
4263 | May raise ValueError if an invalid scale factor is passed. |
4227 | May raise ValueError if an invalid scale factor is passed. |
4264 | </translation> |
4228 | </translation> |
4265 | </message> |
4229 | </message> |
4266 | <message> |
4230 | <message> |
4267 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="153"/> |
- | |
4268 | <source>loadImage("filename" [, "name"]) |
4231 | <source>loadImage("filename" [, "name"]) |
4269 | 4232 | ||
4270 | Loads the picture "picture" into the image frame "name". If "name" is |
4233 | Loads the picture "picture" into the image frame "name". If "name" is |
4271 | not given the currently selected item is used. |
4234 | not given the currently selected item is used. |
4272 | 4235 | ||
Line 4279... | Line 4242... | ||
4279 | 4242 | ||
4280 | May raise WrongFrameTypeError if the target frame is not an image frame |
4243 | May raise WrongFrameTypeError if the target frame is not an image frame |
4281 | </translation> |
4244 | </translation> |
4282 | </message> |
4245 | </message> |
4283 | <message> |
4246 | <message> |
4284 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="166"/> |
- | |
4285 | <source>scaleImage(x, y [, "name"]) |
4247 | <source>scaleImage(x, y [, "name"]) |
4286 | 4248 | ||
4287 | Sets the scaling factors of the picture in the image frame "name". |
4249 | Sets the scaling factors of the picture in the image frame "name". |
4288 | If "name" is not given the currently selected item is used. A number of 1 |
4250 | If "name" is not given the currently selected item is used. A number of 1 |
4289 | means 100 %. |
4251 | means 100 %. |
Line 4298... | Line 4260... | ||
4298 | 4260 | ||
4299 | May raise WrongFrameTypeError if the target frame is not an image frame |
4261 | May raise WrongFrameTypeError if the target frame is not an image frame |
4300 | </translation> |
4262 | </translation> |
4301 | </message> |
4263 | </message> |
4302 | <message> |
4264 | <message> |
4303 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="177"/> |
- | |
4304 | <source>lockObject(["name"]) -> bool |
4265 | <source>lockObject(["name"]) -> bool |
4305 | 4266 | ||
4306 | Locks the object "name" if it's unlocked or unlock it if it's locked. |
4267 | Locks the object "name" if it's unlocked or unlock it if it's locked. |
4307 | If "name" is not given the currently selected item is used. Returns true |
4268 | If "name" is not given the currently selected item is used. Returns true |
4308 | if locked. |
4269 | if locked. |
Line 4313... | Line 4274... | ||
4313 | If "name" is not given the currently selected item is used. Returns true |
4274 | If "name" is not given the currently selected item is used. Returns true |
4314 | if locked. |
4275 | if locked. |
4315 | </translation> |
4276 | </translation> |
4316 | </message> |
4277 | </message> |
4317 | <message> |
4278 | <message> |
4318 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="187"/> |
- | |
4319 | <source>isLocked(["name"]) -> bool |
4279 | <source>isLocked(["name"]) -> bool |
4320 | 4280 | ||
4321 | Returns true if is the object "name" locked. If "name" is not given the |
4281 | Returns true if is the object "name" locked. If "name" is not given the |
4322 | currently selected item is used. |
4282 | currently selected item is used. |
4323 | </source> |
4283 | </source> |
Line 4326... | Line 4286... | ||
4326 | Returns true if is the object "name" locked. If "name" is not given the |
4286 | Returns true if is the object "name" locked. If "name" is not given the |
4327 | currently selected item is used. |
4287 | currently selected item is used. |
4328 | </translation> |
4288 | </translation> |
4329 | </message> |
4289 | </message> |
4330 | <message> |
4290 | <message> |
4331 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="199"/> |
- | |
4332 | <source>setScaleImageToFrame(scaletoframe, proportional=None, name=<selection>) |
4291 | <source>setScaleImageToFrame(scaletoframe, proportional=None, name=<selection>) |
4333 | 4292 | ||
4334 | Sets the scale to frame on the selected or specified image frame to `scaletoframe'. |
4293 | Sets the scale to frame on the selected or specified image frame to `scaletoframe'. |
4335 | If `proportional' is specified, set fixed aspect ratio scaling to `proportional'. |
4294 | If `proportional' is specified, set fixed aspect ratio scaling to `proportional'. |
4336 | Both `scaletoframe' and `proportional' are boolean. |
4295 | Both `scaletoframe' and `proportional' are boolean. |
Line 4345... | Line 4304... | ||
4345 | 4304 | ||
4346 | May raise WrongFrameTypeError. |
4305 | May raise WrongFrameTypeError. |
4347 | </translation> |
4306 | </translation> |
4348 | </message> |
4307 | </message> |
4349 | <message> |
4308 | <message> |
4350 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="33"/> |
- | |
4351 | <source>getFontNames() -> list |
4309 | <source>getFontNames() -> list |
4352 | 4310 | ||
4353 | Returns a list with the names of all available fonts. |
4311 | Returns a list with the names of all available fonts. |
4354 | </source> |
4312 | </source> |
4355 | <translation type="obsolete">getFontNames() -> list |
4313 | <translation type="obsolete">getFontNames() -> list |
4356 | 4314 | ||
4357 | Returns a list with the names of all available fonts. |
4315 | Returns a list with the names of all available fonts. |
4358 | </translation> |
4316 | </translation> |
4359 | </message> |
4317 | </message> |
4360 | <message> |
4318 | <message> |
4361 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="43"/> |
- | |
4362 | <source>getXFontNames() -> list of tuples |
4319 | <source>getXFontNames() -> list of tuples |
4363 | 4320 | ||
4364 | Returns a larger font info. It's a list of the tuples with: |
4321 | Returns a larger font info. It's a list of the tuples with: |
4365 | [ (Scribus name, Family, Real name, subset (1|0), embed PS (1|0), font file), (...), ... ] |
4322 | [ (Scribus name, Family, Real name, subset (1|0), embed PS (1|0), font file), (...), ... ] |
4366 | </source> |
4323 | </source> |
Line 4369... | Line 4326... | ||
4369 | Returns a larger font info. It's a list of the tuples with: |
4326 | Returns a larger font info. It's a list of the tuples with: |
4370 | [ (Scribus name, Family, Real name, subset (1|0), embed PS (1|0), font file), (...), ... ] |
4327 | [ (Scribus name, Family, Real name, subset (1|0), embed PS (1|0), font file), (...), ... ] |
4371 | </translation> |
4328 | </translation> |
4372 | </message> |
4329 | </message> |
4373 | <message> |
4330 | <message> |
4374 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="62"/> |
- | |
4375 | <source>renderFont("name", "filename", "sample", size, format="PPM") -> bool |
4331 | <source>renderFont("name", "filename", "sample", size, format="PPM") -> bool |
4376 | 4332 | ||
4377 | Creates an image preview of font "name" with given text "sample" and size. |
4333 | Creates an image preview of font "name" with given text "sample" and size. |
4378 | If "filename" is not "", image is saved into "filename". Otherwise |
4334 | If "filename" is not "", image is saved into "filename". Otherwise |
4379 | image data is returned as a string. The optional "format" argument |
4335 | image data is returned as a string. The optional "format" argument |
Line 4394... | Line 4350... | ||
4394 | May raise NotFoundError if the specified font can't be found. |
4350 | May raise NotFoundError if the specified font can't be found. |
4395 | May raise ValueError if an empty sample or filename is passed. |
4351 | May raise ValueError if an empty sample or filename is passed. |
4396 | </translation> |
4352 | </translation> |
4397 | </message> |
4353 | </message> |
4398 | <message> |
4354 | <message> |
4399 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="71"/> |
- | |
4400 | <source>getLayers() -> list |
4355 | <source>getLayers() -> list |
4401 | 4356 | ||
4402 | Returns a list with the names of all defined layers. |
4357 | Returns a list with the names of all defined layers. |
4403 | </source> |
4358 | </source> |
4404 | <translation type="obsolete">getLayers() -> list |
4359 | <translation type="obsolete">getLayers() -> list |
4405 | 4360 | ||
4406 | Returns a list with the names of all defined layers. |
4361 | Returns a list with the names of all defined layers. |
4407 | </translation> |
4362 | </translation> |
4408 | </message> |
4363 | </message> |
4409 | <message> |
4364 | <message> |
4410 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="83"/> |
- | |
4411 | <source>setActiveLayer("name") |
4365 | <source>setActiveLayer("name") |
4412 | 4366 | ||
4413 | Sets the active layer to the layer named "name". |
4367 | Sets the active layer to the layer named "name". |
4414 | 4368 | ||
4415 | May raise NotFoundError if the layer can't be found. |
4369 | May raise NotFoundError if the layer can't be found. |
Line 4422... | Line 4376... | ||
4422 | May raise NotFoundError if the layer can't be found. |
4376 | May raise NotFoundError if the layer can't be found. |
4423 | May raise ValueError if the layer name isn't acceptable. |
4377 | May raise ValueError if the layer name isn't acceptable. |
4424 | </translation> |
4378 | </translation> |
4425 | </message> |
4379 | </message> |
4426 | <message> |
4380 | <message> |
4427 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="92"/> |
- | |
4428 | <source>getActiveLayer() -> string |
4381 | <source>getActiveLayer() -> string |
4429 | 4382 | ||
4430 | Returns the name of the current active layer. |
4383 | Returns the name of the current active layer. |
4431 | </source> |
4384 | </source> |
4432 | <translation type="obsolete">getActiveLayer() -> string |
4385 | <translation type="obsolete">getActiveLayer() -> string |
4433 | 4386 | ||
4434 | Returns the name of the current active layer. |
4387 | Returns the name of the current active layer. |
4435 | </translation> |
4388 | </translation> |
4436 | </message> |
4389 | </message> |
4437 | <message> |
4390 | <message> |
4438 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="105"/> |
- | |
4439 | <source>sentToLayer("layer" [, "name"]) |
4391 | <source>sentToLayer("layer" [, "name"]) |
4440 | 4392 | ||
4441 | Sends the object "name" to the layer "layer". The layer must exist. |
4393 | Sends the object "name" to the layer "layer". The layer must exist. |
4442 | If "name" is not given the currently selected item is used. |
4394 | If "name" is not given the currently selected item is used. |
4443 | 4395 | ||
Line 4452... | Line 4404... | ||
4452 | May raise NotFoundError if the layer can't be found. |
4404 | May raise NotFoundError if the layer can't be found. |
4453 | May raise ValueError if the layer name isn't acceptable. |
4405 | May raise ValueError if the layer name isn't acceptable. |
4454 | </translation> |
4406 | </translation> |
4455 | </message> |
4407 | </message> |
4456 | <message> |
4408 | <message> |
4457 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="118"/> |
- | |
4458 | <source>setLayerVisible("layer", visible) |
4409 | <source>setLayerVisible("layer", visible) |
4459 | 4410 | ||
4460 | Sets the layer "layer" to be visible or not. If is the visible set to false |
4411 | Sets the layer "layer" to be visible or not. If is the visible set to false |
4461 | the layer is invisible. |
4412 | the layer is invisible. |
4462 | 4413 | ||
Line 4471... | Line 4422... | ||
4471 | May raise NotFoundError if the layer can't be found. |
4422 | May raise NotFoundError if the layer can't be found. |
4472 | May raise ValueError if the layer name isn't acceptable. |
4423 | May raise ValueError if the layer name isn't acceptable. |
4473 | </translation> |
4424 | </translation> |
4474 | </message> |
4425 | </message> |
4475 | <message> |
4426 | <message> |
4476 | <location filename="" line="136966688"/> |
- | |
4477 | <source>setLayerPrintable("layer", printable) |
4427 | <source>setLayerPrintable("layer", printable) |
4478 | 4428 | ||
4479 | Sets the layer "layer" to be printable or not. If is the printable set to |
4429 | Sets the layer "layer" to be printable or not. If is the printable set to |
4480 | false the layer won't be printed. |
4430 | false the layer won't be printed. |
4481 | 4431 | ||
Line 4490... | Line 4440... | ||
4490 | May raise NotFoundError if the layer can't be found. |
4440 | May raise NotFoundError if the layer can't be found. |
4491 | May raise ValueError if the layer name isn't acceptable. |
4441 | May raise ValueError if the layer name isn't acceptable. |
4492 | </translation> |
4442 | </translation> |
4493 | </message> |
4443 | </message> |
4494 | <message> |
4444 | <message> |
4495 | <location filename="" line="136966688"/> |
- | |
4496 | <source>isLayerPrintable("layer") -> bool |
4445 | <source>isLayerPrintable("layer") -> bool |
4497 | 4446 | ||
4498 | Returns whether the layer "layer" is visible or not, a value of True means |
4447 | Returns whether the layer "layer" is visible or not, a value of True means |
4499 | that the layer "layer" is visible, a value of False means that the layer |
4448 | that the layer "layer" is visible, a value of False means that the layer |
4500 | "layer" is invisible. |
4449 | "layer" is invisible. |
Line 4511... | Line 4460... | ||
4511 | May raise NotFoundError if the layer can't be found. |
4460 | May raise NotFoundError if the layer can't be found. |
4512 | May raise ValueError if the layer name isn't acceptable. |
4461 | May raise ValueError if the layer name isn't acceptable. |
4513 | </translation> |
4462 | </translation> |
4514 | </message> |
4463 | </message> |
4515 | <message> |
4464 | <message> |
4516 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="222"/> |
- | |
4517 | <source>isLayerPrintable("layer") -> bool |
4465 | <source>isLayerPrintable("layer") -> bool |
4518 | 4466 | ||
4519 | Returns whether the layer "layer" is printable or not, a value of True means |
4467 | Returns whether the layer "layer" is printable or not, a value of True means |
4520 | that the layer "layer" can be printed, a value of False means that printing |
4468 | that the layer "layer" can be printed, a value of False means that printing |
4521 | the layer "layer" is disabled. |
4469 | the layer "layer" is disabled. |
Line 4532... | Line 4480... | ||
4532 | May raise NotFoundError if the layer can't be found. |
4480 | May raise NotFoundError if the layer can't be found. |
4533 | May raise ValueError if the layer name isn't acceptable. |
4481 | May raise ValueError if the layer name isn't acceptable. |
4534 | </translation> |
4482 | </translation> |
4535 | </message> |
4483 | </message> |
4536 | <message> |
4484 | <message> |
4537 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="300"/> |
- | |
4538 | <source>deleteLayer("layer") |
4485 | <source>deleteLayer("layer") |
4539 | 4486 | ||
4540 | Deletes the layer with the name "layer". Nothing happens if the layer doesn't |
4487 | Deletes the layer with the name "layer". Nothing happens if the layer doesn't |
4541 | exists or if it's the only layer in the document. |
4488 | exists or if it's the only layer in the document. |
4542 | 4489 | ||
Line 4551... | Line 4498... | ||
4551 | May raise NotFoundError if the layer can't be found. |
4498 | May raise NotFoundError if the layer can't be found. |
4552 | May raise ValueError if the layer name isn't acceptable. |
4499 | May raise ValueError if the layer name isn't acceptable. |
4553 | </translation> |
4500 | </translation> |
4554 | </message> |
4501 | </message> |
4555 | <message> |
4502 | <message> |
4556 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="311"/> |
- | |
4557 | <source>createLayer(layer) |
4503 | <source>createLayer(layer) |
4558 | 4504 | ||
4559 | Creates a new layer with the name "name". |
4505 | Creates a new layer with the name "name". |
4560 | 4506 | ||
4561 | May raise ValueError if the layer name isn't acceptable. |
4507 | May raise ValueError if the layer name isn't acceptable. |
Line 4566... | Line 4512... | ||
4566 | 4512 | ||
4567 | May raise ValueError if the layer name isn't acceptable. |
4513 | May raise ValueError if the layer name isn't acceptable. |
4568 | </translation> |
4514 | </translation> |
4569 | </message> |
4515 | </message> |
4570 | <message> |
4516 | <message> |
4571 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="320"/> |
- | |
4572 | <source>getGuiLanguage() -> string |
4517 | <source>getGuiLanguage() -> string |
4573 | 4518 | ||
4574 | Returns a string with the -lang value. |
4519 | Returns a string with the -lang value. |
4575 | </source> |
4520 | </source> |
4576 | <translation type="obsolete">getGuiLanguage() -> string |
4521 | <translation type="obsolete">getGuiLanguage() -> string |
4577 | 4522 | ||
4578 | Returns a string with the -lang value. |
4523 | Returns a string with the -lang value. |
4579 | </translation> |
4524 | </translation> |
4580 | </message> |
4525 | </message> |
4581 | <message> |
4526 | <message> |
4582 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="43"/> |
- | |
4583 | <source>createEllipse(x, y, width, height, ["name"]) -> string |
4527 | <source>createEllipse(x, y, width, height, ["name"]) -> string |
4584 | 4528 | ||
4585 | Creates a new ellipse on the current page and returns its name. |
4529 | Creates a new ellipse on the current page and returns its name. |
4586 | The coordinates are given in the current measurement units of the document |
4530 | The coordinates are given in the current measurement units of the document |
4587 | (see UNIT constants). "name" should be a unique identifier for the object |
4531 | (see UNIT constants). "name" should be a unique identifier for the object |
Line 4600... | Line 4544... | ||
4600 | 4544 | ||
4601 | May raise NameExistsError if you explicitly pass a name that's already used. |
4545 | May raise NameExistsError if you explicitly pass a name that's already used. |
4602 | </translation> |
4546 | </translation> |
4603 | </message> |
4547 | </message> |
4604 | <message> |
4548 | <message> |
4605 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="60"/> |
- | |
4606 | <source>createImage(x, y, width, height, ["name"]) -> string |
4549 | <source>createImage(x, y, width, height, ["name"]) -> string |
4607 | 4550 | ||
4608 | Creates a new picture frame on the current page and returns its name. The |
4551 | Creates a new picture frame on the current page and returns its name. The |
4609 | coordinates are given in the current measurement units of the document. |
4552 | coordinates are given in the current measurement units of the document. |
4610 | "name" should be a unique identifier for the object because you need this |
4553 | "name" should be a unique identifier for the object because you need this |
Line 4623... | Line 4566... | ||
4623 | 4566 | ||
4624 | May raise NameExistsError if you explicitly pass a name that's already used. |
4567 | May raise NameExistsError if you explicitly pass a name that's already used. |
4625 | </translation> |
4568 | </translation> |
4626 | </message> |
4569 | </message> |
4627 | <message> |
4570 | <message> |
4628 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="75"/> |
- | |
4629 | <source>createText(x, y, width, height, ["name"]) -> string |
4571 | <source>createText(x, y, width, height, ["name"]) -> string |
4630 | 4572 | ||
4631 | Creates a new text frame on the actual page and returns its name. |
4573 | Creates a new text frame on the actual page and returns its name. |
4632 | The coordinates are given in the actual measurement unit of the document (see |
4574 | The coordinates are given in the actual measurement unit of the document (see |
4633 | UNIT constants). "name" should be a unique identifier for the object because |
4575 | UNIT constants). "name" should be a unique identifier for the object because |
Line 4646... | Line 4588... | ||
4646 | 4588 | ||
4647 | May raise NameExistsError if you explicitly pass a name that's already used. |
4589 | May raise NameExistsError if you explicitly pass a name that's already used. |
4648 | </translation> |
4590 | </translation> |
4649 | </message> |
4591 | </message> |
4650 | <message> |
4592 | <message> |
4651 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="90"/> |
- | |
4652 | <source>createLine(x1, y1, x2, y2, ["name"]) -> string |
4593 | <source>createLine(x1, y1, x2, y2, ["name"]) -> string |
4653 | 4594 | ||
4654 | Creates a new line from the point(x1, y1) to the point(x2, y2) and returns |
4595 | Creates a new line from the point(x1, y1) to the point(x2, y2) and returns |
4655 | its name. The coordinates are given in the current measurement unit of the |
4596 | its name. The coordinates are given in the current measurement unit of the |
4656 | document (see UNIT constants). "name" should be a unique identifier for the |
4597 | document (see UNIT constants). "name" should be a unique identifier for the |
Line 4669... | Line 4610... | ||
4669 | 4610 | ||
4670 | May raise NameExistsError if you explicitly pass a name that's already used. |
4611 | May raise NameExistsError if you explicitly pass a name that's already used. |
4671 | </translation> |
4612 | </translation> |
4672 | </message> |
4613 | </message> |
4673 | <message> |
4614 | <message> |
4674 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="108"/> |
- | |
4675 | <source>createPolyLine(list, ["name"]) -> string |
4615 | <source>createPolyLine(list, ["name"]) -> string |
4676 | 4616 | ||
4677 | Creates a new polyline and returns its name. The points for the polyline are |
4617 | Creates a new polyline and returns its name. The points for the polyline are |
4678 | stored in the list "list" in the following order: [x1, y1, x2, y2...xn. yn]. |
4618 | stored in the list "list" in the following order: [x1, y1, x2, y2...xn. yn]. |
4679 | The coordinates are given in the current measurement units of the document (see |
4619 | The coordinates are given in the current measurement units of the document (see |
Line 4698... | Line 4638... | ||
4698 | May raise ValueError if an insufficient number of points is passed or if |
4638 | May raise ValueError if an insufficient number of points is passed or if |
4699 | the number of values passed don't group into points without leftovers. |
4639 | the number of values passed don't group into points without leftovers. |
4700 | </translation> |
4640 | </translation> |
4701 | </message> |
4641 | </message> |
4702 | <message> |
4642 | <message> |
4703 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="128"/> |
- | |
4704 | <source>createPolygon(list, ["name"]) -> string |
4643 | <source>createPolygon(list, ["name"]) -> string |
4705 | 4644 | ||
4706 | Creates a new polygon and returns its name. The points for the polygon are |
4645 | Creates a new polygon and returns its name. The points for the polygon are |
4707 | stored in the list "list" in the following order: [x1, y1, x2, y2...xn. yn]. |
4646 | stored in the list "list" in the following order: [x1, y1, x2, y2...xn. yn]. |
4708 | At least three points are required. There is no need to repeat the first point |
4647 | At least three points are required. There is no need to repeat the first point |
Line 4731... | Line 4670... | ||
4731 | May raise ValueError if an insufficient number of points is passed or if |
4670 | May raise ValueError if an insufficient number of points is passed or if |
4732 | the number of values passed don't group into points without leftovers. |
4671 | the number of values passed don't group into points without leftovers. |
4733 | </translation> |
4672 | </translation> |
4734 | </message> |
4673 | </message> |
4735 | <message> |
4674 | <message> |
4736 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="149"/> |
- | |
4737 | <source>createBezierLine(list, ["name"]) -> string |
4675 | <source>createBezierLine(list, ["name"]) -> string |
4738 | 4676 | ||
4739 | Creates a new bezier curve and returns its name. The points for the bezier |
4677 | Creates a new bezier curve and returns its name. The points for the bezier |
4740 | curve are stored in the list "list" in the following order: |
4678 | curve are stored in the list "list" in the following order: |
4741 | [x1, y1, kx1, ky1, x2, y2, kx2, ky2...xn. yn, kxn. kyn] |
4679 | [x1, y1, kx1, ky1, x2, y2, kx2, ky2...xn. yn, kxn. kyn] |
Line 4766... | Line 4704... | ||
4766 | May raise ValueError if an insufficient number of points is passed or if |
4704 | May raise ValueError if an insufficient number of points is passed or if |
4767 | the number of values passed don't group into points without leftovers. |
4705 | the number of values passed don't group into points without leftovers. |
4768 | </translation> |
4706 | </translation> |
4769 | </message> |
4707 | </message> |
4770 | <message> |
4708 | <message> |
4771 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="165"/> |
- | |
4772 | <source>createPathText(x, y, "textbox", "beziercurve", ["name"]) -> string |
4709 | <source>createPathText(x, y, "textbox", "beziercurve", ["name"]) -> string |
4773 | 4710 | ||
4774 | Creates a new pathText by merging the two objects "textbox" and |
4711 | Creates a new pathText by merging the two objects "textbox" and |
4775 | "beziercurve" and returns its name. The coordinates are given in the current |
4712 | "beziercurve" and returns its name. The coordinates are given in the current |
4776 | measurement unit of the document (see UNIT constants). "name" should be a |
4713 | measurement unit of the document (see UNIT constants). "name" should be a |
Line 4791... | Line 4728... | ||
4791 | May raise NameExistsError if you explicitly pass a name that's already used. |
4728 | May raise NameExistsError if you explicitly pass a name that's already used. |
4792 | May raise NotFoundError if one or both of the named base object don't exist. |
4729 | May raise NotFoundError if one or both of the named base object don't exist. |
4793 | </translation> |
4730 | </translation> |
4794 | </message> |
4731 | </message> |
4795 | <message> |
4732 | <message> |
4796 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="177"/> |
- | |
4797 | <source>deleteObject(["name"]) |
4733 | <source>deleteObject(["name"]) |
4798 | 4734 | ||
4799 | Deletes the item with the name "name". If "name" is not given the currently |
4735 | Deletes the item with the name "name". If "name" is not given the currently |
4800 | selected item is deleted. |
4736 | selected item is deleted. |
4801 | </source> |
4737 | </source> |
Line 4804... | Line 4740... | ||
4804 | Deletes the item with the name "name". If "name" is not given the currently |
4740 | Deletes the item with the name "name". If "name" is not given the currently |
4805 | selected item is deleted. |
4741 | selected item is deleted. |
4806 | </translation> |
4742 | </translation> |
4807 | </message> |
4743 | </message> |
4808 | <message> |
4744 | <message> |
4809 | <location filename="" line="136966688"/> |
- | |
4810 | <source>textFlowsAroundFrame("name" [, state]) |
4745 | <source>textFlowsAroundFrame("name" [, state]) |
4811 | 4746 | ||
4812 | Enables/disables "Text Flows Around Frame" feature for object "name". |
4747 | Enables/disables "Text Flows Around Frame" feature for object "name". |
4813 | Called with parameters string name and optional boolean "state". If "state" |
4748 | Called with parameters string name and optional boolean "state". If "state" |
4814 | is not passed, text flow is toggled. |
4749 | is not passed, text flow is toggled. |
Line 4819... | Line 4754... | ||
4819 | Called with parameters string name and optional boolean "state". If "state" |
4754 | Called with parameters string name and optional boolean "state". If "state" |
4820 | is not passed, text flow is toggled. |
4755 | is not passed, text flow is toggled. |
4821 | </translation> |
4756 | </translation> |
4822 | </message> |
4757 | </message> |
4823 | <message> |
4758 | <message> |
4824 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="211"/> |
- | |
4825 | <source>objectExists(["name"]) -> bool |
4759 | <source>objectExists(["name"]) -> bool |
4826 | 4760 | ||
4827 | Test if an object with specified name really exists in the document. |
4761 | Test if an object with specified name really exists in the document. |
4828 | The optional parameter is the object name. When no object name is given, |
4762 | The optional parameter is the object name. When no object name is given, |
4829 | returns True if there is something selected. |
4763 | returns True if there is something selected. |
Line 4834... | Line 4768... | ||
4834 | The optional parameter is the object name. When no object name is given, |
4768 | The optional parameter is the object name. When no object name is given, |
4835 | returns True if there is something selected. |
4769 | returns True if there is something selected. |
4836 | </translation> |
4770 | </translation> |
4837 | </message> |
4771 | </message> |
4838 | <message> |
4772 | <message> |
4839 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="227"/> |
- | |
4840 | <source>setStyle("style" [, "name"]) |
4773 | <source>setStyle("style" [, "name"]) |
4841 | 4774 | ||
4842 | Apply the named "style" to the object named "name". If is no object name |
4775 | Apply the named "style" to the object named "name". If is no object name |
4843 | given, it's applied on the selected object. |
4776 | given, it's applied on the selected object. |
4844 | </source> |
4777 | </source> |
Line 4847... | Line 4780... | ||
4847 | Apply the named "style" to the object named "name". If is no object name |
4780 | Apply the named "style" to the object named "name". If is no object name |
4848 | given, it's applied on the selected object. |
4781 | given, it's applied on the selected object. |
4849 | </translation> |
4782 | </translation> |
4850 | </message> |
4783 | </message> |
4851 | <message> |
4784 | <message> |
4852 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="240"/> |
- | |
4853 | <source>getAllStyles() -> list |
4785 | <source>getAllStyles() -> list |
4854 | 4786 | ||
4855 | Return a list of the names of all paragraph styles in the current document. |
4787 | Return a list of the names of all paragraph styles in the current document. |
4856 | </source> |
4788 | </source> |
4857 | <translation type="obsolete">getAllStyles() -> list |
4789 | <translation type="obsolete">getAllStyles() -> list |
4858 | 4790 | ||
4859 | Return a list of the names of all paragraph styles in the current document. |
4791 | Return a list of the names of all paragraph styles in the current document. |
4860 | </translation> |
4792 | </translation> |
4861 | </message> |
4793 | </message> |
4862 | <message> |
4794 | <message> |
4863 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="36"/> |
- | |
4864 | <source>currentPage() -> integer |
4795 | <source>currentPage() -> integer |
4865 | 4796 | ||
4866 | Returns the number of the current working page. Page numbers are counted from 1 |
4797 | Returns the number of the current working page. Page numbers are counted from 1 |
4867 | upwards, no matter what the displayed first page number of your document is. |
4798 | upwards, no matter what the displayed first page number of your document is. |
4868 | </source> |
4799 | </source> |
Line 4871... | Line 4802... | ||
4871 | Returns the number of the current working page. Page numbers are counted from 1 |
4802 | Returns the number of the current working page. Page numbers are counted from 1 |
4872 | upwards, no matter what the displayed first page number of your document is. |
4803 | upwards, no matter what the displayed first page number of your document is. |
4873 | </translation> |
4804 | </translation> |
4874 | </message> |
4805 | </message> |
4875 | <message> |
4806 | <message> |
4876 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="45"/> |
- | |
4877 | <source>redrawAll() |
4807 | <source>redrawAll() |
4878 | 4808 | ||
4879 | Redraws all pages. |
4809 | Redraws all pages. |
4880 | </source> |
4810 | </source> |
4881 | <translation type="obsolete">redrawAll() |
4811 | <translation type="obsolete">redrawAll() |
4882 | 4812 | ||
4883 | Redraws all pages. |
4813 | Redraws all pages. |
4884 | </translation> |
4814 | </translation> |
4885 | </message> |
4815 | </message> |
4886 | <message> |
4816 | <message> |
4887 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="65"/> |
- | |
4888 | <source>savePageAsEPS("name") |
4817 | <source>savePageAsEPS("name") |
4889 | 4818 | ||
4890 | Saves the current page as an EPS to the file "name". |
4819 | Saves the current page as an EPS to the file "name". |
4891 | 4820 | ||
4892 | May raise ScribusError if the save failed. |
4821 | May raise ScribusError if the save failed. |
Line 4897... | Line 4826... | ||
4897 | 4826 | ||
4898 | May raise ScribusError if the save failed. |
4827 | May raise ScribusError if the save failed. |
4899 | </translation> |
4828 | </translation> |
4900 | </message> |
4829 | </message> |
4901 | <message> |
4830 | <message> |
4902 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="78"/> |
- | |
4903 | <source>deletePage(nr) |
4831 | <source>deletePage(nr) |
4904 | 4832 | ||
4905 | Deletes the given page. Does nothing if the document contains only one page. |
4833 | Deletes the given page. Does nothing if the document contains only one page. |
4906 | Page numbers are counted from 1 upwards, no matter what the displayed first |
4834 | Page numbers are counted from 1 upwards, no matter what the displayed first |
4907 | page number is. |
4835 | page number is. |
Line 4916... | Line 4844... | ||
4916 | 4844 | ||
4917 | May raise IndexError if the page number is out of range |
4845 | May raise IndexError if the page number is out of range |
4918 | </translation> |
4846 | </translation> |
4919 | </message> |
4847 | </message> |
4920 | <message> |
4848 | <message> |
4921 | <location filename="../plugins/scriptplugin/cmdpage.h" line="91"/> |
- | |
4922 | <source>gotoPage(nr) |
4849 | <source>gotoPage(nr) |
4923 | 4850 | ||
4924 | Moves to the page "nr" (that is, makes the current page "nr"). Note that |
4851 | Moves to the page "nr" (that is, makes the current page "nr"). Note that |
4925 | gotoPage doesn't (curently) change the page the user's view is displaying, it |
4852 | gotoPage doesn't (curently) change the page the user's view is displaying, it |
4926 | just sets the page that script commands will operates on. |
4853 | just sets the page that script commands will operates on. |
Line 4935... | Line 4862... | ||
4935 | 4862 | ||
4936 | May raise IndexError if the page number is out of range. |
4863 | May raise IndexError if the page number is out of range. |
4937 | </translation> |
4864 | </translation> |
4938 | </message> |
4865 | </message> |
4939 | <message> |
4866 | <message> |
4940 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="100"/> |
- | |
4941 | <source>pageCount() -> integer |
4867 | <source>pageCount() -> integer |
4942 | 4868 | ||
4943 | Returns the number of pages in the document. |
4869 | Returns the number of pages in the document. |
4944 | </source> |
4870 | </source> |
4945 | <translation type="obsolete">pageCount() -> integer |
4871 | <translation type="obsolete">pageCount() -> integer |
4946 | 4872 | ||
4947 | Returns the number of pages in the document. |
4873 | Returns the number of pages in the document. |
4948 | </translation> |
4874 | </translation> |
4949 | </message> |
4875 | </message> |
4950 | <message> |
4876 | <message> |
4951 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="110"/> |
- | |
4952 | <source>getHGuides() -> list |
4877 | <source>getHGuides() -> list |
4953 | 4878 | ||
4954 | Returns a list containing positions of the horizontal guides. Values are in the |
4879 | Returns a list containing positions of the horizontal guides. Values are in the |
4955 | document's current units - see UNIT_<type> constants. |
4880 | document's current units - see UNIT_<type> constants. |
4956 | </source> |
4881 | </source> |
Line 4959... | Line 4884... | ||
4959 | Returns a list containing positions of the horizontal guides. Values are in the |
4884 | Returns a list containing positions of the horizontal guides. Values are in the |
4960 | document's current units - see UNIT_<type> constants. |
4885 | document's current units - see UNIT_<type> constants. |
4961 | </translation> |
4886 | </translation> |
4962 | </message> |
4887 | </message> |
4963 | <message> |
4888 | <message> |
4964 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="123"/> |
- | |
4965 | <source>setHGuides(list) |
4889 | <source>setHGuides(list) |
4966 | 4890 | ||
4967 | Sets horizontal guides. Input parameter must be a list of guide positions |
4891 | Sets horizontal guides. Input parameter must be a list of guide positions |
4968 | measured in the current document units - see UNIT_<type> constants. |
4892 | measured in the current document units - see UNIT_<type> constants. |
4969 | 4893 | ||
Line 4978... | Line 4902... | ||
4978 | Example: setHGuides(getHGuides() + [200.0, 210.0] # add new guides without any lost |
4902 | Example: setHGuides(getHGuides() + [200.0, 210.0] # add new guides without any lost |
4979 | setHGuides([90,250]) # replace current guides entirely |
4903 | setHGuides([90,250]) # replace current guides entirely |
4980 | </translation> |
4904 | </translation> |
4981 | </message> |
4905 | </message> |
4982 | <message> |
4906 | <message> |
4983 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="132"/> |
- | |
4984 | <source>getVGuides() |
4907 | <source>getVGuides() |
4985 | 4908 | ||
4986 | See getHGuides. |
4909 | See getHGuides. |
4987 | </source> |
4910 | </source> |
4988 | <translation type="obsolete">getVGuides() |
4911 | <translation type="obsolete">getVGuides() |
4989 | 4912 | ||
4990 | See getHGuides. |
4913 | See getHGuides. |
4991 | </translation> |
4914 | </translation> |
4992 | </message> |
4915 | </message> |
4993 | <message> |
4916 | <message> |
4994 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="141"/> |
- | |
4995 | <source>setVGuides() |
4917 | <source>setVGuides() |
4996 | 4918 | ||
4997 | See setHGuides. |
4919 | See setHGuides. |
4998 | </source> |
4920 | </source> |
4999 | <translation type="obsolete">setVGuides() |
4921 | <translation type="obsolete">setVGuides() |
5000 | 4922 | ||
5001 | See setHGuides. |
4923 | See setHGuides. |
5002 | </translation> |
4924 | </translation> |
5003 | </message> |
4925 | </message> |
5004 | <message> |
4926 | <message> |
5005 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="151"/> |
- | |
5006 | <source>getPageSize() -> tuple |
4927 | <source>getPageSize() -> tuple |
5007 | 4928 | ||
5008 | Returns a tuple with page dimensions measured in the document's current units. |
4929 | Returns a tuple with page dimensions measured in the document's current units. |
5009 | See UNIT_<type> constants and getPageMargins() |
4930 | See UNIT_<type> constants and getPageMargins() |
5010 | </source> |
4931 | </source> |
Line 5013... | Line 4934... | ||
5013 | Returns a tuple with page dimensions measured in the document's current units. |
4934 | Returns a tuple with page dimensions measured in the document's current units. |
5014 | See UNIT_<type> constants and getPageMargins() |
4935 | See UNIT_<type> constants and getPageMargins() |
5015 | </translation> |
4936 | </translation> |
5016 | </message> |
4937 | </message> |
5017 | <message> |
4938 | <message> |
5018 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="167"/> |
- | |
5019 | <source>getPageItems() -> list |
4939 | <source>getPageItems() -> list |
5020 | 4940 | ||
5021 | Returns a list of tuples with items on the current page. The tuple is: |
4941 | Returns a list of tuples with items on the current page. The tuple is: |
5022 | (name, objectType, order) E.g. [('Text1', 4, 0), ('Image1', 2, 1)] |
4942 | (name, objectType, order) E.g. [('Text1', 4, 0), ('Image1', 2, 1)] |
5023 | means that object named 'Text1' is a text frame (type 4) and is the first at |
4943 | means that object named 'Text1' is a text frame (type 4) and is the first at |
Line 5030... | Line 4950... | ||
5030 | means that object named 'Text1' is a text frame (type 4) and is the first at |
4950 | means that object named 'Text1' is a text frame (type 4) and is the first at |
5031 | the page... |
4951 | the page... |
5032 | </translation> |
4952 | </translation> |
5033 | </message> |
4953 | </message> |
5034 | <message> |
4954 | <message> |
5035 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="181"/> |
- | |
5036 | <source>getPageMargins() |
4955 | <source>getPageMargins() |
5037 | 4956 | ||
5038 | Returns the page margins as a (top, left, right, bottom) tuple in the current |
4957 | Returns the page margins as a (top, left, right, bottom) tuple in the current |
5039 | units. See UNIT_<type> constants and getPageSize(). |
4958 | units. See UNIT_<type> constants and getPageSize(). |
5040 | </source> |
4959 | </source> |
Line 5043... | Line 4962... | ||
5043 | Returns the page margins as a (top, left, right, bottom) tuple in the current |
4962 | Returns the page margins as a (top, left, right, bottom) tuple in the current |
5044 | units. See UNIT_<type> constants and getPageSize(). |
4963 | units. See UNIT_<type> constants and getPageSize(). |
5045 | </translation> |
4964 | </translation> |
5046 | </message> |
4965 | </message> |
5047 | <message> |
4966 | <message> |
5048 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="33"/> |
- | |
5049 | <source>setFillColor("color", ["name"]) |
4967 | <source>setFillColor("color", ["name"]) |
5050 | 4968 | ||
5051 | Sets the fill color of the object "name" to the color "color". "color" |
4969 | Sets the fill color of the object "name" to the color "color". "color" |
5052 | is the name of one of the defined colors. If "name" is not given the |
4970 | is the name of one of the defined colors. If "name" is not given the |
5053 | currently selected item is used. |
4971 | currently selected item is used. |
Line 5058... | Line 4976... | ||
5058 | is the name of one of the defined colours. If "name" is not given the |
4976 | is the name of one of the defined colours. If "name" is not given the |
5059 | currently selected item is used. |
4977 | currently selected item is used. |
5060 | </translation> |
4978 | </translation> |
5061 | </message> |
4979 | </message> |
5062 | <message> |
4980 | <message> |
5063 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="63"/> |
- | |
5064 | <source>setLineColor("color", ["name"]) |
4981 | <source>setLineColor("color", ["name"]) |
5065 | 4982 | ||
5066 | Sets the line color of the object "name" to the color "color". If "name" |
4983 | Sets the line color of the object "name" to the color "color". If "name" |
5067 |