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