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