Rev 18310 | Rev 18553 | 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"> |
||
418 | Franz | 4 | <context> |
12918 | cbradney | 5 | <name></name> |
1135 | cbradney | 6 | <message> |
12918 | cbradney | 7 | <source>getColorNames() -> list |
8 | |||
9 | Returns a list containing the names of all defined colors in the document. |
||
10 | If no document is open, returns a list of the default document colors. |
||
11 | </source> |
||
15354 | cbradney | 12 | <translation type="obsolete">getColorNames() -> llista |
12918 | cbradney | 13 | |
14 | Retorna una llista que conté els noms dels colors definits en el document. |
||
15 | Si no hi ha cap document obert, retorna una llista amb els colors per defecte. |
||
16 | </translation> |
||
17 | </message> |
||
18 | <message> |
||
19 | <source>getColor("name") -> tuple |
||
20 | |||
21 | Returns a tuple (C, M, Y, K) containing the four color components of the |
||
22 | color "name" from the current document. If no document is open, returns |
||
23 | the value of the named color from the default document colors. |
||
24 | |||
25 | May raise NotFoundError if the named color wasn't found. |
||
26 | May raise ValueError if an invalid color name is specified. |
||
27 | </source> |
||
15354 | cbradney | 28 | <translation type="obsolete">getColor("nom") -> tupla |
12918 | cbradney | 29 | |
30 | Retorna una tupla (C, M, Y, K) que conté els quatre components de color |
||
31 | de "nom" del document actual. Si no hi ha cap document obert, torna |
||
32 | el valor del color anomenat dels colors per defecte. |
||
33 | |||
34 | Pot produir un NotFoundError si no es troba el color. |
||
35 | Pot produir ValueError si s'especifica un color invàl·lid. |
||
36 | </translation> |
||
37 | </message> |
||
38 | <message> |
||
39 | <source>getColorAsRGB("name") -> tuple |
||
40 | |||
41 | Returns a tuple (R,G,B) containing the three color components of the |
||
42 | color "name" from the current document, converted to the RGB color |
||
43 | space. If no document is open, returns the value of the named color |
||
44 | from the default document colors. |
||
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> |
||
15354 | cbradney | 49 | <translation type="obsolete">getColorAsRGB("nom") -> tupla |
12918 | cbradney | 50 | |
51 | Retorna una tupla (R,G,B) que conté els tres components de color del |
||
52 | color "nom" que està en el document actual, convertit en un color RGB. |
||
53 | Si no hi ha cap document obert, retorna el valor del nom del color que |
||
54 | hi hagi en els colors per defecte. |
||
55 | |||
56 | Pot generar NotFoundError si la capa no es pot trobar. |
||
57 | Pot generar ValueError si el nom de la capa no és acceptable.</translation> |
||
58 | </message> |
||
59 | <message> |
||
60 | <source>changeColor("name", c, m, y, k) |
||
61 | |||
62 | Changes the color "name" to the specified CMYK value. The color value is |
||
63 | defined via four components c = Cyan, m = Magenta, y = Yellow and k = Black. |
||
64 | Color components should be in the range from 0 to 255. |
||
65 | |||
66 | May raise NotFoundError if the named color wasn't found. |
||
67 | May raise ValueError if an invalid color name is specified. |
||
68 | </source> |
||
15099 | cbradney | 69 | <translation type="obsolete">changeColor("nom", c, m, y, k) |
12918 | cbradney | 70 | |
71 | Canvia el color "nom" a els valors CMYK. El valor del color està |
||
72 | definit via els quatre components c=Cian, m=Magenta, y=Groc i k=Negre |
||
73 | Els colors del component han d'estar dins del rang 0 a 255. |
||
74 | |||
75 | Pot produir un NotFoundError si no es troba el color. |
||
76 | Pot produir ValueError si s'especifica un color erròni.</translation> |
||
77 | </message> |
||
78 | <message> |
||
79 | <source>defineColor("name", c, m, y, k) |
||
80 | |||
81 | Defines a new color "name". The color Value is defined via four components: |
||
82 | c = Cyan, m = Magenta, y = Yellow and k = Black. Color components should be in |
||
83 | the range from 0 to 255. |
||
84 | |||
85 | May raise ValueError if an invalid color name is specified. |
||
86 | </source> |
||
15099 | cbradney | 87 | <translation type="obsolete">defineColor("nom", c, m, y, k) |
12918 | cbradney | 88 | |
89 | Defineix un nou color "nom". El valor del color està definit amb els quatre components: |
||
90 | c=cian, m=Magenta, y=Groc i k=Negre. Els components de color han d'estar dins |
||
91 | del rang que va des de 0 a 255. |
||
92 | |||
93 | Pot provocar un ValueError si s'especifica un color invàlid. |
||
94 | </translation> |
||
95 | </message> |
||
96 | <message> |
||
97 | <source>deleteColor("name", "replace") |
||
98 | |||
99 | Deletes the color "name". Every occurence of that color is replaced by the |
||
100 | color "replace". If not specified, "replace" defaults to the color |
||
101 | "None" - transparent. |
||
102 | |||
103 | deleteColor works on the default document colors if there is no document open. |
||
104 | In that case, "replace", if specified, has no effect. |
||
105 | |||
106 | May raise NotFoundError if a named color wasn't found. |
||
107 | May raise ValueError if an invalid color name is specified. |
||
108 | </source> |
||
15354 | cbradney | 109 | <translation type="obsolete">deleteColor("nom", "canvi") |
12918 | cbradney | 110 | |
111 | Esborra el color "nom". Cada ocurrència d'aquest color es canvia pel |
||
112 | color "canvi". Si no s'especifica, "canvi" es canvia pel color "cap" |
||
113 | - transparent. |
||
114 | |||
115 | deleteColor treballa en els colors per defecte del document si no n'hi |
||
116 | ha cap d'obert, encara que s'especifiqui, no fa res. |
||
117 | |||
118 | Pot generar NotFoundError si no existeix el color. |
||
119 | Pot generar ValueError si s'especifica un color invàlid. |
||
120 | </translation> |
||
121 | </message> |
||
122 | <message> |
||
123 | <source>replaceColor("name", "replace") |
||
124 | |||
125 | Every occurence of the color "name" is replaced by the color "replace". |
||
126 | |||
127 | May raise NotFoundError if a named color wasn't found. |
||
128 | May raise ValueError if an invalid color name is specified. |
||
129 | </source> |
||
15354 | cbradney | 130 | <translation type="obsolete">replaceColor("nom", "canvi") |
12918 | cbradney | 131 | |
132 | Cada ocurrència del color "name" es canvia pel color "canvi". |
||
133 | |||
134 | Pot generar un NotFoundError si no existeix el color. |
||
135 | Pot generar un ValueError si el color especificat és invalid. |
||
136 | </translation> |
||
137 | </message> |
||
138 | <message> |
||
139 | <source>newDocDialog() -> bool |
||
140 | |||
141 | Displays the "New Document" dialog box. Creates a new document if the user |
||
142 | accepts the settings. Does not create a document if the user presses cancel. |
||
143 | Returns true if a new document was created. |
||
144 | </source> |
||
15354 | cbradney | 145 | <translation type="obsolete">newDocDialog() -> bool |
12918 | cbradney | 146 | |
147 | Mostra el diàleg "Nou Document". Crea un nou document si l'usuari accepta |
||
148 | els paràmetres. No en fa cap en cas de que hagi triat cancel·lar. |
||
149 | Retorna cert si s'ha creat un nou document. |
||
150 | </translation> |
||
151 | </message> |
||
152 | <message> |
||
153 | <source>messageBox("caption", "message", |
||
154 | icon=ICON_NONE, button1=BUTTON_OK|BUTTONOPT_DEFAULT, |
||
155 | button2=BUTTON_NONE, button3=BUTTON_NONE) -> integer |
||
156 | |||
157 | Displays a message box with the title "caption", the message "message", and |
||
158 | an icon "icon" and up to 3 buttons. By default no icon is used and a single |
||
159 | button, OK, is displayed. Only the caption and message arguments are required, |
||
160 | though setting an icon and appropriate button(s) is strongly |
||
161 | recommended. The message text may contain simple HTML-like markup. |
||
162 | |||
163 | Returns the number of the button the user pressed. Button numbers start |
||
164 | at 1. |
||
165 | |||
166 | For the icon and the button parameters there are predefined constants available |
||
167 | with the same names as in the Qt Documentation. These are the BUTTON_* and |
||
168 | ICON_* constants defined in the module. There are also two extra constants that |
||
169 | can be binary-ORed with button constants: |
||
170 | BUTTONOPT_DEFAULT Pressing enter presses this button. |
||
171 | BUTTONOPT_ESCAPE Pressing escape presses this button. |
||
172 | |||
173 | Usage examples: |
||
174 | result = messageBox('Script failed', |
||
175 | 'This script only works when you have a text frame selected.', |
||
176 | ICON_ERROR) |
||
177 | result = messageBox('Monkeys!', 'Something went ook! <i>Was it a monkey?</i>', |
||
178 | ICON_WARNING, BUTTON_YES|BUTTONOPT_DEFAULT, |
||
179 | BUTTON_NO, BUTTON_IGNORE|BUTTONOPT_ESCAPE) |
||
180 | |||
181 | Defined button and icon constants: |
||
182 | BUTTON_NONE, BUTTON_ABORT, BUTTON_CANCEL, BUTTON_IGNORE, BUTTON_NO, |
||
183 | BUTTON_NOALL, BUTTON_OK, BUTTON_RETRY, BUTTON_YES, BUTTON_YESALL, |
||
184 | ICON_NONE, ICON_INFORMATION, ICON_WARNING, ICON_CRITICAL. |
||
185 | </source> |
||
15354 | cbradney | 186 | <translation type="obsolete">messageBox("caption", "missatge", |
12918 | cbradney | 187 | icon=ICON_NONE, button1=BUTTON_OK|BUTTONOPT_DEFAULT, |
188 | button2=BUTTON_NONE, button3=BUTTON_NONE) -> integer |
||
189 | |||
190 | Mostra un diàleg amb el títol de finestra "caption", el missatge "missatge", i |
||
191 | una icona "icon" amb fins a 3 botons. Per defecte no es fa servir cap icona i |
||
192 | només un sol botó, OK. Només calen els textos de "caption" i de "missatge", |
||
193 | per tant afegir una icona i els botons apropiats és molt |
||
194 | recomanat. El missatge de text pot contenir tags HTML. |
||
195 | |||
196 | Retorna el número del botó que l'usuari a premit. El número de botos comença |
||
197 | a 1. |
||
198 | |||
199 | Per la icona i pels paràmetres dels botons hi ha diverses constants predeterminades |
||
200 | amb els mateixos noms que a la documentació de Qt. Són constants BUTTON_* i |
||
201 | ICON_* definides al mòdul. També hi ha constants extres a les que poden fer |
||
202 | un OR binari amb constants de botó: |
||
203 | BUTTONOPT_DEFAULT Prement enter tria aquest botó. |
||
204 | BUTTONOPT_ESCAPE Prement escape tria aquest botó. |
||
205 | |||
206 | Exemples d'ús: |
||
207 | result = messageBox('Script failed', |
||
208 | messageBox("caption", "message",(new line) |
||
209 | (sp)(sp)(sp)(sp)icon=ICON_NONE, button1=BUTTON_OK|BUTTONOPT_DEFAULT,(new line) |
||
210 | (sp)(sp)(sp)(sp)button2=BUTTON_NONE, button3=BUTTON_NONE) -> integer(new line) |
||
211 | (new line) |
||
212 | Displays a message box with the title "caption", the message "message", and(new line) |
||
213 | an icon "icon" and up to 3 buttons. By default no icon is used and a single(new line) |
||
214 | button, OK, is displayed. Only the caption and message arguments are required,(new line) |
||
215 | though setting an icon and appropriate button(s) is strongly(new line) |
||
216 | recommended. The message text may contain simple HTML-like markup.(new line) |
||
217 | (new line) |
||
218 | Returns the number of the button the user pressed. Button numbers start(new line) |
||
219 | at 1.(new line) |
||
220 | (new line) |
||
221 | For the icon and the button parameters there are predefined constants available(new line) |
||
222 | with the same names as in the Qt Documentation. These are the BUTTON_* and(new line) |
||
223 | ICON_* constants defined in the module. There are also two extra constants that(new line) |
||
224 | can be binary-ORed with button constants:(new line) |
||
225 | (sp)(sp)(sp)(sp)BUTTONOPT_DEFAULT(sp)(sp)(sp)Pressing enter presses this button.(new line) |
||
226 | (sp)(sp)(sp)(sp)BUTTONOPT_ESCAPE(sp)(sp)(sp)(sp)Pressing escape presses this button.(new line) |
||
227 | (new line) |
||
228 | Usage examples:(new line) |
||
229 | result = messageBox('Script failed',(new line) |
||
230 | 'This script only works when you have a text frame selected.', |
||
231 | ICON_ERROR) |
||
232 | result = messageBox('Monkeys!', 'Something went ook! <i>Was it a monkey?</i>', |
||
233 | ICON_WARNING, BUTTON_YES|BUTTONOPT_DEFAULT, |
||
234 | BUTTON_NO, BUTTON_IGNORE|BUTTONOPT_ESCAPE) |
||
235 | |||
236 | Les constants de botó són: |
||
237 | BUTTON_NONE, BUTTON_ABORT, BUTTON_CANCEL, BUTTON_IGNORE, BUTTON_NO, |
||
238 | BUTTON_NOALL, BUTTON_OK, BUTTON_RETRY, BUTTON_YES, BUTTON_YESALL, |
||
239 | ICON_NONE, ICON_INFORMATION, ICON_WARNING, ICON_CRITICAL. |
||
240 | </translation> |
||
241 | </message> |
||
242 | <message> |
||
243 | <source>valueDialog(caption, message [,defaultvalue]) -> string |
||
244 | |||
245 | Shows the common 'Ask for string' dialog and returns its value as a string |
||
246 | Parameters: window title, text in the window and optional 'default' value. |
||
247 | |||
248 | Example: valueDialog('title', 'text in the window', 'optional') |
||
249 | </source> |
||
15354 | cbradney | 250 | <translation type="obsolete">valueDialog(caption, missatge, [,valorperdefecte]) -> string |
12918 | cbradney | 251 | |
252 | Mostra el diàleg comú "Demana per cadena" i retorna el seu valor. |
||
253 | Paràmetres: títol de finestra, text en la finestra i un valor per defecte opcional. |
||
254 | |||
255 | Exemple: valueDialog('titol', 'text en la finestra', 'opcional') |
||
256 | </translation> |
||
257 | </message> |
||
258 | <message> |
||
259 | <source>newStyleDialog() -> string |
||
260 | |||
261 | Shows 'Create new paragraph style' dialog. Function returns real |
||
262 | style name or None when user cancels the dialog. |
||
263 | </source> |
||
15354 | cbradney | 264 | <translation type="obsolete">newStyleDialog() -> cadena de text |
12918 | cbradney | 265 | |
266 | Mostra el quadre de diàleg "Crear nou estil de paràgraf'. Retorna el nom |
||
267 | real de l'esti o res quan l'usuari cancel·la el quadre de diàleg.</translation> |
||
268 | </message> |
||
269 | <message> |
||
270 | <source>newDoc(size, margins, orientation, firstPageNumber, |
||
271 | unit, facingPages, firstSideLeft) -> bool |
||
272 | |||
273 | WARNING: Obsolete procedure! Use newDocument instead. |
||
274 | |||
275 | Creates a new document and returns true if successful. The parameters have the |
||
276 | following meaning: |
||
277 | |||
278 | size = A tuple (width, height) describing the size of the document. You can |
||
279 | use predefined constants named PAPER_<paper_type> e.g. PAPER_A4 etc. |
||
280 | |||
281 | margins = A tuple (left, right, top, bottom) describing the document |
||
282 | margins |
||
283 | |||
284 | orientation = the page orientation - constants PORTRAIT, LANDSCAPE |
||
285 | |||
286 | firstPageNumer = is the number of the first page in the document used for |
||
287 | pagenumbering. While you'll usually want 1, it's useful to have higher |
||
288 | numbers if you're creating a document in several parts. |
||
289 | |||
290 | unit: this value sets the measurement units used by the document. Use a |
||
291 | predefined constant for this, one of: UNIT_INCHES, UNIT_MILLIMETERS, |
||
292 | UNIT_PICAS, UNIT_POINTS. |
||
293 | |||
294 | facingPages = FACINGPAGES, NOFACINGPAGES |
||
295 | |||
296 | firstSideLeft = FIRSTPAGELEFT, FIRSTPAGERIGHT |
||
297 | |||
298 | The values for width, height and the margins are expressed in the given unit |
||
299 | for the document. PAPER_* constants are expressed in points. If your document |
||
300 | is not in points, make sure to account for this. |
||
301 | |||
302 | example: newDoc(PAPER_A4, (10, 10, 20, 20), LANDSCAPE, 1, UNIT_POINTS, |
||
303 | FACINGPAGES, FIRSTPAGERIGHT) |
||
304 | </source> |
||
15354 | cbradney | 305 | <translation type="obsolete">newDoc(mida, marges, orientació, primerNúmeroPàgina, |
12918 | cbradney | 306 | unitats, PaginesAcarades, primeraPaginaEsquerra) -> bool |
307 | |||
308 | AVIS: Procediment obsolet! Feu servir NewDocument. |
||
309 | |||
310 | Crea un nou document i retorna cert si tot ha anat bé. Els paràmetres tenen el |
||
311 | següent significat: |
||
312 | |||
313 | mida = Una parella (amplada, alçada) que descriu la mida del document. Pots |
||
314 | fer servir constants predefinides com PAPER_<tipus de paper> ex. PAPER_A4 etc. |
||
315 | |||
316 | marges = Una agrupació (esquerra, dreta, dalt, baix) que descriu els marges |
||
317 | del document. |
||
318 | |||
319 | orientació = la orientació de la pàgina - constants PORTRAIT, LANDSCAPE |
||
320 | |||
321 | PrimerNúmeroPàgina = és el número de la primera pàgina en el document que farem |
||
322 | servir per numerar les pàgines. Encara que normalment es farà servir 1, a vegades |
||
323 | es útil poder posar números més grans si es creen documents en parts. |
||
324 | |||
325 | unitats : aquest valor estableix les unitats que el document farà servir. Cal usar una |
||
326 | constant predefinida, pot ser una de: UNIT_INCHES, UNIT_MILLIMETERS, |
||
327 | UNIT_PICAS, UNIT_POINTS. |
||
328 | |||
329 | PàginesAcarades = FACINPAGES, NOFACINPAGES |
||
330 | |||
331 | PrimeraPàginaEsquerra = FIRSTPAGELEFT, FIRSTPAGERIGHT |
||
332 | |||
333 | Els valors per l'amplada, l'alçada i els marges està expressada en les unitats donades |
||
334 | pel document. Les constants PAPER_* estan expressades en punts. Si el nostre document |
||
335 | no està en punts, cal tenir-ho en compte. |
||
336 | |||
337 | exemple: newDoc(PAPER_A4, (10, 10, 20, 20), LANDSCAPE, 1, UNIT_POINTS, |
||
338 | FACINGPAGES, FIRSTPAGERIGHT) |
||
339 | </translation> |
||
340 | </message> |
||
341 | <message> |
||
342 | <source>closeDoc() |
||
343 | |||
344 | Closes the current document without prompting to save. |
||
345 | |||
346 | May throw NoDocOpenError if there is no document to close |
||
347 | </source> |
||
15354 | cbradney | 348 | <translation type="obsolete">closeDoc() |
12918 | cbradney | 349 | |
350 | Tanca el document actual sense preguntar per desar. |
||
351 | |||
352 | Pot generar un NoDocOpenError si no hi ha cap document per tancar |
||
353 | </translation> |
||
354 | </message> |
||
355 | <message> |
||
356 | <source>haveDoc() -> bool |
||
357 | |||
358 | Returns true if there is a document open. |
||
359 | </source> |
||
15354 | cbradney | 360 | <translation type="obsolete">haveDoc() -> bool |
12918 | cbradney | 361 | |
362 | Retorna cert si hi ha un document obert. |
||
363 | </translation> |
||
364 | </message> |
||
365 | <message> |
||
366 | <source>openDoc("name") |
||
367 | |||
368 | Opens the document "name". |
||
369 | |||
370 | May raise ScribusError if the document could not be opened. |
||
371 | </source> |
||
15354 | cbradney | 372 | <translation type="obsolete">openDoc("nom") |
12918 | cbradney | 373 | |
374 | Obre el document "nom". |
||
375 | |||
376 | Pot generar ScribusError si el document no es pot obrir.</translation> |
||
377 | </message> |
||
378 | <message> |
||
379 | <source>saveDoc() |
||
380 | |||
381 | Saves the current document with its current name, returns true if successful. |
||
382 | If the document has not already been saved, this may bring up an interactive |
||
383 | save file dialog. |
||
384 | |||
385 | If the save fails, there is currently no way to tell. |
||
386 | </source> |
||
15354 | cbradney | 387 | <translation type="obsolete">saveDoc() |
12918 | cbradney | 388 | |
389 | Desa el document actual amb el seu nom actual, retorna cert si ha funcionat. |
||
390 | Si el document no ha estat gravat previament, ens sortirà un diàleg interactiu |
||
391 | per guardar. |
||
392 | |||
393 | Si no es pot desar, no hi ha cap forma de saber-ho. |
||
394 | </translation> |
||
395 | </message> |
||
396 | <message> |
||
397 | <source>saveDocAs("name") |
||
398 | |||
399 | Saves the current document under the new name "name" (which may be a full or |
||
400 | relative path). |
||
401 | |||
402 | May raise ScribusError if the save fails. |
||
403 | </source> |
||
15354 | cbradney | 404 | <translation type="obsolete">saveDocAs("nom") |
12918 | cbradney | 405 | |
406 | Desa el document actual sota el nou nom "nom" (que pot ser amb camí absolut |
||
407 | o camí relatiu). |
||
408 | |||
409 | Pot generar un ScribusError si falla el desat. |
||
410 | </translation> |
||
411 | </message> |
||
412 | <message> |
||
413 | <source>setMargins(lr, rr, tr, br) |
||
414 | |||
14474 | cbradney | 415 | Sets the margins of the document, Left(lr), Right(rr), Top(tr) and Bottom(br) |
12918 | cbradney | 416 | margins are given in the measurement units of the document - see UNIT_<type> |
417 | constants. |
||
418 | </source> |
||
15354 | cbradney | 419 | <translation type="obsolete">setMargins(lr, rr, tr, br) |
14474 | cbradney | 420 | |
421 | Posa els marges del document, Esquerra (lr), Dreta (rr), Dalt (tr) i Baix (br) |
||
422 | Els marges s'han de posar en unitats de mesura del document - veure les constants |
||
423 | UNIT_<tipus>. |
||
424 | </translation> |
||
425 | </message> |
||
426 | <message> |
||
12918 | cbradney | 427 | <source>setUnit(type) |
428 | |||
429 | Changes the measurement unit of the document. Possible values for "unit" are |
||
430 | defined as constants UNIT_<type>. |
||
431 | |||
432 | May raise ValueError if an invalid unit is passed. |
||
433 | </source> |
||
15354 | cbradney | 434 | <translation type="obsolete">setUnit(unitats) |
12918 | cbradney | 435 | |
436 | Canvia les unitats de mesura del document. Possible valors de les unitats estan |
||
437 | definides com a constants UNIT_<tipus>. |
||
438 | </translation> |
||
439 | </message> |
||
440 | <message> |
||
441 | <source>getUnit() -> integer (Scribus unit constant) |
||
442 | |||
443 | Returns the measurement units of the document. The returned value will be one |
||
444 | of the UNIT_* constants: |
||
445 | UNIT_INCHES, UNIT_MILLIMETERS, UNIT_PICAS, UNIT_POINTS. |
||
446 | </source> |
||
15354 | cbradney | 447 | <translation type="obsolete">getUnit() -> integer (unitats de constants Scribus) |
12918 | cbradney | 448 | |
449 | Retorna les unitats des mesura del document. El valor retornat serà una de |
||
450 | les constants UNIT_*: |
||
451 | UNIT_INCHES, UNIT_MILLIMETERS, UNIT_PICAS, UNIT_POINTS. |
||
452 | </translation> |
||
453 | </message> |
||
454 | <message> |
||
455 | <source>loadStylesFromFile("filename") |
||
456 | |||
457 | Loads paragraph styles from the Scribus document at "filename" into the |
||
458 | current document. |
||
459 | </source> |
||
15354 | cbradney | 460 | <translation type="obsolete">loadStylesFromFile("nomfitxer") |
12918 | cbradney | 461 | |
462 | Carregar els estils de paràgraf des d'un document Scribus especificat a "nomfitxer" |
||
463 | en el document actual. |
||
464 | </translation> |
||
465 | </message> |
||
466 | <message> |
||
467 | <source>setDocType(facingPages, firstPageLeft) |
||
468 | |||
469 | Sets the document type. To get facing pages set the first parameter to |
||
470 | FACINGPAGES, to switch facingPages off use NOFACINGPAGES instead. If you want |
||
471 | to be the first page a left side set the second parameter to FIRSTPAGELEFT, for |
||
472 | a right page use FIRSTPAGERIGHT. |
||
473 | </source> |
||
15354 | cbradney | 474 | <translation type="obsolete">setDocType(facingPages, firstPageLeft) |
12918 | cbradney | 475 | |
476 | Estableix el tipus de document. Per tenir pàgines acarades cal establir primer |
||
477 | paràmetre a FACINPAGES, i per no tenir-ne NOFACINPAGES. Si vols que la primera |
||
478 | pàgina sigui a l'esquerra cal posar al segon paràmetre FIRSTPAGELEFT, i perquè |
||
479 | sigui la dreta FIRSTPAGERIGHT. |
||
480 | </translation> |
||
481 | </message> |
||
482 | <message> |
||
483 | <source>closeMasterPage() |
||
484 | |||
485 | Closes the currently active master page, if any, and returns editing |
||
486 | to normal. Begin editing with editMasterPage(). |
||
487 | </source> |
||
15354 | cbradney | 488 | <translation type="obsolete">closeMasterPage() |
12918 | cbradney | 489 | |
490 | Tanca la pàgina mestra activa. Si n'hi ha alguna, i retorna la edició |
||
491 | a normal. Sempre comença per editMasterPage(). |
||
492 | </translation> |
||
493 | </message> |
||
494 | <message> |
||
495 | <source>masterPageNames() |
||
496 | |||
497 | Returns a list of the names of all master pages in the document. |
||
498 | </source> |
||
15354 | cbradney | 499 | <translation type="obsolete">masterPageNames() |
12918 | cbradney | 500 | |
501 | Retorna una llista de noms de totes les pàgines mestres del document. |
||
502 | </translation> |
||
503 | </message> |
||
504 | <message> |
||
505 | <source>editMasterPage(pageName) |
||
506 | |||
507 | Enables master page editing and opens the named master page |
||
508 | for editing. Finish editing with closeMasterPage(). |
||
509 | </source> |
||
15354 | cbradney | 510 | <translation type="obsolete">editMasterPage(NomPagina) |
12918 | cbradney | 511 | |
512 | Activa la edició de la pàgina mestra i la obre per edició. |
||
513 | Acaba sempre amb closeMasterPage(). |
||
514 | </translation> |
||
515 | </message> |
||
516 | <message> |
||
517 | <source>createMasterPage(pageName) |
||
518 | |||
519 | Creates a new master page named pageName and opens it for |
||
520 | editing. |
||
521 | </source> |
||
15354 | cbradney | 522 | <translation type="obsolete">createMasterPage(NomPagina) |
12918 | cbradney | 523 | |
524 | Crea una nova pàgina mestra amb el nom especificat i la obre |
||
525 | per edició. |
||
526 | </translation> |
||
527 | </message> |
||
528 | <message> |
||
529 | <source>deleteMasterPage(pageName) |
||
530 | |||
531 | Delete the named master page. |
||
532 | </source> |
||
15354 | cbradney | 533 | <translation type="obsolete">deleteMasterPage(NomPagina) |
12918 | cbradney | 534 | |
535 | Esborra la pàgina mestra. |
||
536 | </translation> |
||
537 | </message> |
||
538 | <message> |
||
539 | <source>getFillColor(["name"]) -> string |
||
540 | |||
541 | Returns the name of the fill color of the object "name". |
||
542 | If "name" is not given the currently selected item is used. |
||
543 | </source> |
||
15354 | cbradney | 544 | <translation type="obsolete">getFillColor(["nom"]) -> string |
12918 | cbradney | 545 | |
546 | Retorna el nom del color de l'objecte "nom". |
||
547 | Si no es dóna cap "nom", es fa servir l'ítem sel·leccionat. |
||
548 | </translation> |
||
549 | </message> |
||
550 | <message> |
||
551 | <source>getLineColor(["name"]) -> string |
||
552 | |||
553 | Returns the name of the line color of the object "name". |
||
554 | If "name" is not given the currently selected item is used. |
||
555 | </source> |
||
15354 | cbradney | 556 | <translation type="obsolete">getLineColor(["nom"]) -> string |
12918 | cbradney | 557 | |
558 | Retorna el nom del color de línia de l'objecte "nom". |
||
559 | Si no especifiquem "nom" es fa servir l'ítem seleccionat. |
||
560 | </translation> |
||
561 | </message> |
||
562 | <message> |
||
563 | <source>getLineWidth(["name"]) -> integer |
||
564 | |||
565 | Returns the line width of the object "name". If "name" |
||
566 | is not given the currently selected Item is used. |
||
567 | </source> |
||
15354 | cbradney | 568 | <translation type="obsolete">getLineWidth(["nom"]) -> integer |
12918 | cbradney | 569 | |
570 | Retorna l'amplada de la línia de l'objecte "nom". Si no |
||
571 | especifiquem "nom" es fa servir l'ítem seleccionat. |
||
572 | </translation> |
||
573 | </message> |
||
574 | <message> |
||
575 | <source>getLineShade(["name"]) -> integer |
||
576 | |||
577 | Returns the shading value of the line color of the object "name". |
||
578 | If "name" is not given the currently selected item is used. |
||
579 | </source> |
||
15354 | cbradney | 580 | <translation type="obsolete">getLineShade(["nom"]) -> integer |
12918 | cbradney | 581 | |
582 | Retorna el valor de la intensitat del color de la línia de l'objecte "nom". |
||
583 | Si no especifiquem "nom" es fa servir l'ítem seleccionat. |
||
584 | </translation> |
||
585 | </message> |
||
586 | <message> |
||
587 | <source>getLineEnd(["name"]) -> integer (see constants) |
||
588 | |||
589 | Returns the line cap style of the object "name". If "name" is not given the |
||
590 | currently selected item is used. The cap types are: |
||
591 | CAP_FLAT, CAP_ROUND, CAP_SQUARE |
||
592 | </source> |
||
15354 | cbradney | 593 | <translation type="obsolete">getLineEnd(["nom"]) -> integer (mirar constants) |
12918 | cbradney | 594 | |
595 | Retorna el tap de línia de l'objecte "nom". Si no especifiquem "nom" es fa |
||
596 | servir l'ítem seleccionat. Els tipus de tap són: |
||
597 | CAP_FLAT, CAP_ROUND, CAP_SQUARE |
||
598 | </translation> |
||
599 | </message> |
||
600 | <message> |
||
601 | <source>getLineStyle(["name"]) -> integer (see constants) |
||
602 | |||
603 | Returns the line style of the object "name". If "name" is not given the |
||
604 | currently selected item is used. Line style constants are: |
||
605 | LINE_DASH, LINE_DASHDOT, LINE_DASHDOTDOT, LINE_DOT, LINE_SOLID |
||
606 | </source> |
||
15354 | cbradney | 607 | <translation type="obsolete">getLineStyle(["nom"]) -> integer (mirar constants) |
12918 | cbradney | 608 | |
609 | Retorna l'estil de línia de l'objecte "nom". Si no especifiquem "nom" es |
||
610 | fa servir l'ítem seleccionat.. Les constants de línia són: |
||
611 | LINE_DASH, LINE_DASHDOT, LINE_DASHDOTDOT, LINE_DOT, LINE_SOLID |
||
612 | </translation> |
||
613 | </message> |
||
614 | <message> |
||
615 | <source>getFillShade(["name"]) -> integer |
||
616 | |||
617 | Returns the shading value of the fill color of the object "name". |
||
618 | If "name" is not given the currently selected item is used. |
||
619 | </source> |
||
15354 | cbradney | 620 | <translation type="obsolete">getFillShade(["nom"]) -> integer |
12918 | cbradney | 621 | |
622 | Retorna el valor de la intensitat del color d'emplenament de l'objecte "nom". |
||
623 | Si no especifiquem "nom" es fa servir l'ítem seleccionat. |
||
624 | </translation> |
||
625 | </message> |
||
626 | <message> |
||
627 | <source>getCornerRadius(["name"]) -> integer |
||
628 | |||
629 | Returns the corner radius of the object "name". The radius is |
||
630 | expressed in points. If "name" is not given the currently |
||
631 | selected item is used. |
||
632 | </source> |
||
15354 | cbradney | 633 | <translation type="obsolete">getCornerRadius(["nom"]) -> integer |
12918 | cbradney | 634 | |
635 | Retorna el radi d'arrodoniment de l'objecte "nom". El radi està |
||
636 | expressat en punts. Si no especifiquem "nom" es fa servir |
||
637 | l'ítem seleccionat. |
||
638 | </translation> |
||
639 | </message> |
||
640 | <message> |
||
641 | <source>getImageScale(["name"]) -> (x,y) |
||
642 | |||
643 | Returns a (x, y) tuple containing the scaling values of the image frame |
||
644 | "name". If "name" is not given the currently selected item is used. |
||
645 | </source> |
||
15354 | cbradney | 646 | <translation type="obsolete">getImageScale(["name"]) -> (x,y) |
12918 | cbradney | 647 | |
648 | Retorna una parella (x,y) contenint els valors d'escalat de la imatge |
||
649 | "nom". Si no especifiquem "nom" es fa servir l'ítem seleccionat. |
||
650 | </translation> |
||
651 | </message> |
||
652 | <message> |
||
653 | <source>getImageName(["name"]) -> string |
||
654 | |||
655 | Returns the filename for the image in the image frame. If "name" is not |
||
656 | given the currently selected item is used. |
||
657 | </source> |
||
15354 | cbradney | 658 | <translation type="obsolete">getImageName(["nom"]) -> string |
12918 | cbradney | 659 | |
660 | Retorna el nom del fitxer de la imatge que tenim. Si no especifiquem "nom" |
||
661 | es fa servir l'ítem seleccionat.</translation> |
||
662 | </message> |
||
663 | <message> |
||
664 | <source>getPosition(["name"]) -> (x,y) |
||
665 | |||
666 | Returns a (x, y) tuple with the position of the object "name". |
||
667 | If "name" is not given the currently selected item is used. |
||
668 | The position is expressed in the actual measurement unit of the document |
||
669 | - see UNIT_<type> for reference. |
||
670 | </source> |
||
15354 | cbradney | 671 | <translation type="obsolete">getPosition(["nom"]) -> (x,y) |
12918 | cbradney | 672 | |
673 | Retorna una parella (x,y) amb la posició de l'objecte "nom". |
||
674 | Si no especifiquem "nom" es fa servir l'ítem seleccionat. |
||
675 | La posició està expressada en les unitats de mesura del document |
||
676 | - mireu UNIT_<tipus> per referència. |
||
677 | </translation> |
||
678 | </message> |
||
679 | <message> |
||
680 | <source>getSize(["name"]) -> (width,height) |
||
681 | |||
682 | Returns a (width, height) tuple with the size of the object "name". |
||
683 | If "name" is not given the currently selected item is used. The size is |
||
684 | expressed in the current measurement unit of the document - see UNIT_<type> |
||
685 | for reference. |
||
686 | </source> |
||
15354 | cbradney | 687 | <translation type="obsolete">getSize(["nom"]) -> (amplada,alçada) |
12918 | cbradney | 688 | |
689 | Retorna un parell (amplada, alçada) amb la mida de l'objecte "nom". |
||
690 | Si no especifiquem "nom" es fa servir l'ítem seleccionat. La mida està |
||
691 | expressada en les unitats de mesura del document - mireu UNIT_<tipus> |
||
692 | per referència.</translation> |
||
693 | </message> |
||
694 | <message> |
||
695 | <source>getRotation(["name"]) -> integer |
||
696 | |||
697 | Returns the rotation of the object "name". The value is expressed in degrees, |
||
698 | and clockwise is positive. If "name" is not given the currently selected item |
||
699 | is used. |
||
700 | </source> |
||
15354 | cbradney | 701 | <translation type="obsolete">getRotation(["name"]) -> integer |
12918 | cbradney | 702 | |
703 | Retorna la rotació de l'objecte "nom". El valor està expressat en graus, |
||
704 | en sentit horari és positiu. Si no especifiquem "nom" es fa servir l'ítem |
||
705 | seleccionat. |
||
706 | </translation> |
||
707 | </message> |
||
708 | <message> |
||
709 | <source>getAllObjects() -> list |
||
710 | |||
711 | Returns a list containing the names of all objects on the current page. |
||
712 | </source> |
||
15354 | cbradney | 713 | <translation type="obsolete">getAllObjects() -> list |
12918 | cbradney | 714 | |
715 | Retorna una llista que conté els noms de tots els objectes de la pàgina actual. |
||
716 | </translation> |
||
717 | </message> |
||
718 | <message> |
||
719 | <source>getPropertyCType(object, property, includesuper=True) |
||
720 | |||
721 | Returns the name of the C type of `property' of `object'. See getProperty() |
||
722 | for details of arguments. |
||
723 | |||
724 | If `includesuper' is true, search inherited properties too. |
||
725 | </source> |
||
15354 | cbradney | 726 | <translation type="obsolete">getPropertyCType(objecte, propietat, includesuper=True) |
12918 | cbradney | 727 | |
728 | Retorna el nom del tipus C de la propietat 'propietat' de l'objecte. Mira getProperty() |
||
729 | per més detalls sobre els arguments. |
||
730 | |||
731 | Si `includesuper' és cert, busca també en les propietats heretades.</translation> |
||
732 | </message> |
||
733 | <message> |
||
734 | <source>getPropertyNames(object, includesuper=True) |
||
735 | |||
736 | Return a list of property names supported by `object'. |
||
737 | If `includesuper' is true, return properties supported |
||
738 | by parent classes as well. |
||
739 | </source> |
||
15354 | cbradney | 740 | <translation type="obsolete">getPropertyNames(objecte, includesuper=True) |
12918 | cbradney | 741 | |
742 | Retorna la llista de propietats de l'objecte 'objecte'. |
||
743 | Si `includesuper' és cert, també retorna les propietats |
||
744 | heretades de les classes pare.</translation> |
||
745 | </message> |
||
746 | <message> |
||
747 | <source>getProperty(object, property) |
||
748 | |||
749 | Return the value of the property `property' of the passed `object'. |
||
750 | |||
751 | The `object' argument may be a string, in which case the named PageItem |
||
752 | is searched for. It may also be a PyCObject, which may point to any |
||
753 | C++ QObject instance. |
||
754 | |||
755 | The `property' argument must be a string, and is the name of the property |
||
756 | to look up on `object'. |
||
757 | |||
758 | The return value varies depending on the type of the property. |
||
759 | </source> |
||
15354 | cbradney | 760 | <translation type="obsolete">getProperty(objecte, propietat) |
12918 | cbradney | 761 | |
762 | Retorna el valor de la propietat especificada de l'objecte 'objecte'. |
||
763 | |||
764 | L'argument 'objecte' pot ser una cadena de caràcters, i en aquest cas es busca |
||
765 | els PageItem. També pot ser un objecte PyCObject, que pot apuntar a qualsevol |
||
766 | instància del QObjecte de C++. |
||
767 | |||
768 | L'argument 'propietat' ha de ser una cadena de caràcters, i és el nom de la propietat |
||
769 | que buscarem en l''objecte'. |
||
770 | |||
771 | Els valors de retorn varien en funció del tipus de la propietat.</translation> |
||
772 | </message> |
||
773 | <message> |
||
774 | <source>setProperty(object, property, value) |
||
775 | |||
776 | Set `property' of `object' to `value'. If `value' cannot be converted to a type |
||
777 | compatible with the type of `property', an exception is raised. An exception may |
||
778 | also be raised if the underlying setter fails. |
||
779 | |||
780 | See getProperty() for more information. |
||
781 | </source> |
||
15354 | cbradney | 782 | <translation type="obsolete">setProperty(objecte, propietat, valor) |
12918 | cbradney | 783 | |
784 | Posa el valor 'valor' a la 'propietat' de l''objecte'. Si 'valor' no es pot convertir al tipus |
||
785 | compatible amb la 'propietat', es generarà una excepció. També es pot generar una |
||
786 | excepció si falla l'assignació. |
||
787 | |||
788 | Mira getProperty() per obtenir més informació.</translation> |
||
789 | </message> |
||
790 | <message> |
||
791 | <source>moveObject(dx, dy [, "name"]) |
||
792 | |||
793 | Moves the object "name" by dx and dy relative to its current position. The |
||
794 | distances are expressed in the current measurement unit of the document (see |
||
795 | UNIT constants). If "name" is not given the currently selected item is used. |
||
796 | If the object "name" belongs to a group, the whole group is moved. |
||
797 | </source> |
||
15354 | cbradney | 798 | <translation type="obsolete">moveObject(dx, dy [,"nom"]) |
12918 | cbradney | 799 | |
800 | Mou l'objecte "nom" una distància dx i dx respecte la posició actual. Les |
||
801 | distàncies estan expressades en les unitats actuals del document (mireu |
||
802 | unitats). Si no es dóna cap "nom", es fa servir l'ítem sel·leccionat. |
||
803 | Si l'objecte "nom" pertany a un grup, es mou tot el grup. |
||
804 | </translation> |
||
805 | </message> |
||
806 | <message> |
||
807 | <source>moveObjectAbs(x, y [, "name"]) |
||
808 | |||
809 | Moves the object "name" to a new location. The coordinates are expressed in |
||
810 | the current measurement unit of the document (see UNIT constants). If "name" |
||
811 | is not given the currently selected item is used. If the object "name" |
||
812 | belongs to a group, the whole group is moved. |
||
813 | </source> |
||
15354 | cbradney | 814 | <translation type="obsolete">moveObjectAbs(x, y [, "nom"]) |
12918 | cbradney | 815 | |
816 | Mou l'objecte "nom" a una nova posició. Les coordenades estan expressades en |
||
817 | les unitats de mesura del document (veure constants UNIT). Si no especifiquem "nom" |
||
818 | es fa servir l'ítem seleccionat. Si l'objecte "nom" pertany a un grup, |
||
819 | es mou tot el grup. |
||
820 | </translation> |
||
821 | </message> |
||
822 | <message> |
||
823 | <source>rotateObjectAbs(rot [, "name"]) |
||
824 | |||
825 | Sets the rotation of the object "name" to "rot". Positive values |
||
826 | mean counter clockwise rotation. If "name" is not given the currently |
||
827 | selected item is used. |
||
828 | </source> |
||
15354 | cbradney | 829 | <translation type="obsolete">rotateObjectAbs(rot [,"nom"]) |
12918 | cbradney | 830 | |
831 | Estableix la rotació de l'objecte "nom" a "rot". Els valors positius |
||
832 | signifiquen rotació horaria. Si no especifiquem "nom" es fa servir |
||
833 | l'ítem seleccionat. |
||
834 | </translation> |
||
835 | </message> |
||
836 | <message> |
||
837 | <source>sizeObject(width, height [, "name"]) |
||
838 | |||
839 | Resizes the object "name" to the given width and height. If "name" |
||
840 | is not given the currently selected item is used. |
||
841 | </source> |
||
15354 | cbradney | 842 | <translation type="obsolete">sizeObject(amplada, alçada [, "nom"]) |
12918 | cbradney | 843 | |
844 | Canvia la mida de l'objecte "nom" a la mida especificada. Si no |
||
845 | especifiquem "nom" es fa servir l'ítem seleccionat. |
||
846 | </translation> |
||
847 | </message> |
||
848 | <message> |
||
849 | <source>getSelectedObject([nr]) -> string |
||
850 | |||
851 | Returns the name of the selected object. "nr" if given indicates the number |
||
852 | of the selected object, e.g. 0 means the first selected object, 1 means the |
||
853 | second selected Object and so on. |
||
854 | </source> |
||
15354 | cbradney | 855 | <translation type="obsolete">getSelectedObject([nr]) -> string |
12918 | cbradney | 856 | |
857 | Retorna el nom de l'objecte seleccionat. "nr" si es dóna especifica el número |
||
858 | de l'objecte seleccionat, ex. 0 significa el primer objecte seleccionat, 1 el |
||
859 | segon i així. |
||
860 | </translation> |
||
861 | </message> |
||
862 | <message> |
||
863 | <source>selectionCount() -> integer |
||
864 | |||
865 | Returns the number of selected objects. |
||
866 | </source> |
||
15354 | cbradney | 867 | <translation type="obsolete">seleccionCount() -> integer |
12918 | cbradney | 868 | |
869 | Retorna el número d'objectes seleccionats. |
||
870 | </translation> |
||
871 | </message> |
||
872 | <message> |
||
873 | <source>selectObject("name") |
||
874 | |||
875 | Selects the object with the given "name". |
||
876 | </source> |
||
15354 | cbradney | 877 | <translation type="obsolete">selectObject("nom") |
12918 | cbradney | 878 | |
879 | Selecciona l'objecte amb el nom "nom". |
||
880 | </translation> |
||
881 | </message> |
||
882 | <message> |
||
883 | <source>deselectAll() |
||
884 | |||
885 | Deselects all objects in the whole document. |
||
886 | </source> |
||
15354 | cbradney | 887 | <translation type="obsolete">deselectAll() |
12918 | cbradney | 888 | |
889 | Deselecciona tots els objectes de tot el document. |
||
890 | </translation> |
||
891 | </message> |
||
892 | <message> |
||
893 | <source>groupObjects(list) |
||
894 | |||
895 | Groups the objects named in "list" together. "list" must contain the names |
||
896 | of the objects to be grouped. If "list" is not given the currently selected |
||
897 | items are used. |
||
898 | </source> |
||
14747 | cbradney | 899 | <translation type="obsolete">groupObjects(llista) |
12918 | cbradney | 900 | |
901 | Agrupa els objectes que especifiquem a la llista "llista". La llista ha de contenir |
||
902 | els noms dels objectes a agrupar. Si no s'especifica llista es fan servir els |
||
903 | objectes que estiguin seleccionats. |
||
904 | </translation> |
||
905 | </message> |
||
906 | <message> |
||
907 | <source>unGroupObjects("name") |
||
908 | |||
909 | Destructs the group the object "name" belongs to.If "name" is not given the currently selected item is used.</source> |
||
15354 | cbradney | 910 | <translation type="obsolete">unGroupObjects("nom") |
12918 | cbradney | 911 | |
912 | Destrueix el grup al qual pertany l'objecte "nom". Si no especifiquem "nom" es fa servir l'ítem seleccionat.</translation> |
||
913 | </message> |
||
914 | <message> |
||
915 | <source>scaleGroup(factor [,"name"]) |
||
916 | |||
917 | Scales the group the object "name" belongs to. Values greater than 1 enlarge |
||
918 | the group, values smaller than 1 make the group smaller e.g a value of 0.5 |
||
919 | scales the group to 50 % of its original size, a value of 1.5 scales the group |
||
920 | to 150 % of its original size. The value for "factor" must be greater than |
||
921 | 0. If "name" is not given the currently selected item is used. |
||
922 | |||
923 | May raise ValueError if an invalid scale factor is passed. |
||
924 | </source> |
||
15354 | cbradney | 925 | <translation type="obsolete">scaleGroup(factor [,"nom"]) |
12918 | cbradney | 926 | |
927 | Escala el grup al qual pertany l'objecte "nom". Valors més grans que 1 incrementen |
||
928 | el grup, i valors més petits que 1 decrementen el grup. ex. Un valor de 0.5 escala |
||
929 | el grup al 50% del valor original, un valor de 1.5 escala el grup a un |
||
930 | 150% del valor original. El valor de "factor" ha de ser més gran que |
||
931 | 0. Si no especifiquem "nom" es fa servir l'ítem seleccionat. |
||
932 | |||
933 | Pot provocar un ValueError si s'especifica un factor invàlid. |
||
934 | </translation> |
||
935 | </message> |
||
936 | <message> |
||
937 | <source>loadImage("filename" [, "name"]) |
||
938 | |||
939 | Loads the picture "picture" into the image frame "name". If "name" is |
||
940 | not given the currently selected item is used. |
||
941 | |||
942 | May raise WrongFrameTypeError if the target frame is not an image frame |
||
943 | </source> |
||
15354 | cbradney | 944 | <translation type="obsolete">loadImage("nomFitxer", [,"nom"]) |
12918 | cbradney | 945 | |
946 | Carrega la imatge "nomFitxer" en el marc d'imatge "nom". Si no especifiquem |
||
947 | "nom" es fa servir l'ítem seleccionat. |
||
948 | |||
949 | Pot provocar WrongFrameTypeError si el marc no és d'imatge |
||
950 | </translation> |
||
951 | </message> |
||
952 | <message> |
||
953 | <source>scaleImage(x, y [, "name"]) |
||
954 | |||
955 | Sets the scaling factors of the picture in the image frame "name". |
||
956 | If "name" is not given the currently selected item is used. A number of 1 |
||
957 | means 100 %. |
||
958 | |||
959 | May raise WrongFrameTypeError if the target frame is not an image frame |
||
960 | </source> |
||
14474 | cbradney | 961 | <translation type="obsolete">scaleImage(x, y [, "nom"]) |
12918 | cbradney | 962 | |
963 | Estableix els factors d'escalat de la imatge del marc d'imatge "nom". |
||
964 | Si no especifiquem "nom" es fa servir l'ítem seleccionat. Un valor de 1 |
||
965 | significa 100 %. |
||
966 | |||
967 | Pot provocar WrongFrameTypeError si el marc no és d'imatge |
||
968 | </translation> |
||
969 | </message> |
||
970 | <message> |
||
971 | <source>lockObject(["name"]) -> bool |
||
972 | |||
973 | Locks the object "name" if it's unlocked or unlock it if it's locked. |
||
974 | If "name" is not given the currently selected item is used. Returns true |
||
975 | if locked. |
||
976 | </source> |
||
15354 | cbradney | 977 | <translation type="obsolete">lockObject(["nom"]) -> bool |
12918 | cbradney | 978 | |
979 | Bloqueja l'objecte "nom" si està desbloquejat o el desbloqueja si està bloquejat. |
||
980 | Si no especifiquem "nom" es fa servir l'ítem seleccionat. Retorna cert |
||
981 | si bloqueja. |
||
982 | </translation> |
||
983 | </message> |
||
984 | <message> |
||
985 | <source>isLocked(["name"]) -> bool |
||
986 | |||
987 | Returns true if is the object "name" locked. If "name" is not given the |
||
988 | currently selected item is used. |
||
989 | </source> |
||
15354 | cbradney | 990 | <translation type="obsolete">isLocked(["nom"]) -> bool |
12918 | cbradney | 991 | |
992 | Retorna cert si l'objecte "nom" està bloquejat. Si no especifiquem "nom" es |
||
993 | fa servir l'ítem seleccionat. |
||
994 | </translation> |
||
995 | </message> |
||
996 | <message> |
||
997 | <source>setScaleImageToFrame(scaletoframe, proportional=None, name=<selection>) |
||
998 | |||
999 | Sets the scale to frame on the selected or specified image frame to `scaletoframe'. |
||
1000 | If `proportional' is specified, set fixed aspect ratio scaling to `proportional'. |
||
1001 | Both `scaletoframe' and `proportional' are boolean. |
||
1002 | |||
1003 | May raise WrongFrameTypeError. |
||
1004 | </source> |
||
15354 | cbradney | 1005 | <translation type="obsolete">setScaleImageToFrame(escalaamarc, proporcional=None, nom=<selection>) |
12918 | cbradney | 1006 | |
1007 | Estableix la escala del marc especificat o seleccionat a 'escalaamarc'. |
||
1008 | Si hi posem valor a 'proporcional', estableix l'aspecte de representació a 'proporcional'. |
||
1009 | Ambdós 'escalaamarc' i 'proporcional' són booleans. |
||
1010 | |||
1011 | Pot provocar WrongFrameTypeError. |
||
1012 | </translation> |
||
1013 | </message> |
||
1014 | <message> |
||
1015 | <source>setRedraw(bool) |
||
1016 | |||
1017 | Disables page redraw when bool = False, otherwise redrawing is enabled. |
||
1018 | This change will persist even after the script exits, so make sure to call |
||
1019 | setRedraw(True) in a finally: clause at the top level of your script. |
||
1020 | </source> |
||
15354 | cbradney | 1021 | <translation type="obsolete">setRedraw(bool) |
12918 | cbradney | 1022 | |
1023 | Desactiva el repintat de la pàgina quan bool=fals, altrament està activat. |
||
1024 | Aquest canvi continuarà fins i tot quan acabi l'execució de la seqüència, per tant cal estar |
||
1025 | segur d'acabar amb setRedraw(True): clausula a nivell alt de la teva seqüència. |
||
1026 | </translation> |
||
1027 | </message> |
||
1028 | <message> |
||
1029 | <source>getFontNames() -> list |
||
1030 | |||
1031 | Returns a list with the names of all available fonts. |
||
1032 | </source> |
||
15354 | cbradney | 1033 | <translation type="obsolete">getFontNames() -> llista |
12918 | cbradney | 1034 | |
1035 | Retorna una llista amb els noms de totes les fonts. |
||
1036 | </translation> |
||
1037 | </message> |
||
1038 | <message> |
||
1039 | <source>getXFontNames() -> list of tuples |
||
1040 | |||
1041 | Returns a larger font info. It's a list of the tuples with: |
||
1042 | [ (Scribus name, Family, Real name, subset (1|0), embed PS (1|0), font file), (...), ... ] |
||
1043 | </source> |
||
15354 | cbradney | 1044 | <translation type="obsolete">getXFontNames() -> llista de tuples |
12918 | cbradney | 1045 | |
1046 | Retorna molta informació de font. És una llista de tuples amb: |
||
1047 | [ (Nom Scribus, Familia, Nom Real, subconjunt (1|0), embed PS (1|0), fitxer de font), (...), ...] |
||
1048 | </translation> |
||
1049 | </message> |
||
1050 | <message> |
||
1051 | <source>renderFont("name", "filename", "sample", size, format="PPM") -> bool |
||
1052 | |||
1053 | Creates an image preview of font "name" with given text "sample" and size. |
||
1054 | If "filename" is not "", image is saved into "filename". Otherwise |
||
1055 | image data is returned as a string. The optional "format" argument |
||
1056 | specifies the image format to generate, and supports any format allowed |
||
1057 | by QPixmap.save(). Common formats are PPM, JPEG, PNG and XPM. |
||
1058 | |||
1059 | May raise NotFoundError if the specified font can't be found. |
||
1060 | May raise ValueError if an empty sample or filename is passed. |
||
1061 | </source> |
||
15354 | cbradney | 1062 | <translation type="obsolete">renderFont("nom", "fitxer", "mostra", size, format="PPM") -> bool |
12918 | cbradney | 1063 | |
1064 | Crea una vista prèvia de la font "nom" amb el text "mostra" a la mida especificada. |
||
1065 | Si el nom no és "", la imatge es guarda a "nom". I si no ho és es retornen les |
||
1066 | dades de la imatge com una cadena. L'argument opcional "format" |
||
1067 | especifica el format de la imatge a generar, i suporta tots els formats permesos |
||
1068 | per QPixmap.save(). Els formats més comuns són PPM, JPEG, PNG and XPM. |
||
1069 | |||
1070 | Pot generar NotFoundError si la capa no es pot trobar. |
||
1071 | Pot generar ValueError si el nom de la capa no és acceptable. |
||
1072 | </translation> |
||
1073 | </message> |
||
1074 | <message> |
||
1075 | <source>getLayers() -> list |
||
1076 | |||
1077 | Returns a list with the names of all defined layers. |
||
1078 | </source> |
||
15354 | cbradney | 1079 | <translation type="obsolete">getLayers() -> llista |
12918 | cbradney | 1080 | |
1081 | Retorna una llista amb els noms de totes les capes. |
||
1082 | </translation> |
||
1083 | </message> |
||
1084 | <message> |
||
1085 | <source>setActiveLayer("name") |
||
1086 | |||
1087 | Sets the active layer to the layer named "name". |
||
1088 | |||
1089 | May raise NotFoundError if the layer can't be found. |
||
1090 | May raise ValueError if the layer name isn't acceptable. |
||
1091 | </source> |
||
15354 | cbradney | 1092 | <translation type="obsolete">setActiveLayer("nom") |
12918 | cbradney | 1093 | |
1094 | Canvia la capa activa a una capa anomenada "nom". |
||
1095 | |||
1096 | Pot generar NotFoundError si la capa no es pot trobar. |
||
1097 | Pot generar ValueError si la capa nom no és acceptable. |
||
1098 | </translation> |
||
1099 | </message> |
||
1100 | <message> |
||
1101 | <source>getActiveLayer() -> string |
||
1102 | |||
1103 | Returns the name of the current active layer. |
||
1104 | </source> |
||
15354 | cbradney | 1105 | <translation type="obsolete">getActiveLayer() -> string |
12918 | cbradney | 1106 | |
1107 | Retorna el nom de la capa activa. |
||
1108 | </translation> |
||
1109 | </message> |
||
1110 | <message> |
||
1111 | <source>sentToLayer("layer" [, "name"]) |
||
1112 | |||
1113 | Sends the object "name" to the layer "layer". The layer must exist. |
||
1114 | If "name" is not given the currently selected item is used. |
||
1115 | |||
1116 | May raise NotFoundError if the layer can't be found. |
||
1117 | May raise ValueError if the layer name isn't acceptable. |
||
1118 | </source> |
||
15354 | cbradney | 1119 | <translation type="obsolete">sendToLayer("capa" [, "nom"]) |
12918 | cbradney | 1120 | |
1121 | Envia l'objecte "nom" a la capa "capa". La capa ha d'existir. |
||
1122 | Si no especifiquem "nom" es fa servir l'ítem seleccionat. |
||
1123 | |||
1124 | Pot provocar NotFoundError si la capa no es pot trobar. |
||
1125 | Pot provocar ValueError si el nom no és acceptable. |
||
1126 | |||
1127 | |||
1128 | </translation> |
||
1129 | </message> |
||
1130 | <message> |
||
1131 | <source>setLayerVisible("layer", visible) |
||
1132 | |||
1133 | Sets the layer "layer" to be visible or not. If is the visible set to false |
||
1134 | the layer is invisible. |
||
1135 | |||
1136 | May raise NotFoundError if the layer can't be found. |
||
1137 | May raise ValueError if the layer name isn't acceptable. |
||
1138 | </source> |
||
15354 | cbradney | 1139 | <translation type="obsolete">setLayerVisible("capa", visible) |
12918 | cbradney | 1140 | |
1141 | Estableix la capa especificada a visible o no. Si visible està false |
||
1142 | la capa és invisible. |
||
1143 | |||
1144 | Pot generar NotFoundError si la capa no es pot trobar. |
||
1145 | Pot generar ValueError si el nom de capa no és acceptable. |
||
1146 | </translation> |
||
1147 | </message> |
||
1148 | <message> |
||
1149 | <source>isLayerPrintable("layer") -> bool |
||
1150 | |||
1151 | Returns whether the layer "layer" is printable or not, a value of True means |
||
1152 | that the layer "layer" can be printed, a value of False means that printing |
||
1153 | the layer "layer" is disabled. |
||
1154 | |||
1155 | May raise NotFoundError if the layer can't be found. |
||
1156 | May raise ValueError if the layer name isn't acceptable. |
||
1157 | </source> |
||
15354 | cbradney | 1158 | <translation type="obsolete">isLayerPrintable("capa") ->bool |
12918 | cbradney | 1159 | |
1160 | Retorna si la capa "capa" és visible o no, un valor de cert significa |
||
1161 | que la capa "capa" està activada, un valor de fals significa que la capa |
||
1162 | "capa" està desactivada. |
||
1163 | |||
1164 | Pot generar NotFoundError si la capa no es pot trobar. |
||
1165 | Pot generar ValueError si el nom de la capa no és acceptable. |
||
1166 | </translation> |
||
1167 | </message> |
||
1168 | <message> |
||
1169 | <source>deleteLayer("layer") |
||
1170 | |||
1171 | Deletes the layer with the name "layer". Nothing happens if the layer doesn't |
||
1172 | exists or if it's the only layer in the document. |
||
1173 | |||
1174 | May raise NotFoundError if the layer can't be found. |
||
1175 | May raise ValueError if the layer name isn't acceptable. |
||
1176 | </source> |
||
15354 | cbradney | 1177 | <translation type="obsolete">deleteLayer("capa") |
12918 | cbradney | 1178 | |
1179 | Esborra la capa amb el nom "capa". Si la capa no existeix o és la única del |
||
1180 | document no passa res. |
||
1181 | |||
1182 | Pot generar NotFoundError si la capa no es pot trobar. |
||
1183 | Pot generar ValueError si el nom de capa no és acceptable. |
||
1184 | </translation> |
||
1185 | </message> |
||
1186 | <message> |
||
1187 | <source>createLayer(layer) |
||
1188 | |||
1189 | Creates a new layer with the name "name". |
||
1190 | |||
1191 | May raise ValueError if the layer name isn't acceptable. |
||
1192 | </source> |
||
15354 | cbradney | 1193 | <translation type="obsolete">createLayer(capa) |
12918 | cbradney | 1194 | |
1195 | Crea una nova capa amb el nom "capa". |
||
1196 | |||
1197 | Pot generar ValueError si el nom de capa no és acceptable. |
||
1198 | </translation> |
||
1199 | </message> |
||
1200 | <message> |
||
1201 | <source>getGuiLanguage() -> string |
||
1202 | |||
1203 | Returns a string with the -lang value. |
||
1204 | </source> |
||
15354 | cbradney | 1205 | <translation type="obsolete">getGuiLanguage() -> string |
12918 | cbradney | 1206 | |
1207 | Retorna una cadena amb el valor de -lang. |
||
1208 | </translation> |
||
1209 | </message> |
||
1210 | <message> |
||
1211 | <source>createRect(x, y, width, height, ["name"]) -> string |
||
1212 | |||
1213 | Creates a new rectangle on the current page and returns its name. The |
||
1214 | coordinates are given in the current measurement units of the document |
||
1215 | (see UNIT constants). "name" should be a unique identifier for the object |
||
1216 | because you need this name to reference that object in future. If "name" |
||
1217 | is not given Scribus will create one for you. |
||
1218 | |||
1219 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1220 | </source> |
||
15354 | cbradney | 1221 | <translation type="obsolete">createRect(x,y,amplada, alçada, ["name"]) -> string |
12918 | cbradney | 1222 | |
1223 | Crea un nou rectangle en la pàgina actual i retorna el seu nom. Les |
||
1224 | coordenades donades estaran en les unitats per defecte del document |
||
1225 | (mireu unitats). "nom" ha de ser un identificador únic per l'objecte |
||
1226 | ja que necessites aquest nom per fer referència a l'objecte en el futur. Si no |
||
1227 | es dóna "nom" Scribus en crearà un per nosaltres. |
||
1228 | |||
1229 | Es generar un NameExistsError si passem un nom que ja existeix. |
||
1230 | </translation> |
||
1231 | </message> |
||
1232 | <message> |
||
1233 | <source>createEllipse(x, y, width, height, ["name"]) -> string |
||
1234 | |||
1235 | Creates a new ellipse on the current page and returns its name. |
||
1236 | The coordinates are given in the current measurement units of the document |
||
1237 | (see UNIT constants). "name" should be a unique identifier for the object |
||
1238 | because you need this name for further referencing of that object. If "name" |
||
1239 | is not given Scribus will create one for you. |
||
1240 | |||
1241 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1242 | </source> |
||
15354 | cbradney | 1243 | <translation type="obsolete">createEllipse(x, y, amplada, alçada, ["nom"]) -> string |
12918 | cbradney | 1244 | |
1245 | Crea una nova elipse en la pàgina actual i en retorna el nom. |
||
1246 | Les coordenades estan especificades amb les unitats de mesura del document |
||
1247 | (mireu constants UNIT). "nom" ha de ser un identificador únic per l'objecte |
||
1248 | ja que necessitem aquest nom per referències futures. Si "nom" no s'especifica |
||
1249 | Scribus en crearà un per nosaltres. |
||
1250 | |||
1251 | Pot generar un NameExistsError si especifiquem un nom que ja es fa servir. |
||
1252 | </translation> |
||
1253 | </message> |
||
1254 | <message> |
||
1255 | <source>createImage(x, y, width, height, ["name"]) -> string |
||
1256 | |||
1257 | Creates a new picture frame on the current page and returns its name. The |
||
1258 | coordinates are given in the current measurement units of the document. |
||
1259 | "name" should be a unique identifier for the object because you need this |
||
1260 | name for further access to that object. If "name" is not given Scribus will |
||
1261 | create one for you. |
||
1262 | |||
1263 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1264 | </source> |
||
15354 | cbradney | 1265 | <translation type="obsolete">createImage(x, y, amplada, alçada, ["nom"]) -> string |
12918 | cbradney | 1266 | |
1267 | Crea un nou marc d'imatge en la pàgina actual i en retorna el nom. |
||
1268 | Les coordenades estan especificades amb les unitats de mesura del document |
||
1269 | (mireu constants UNIT). "nom" ha de ser un identificador únic per l'objecte |
||
1270 | ja que necessitem aquest nom per referències futures. Si "nom" no s'especifica |
||
1271 | Scribus en crearà un per nosaltres. |
||
1272 | |||
1273 | Pot generar un NameExistsError si especifiquem un nom que ja es fa servir. |
||
1274 | </translation> |
||
1275 | </message> |
||
1276 | <message> |
||
1277 | <source>createText(x, y, width, height, ["name"]) -> string |
||
1278 | |||
1279 | Creates a new text frame on the actual page and returns its name. |
||
1280 | The coordinates are given in the actual measurement unit of the document (see |
||
1281 | UNIT constants). "name" should be a unique identifier for the object because |
||
1282 | you need this name for further referencing of that object. If "name" is not |
||
1283 | given Scribus will create one for you. |
||
1284 | |||
1285 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1286 | </source> |
||
15354 | cbradney | 1287 | <translation type="obsolete">createText(x, y, amplada, alçada, ["nom"]) -> string |
12918 | cbradney | 1288 | |
1289 | Crea un nou quadre de text en la pàgina actual i en retorna el nom. |
||
1290 | Les coordenades estan especificades amb les unitats de mesura del document |
||
1291 | (mireu constants UNIT). "nom" ha de ser un identificador únic per l'objecte |
||
1292 | ja que necessitem aquest nom per referències futures. Si "nom" no s'especifica |
||
1293 | Scribus en crearà un per nosaltres. |
||
1294 | |||
1295 | Pot generar un NameExistsError si especifiquem un nom que ja es fa servir. |
||
1296 | </translation> |
||
1297 | </message> |
||
1298 | <message> |
||
1299 | <source>createLine(x1, y1, x2, y2, ["name"]) -> string |
||
1300 | |||
1301 | Creates a new line from the point(x1, y1) to the point(x2, y2) and returns |
||
1302 | its name. The coordinates are given in the current measurement unit of the |
||
1303 | document (see UNIT constants). "name" should be a unique identifier for the |
||
1304 | object because you need this name for further access to that object. If |
||
1305 | "name" is not given Scribus will create one for you. |
||
1306 | |||
1307 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1308 | </source> |
||
15354 | cbradney | 1309 | <translation type="obsolete">createLine(x1, y1, x2, y2, ["nom"]) -> string |
12918 | cbradney | 1310 | |
1311 | Crea una nova línia des del punt (x1,y1) al punt (x2,y2) i en retorna el |
||
1312 | nom. Les coordenades estan especificades amb les unitats de mesura del |
||
1313 | document (mireu constants UNIT). "nom" ha de ser un identificador únic |
||
1314 | per l'objecte ja que necessitem aquest nom per referències futures. Si |
||
1315 | "nom" no s'especifica Scribus en crearà un per nosaltres. |
||
1316 | |||
1317 | Pot generar un NameExistsError si especifiquem un nom que ja es fa servir. |
||
1318 | </translation> |
||
1319 | </message> |
||
1320 | <message> |
||
1321 | <source>createPolyLine(list, ["name"]) -> string |
||
1322 | |||
1323 | Creates a new polyline and returns its name. The points for the polyline are |
||
1324 | stored in the list "list" in the following order: [x1, y1, x2, y2...xn. yn]. |
||
1325 | The coordinates are given in the current measurement units of the document (see |
||
1326 | UNIT constants). "name" should be a unique identifier for the object because |
||
1327 | you need this name for further access to that object. If "name" is not given |
||
1328 | Scribus will create one for you. |
||
1329 | |||
1330 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1331 | May raise ValueError if an insufficient number of points is passed or if |
||
1332 | the number of values passed don't group into points without leftovers. |
||
1333 | </source> |
||
15354 | cbradney | 1334 | <translation type="obsolete">createPolyLine(llista, ["nom"]) -> string |
12918 | cbradney | 1335 | |
1336 | Crea un nou conjunt de línies i en retorna el nom. Els punts de cada línia estan |
||
1337 | guardats en la llista "llista" en l'ordre [x1, y1, x2, y2, .., xn, yn]. |
||
1338 | Les coordenades estan especificades amb les unitats de mesura del document |
||
1339 | (mireu constants UNIT). "nom" ha de ser un identificador únic per l'objecte |
||
1340 | ja que necessitem aquest nom per referències futures. Si "nom" no s'especifica |
||
1341 | Scribus en crearà un per nosaltres. |
||
1342 | |||
1343 | Pot generar un NameExistsError si especifiquem un nom que ja es fa servir. |
||
1344 | Pot generar un ValueError si es passa un número de punts insuficient o si el |
||
1345 | número de valors passat no agrupa bé els punts. |
||
1346 | </translation> |
||
1347 | </message> |
||
1348 | <message> |
||
1349 | <source>createPolygon(list, ["name"]) -> string |
||
1350 | |||
1351 | Creates a new polygon and returns its name. The points for the polygon are |
||
1352 | stored in the list "list" in the following order: [x1, y1, x2, y2...xn. yn]. |
||
1353 | At least three points are required. There is no need to repeat the first point |
||
1354 | to close the polygon. The polygon is automatically closed by connecting the |
||
1355 | first and the last point. The coordinates are given in the current measurement |
||
1356 | units of the document (see UNIT constants). "name" should be a unique |
||
1357 | identifier for the object because you need this name for further access to that |
||
1358 | object. If "name" is not given Scribus will create one for you. |
||
1359 | |||
1360 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1361 | May raise ValueError if an insufficient number of points is passed or if |
||
1362 | the number of values passed don't group into points without leftovers. |
||
1363 | </source> |
||
15354 | cbradney | 1364 | <translation type="obsolete">createPolygon(llista, ["nom"]) -> string |
12918 | cbradney | 1365 | |
1366 | Crea un nou polígon i en retorna el nom. Els punts pel polígon estan |
||
1367 | guardats en la llista "llista" en el següent ordre: [x1, y1, x2, y2, ...xn, yn]. |
||
1368 | Almenys calen tres punts. No cal repetir el primer punt per |
||
1369 | tancar el polígon. El polígon es tancarà automàticament connectant el |
||
1370 | primer punt i el darrer. Les coordenades estan especificades amb les unitats |
||
1371 | de mesura del document (mireu constants UNIT). "nom" ha de ser un identificador |
||
1372 | únic per l'objecte ja que necessitem aquest nom per referències futures. |
||
1373 | Si "nom" no s'especifica Scribus en crearà un per nosaltres. |
||
1374 | |||
1375 | Pot generar un NameExistsError si especifiquem un nom que ja es fa servir. |
||
1376 | Pot generar un ValueError si es passa un número de punts insuficient o si el |
||
1377 | número de valors passat no agrupa bé els punts. |
||
1378 | </translation> |
||
1379 | </message> |
||
1380 | <message> |
||
1381 | <source>createBezierLine(list, ["name"]) -> string |
||
1382 | |||
1383 | Creates a new bezier curve and returns its name. The points for the bezier |
||
1384 | curve are stored in the list "list" in the following order: |
||
1385 | [x1, y1, kx1, ky1, x2, y2, kx2, ky2...xn. yn, kxn. kyn] |
||
1386 | In the points list, x and y mean the x and y coordinates of the point and kx |
||
1387 | and ky meaning the control point for the curve. The coordinates are given in |
||
1388 | the current measurement units of the document (see UNIT constants). "name" |
||
1389 | should be a unique identifier for the object because you need this name for |
||
1390 | further access to that object. If "name" is not given Scribus will create one |
||
1391 | for you. |
||
1392 | |||
1393 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1394 | May raise ValueError if an insufficient number of points is passed or if |
||
1395 | the number of values passed don't group into points without leftovers. |
||
1396 | </source> |
||
15354 | cbradney | 1397 | <translation type="obsolete">createBezierLine(llista, ["nom"]) -> string |
12918 | cbradney | 1398 | |
1399 | Crea una corba bezier i en retorna el nom. Els punts per la corba bezier es |
||
1400 | guarden en la llista "llista" en el següent ordre: |
||
1401 | [x1, y1, kx1, ky1, x2, y2, kx2, ky2, ...xn, yn, kxn, kyn]. |
||
1402 | En els punts x i y són els valors de x i de y del punt, mentre que kx |
||
1403 | i ky són els punts de control de la corba. Les coordenades es dónen en |
||
1404 | les unitats de mesura del document (mireu constants UNIT). "nom" |
||
1405 | ha de ser un identificador únic per l'objecte ja que necessitem aquest nom |
||
1406 | per referències futures. Si "nom" no s'especifica Scribus en crearà un per |
||
1407 | nosaltres. |
||
1408 | |||
1409 | Pot generar un NameExistsError si especifiquem un nom que ja es fa servir. |
||
1410 | Pot generar un ValueError si es passa un número de punts insuficient o si el |
||
1411 | número de valors passat no agrupa bé els punts. |
||
1412 | </translation> |
||
1413 | </message> |
||
1414 | <message> |
||
1415 | <source>createPathText(x, y, "textbox", "beziercurve", ["name"]) -> string |
||
1416 | |||
1417 | Creates a new pathText by merging the two objects "textbox" and |
||
1418 | "beziercurve" and returns its name. The coordinates are given in the current |
||
1419 | measurement unit of the document (see UNIT constants). "name" should be a |
||
1420 | unique identifier for the object because you need this name for further access |
||
1421 | to that object. If "name" is not given Scribus will create one for you. |
||
1422 | |||
1423 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1424 | May raise NotFoundError if one or both of the named base object don't exist. |
||
1425 | </source> |
||
15354 | cbradney | 1426 | <translation type="obsolete">createPathText(x, y, "textbox", "beziercurve", ["nom"]) -> string |
12918 | cbradney | 1427 | |
1428 | Crea una nou camí de text barrejant els dos objectes "textbox" i |
||
1429 | "beziercurve" i en retorna el nom. Les coordenades estan especificades |
||
1430 | amb les unitats de mesura del document (mireu constants UNIT). "nom" ha de |
||
1431 | ser un identificador únic per l'objecte ja que necessitem aquest nom per referències |
||
1432 | futures. Si "nom" no s'especifica Scribus en crearà un per nosaltres. |
||
1433 | |||
1434 | Pot generar un NameExistsError si especifiquem un nom que ja es fa servir. |
||
1435 | Pot generar un NotFoundError si un dels dos objectes no existeix. |
||
1436 | </translation> |
||
1437 | </message> |
||
1438 | <message> |
||
1439 | <source>deleteObject(["name"]) |
||
1440 | |||
1441 | Deletes the item with the name "name". If "name" is not given the currently |
||
1442 | selected item is deleted. |
||
1443 | </source> |
||
15354 | cbradney | 1444 | <translation type="obsolete">deleteObject(["nom"]) |
12918 | cbradney | 1445 | |
1446 | Esborra l'ítem amb el nom "nom". Si no especifiquem "nom" l'ítem |
||
1447 | seleccionat és el que s'esborra. |
||
1448 | </translation> |
||
1449 | </message> |
||
1450 | <message> |
||
1451 | <source>objectExists(["name"]) -> bool |
||
1452 | |||
1453 | Test if an object with specified name really exists in the document. |
||
1454 | The optional parameter is the object name. When no object name is given, |
||
1455 | returns True if there is something selected. |
||
1456 | </source> |
||
15354 | cbradney | 1457 | <translation type="obsolete">objectExists(["nom"]) -> bool |
12918 | cbradney | 1458 | |
1459 | Prova si un objecte amb el nom especificat existeix en el document. |
||
1460 | El paràmetre opcional és el nom de l'objecte. Quan no especifiquem cap |
||
1461 | nom retorna cert si hi ha res seleccionat.</translation> |
||
1462 | </message> |
||
1463 | <message> |
||
1464 | <source>setStyle("style" [, "name"]) |
||
1465 | |||
1466 | Apply the named "style" to the object named "name". If is no object name |
||
1467 | given, it's applied on the selected object. |
||
1468 | </source> |
||
14474 | cbradney | 1469 | <translation type="obsolete">setStyle("estil" [, "nom"]) |
12918 | cbradney | 1470 | |
1471 | Aplica l'estil especificat a "estil" a l'objecte "nom". Si no especifiquem el nom |
||
1472 | s'aplica a l'ítem seleccionat.</translation> |
||
1473 | </message> |
||
1474 | <message> |
||
1475 | <source>getAllStyles() -> list |
||
1476 | |||
1477 | Return a list of the names of all paragraph styles in the current document. |
||
1478 | </source> |
||
15354 | cbradney | 1479 | <translation type="obsolete">getAllStyles() -> llista |
12918 | cbradney | 1480 | |
1481 | Retorna una llista amb els noms dels estils de paràgraf del document actual. |
||
1482 | </translation> |
||
1483 | </message> |
||
1484 | <message> |
||
1485 | <source>newPage(where [,"masterpage"]) |
||
1486 | |||
1487 | Creates a new page. If "where" is -1 the new Page is appended to the |
||
1488 | document, otherwise the new page is inserted before "where". Page numbers are |
||
1489 | counted from 1 upwards, no matter what the displayed first page number of your |
||
1490 | document is. The optional parameter "masterpage" specifies the name of the |
||
1491 | master page for the new page. |
||
1492 | |||
1493 | May raise IndexError if the page number is out of range |
||
1494 | </source> |
||
15354 | cbradney | 1495 | <translation type="obsolete">newPage(on [,"paginamestra"]) |
12918 | cbradney | 1496 | |
1497 | Crea una nova pàgina. Si "on" és -1 la nova pàgina s'afegeix al final del document, |
||
1498 | altrament la nova pàgina s'afegeix allà on diu 'on'. Els números de pàgina es compten |
||
1499 | des de 1 endavan, independentment del número que s'hagi posat a cada pàgina en la |
||
1500 | creació del document. El paràmetre opcional "paginamestra" especifica el nom de la |
||
1501 | pàgina mestra a aplicar a la nova pàgina. |
||
1502 | |||
1503 | Pot generar un error IndexError si la pàgina està fora de rang</translation> |
||
1504 | </message> |
||
1505 | <message> |
||
1506 | <source>currentPage() -> integer |
||
1507 | |||
1508 | Returns the number of the current working page. Page numbers are counted from 1 |
||
1509 | upwards, no matter what the displayed first page number of your document is. |
||
1510 | </source> |
||
15354 | cbradney | 1511 | <translation type="obsolete">currentPage() -> integer |
12918 | cbradney | 1512 | |
1513 | Retorna el número de pàgina actual. Els números de pàgina comencen per 1 |
||
1514 | i van endavant, no importa de quina forma fem numerar les pàgines. |
||
1515 | </translation> |
||
1516 | </message> |
||
1517 | <message> |
||
1518 | <source>redrawAll() |
||
1519 | |||
1520 | Redraws all pages. |
||
1521 | </source> |
||
15354 | cbradney | 1522 | <translation type="obsolete">redrawAll() |
12918 | cbradney | 1523 | |
1524 | Repinta totes les pàgines. |
||
1525 | </translation> |
||
1526 | </message> |
||
1527 | <message> |
||
1528 | <source>savePageAsEPS("name") |
||
1529 | |||
1530 | Saves the current page as an EPS to the file "name". |
||
1531 | |||
1532 | May raise ScribusError if the save failed. |
||
1533 | </source> |
||
15354 | cbradney | 1534 | <translation type="obsolete">savePageAsEPS("nom") |
12918 | cbradney | 1535 | |
1536 | Desa la pàgina actual com un fitxer EPS amb el nom "nom". |
||
1537 | |||
1538 | Pot generar un ScribusError si el desat falla.</translation> |
||
1539 | </message> |
||
1540 | <message> |
||
1541 | <source>deletePage(nr) |
||
1542 | |||
1543 | Deletes the given page. Does nothing if the document contains only one page. |
||
1544 | Page numbers are counted from 1 upwards, no matter what the displayed first |
||
1545 | page number is. |
||
1546 | |||
1547 | May raise IndexError if the page number is out of range |
||
1548 | </source> |
||
15354 | cbradney | 1549 | <translation type="obsolete">deletePage(nr) |
12918 | cbradney | 1550 | |
1551 | Esborra la pàgina especificada. No fa res si el document només conté una pàgina. |
||
1552 | Els números de pàgina estan comptats des de 1, no importa la forma en que |
||
1553 | mostrem els números de pàgina. |
||
1554 | |||
1555 | Pot generar un IndexError si el número de pàgina està fora de rang |
||
1556 | </translation> |
||
1557 | </message> |
||
1558 | <message> |
||
1559 | <source>pageCount() -> integer |
||
1560 | |||
1561 | Returns the number of pages in the document. |
||
1562 | </source> |
||
15354 | cbradney | 1563 | <translation type="obsolete">pageCount() -> integer |
12918 | cbradney | 1564 | |
1565 | Retorna el número de pàgines del document. |
||
1566 | </translation> |
||
1567 | </message> |
||
1568 | <message> |
||
1569 | <source>getHGuides() -> list |
||
1570 | |||
1571 | Returns a list containing positions of the horizontal guides. Values are in the |
||
1572 | document's current units - see UNIT_<type> constants. |
||
1573 | </source> |
||
15354 | cbradney | 1574 | <translation type="obsolete">getHGuides() -> llista |
12918 | cbradney | 1575 | |
1576 | Retorna una llista que conté posicions de les guies horitzontals. Els valors estan |
||
1577 | en les unitats del document - mireu les constants UNIT_<tipus>. |
||
1578 | </translation> |
||
1579 | </message> |
||
1580 | <message> |
||
1581 | <source>setHGuides(list) |
||
1582 | |||
1583 | Sets horizontal guides. Input parameter must be a list of guide positions |
||
1584 | measured in the current document units - see UNIT_<type> constants. |
||
1585 | |||
1586 | Example: setHGuides(getHGuides() + [200.0, 210.0] # add new guides without any lost |
||
1587 | setHGuides([90,250]) # replace current guides entirely |
||
1588 | </source> |
||
15354 | cbradney | 1589 | <translation type="obsolete">setHGuides(llista) |
12918 | cbradney | 1590 | |
1591 | Estableix les guies horitzontals. La entrada ha de ser una llista de posicions |
||
1592 | mesurades en les unitats del document - mireu les constants UNIT_<tipus>. |
||
1593 | |||
1594 | Exemple setHGuides(getHGuides() + [200.0, 210.0] # afegeix noves guies sense perdre |
||
1595 | setHGuides([90,250]) # canvia les guies actuals completament |
||
1596 | </translation> |
||
1597 | </message> |
||
1598 | <message> |
||
1599 | <source>getVGuides() |
||
1600 | |||
1601 | See getHGuides. |
||
1602 | </source> |
||
15354 | cbradney | 1603 | <translation type="obsolete">getVGuides() |
12918 | cbradney | 1604 | |
1605 | Mireu getHGuides. |
||
1606 | </translation> |
||
1607 | </message> |
||
1608 | <message> |
||
1609 | <source>setVGuides() |
||
1610 | |||
1611 | See setHGuides. |
||
1612 | </source> |
||
15354 | cbradney | 1613 | <translation type="obsolete">setVGuides() |
12918 | cbradney | 1614 | |
1615 | Mireu setHGuides. |
||
1616 | </translation> |
||
1617 | </message> |
||
1618 | <message> |
||
1619 | <source>getPageSize() -> tuple |
||
1620 | |||
15294 | cbradney | 1621 | Returns a tuple with page dimensions measured in the document's current units. |
1622 | See UNIT_<type> constants and getPageMargins() |
||
1623 | </source> |
||
1624 | <translation type="obsolete">getPageSize() -> tupla |
||
1625 | |||
1626 | Retorna una tupla amb les mides de la pàgina mesurades amb les unitats del document. |
||
1627 | Mireu les constants UNIT_<tipus> i getPageMargins() |
||
1628 | </translation> |
||
1629 | </message> |
||
1630 | <message> |
||
12918 | cbradney | 1631 | <source>getPageItems() -> list |
1632 | |||
1633 | Returns a list of tuples with items on the current page. The tuple is: |
||
1634 | (name, objectType, order) E.g. [('Text1', 4, 0), ('Image1', 2, 1)] |
||
1635 | means that object named 'Text1' is a text frame (type 4) and is the first at |
||
1636 | the page... |
||
1637 | </source> |
||
15354 | cbradney | 1638 | <translation type="obsolete">getPageItems() -> llista |
12918 | cbradney | 1639 | |
1640 | Retorna una llista de tuples amb els ítems de la pàgina actual. La tupla és: |
||
1641 | (nom, Tipusd'Objecte, ordre) Ex. [ ('Text1', 4, 0), ('Image1', 2, 1)] |
||
1642 | significa que l'objecte 'Text1' és un marc de text (tipus 4) i és el primer de |
||
1643 | la pàgina ... |
||
1644 | </translation> |
||
1645 | </message> |
||
1646 | <message> |
||
1647 | <source>getPageMargins() |
||
1648 | |||
1649 | Returns the page margins as a (top, left, right, bottom) tuple in the current |
||
1650 | units. See UNIT_<type> constants and getPageSize(). |
||
1651 | </source> |
||
15294 | cbradney | 1652 | <translation type="obsolete">getPageMargins() |
12918 | cbradney | 1653 | |
1654 | Retorna els marges de pàgina com una tupla (dalt, esquerra, dreta, baix) en |
||
1655 | les unitats. Mireu les constants UNIT_<tipus> i getPageSize(). |
||
1656 | </translation> |
||
1657 | </message> |
||
1658 | <message> |
||
1659 | <source>setGradientFill(type, "color1", shade1, "color2", shade2, ["name"]) |
||
1660 | |||
1661 | Sets the gradient fill of the object "name" to type. Color descriptions are |
||
1662 | the same as for setFillColor() and setFillShade(). See the constants for |
||
1663 | available types (FILL_<type>). |
||
1664 | </source> |
||
15354 | cbradney | 1665 | <translation type="obsolete">setGradientFill(tipus, "color1", intensitat1, "color2", intensitat2, ["nom"]) |
12918 | cbradney | 1666 | |
1667 | Estableix el gradient d'emplenat de l'objecte "nom" a tipus. Les descripcions de colors |
||
1668 | són les mateixes que per setFillColor() i setFillShade(). Mireu les constants pels |
||
1669 | tipus disponibles (FILL_<tipus>). |
||
1670 | </translation> |
||
1671 | </message> |
||
1672 | <message> |
||
1673 | <source>setFillColor("color", ["name"]) |
||
1674 | |||
1675 | Sets the fill color of the object "name" to the color "color". "color" |
||
1676 | is the name of one of the defined colors. If "name" is not given the |
||
1677 | currently selected item is used. |
||
1678 | </source> |
||
15354 | cbradney | 1679 | <translation type="obsolete">setFillColor("color", ["nom"]) |
12918 | cbradney | 1680 | |
1681 | Estableix el color d'ompliment de l'objecte "nom" al color "color". |
||
1682 | "color" és el nom d'un dels colors definits. Si no especifiquem "nom" |
||
1683 | es fa servir l'ítem seleccionat. |
||
1684 | </translation> |
||
1685 | </message> |
||
1686 | <message> |
||
1687 | <source>setLineColor("color", ["name"]) |
||
1688 | |||
1689 | Sets the line color of the object "name" to the color "color". If "name" |
||
1690 | is not given the currently selected item is used. |
||
1691 | </source> |
||
15354 | cbradney | 1692 | <translation type="obsolete">setLineColor("color", ["nom"]) |
12918 | cbradney | 1693 | |
1694 | Estableix el color de la línia de l'objecte "nom" al color "color". Si no |
||
1695 | especifiquem "nom" es fa servir l'ítem seleccionat. |
||
1696 | </translation> |
||
1697 | </message> |
||
1698 | <message> |
||
1699 | <source>setLineWidth(width, ["name"]) |
||
1700 | |||
1701 | Sets line width of the object "name" to "width". "width" must be in the |
||
1702 | range from 0.0 to 12.0 inclusive, and is measured in points. If "name" is not |
||
1703 | given the currently selected item is used. |
||
1704 | |||
1705 | May raise ValueError if the line width is out of bounds. |
||
1706 | </source> |
||
15354 | cbradney | 1707 | <translation type="obsolete">setLineWidth(amplada, ["nom"]) |
12918 | cbradney | 1708 | |
1709 | Estableix l'amplada de línia de l'objecte "nom" a "amplada". "amplada" ha d'estar |
||
1710 | dins d'un rang entre 0.0 a 12.0, i està mesurat en punts. Si no especifiquem "nom" |
||
1711 | es fa servir l'ítem seleccionat. |
||
1712 | |||
1713 | Pot generar un ValueError si l'ample de línia és erròni. |
||
1714 | </translation> |
||
1715 | </message> |
||
1716 | <message> |
||
1717 | <source>setLineShade(shade, ["name"]) |
||
1718 | |||
1719 | Sets the shading of the line color of the object "name" to "shade". |
||
1720 | "shade" must be an integer value in the range from 0 (lightest) to 100 |
||
1721 | (full color intensity). If "name" is not given the currently selected item |
||
1722 | is used. |
||
1723 | |||
1724 | May raise ValueError if the line shade is out of bounds. |
||
1725 | </source> |
||
15354 | cbradney | 1726 | <translation type="obsolete">setLineShade(intensitat, ["nom"]) |
12918 | cbradney | 1727 | |
1728 | Estableix la intensitat del color de la línea de contorn de l'objecte "nom" |
||
1729 | a "intensitat"."intensitat" ha de ser un valor enter entre 0 (més clar) i 100 |
||
1730 | (intensitat total). Si no especifiquem "nom" es fa servir l'ítem |
||
1731 | seleccionat. |
||
1732 | |||
1733 | Pot generar un ValueError si "intensitat" està fora de marges. |
||
1734 | </translation> |
||
1735 | </message> |
||
1736 | <message> |
||
1737 | <source>setLineJoin(join, ["name"]) |
||
1738 | |||
1739 | Sets the line join style of the object "name" to the style "join". |
||
1740 | If "name" is not given the currently selected item is used. There are |
||
1741 | predefined constants for join - JOIN_<type>. |
||
1742 | </source> |
||
15354 | cbradney | 1743 | <translation type="obsolete">setLineJoin(Unio, ["nom"]) |
12918 | cbradney | 1744 | |
1745 | Estableix l'estil d'unió de l'objecte "nom" a l'estil "join". |
||
1746 | Si no especifiquem "nom" es fa servir l'ítem seleccionat. Hi ha |
||
1747 | constants predefinides d'unions - JOIN_<tipus>. |
||
1748 | </translation> |
||
1749 | </message> |
||
1750 | <message> |
||
1751 | <source>setLineEnd(endtype, ["name"]) |
||
1752 | |||
1753 | Sets the line cap style of the object "name" to the style "cap". |
||
1754 | If "name" is not given the currently selected item is used. There are |
||
1755 | predefined constants for "cap" - CAP_<type>. |
||
1756 | </source> |
||
15354 | cbradney | 1757 | <translation type="obsolete">setLsetLineEnd(Final, ["nom"]) |
12918 | cbradney | 1758 | |
1759 | Estableix l'estil de tancament de l'objecte "nom" a l'estil "final". |
||
1760 | Si no especifiquem "nom" es fa servir l'ítem seleccionat. Hi ha |
||
1761 | constants predefinides de tancaments - CAP_<tipus>. |
||
1762 | </translation> |
||
1763 | </message> |
||
1764 | <message> |
||
1765 | <source>setLineStyle(style, ["name"]) |
||
1766 | |||
1767 | Sets the line style of the object "name" to the style "style". If "name" |
||
1768 | is not given the currently selected item is used. There are predefined |
||
1769 | constants for "style" - LINE_<style>. |
||
1770 | </source> |
||
15354 | cbradney | 1771 | <translation type="obsolete">setLsetLineStyle(estil, ["nom"]) |
12918 | cbradney | 1772 | |
1773 | Estableix l'estil de línia de l'objecte "nom" a l'estil "estil". |
||
1774 | Si no especifiquem "nom" es fa servir l'ítem seleccionat. Hi ha |
||
1775 | constants predefinides d'estils de línia - LINE_<tipus>. |
||
1776 | </translation> |
||
1777 | </message> |
||
1778 | <message> |
||
1779 | <source>setFillShade(shade, ["name"]) |
||
1780 | |||
1781 | Sets the shading of the fill color of the object "name" to "shade". |
||
1782 | "shade" must be an integer value in the range from 0 (lightest) to 100 |
||
1783 | (full Color intensity). If "name" is not given the currently selected |
||
1784 | Item is used. |
||
1785 | |||
1786 | May raise ValueError if the fill shade is out of bounds. |
||
1787 | </source> |
||
15354 | cbradney | 1788 | <translation type="obsolete">setLineShade(intensitat, ["nom"]) |
12918 | cbradney | 1789 | |
1790 | Estableix la intensitat del color d'ompliment de l'objecte "nom" a "intensitat" |
||
1791 | "intensitat" ha de ser un valor enter entre 0 (més clar) i 100 |
||
1792 | (intensitat total). Si no especifiquem "nom" es fa servir l'ítem |
||
1793 | seleccionat. |
||
1794 | |||
1795 | Pot generar un ValueError si la intensitat està fora de marges. |
||
1796 | </translation> |
||
1797 | </message> |
||
1798 | <message> |
||
1799 | <source>setCornerRadius(radius, ["name"]) |
||
1800 | |||
1801 | Sets the corner radius of the object "name". The radius is expressed |
||
1802 | in points. If "name" is not given the currently selected item is used. |
||
1803 | |||
1804 | May raise ValueError if the corner radius is negative. |
||
1805 | </source> |
||
15354 | cbradney | 1806 | <translation type="obsolete">setCornerRadius(radi, ["nom"]) |
12918 | cbradney | 1807 | |
1808 | Estableix el radi d'arrodoniment de l'objecte "nom". El radi està expressat |
||
1809 | en punts. Si no especifiquem "nom" es fa servir l'ítem seleccionat. |
||
1810 | |||
1811 | Pot generar un ValueError si el radi és negatiu. |
||
1812 | </translation> |
||
1813 | </message> |
||
1814 | <message> |
||
1815 | <source>setMultiLine("namedStyle", ["name"]) |
||
1816 | |||
1817 | Sets the line style of the object "name" to the named style "namedStyle". |
||
1818 | If "name" is not given the currently selected item is used. |
||
1819 | |||
1820 | May raise NotFoundError if the line style doesn't exist. |
||
1821 | </source> |
||
15354 | cbradney | 1822 | <translation type="obsolete">setMultiLine("nomEstil", ["nom"]) |
12918 | cbradney | 1823 | |
1824 | Estableix l'estil de línia de l'objecte "nom" a "nomEstil". |
||
1825 | Si no especifiquem "nom" es fa servir l'ítem seleccionat. |
||
1826 | |||
1827 | Pot generar un NotFoundError si l'estil de línia no existeix. |
||
1828 | </translation> |
||
1829 | </message> |
||
1830 | <message> |
||
1135 | cbradney | 1831 | <source>getFontSize(["name"]) -> float |
1832 | |||
1833 | Returns the font size in points for the text frame "name". If this text |
||
1834 | frame has some text selected the value assigned to the first character of |
||
1835 | the selection is returned. |
||
1836 | If "name" is not given the currently selected item is used. |
||
1837 | </source> |
||
15354 | cbradney | 1838 | <translation type="obsolete">getFontSize(["nom"]) -> float |
1135 | cbradney | 1839 | |
1840 | Retorna la mida del tipus de lletra en punts del quadre de text "nom". Si |
||
1841 | aquest quadre de text té algun text seleccionat es torna el primer caràcter |
||
1842 | de la selecció. |
||
1843 | Si no es passa "nom" es fa servir l'ítem actualment seleccionat. |
||
1844 | </translation> |
||
1845 | </message> |
||
1846 | <message> |
||
12918 | cbradney | 1847 | <source>getFont(["name"]) -> string |
1848 | |||
1849 | Returns the font name for the text frame "name". If this text frame |
||
1850 | has some text selected the value assigned to the first character |
||
1851 | of the selection is returned. If "name" is not given the currently |
||
1852 | selected item is used. |
||
1853 | </source> |
||
15354 | cbradney | 1854 | <translation type="obsolete">getFont(["nom]) -> string |
12918 | cbradney | 1855 | |
1856 | Retorna el nom de la font del quadre de text "nom". Si aquest quadre |
||
1857 | de text té algun text seleccionat es retorna el valor assignat al primer |
||
1858 | caràcter de la selecció. Si no especifiquem "nom" es fa servir l'ítem |
||
1859 | seleccionat. |
||
1860 | </translation> |
||
1861 | </message> |
||
1862 | <message> |
||
1863 | <source>getTextLength(["name"]) -> integer |
||
1864 | |||
1865 | Returns the length of the text in the text frame "name". |
||
1866 | If "name" is not given the currently selected item is used. |
||
1867 | </source> |
||
15354 | cbradney | 1868 | <translation type="obsolete">getFillColor(["nom"]) -> string |
12918 | cbradney | 1869 | |
1870 | Retorna el nom del color de l'objecte "nom". |
||
1871 | Si no es dóna cap "nom", es fa servir l'ítem sel·leccionat. |
||
1872 | getTextLength(["nom"]) -> integer |
||
1873 | |||
1874 | Retorna la llargada del text del quadre de text "nom". |
||
1875 | Si no es dóna cap "nom", es fa servir l'ítem sel.leccionat. |
||
1876 | </translation> |
||
1877 | </message> |
||
1878 | <message> |
||
1879 | <source>getText(["name"]) -> string |
||
1880 | |||
1881 | Returns the text of the text frame "name". If this text frame has some text |
||
1882 | selected, the selected text is returned. All text in the frame, not just |
||
1883 | currently visible text, is returned. If "name" is not given the currently |
||
1884 | selected item is used. |
||
1885 | </source> |
||
15354 | cbradney | 1886 | <translation type="obsolete">getText(["nom"]) -> string |
12918 | cbradney | 1887 | |
1888 | Retorna el text del quadre de text "nom". Si el quadre de text té algun |
||
1889 | text seleccionat, es torna el text seleccionat. Es torna tot el text, |
||
1890 | no només el text visible. Si no es dóna cap "nom", es fa servir |
||
1891 | l'ítem sel·leccionat. |
||
1892 | </translation> |
||
1893 | </message> |
||
1894 | <message> |
||
1895 | <source>getAllText(["name"]) -> string |
||
1896 | |||
1897 | Returns the text of the text frame "name" and of all text frames which are |
||
1898 | linked with this frame. If this textframe has some text selected, the selected |
||
1899 | text is returned. If "name" is not given the currently selected item is |
||
1900 | used. |
||
1901 | </source> |
||
15354 | cbradney | 1902 | <translation type="obsolete">getAllText(["nom"]) -> string |
12918 | cbradney | 1903 | |
1904 | Retorna el text del quadre de text "nom" i de tots els quadres de text que estan |
||
1905 | enllaçats amb aquest. Si el quadre de text té algun text seleccionat, es retorna |
||
1906 | el text seleccionat. Si no es dóna cap "nom", es fa servir l'ítem |
||
1907 | sel·leccionat. |
||
1908 | </translation> |
||
1909 | </message> |
||
1910 | <message> |
||
1911 | <source>getLineSpacing(["name"]) -> float |
||
1912 | |||
1913 | Returns the line spacing ("leading") of the text frame "name" expressed in |
||
1914 | points. If "name" is not given the currently selected item is used. |
||
1915 | </source> |
||
15354 | cbradney | 1916 | <translation type="obsolete">getLineSpacing(["nom"]) -> float |
12918 | cbradney | 1917 | |
1918 | Retorna l'espaiat entre línies del quadre de text "nom" expressat en |
||
1919 | punts. Si no es dóna cap "nom", es fa servir l'ítem sel·leccionat. |
||
1920 | </translation> |
||
1921 | </message> |
||
1922 | <message> |
||
1923 | <source>getColumnGap(["name"]) -> float |
||
1924 | |||
1925 | Returns the column gap size of the text frame "name" expressed in points. If |
||
1926 | "name" is not given the currently selected item is used. |
||
1927 | </source> |
||
15354 | cbradney | 1928 | <translation type="obsolete">getColumnGap(["nom"]) -> float |
12918 | cbradney | 1929 | |
1930 | Retorna l'espai entre columnes del quadre de text "nom" expressat en punts. Si |
||
1931 | no es dóna cap "nom", es fa servir l'ítem sel·leccionat. |
||
1932 | </translation> |
||
1933 | </message> |
||
1934 | <message> |
||
1935 | <source>getColumns(["name"]) -> integer |
||
1936 | |||
1937 | Gets the number of columns of the text frame "name". If "name" is not |
||
1938 | given the currently selected item is used. |
||
1939 | </source> |
||
15354 | cbradney | 1940 | <translation type="obsolete">getColumns(["nom"]) -> integer |
12918 | cbradney | 1941 | |
1942 | Dóna el número de columnes del quadre de text "nom". Si no es dóna |
||
1943 | cap "nom", es fa servir l'ítem sel·leccionat. |
||
1944 | </translation> |
||
1945 | </message> |
||
1946 | <message> |
||
1947 | <source>setText("text", ["name"]) |
||
1948 | |||
1949 | Sets the text of the text frame "name" to the text of the string "text". |
||
1950 | Text must be UTF8 encoded - use e.g. unicode(text, 'iso-8859-2'). See the FAQ |
||
1951 | for more details. If "name" is not given the currently selected item is |
||
1952 | used. |
||
1953 | </source> |
||
15354 | cbradney | 1954 | <translation type="obsolete">setText("text",["nom"]) |
12918 | cbradney | 1955 | |
1956 | Posa al quadre de text "name" el text contingut a la cadena "text". |
||
1957 | El text ha de ser codificat UTF8 - feu servir unicode(text, 'iso-8859-2'). Mireu el |
||
1958 | FAQ per més detalls. Si no es dóna cap "nom", es fa servir l'ítem |
||
1959 | sel·leccionat. |
||
1960 | </translation> |
||
1961 | </message> |
||
1962 | <message> |
||
1963 | <source>setFont("font", ["name"]) |
||
1964 | |||
1965 | Sets the font of the text frame "name" to "font". If there is some text |
||
1966 | selected only the selected text is changed. If "name" is not given the |
||
1967 | currently selected item is used. |
||
1968 | |||
1969 | May throw ValueError if the font cannot be found. |
||
1970 | </source> |
||
15354 | cbradney | 1971 | <translation type="obsolete">setFont("font",["nom]) |
12918 | cbradney | 1972 | |
1973 | Passa el quadre de text "nom" al tipus de lletra "font". Si hi ha alguna |
||
1974 | part de text seleccionada només canvia aquesta. Si no especifiquem "nom" |
||
1975 | es fa servir l'ítem seleccionat. |
||
1976 | |||
1977 | Pot generar ValueError si la font no es pot trobar. |
||
1978 | </translation> |
||
1979 | </message> |
||
1980 | <message> |
||
1981 | <source>setFontSize(size, ["name"]) |
||
1982 | |||
1983 | Sets the font size of the text frame "name" to "size". "size" is treated |
||
1984 | as a value in points. If there is some text selected only the selected text is |
||
1985 | changed. "size" must be in the range 1 to 512. If "name" is not given the |
||
1986 | currently selected item is used. |
||
1987 | |||
1988 | May throw ValueError for a font size that's out of bounds. |
||
1989 | </source> |
||
15354 | cbradney | 1990 | <translation type="obsolete">setFontSize(mida, ["nom"]) |
12918 | cbradney | 1991 | |
1992 | Estableix la mida de la font del quadre de text "nom" a "mida". "mida" |
||
1993 | ha de ser en punts. Si hi ha text seleccionat només es canvia |
||
1994 | aquest. "mida" ha de ser un valor entre 1 i 512. Si no especifiquem |
||
1995 | "nom" es fa servir l'ítem seleccionat. |
||
1996 | |||
1997 | Pot provocar ValueError per mides fora de rang. |
||
1998 | </translation> |
||
1999 | </message> |
||
2000 | <message> |
||
2001 | <source>setLineSpacing(size, ["name"]) |
||
2002 | |||
2003 | Sets the line spacing ("leading") of the text frame "name" to "size". |
||
2004 | "size" is a value in points. If "name" is not given the currently selected |
||
2005 | item is used. |
||
2006 | |||
2007 | May throw ValueError if the line spacing is out of bounds. |
||
2008 | </source> |
||
15354 | cbradney | 2009 | <translation type="obsolete">setLineSpacing(mida,["nom"]) |
12918 | cbradney | 2010 | |
2011 | Estableix l'espaiat de línia del quadre de text "nom" a "mida". |
||
2012 | "mida" està en punts. Si no especifiquem "nom" es fa servir l'ítem |
||
2013 | seleccionat. |
||
2014 | |||
2015 | Pot provocar ValueError si l'espaiat està fora de marges.</translation> |
||
2016 | </message> |
||
2017 | <message> |
||
2018 | <source>setColumnGap(size, ["name"]) |
||
2019 | |||
2020 | Sets the column gap of the text frame "name" to the value "size". If |
||
2021 | "name" is not given the currently selected item is used. |
||
2022 | |||
2023 | May throw ValueError if the column gap is out of bounds (must be positive). |
||
2024 | </source> |
||
15354 | cbradney | 2025 | <translation type="obsolete">setColumnGap(mida,["nom"]) |
12918 | cbradney | 2026 | |
2027 | Estableix l'espai entre columnes del quadre de text "nom" a "mida". Si |
||
2028 | no especifiquem "nom" es fa servir l'ítem seleccionat. |
||
2029 | |||
2030 | Pot provocar ValueError si el valor està fora de rang (ha de ser positiu). |
||
2031 | </translation> |
||
2032 | </message> |
||
2033 | <message> |
||
2034 | <source>setColumns(nr, ["name"]) |
||
2035 | |||
2036 | Sets the number of columns of the text frame "name" to the integer "nr". |
||
2037 | If "name" is not given the currently selected item is used. |
||
2038 | |||
2039 | May throw ValueError if number of columns is not at least one. |
||
2040 | </source> |
||
15354 | cbradney | 2041 | <translation type="obsolete">setColumns(nr, ["nom"]) |
12918 | cbradney | 2042 | |
2043 | Estableix que el quadre de text "nom" tindrà "nr" columnes. |
||
2044 | Si no especifiquem "nom" es fa servir l'ítem seleccionat. |
||
2045 | |||
2046 | Pot provocar ValueError si el número de columnes no és almenys una. |
||
2047 | </translation> |
||
2048 | </message> |
||
2049 | <message> |
||
2050 | <source>setTextAlignment(align, ["name"]) |
||
2051 | |||
2052 | Sets the text alignment of the text frame "name" to the specified alignment. |
||
2053 | If "name" is not given the currently selected item is used. "align" should |
||
2054 | be one of the ALIGN_ constants defined in this module - see dir(scribus). |
||
2055 | |||
2056 | May throw ValueError for an invalid alignment constant. |
||
2057 | </source> |
||
15354 | cbradney | 2058 | <translation type="obsolete">setTextAlignment(alineacio, ["nom"]) |
12918 | cbradney | 2059 | |
2060 | Estableix l'alineació del quadre de text "nom" a la especificada. |
||
2061 | Si no especifiquem "nom" es fa servir l'ítem seleccionat. "alineació" ha de ser |
||
2062 | una de les constants ALIGN_ definides en aquest mòdul - Mireu dir(scribus). |
||
2063 | |||
2064 | Pot provocar ValueError si posem una constant invàl·lida. |
||
2065 | </translation> |
||
2066 | </message> |
||
2067 | <message> |
||
2068 | <source>selectText(start, count, ["name"]) |
||
2069 | |||
2070 | Selects "count" characters of text in the text frame "name" starting from the |
||
2071 | character "start". Character counting starts at 0. If "count" is zero, any |
||
2072 | text selection will be cleared. If "name" is not given the currently |
||
2073 | selected item is used. |
||
2074 | |||
2075 | May throw IndexError if the selection is outside the bounds of the text. |
||
2076 | </source> |
||
15354 | cbradney | 2077 | <translation type="obsolete">selectText(inici, número, ["name"]) |
12918 | cbradney | 2078 | |
2079 | Seleccióna "número" caràcters del quadre de text "nom" començant pel |
||
2080 | caràcter "inici". Els caràcters comencen per 0. Si "número" és zero, es |
||
2081 | deselecciona tot el que hi pogués haver seleccionat. Si no especifiquem |
||
2082 | "nom" es fa servir l'ítem seleccionat. |
||
2083 | |||
2084 | Pot provocar un IndexError si la selecció és massa gran pel text. |
||
2085 | </translation> |
||
2086 | </message> |
||
2087 | <message> |
||
2088 | <source>deleteText(["name"]) |
||
2089 | |||
2090 | Deletes any text in the text frame "name". If there is some text selected, |
||
2091 | only the selected text will be deleted. If "name" is not given the currently |
||
2092 | selected item is used. |
||
2093 | </source> |
||
15354 | cbradney | 2094 | <translation type="obsolete">deleteText(["nom"]) |
12918 | cbradney | 2095 | |
2096 | Esborra qualsevol text del quadre de text "nom". Si hi ha algun text |
||
2097 | seleccionat només s'esborra la selecció. Si no especifiquem "nom" |
||
2098 | es fa servir l'ítem seleccionat. |
||
2099 | </translation> |
||
2100 | </message> |
||
2101 | <message> |
||
2102 | <source>setTextColor("color", ["name"]) |
||
2103 | |||
2104 | Sets the text color of the text frame "name" to the color "color". If there |
||
2105 | is some text selected only the selected text is changed. If "name" is not |
||
2106 | given the currently selected item is used. |
||
2107 | </source> |
||
15354 | cbradney | 2108 | <translation type="obsolete">setTextColor("color", ["nom"]) |
12918 | cbradney | 2109 | |
2110 | Posa el text del quadre de text "nom" al color "color". Si hi ha algun |
||
2111 | text seleccionat només es canvia el text seleccionat. Si no |
||
2112 | especifiquem "nom" es fa servir l'ítem seleccionat. |
||
2113 | </translation> |
||
2114 | </message> |
||
2115 | <message> |
||
2116 | <source>setTextStroke("color", ["name"]) |
||
2117 | |||
2118 | Set "color" of the text stroke. If "name" is not given the currently |
||
2119 | selected item is used. |
||
2120 | </source> |
||
15354 | cbradney | 2121 | <translation type="obsolete">setTextStroke("color", ["nom"]) |
12918 | cbradney | 2122 | |
2123 | Posa el "color" a les línies de contorn. Si no especifiquem "nom" |
||
2124 | es fa servir l'ítem seleccionat. |
||
2125 | </translation> |
||
2126 | </message> |
||
2127 | <message> |
||
2128 | <source>setTextShade(shade, ["name"]) |
||
2129 | |||
2130 | Sets the shading of the text color of the object "name" to "shade". If |
||
2131 | there is some text selected only the selected text is changed. "shade" must |
||
2132 | be an integer value in the range from 0 (lightest) to 100 (full color |
||
2133 | intensity). If "name" is not given the currently selected item is |
||
2134 | used. |
||
2135 | </source> |
||
15354 | cbradney | 2136 | <translation type="obsolete">setTextShade(intensitat, ["nom"]) |
12918 | cbradney | 2137 | |
2138 | Posa la intensitat del color del text "nom" a "intensitat". Si hi ha algun |
||
2139 | text seleccionat només es canvia aquest. "intensitat" ha de ser |
||
2140 | un valor enter que va des de 0 (clarejat) a 100 (intensitat de |
||
2141 | color).Si no especifiquem "nom" es fa servir l'ítem |
||
2142 | seleccionat. |
||
2143 | </translation> |
||
2144 | </message> |
||
2145 | <message> |
||
2146 | <source>linkTextFrames("fromname", "toname") |
||
2147 | |||
2148 | Link two text frames. The frame named "fromname" is linked to the |
||
2149 | frame named "toname". The target frame must be an empty text frame |
||
2150 | and must not link to or be linked from any other frames already. |
||
2151 | |||
2152 | May throw ScribusException if linking rules are violated. |
||
2153 | </source> |
||
15354 | cbradney | 2154 | <translation type="obsolete">linkTextFrames("desdenom","anom") |
12918 | cbradney | 2155 | |
2156 | Enllaça dos quadres de text. El quadre de text "desdenom" és enllaçat a |
||
2157 | el quadre de text "anom". El quadre de text de destí ha de ser buit |
||
2158 | i no es pot enllaçar o ser enllaçat per cap altre quadre de text. |
||
2159 | |||
2160 | Podem tenir ScribusException si es violen les normes d'enllaçat. |
||
2161 | </translation> |
||
2162 | </message> |
||
2163 | <message> |
||
2164 | <source>unlinkTextFrames("name") |
||
2165 | |||
2166 | Remove the specified (named) object from the text frame flow/linkage. If the |
||
2167 | frame was in the middle of a chain, the previous and next frames will be |
||
2168 | connected, eg 'a->b->c' becomes 'a->c' when you unlinkTextFrames(b)' |
||
2169 | |||
2170 | May throw ScribusException if linking rules are violated. |
||
2171 | </source> |
||
15354 | cbradney | 2172 | <translation type="obsolete">unlinkTextFrames("nom") |
12918 | cbradney | 2173 | |
2174 | Elimina l'objecte especificat del camí de quadre de text. Si el quadre |
||
2175 | de text estava al mig d'una cadena, els anteriors i els següents seran |
||
2176 | connectats, ex. 'a->b->c' esdevé 'a->c' quan fem unlinkTextFrames(b)' |
||
2177 | |||
2178 | Podem tenir ScribusException si violem les normes. |
||
2179 | </translation> |
||
2180 | </message> |
||
2181 | <message> |
||
2182 | <source>traceText(["name"]) |
||
2183 | |||
2184 | Convert the text frame "name" to outlines. If "name" is not given the |
||
2185 | currently selected item is used.</source> |
||
15354 | cbradney | 2186 | <translation type="obsolete">traceText(["nom"]) |
12918 | cbradney | 2187 | |
2188 | Convertim el quadre de text "nom" a esquema. Si no especifiquem |
||
2189 | "nom" es fa servir l'ítem seleccionat.</translation> |
||
2190 | </message> |
||
2191 | <message> |
||
2192 | <source>textOverflows(["name", nolinks]) -> integer |
||
2193 | |||
2194 | Returns the actual number of overflowing characters in text frame "name". |
||
2195 | If is nolinks set to non zero value it takes only one frame - it doesn't |
||
2196 | use text frame linking. Without this parameter it search all linking chain. |
||
2197 | |||
2198 | May raise WrongFrameTypeError if the target frame is not an text frame |
||
2199 | </source> |
||
15354 | cbradney | 2200 | <translation type="obsolete">textOverflows(["nom", nolinks]) -> integer |
12918 | cbradney | 2201 | |
2202 | Retorna el número actual de caràcters que sobreeixen del marc de text "nom". |
||
2203 | Si 'nolinks' val zero només mira un marc - no segueix els enllaços de |
||
2204 | text. Sense aquest paràmetre busca per tots els marcs que estiguin enllaçats. |
||
2205 | |||
2206 | Pot generar un WrongFrameTypeError si el marc de destí no és un marc de text |
||
2207 | </translation> |
||
2208 | </message> |
||
2209 | <message> |
||
2210 | <source>isPDFBookmark(["name"]) -> bool |
||
2211 | |||
2212 | Returns true if the text frame "name" is a PDF bookmark. |
||
2213 | If "name" is not given the currently selected item is used. |
||
2214 | |||
2215 | May raise WrongFrameTypeError if the target frame is not a text frame |
||
2216 | </source> |
||
15354 | cbradney | 2217 | <translation type="obsolete">isPDFBookmark(["nom"]) -> bool |
12918 | cbradney | 2218 | |
2219 | Retorna cert si el "nom" del marc de text és un punt PDF. |
||
2220 | Si no s'especifica "nom" es fa servir l'element actual. |
||
2221 | |||
2222 | Pot generar un WrongFrameTypeError si el marc de destí no és de text</translation> |
||
2223 | </message> |
||
2224 | <message> |
||
2225 | <source>messagebarText("string") |
||
2226 | |||
2227 | Writes the "string" into the Scribus message bar (status line). The text |
||
2228 | must be UTF8 encoded or 'unicode' string(recommended). |
||
2229 | </source> |
||
15354 | cbradney | 2230 | <translation type="obsolete">messagebarText("string") |
12918 | cbradney | 2231 | |
2232 | Escriu la cadena "string" en la barra d'estat de l'Scribus. El text |
||
2233 | ha de ser codificat en UTF8 o una cadena 'unicode' (recomanat). |
||
2234 | </translation> |
||
2235 | </message> |
||
2236 | <message> |
||
2237 | <source>progressReset() |
||
2238 | |||
2239 | Cleans up the Scribus progress bar previous settings. It is called before the |
||
2240 | new progress bar use. See progressSet. |
||
2241 | </source> |
||
15354 | cbradney | 2242 | <translation type="obsolete">progressReset() |
12918 | cbradney | 2243 | |
2244 | Buida la barra de progrés de l'Scribus. Es fa servir abans de fer servir |
||
2245 | una nova barra de progrés. Mireu ProgressSet. |
||
2246 | </translation> |
||
2247 | </message> |
||
2248 | <message> |
||
2249 | <source>progressTotal(max) |
||
2250 | |||
2251 | Sets the progress bar's maximum steps value to the specified number. |
||
2252 | See progressSet. |
||
2253 | </source> |
||
15354 | cbradney | 2254 | <translation type="obsolete">progressTotal(max) |
12918 | cbradney | 2255 | |
2256 | Estableix el màxim número de salts d'una barra de progrés al número. |
||
2257 | Mireu progressSet. |
||
2258 | </translation> |
||
2259 | </message> |
||
2260 | <message> |
||
2261 | <source>progressSet(nr) |
||
2262 | |||
2263 | Set the progress bar position to "nr", a value relative to the previously set |
||
2264 | progressTotal. The progress bar uses the concept of steps; you give it the |
||
2265 | total number of steps and the number of steps completed so far and it will |
||
2266 | display the percentage of steps that have been completed. You can specify the |
||
2267 | total number of steps with progressTotal(). The current number of steps is set |
||
2268 | with progressSet(). The progress bar can be rewound to the beginning with |
||
2269 | progressReset(). [based on info taken from Trolltech's Qt docs] |
||
2270 | </source> |
||
15354 | cbradney | 2271 | <translation type="obsolete">progressSet(nr) |
12918 | cbradney | 2272 | |
2273 | Estableix la posició de la barra de progrés a "nr", un valor relatiu al de |
||
2274 | progressTotal. La barra de progrés fa servir el concepte de passes; pits donar |
||
2275 | el número total de passes i el número total de passes fetes i es mostrarà |
||
2276 | el percentatge de passes que s'han completat. Pots especificar el número total |
||
2277 | de passes amb progressTotal(). El número actual de passes es passa amb |
||
2278 | progressSet(). La barra de progrés pot tornar-se al principi amb progressReset(). |
||
2279 | [basat en la informació passada la documentació de QT de TrollTech] |
||
2280 | </translation> |
||
2281 | </message> |
||
2282 | <message> |
||
2283 | <source>setCursor() |
||
2284 | |||
2285 | [UNSUPPORTED!] This might break things, so steer clear for now. |
||
2286 | </source> |
||
15354 | cbradney | 2287 | <translation type="obsolete">setCursor() |
12918 | cbradney | 2288 | |
2289 | [NO SUPORTAT!] Això farà anar malament, per tant no l'utilitzeu per ara. |
||
2290 | </translation> |
||
2291 | </message> |
||
2292 | <message> |
||
2293 | <source>docChanged(bool) |
||
2294 | |||
2295 | Enable/disable save icon in the Scribus icon bar and the Save menu item. It's |
||
2296 | useful to call this procedure when you're changing the document, because Scribus |
||
2297 | won't automatically notice when you change the document using a script. |
||
2298 | </source> |
||
15354 | cbradney | 2299 | <translation type="obsolete">docChanged(bool) |
12918 | cbradney | 2300 | |
2301 | Activa/desactiva la icona de desar en la barra d'icones i el menu de l'Scribus. És |
||
2302 | útil cridar aquest procediment quan estas canviant el document amb una |
||
2303 | seqüència, perquè Scribus no se n'adonarà automàticament dels canvis. |
||
2304 | </translation> |
||
2305 | </message> |
||
2306 | <message> |
||
2307 | <source>zoomDocument(double) |
||
2308 | |||
2309 | Zoom the document in main GUI window. Actions have whole number |
||
2310 | values like 20.0, 100.0, etc. Zoom to Fit uses -100 as a marker. |
||
2311 | </source> |
||
15354 | cbradney | 2312 | <translation type="obsolete">zoomDocument(double) |
12918 | cbradney | 2313 | |
2314 | Aplia la visualització del document en la finestra principal. Les accions han de |
||
2315 | tenir un número com 20.0, 100.0, etc.. Ampliar a la mida de la finestra és -100. |
||
2316 | </translation> |
||
2317 | </message> |
||
2318 | </context> |
||
2319 | <context> |
||
2320 | <name>@default</name> |
||
2321 | <message> |
||
2322 | <source>getFontSize(["name"]) -> float |
||
2323 | |||
2324 | Returns the font size in points for the text frame "name". If this text |
||
2325 | frame has some text selected the value assigned to the first character of |
||
2326 | the selection is returned. |
||
2327 | If "name" is not given the currently selected item is used. |
||
2328 | </source> |
||
2329 | <translation type="obsolete">getFontSize(["nom"]) -> float |
||
2330 | |||
2331 | Retorna la mida del tipus de lletra en punts del quadre de text "nom". Si |
||
2332 | aquest quadre de text té algun text seleccionat es torna el primer caràcter |
||
2333 | de la selecció. |
||
2334 | Si no es passa "nom" es fa servir l'ítem actualment seleccionat. |
||
2335 | </translation> |
||
2336 | </message> |
||
2337 | <message> |
||
1135 | cbradney | 2338 | <source>getColorNames() -> list |
2339 | |||
2340 | Returns a list containing the names of all defined colors in the document. |
||
2341 | If no document is open, returns a list of the default document colors. |
||
2342 | </source> |
||
12918 | cbradney | 2343 | <translation type="obsolete">getColorNames() -> llista |
1135 | cbradney | 2344 | |
2345 | Retorna una llista que conté els noms dels colors definits en el document. |
||
2346 | Si no hi ha cap document obert, retorna una llista amb els colors per defecte. |
||
2347 | </translation> |
||
2348 | </message> |
||
2349 | <message> |
||
2350 | <source>newDocDialog() -> bool |
||
2351 | |||
2352 | Displays the "New Document" dialog box. Creates a new document if the user |
||
2353 | accepts the settings. Does not create a document if the user presses cancel. |
||
2354 | Returns true if a new document was created. |
||
2355 | </source> |
||
12918 | cbradney | 2356 | <translation type="obsolete">newDocDialog() -> bool |
1135 | cbradney | 2357 | |
2358 | Mostra el diàleg "Nou Document". Crea un nou document si l'usuari accepta |
||
4890 | cbradney | 2359 | els paràmetres. No en fa cap en cas de que hagi triat cancel·lar. |
1135 | cbradney | 2360 | Retorna cert si s'ha creat un nou document. |
2361 | </translation> |
||
2362 | </message> |
||
2363 | <message> |
||
2364 | <source>getFillColor(["name"]) -> string |
||
2365 | |||
2366 | Returns the name of the fill color of the object "name". |
||
2367 | If "name" is not given the currently selected item is used. |
||
2368 | </source> |
||
12918 | cbradney | 2369 | <translation type="obsolete">getFillColor(["nom"]) -> string |
1135 | cbradney | 2370 | |
2371 | Retorna el nom del color de l'objecte "nom". |
||
4890 | cbradney | 2372 | Si no es dóna cap "nom", es fa servir l'ítem sel·leccionat. |
1135 | cbradney | 2373 | </translation> |
2374 | </message> |
||
2375 | <message> |
||
2376 | <source>moveObject(dx, dy [, "name"]) |
||
2377 | |||
2378 | Moves the object "name" by dx and dy relative to its current position. The |
||
2379 | distances are expressed in the current measurement unit of the document (see |
||
2380 | UNIT constants). If "name" is not given the currently selected item is used. |
||
2381 | If the object "name" belongs to a group, the whole group is moved. |
||
2382 | </source> |
||
12918 | cbradney | 2383 | <translation type="obsolete">moveObject(dx, dy [,"nom"]) |
1135 | cbradney | 2384 | |
2385 | Mou l'objecte "nom" una distància dx i dx respecte la posició actual. Les |
||
2386 | distàncies estan expressades en les unitats actuals del document (mireu |
||
4890 | cbradney | 2387 | unitats). Si no es dóna cap "nom", es fa servir l'ítem sel·leccionat. |
1135 | cbradney | 2388 | Si l'objecte "nom" pertany a un grup, es mou tot el grup. |
2389 | </translation> |
||
2390 | </message> |
||
2391 | <message> |
||
2392 | <source>setRedraw(bool) |
||
2393 | |||
2394 | Disables page redraw when bool = False, otherwise redrawing is enabled. |
||
2395 | This change will persist even after the script exits, so make sure to call |
||
2396 | setRedraw(True) in a finally: clause at the top level of your script. |
||
2397 | </source> |
||
12918 | cbradney | 2398 | <translation type="obsolete">setRedraw(bool) |
1135 | cbradney | 2399 | |
2400 | Desactiva el repintat de la pàgina quan bool=fals, altrament està activat. |
||
2401 | Aquest canvi continuarà fins i tot quan acabi l'execució de la seqüència, per tant cal estar |
||
2402 | segur d'acabar amb setRedraw(True): clausula a nivell alt de la teva seqüència. |
||
2403 | </translation> |
||
2404 | </message> |
||
2405 | <message> |
||
2406 | <source>createRect(x, y, width, height, ["name"]) -> string |
||
2407 | |||
2408 | Creates a new rectangle on the current page and returns its name. The |
||
2409 | coordinates are given in the current measurement units of the document |
||
2410 | (see UNIT constants). "name" should be a unique identifier for the object |
||
2411 | because you need this name to reference that object in future. If "name" |
||
2412 | is not given Scribus will create one for you. |
||
2413 | |||
2414 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
2415 | </source> |
||
12918 | cbradney | 2416 | <translation type="obsolete">createRect(x,y,amplada, alçada, ["name"]) -> string |
1135 | cbradney | 2417 | |
2418 | Crea un nou rectangle en la pàgina actual i retorna el seu nom. Les |
||
2419 | coordenades donades estaran en les unitats per defecte del document |
||
2420 | (mireu unitats). "nom" ha de ser un identificador únic per l'objecte |
||
2421 | ja que necessites aquest nom per fer referència a l'objecte en el futur. Si no |
||
2422 | es dóna "nom" Scribus en crearà un per nosaltres. |
||
2423 | |||
2424 | Es generar un NameExistsError si passem un nom que ja existeix. |
||
2425 | </translation> |
||
2426 | </message> |
||
2427 | <message> |
||
2428 | <source>newPage(where [,"template"]) |
||
2429 | |||
2430 | Creates a new page. If "where" is -1 the new Page is appended to the |
||
2431 | document, otherwise the new page is inserted before "where". Page numbers are |
||
2432 | counted from 1 upwards, no matter what the displayed first page number of your |
||
2433 | document is. The optional parameter "template" specifies the name of the |
||
2434 | template page for the new page. |
||
2435 | |||
2436 | May raise IndexError if the page number is out of range |
||
2437 | </source> |
||
3064 | cbradney | 2438 | <translation type="obsolete">newPage(on [,"plantilla"]) |
1135 | cbradney | 2439 | |
2440 | Crea una nova pàgina. Si "on" és -1 la nova pàgina es afegida al |
||
2441 | document, altrament la nova pàgina es afegida abans de "on". Els números de pàgina estan |
||
2442 | contats des de 1 endavant, no importa el número de pàgina que s'ensenya al |
||
2443 | document. El paràmetre opcional "plantilla" especifica el nom de la |
||
2444 | plantilla a fer servir en la pàgina. |
||
2445 | |||
2446 | Es pot generar un IndexError si el número de pàgina està fora de rang |
||
2447 | </translation> |
||
2448 | </message> |
||
2449 | <message> |
||
2450 | <source>setGradientFill(type, "color1", shade1, "color2", shade2, ["name"]) |
||
2451 | |||
2452 | Sets the gradient fill of the object "name" to type. Color descriptions are |
||
2453 | the same as for setFillColor() and setFillShade(). See the constants for |
||
2454 | available types (FILL_<type>). |
||
2455 | </source> |
||
12918 | cbradney | 2456 | <translation type="obsolete">setGradientFill(tipus, "color1", intensitat1, "color2", intensitat2, ["nom"]) |
1135 | cbradney | 2457 | |
2458 | Estableix el gradient d'emplenat de l'objecte "nom" a tipus. Les descripcions de colors |
||
2459 | són les mateixes que per setFillColor() i setFillShade(). Mireu les constants pels |
||
2460 | tipus disponibles (FILL_<tipus>). |
||
2461 | </translation> |
||
2462 | </message> |
||
2463 | <message> |
||
2464 | <source>messagebarText("string") |
||
2465 | |||
2466 | Writes the "string" into the Scribus message bar (status line). The text |
||
2467 | must be UTF8 encoded or 'unicode' string(recommended). |
||
2468 | </source> |
||
12918 | cbradney | 2469 | <translation type="obsolete">messagebarText("string") |
1135 | cbradney | 2470 | |
2471 | Escriu la cadena "string" en la barra d'estat de l'Scribus. El text |
||
2472 | ha de ser codificat en UTF8 o una cadena 'unicode' (recomanat). |
||
2473 | </translation> |
||
2474 | </message> |
||
2475 | <message> |
||
2476 | <source>newDoc(size, margins, orientation, firstPageNumber, |
||
2477 | unit, facingPages, firstSideLeft) -> bool |
||
2478 | |||
2479 | Creates a new document and returns true if successful. The parameters have the |
||
2480 | following meaning: |
||
2481 | |||
2482 | size = A tuple (width, height) describing the size of the document. You can |
||
2483 | use predefined constants named PAPER_<paper_type> e.g. PAPER_A4 etc. |
||
2484 | |||
2485 | margins = A tuple (left, right, top, bottom) describing the document |
||
2486 | margins |
||
2487 | |||
2488 | orientation = the page orientation - constants PORTRAIT, LANDSCAPE |
||
2489 | |||
2490 | firstPageNumber = is the number of the first page in the document used for |
||
2491 | pagenumbering. While you'll usually want 1, it's useful to have higher |
||
2492 | numbers if you're creating a document in several parts. |
||
2493 | |||
2494 | unit: this value sets the measurement units used by the document. Use a |
||
2495 | predefined constant for this, one of: UNIT_INCHES, UNIT_MILLIMETERS, |
||
2496 | UNIT_PICAS, UNIT_POINTS. |
||
2497 | |||
2498 | facingPages = FACINGPAGES, NOFACINGPAGES |
||
2499 | |||
2500 | firstSideLeft = FIRSTPAGELEFT, FIRSTPAGERIGHT |
||
2501 | |||
2502 | The values for width, height and the margins are expressed in the given unit |
||
2503 | for the document. PAPER_* constants are expressed in points. If your document |
||
2504 | is not in points, make sure to account for this. |
||
2505 | |||
2506 | example: newDoc(PAPER_A4, (10, 10, 20, 20), LANDSCAPE, 1, UNIT_POINTS, |
||
2507 | FACINGPAGES, FIRSTPAGERIGHT) |
||
2508 | </source> |
||
3064 | cbradney | 2509 | <translation type="obsolete">newDoc(mida, marges, orientació, primerNúmeroPàgina, |
1135 | cbradney | 2510 | unitats, PaginesAcarades, primeraPaginaEsquerra) -> bool |
2511 | |||
2512 | Crea un nou document i retorna cert si tot ha anat bé. Els paràmetres tenen el |
||
2513 | següent significat: |
||
2514 | |||
2515 | mida = Una parella (amplada, alçada) que descriu la mida del document. Pots |
||
2516 | fer servir constants predefinides com PAPER_<tipus de paper> ex. PAPER_A4 etc. |
||
2517 | |||
2518 | marges = Una agrupació (esquerra, dreta, dalt, baix) que descriu els marges |
||
2519 | del document. |
||
2520 | |||
2521 | orientació = la orientació de la pàgina - constants PORTRAIT, LANDSCAPE |
||
2522 | |||
2523 | PrimerNúmeroPàgina = és el número de la primera pàgina en el document que farem |
||
2524 | servir per numerar les pàgines. Encara que normalment es farà servir 1, a vegades |
||
2525 | es útil poder posar números més grans si es creen documents en parts. |
||
2526 | |||
2527 | unitats : aquest valor estableix les unitats que el document farà servir. Cal usar una |
||
2528 | constant predefinida, pot ser una de: UNIT_INCHES, UNIT_MILLIMETERS, |
||
2529 | UNIT_PICAS, UNIT_POINTS. |
||
2530 | |||
2531 | PàginesAcarades = FACINPAGES, NOFACINPAGES |
||
2532 | |||
2533 | PrimeraPàginaEsquerra = FIRSTPAGELEFT, FIRSTPAGERIGHT |
||
2534 | |||
2535 | Els valors per l'amplada, l'alçada i els marges està expressada en les unitats donades |
||
2536 | pel document. Les constants PAPER_* estan expressades en punts. Si el nostre document |
||
2537 | no està en punts, cal tenir-ho en compte. |
||
2538 | |||
2539 | exemple: newDoc(PAPER_A4, (10, 10, 20, 20), LANDSCAPE, 1, UNIT_POINTS, |
||
2540 | FACINGPAGES, FIRSTPAGERIGHT) |
||
2541 | </translation> |
||
2542 | </message> |
||
1525 | cbradney | 2543 | <message> |
1564 | cbradney | 2544 | <source>register_macro_callable(name, callable, accel='') |
1525 | cbradney | 2545 | |
1564 | cbradney | 2546 | Create a macro called "name" with the existing callable object "callable". |
2547 | The passed callable must not require any arguments when called (it may take |
||
2548 | optional arguments, but will not be given any). |
||
2549 | If provided, the string "accel" will be used to set a keyboard shortcut |
||
2550 | for the macro. |
||
2551 | If the passed callable is a class, it will be rejected. Functions and bound |
||
2552 | methods are quite acceptable, as are instances of classes that provide a |
||
2553 | __call__ method with no arguments. There is no problem with registering |
||
2554 | a callable more than once, nor with registering multiple bound methods |
||
2555 | of a single instance. |
||
2556 | </source> |
||
3064 | cbradney | 2557 | <translation type="obsolete">register_macro_callable(nom, callable, accel='') |
1525 | cbradney | 2558 | |
1564 | cbradney | 2559 | Crea una macro anomenada "nom" amb l'objecte usable existent "callable". |
2560 | Aquest objecte no ha de requerir cap argument quan es cridi (en pot tenir |
||
2561 | d'opcionals, però no se li'n poden donar). |
||
2562 | Si s'afegeix el paràmetre "accel" serà fet servir er crear una drecera de teclat |
||
2563 | per la macro. |
||
2564 | Si l'objecte que es vol usar és una classe, serà rebutjada. Es permeten funcions i |
||
2565 | mètodes embedits, ja que són instàncies classes que tenen un mètode |
||
2566 | __call__ sense arguments. No hi haurà problemes per registrar |
||
2567 | un objecte usable més d'un cop, ni per registrar múltiples mètodes embedits |
||
2568 | d'una sola instància. |
||
2569 | </translation> |
||
1525 | cbradney | 2570 | </message> |
3064 | cbradney | 2571 | <message> |
2572 | <source>newDoc(size, margins, orientation, firstPageNumber, |
||
2573 | unit, facingPages, firstSideLeft) -> bool |
||
2574 | |||
2575 | Creates a new document and returns true if successful. The parameters have the |
||
2576 | following meaning: |
||
2577 | |||
2578 | size = A tuple (width, height) describing the size of the document. You can |
||
2579 | use predefined constants named PAPER_<paper_type> e.g. PAPER_A4 etc. |
||
2580 | |||
2581 | margins = A tuple (left, right, top, bottom) describing the document |
||
2582 | margins |
||
2583 | |||
2584 | orientation = the page orientation - constants PORTRAIT, LANDSCAPE |
||
2585 | |||
2586 | firstPageNumer = is the number of the first page in the document used for |
||
2587 | pagenumbering. While you'll usually want 1, it's useful to have higher |
||
2588 | numbers if you're creating a document in several parts. |
||
2589 | |||
2590 | unit: this value sets the measurement units used by the document. Use a |
||
2591 | predefined constant for this, one of: UNIT_INCHES, UNIT_MILLIMETERS, |
||
2592 | UNIT_PICAS, UNIT_POINTS. |
||
2593 | |||
2594 | facingPages = FACINGPAGES, NOFACINGPAGES |
||
2595 | |||
2596 | firstSideLeft = FIRSTPAGELEFT, FIRSTPAGERIGHT |
||
2597 | |||
2598 | The values for width, height and the margins are expressed in the given unit |
||
2599 | for the document. PAPER_* constants are expressed in points. If your document |
||
2600 | is not in points, make sure to account for this. |
||
2601 | |||
2602 | example: newDoc(PAPER_A4, (10, 10, 20, 20), LANDSCAPE, 1, UNIT_POINTS, |
||
2603 | FACINGPAGES, FIRSTPAGERIGHT) |
||
2604 | </source> |
||
3824 | cbradney | 2605 | <translation type="obsolete">newDoc(mida, marges, orientació, primerNumeroPagina, |
3386 | mrdocs | 2606 | unitats, PaginesArarades, primercostatEsquerra) -> bool |
2607 | |||
2608 | Crea un nou document i retorna cert si se n'ha sortit. Els paràmetres signifiquen el |
||
2609 | següent: |
||
2610 | |||
2611 | Mida = Un parell (amplada, alçada) que descriu la mida del document. Pots fer |
||
2612 | servir les constants PAPER_<tipus> ex. PAPER_A4 etc.. |
||
2613 | |||
2614 | marges = una tupla (esquerra, dreta, dalt, baix) que descriu els marges del |
||
2615 | document |
||
2616 | |||
2617 | orientació = La orientació de la pàgina - constants PORTRAIT, LANDSCAPE |
||
2618 | |||
2619 | primerNumeroPagina = és el número que tindrà la primera pàgina del document a l'hora |
||
2620 | de numerar-les. Encara que normalment es farà servir 1, és útil tenir la possibilitat de posar-ne |
||
2621 | d'altres per si es crea un document en diferents parts. |
||
2622 | |||
2623 | unitats: aquest valor estableix les unitats de mesura que es faran servir en el document. Es |
||
2624 | fa servir una constant predefinida per definir-les: UNIT_INCHES, UNIT_MILLIMETERS, |
||
2625 | UNIT_PICAS, UNIT_POINTS. |
||
2626 | |||
2627 | PaginesArarades = FACINPAGES, NOFACINPAGES |
||
2628 | |||
2629 | primercostatEsquerra = FIRSTPAGELEFT, FIRSTPAGERIGHT |
||
2630 | |||
2631 | Els valors de amplada, alçada i els marges estan expressats en les unitats donades |
||
2632 | al document. Les constants PAPER_* estan expressades en punts. Si el document |
||
2633 | no treballa en punts, tingueu-ho en compte. |
||
2634 | |||
2635 | exemple: newDoc(PAPER_A4, (10,10,20,20),LANDSCAPE,1,UNIT_POINTS, |
||
2636 | FACINPAGES, FIRSTPAGERIGHT) |
||
2637 | </translation> |
||
3064 | cbradney | 2638 | </message> |
2639 | <message> |
||
2640 | <source>newPage(where [,"masterpage"]) |
||
2641 | |||
2642 | Creates a new page. If "where" is -1 the new Page is appended to the |
||
2643 | document, otherwise the new page is inserted before "where". Page numbers are |
||
2644 | counted from 1 upwards, no matter what the displayed first page number of your |
||
2645 | document is. The optional parameter "masterpage" specifies the name of the |
||
2646 | master page for the new page. |
||
2647 | |||
2648 | May raise IndexError if the page number is out of range |
||
2649 | </source> |
||
12918 | cbradney | 2650 | <translation type="obsolete">newPage(on [,"paginamestra"]) |
3386 | mrdocs | 2651 | |
2652 | Crea una nova pàgina. Si "on" és -1 la nova pàgina s'afegeix al final del document, |
||
2653 | altrament la nova pàgina s'afegeix allà on diu 'on'. Els números de pàgina es compten |
||
2654 | des de 1 endavan, independentment del número que s'hagi posat a cada pàgina en la |
||
2655 | creació del document. El paràmetre opcional "paginamestra" especifica el nom de la |
||
2656 | pàgina mestra a aplicar a la nova pàgina. |
||
2657 | |||
2658 | Pot generar un error IndexError si la pàgina està fora de rang</translation> |
||
3064 | cbradney | 2659 | </message> |
2660 | <message> |
||
2661 | <source>importSVG("string") |
||
2662 | |||
2663 | The "string" must be a valid filename for a SVG image. The text |
||
2664 | must be UTF8 encoded or 'unicode' string(recommended). |
||
2665 | </source> |
||
9729 | cbradney | 2666 | <translation type="obsolete">importSVG("string") |
3386 | mrdocs | 2667 | |
2668 | "String" ha de ser un nom vàlid per un fitxer SVG. El text |
||
2669 | ha de ser en codi UTF8 o unicode (recomanat).</translation> |
||
3064 | cbradney | 2670 | </message> |
3824 | cbradney | 2671 | <message> |
2672 | <source>newDocument(size, margins, orientation, firstPageNumber, |
||
2673 | unit, pagesType, firstPageOrder) -> bool |
||
2674 | |||
2675 | Creates a new document and returns true if successful. The parameters have the |
||
2676 | following meaning: |
||
2677 | |||
2678 | size = A tuple (width, height) describing the size of the document. You can |
||
2679 | use predefined constants named PAPER_<paper_type> e.g. PAPER_A4 etc. |
||
2680 | |||
2681 | margins = A tuple (left, right, top, bottom) describing the document |
||
2682 | margins |
||
2683 | |||
2684 | orientation = the page orientation - constants PORTRAIT, LANDSCAPE |
||
2685 | |||
2686 | firstPageNumer = is the number of the first page in the document used for |
||
2687 | pagenumbering. While you'll usually want 1, it's useful to have higher |
||
2688 | numbers if you're creating a document in several parts. |
||
2689 | |||
2690 | unit: this value sets the measurement units used by the document. Use a |
||
2691 | predefined constant for this, one of: UNIT_INCHES, UNIT_MILLIMETERS, |
||
2692 | UNIT_PICAS, UNIT_POINTS. |
||
2693 | |||
2694 | pagesType = One of the predefined constants PAGE_n. PAGE_1 is single page, |
||
2695 | PAGE_2 is for double sided documents, PAGE_3 is for 3 pages fold and |
||
2696 | PAGE_4 is 4-fold. |
||
2697 | |||
2698 | firstPageOrder = What is position of first page in the document. |
||
2699 | Indexed from 0 (0 = first). |
||
2700 | |||
2701 | The values for width, height and the margins are expressed in the given unit |
||
2702 | for the document. PAPER_* constants are expressed in points. If your document |
||
2703 | is not in points, make sure to account for this. |
||
2704 | |||
2705 | example: newDocument(PAPER_A4, (10, 10, 20, 20), LANDSCAPE, 7, UNIT_POINTS, |
||
2706 | PAGE_4, 3) |
||
2707 | |||
2708 | May raise ScribusError if is firstPageOrder bigger than allowed by pagesType. |
||
2709 | </source> |
||
6434 | cbradney | 2710 | <translation type="obsolete">newDocument(size, margins, orientation, firstPageNumber,(new line) |
4890 | cbradney | 2711 | unit, pagesType, firstPageOrder) -> bool |
2712 | |||
2713 | Crea un nou document i retorna cert si ha funcionat. Els paràmetres tenen el |
||
2714 | següent significat: |
||
2715 | |||
2716 | size = Una parella (amplada, alçada) que descriu la mida del document. Pots fer |
||
2717 | servir constants predefinides PAPER_<tipus de paper>. Ex. PAPER_A4 etc. |
||
2718 | |||
2719 | margins = una tupla (esquerra, dreta, dalt, baix) que descriu els marges del |
||
2720 | document |
||
2721 | |||
2722 | orientation = la orientació de la pàgina - constants PORTRAIT, LANDSCAPE |
||
2723 | |||
2724 | firstPageNumber = és el número de la primera pàgina que farà servir el document |
||
2725 | Normalment farem servir 1, però a vegades és útil tenir números més grans |
||
2726 | si es crea un document en varies parts |
||
2727 | |||
2728 | unit: thaquest valor estableix les unitats que el document farà servir. Cal usar una |
||
2729 | constant predefinida, pot ser una de: UNIT_INCHES, UNIT_MILLIMETERS, |
||
2730 | UNIT_PICAS, UNIT_POINTS. |
||
2731 | |||
2732 | pagesType = Una de les constants predefinides PAGE_n. PAGE_1 és una pàgina simple, |
||
2733 | PAGE_2 és per pàgines pels dos costats, PAGE_3 és per pàgines amb tres plecs |
||
2734 | PAGE_4 és per pàgines amb 4 plecs |
||
2735 | |||
2736 | firstPageOrder = Quina és la posició de la primera pàgina del document. |
||
2737 | Indexades des de 0 (0 = primera) |
||
2738 | |||
2739 | Els valors per amplada i alçada i els marges han d'estar expressats en les unitats per defecte |
||
2740 | del document. Les constants PAPER_* estan expressades en punts. Recorda-ho si el teu |
||
2741 | document no està en punts |
||
2742 | |||
2743 | exemple: newDocument(PAPER_A4, (10, 10, 20, 20), LANDSCAPE, 7, UNIT_POINTS, |
||
2744 | PAGE_4, 3) |
||
2745 | |||
2746 | Pot generar un ScribusError si firstPageOrder és més gran que el permès per pagesType. |
||
2747 | </translation> |
||
3824 | cbradney | 2748 | </message> |
1135 | cbradney | 2749 | <message> |
2750 | <source>getFont(["name"]) -> string |
||
2751 | |||
2752 | Returns the font name for the text frame "name". If this text frame |
||
2753 | has some text selected the value assigned to the first character |
||
2754 | of the selection is returned. If "name" is not given the currently |
||
2755 | selected item is used. |
||
2756 | </source> |
||
12918 | cbradney | 2757 | <translation type="obsolete">getFont(["nom]) -> string |
1135 | cbradney | 2758 | |
2759 | Retorna el nom de la font del quadre de text "nom". Si aquest quadre |
||
2760 | de text té algun text seleccionat es retorna el valor assignat al primer |
||
2761 | caràcter de la selecció. Si no especifiquem "nom" es fa servir l'ítem |
||
2762 | seleccionat. |
||
2763 | </translation> |
||
2764 | </message> |
||
2765 | <message> |
||
2766 | <source>getTextLength(["name"]) -> integer |
||
2767 | |||
2768 | Returns the length of the text in the text frame "name". |
||
2769 | If "name" is not given the currently selected item is used. |
||
2770 | </source> |
||
12918 | cbradney | 2771 | <translation type="obsolete">getFillColor(["nom"]) -> string |
1135 | cbradney | 2772 | |
2773 | Retorna el nom del color de l'objecte "nom". |
||
4890 | cbradney | 2774 | Si no es dóna cap "nom", es fa servir l'ítem sel·leccionat. |
1135 | cbradney | 2775 | getTextLength(["nom"]) -> integer |
2776 | |||
2777 | Retorna la llargada del text del quadre de text "nom". |
||
2778 | Si no es dóna cap "nom", es fa servir l'ítem sel.leccionat. |
||
2779 | </translation> |
||
2780 | </message> |
||
2781 | <message> |
||
2782 | <source>getText(["name"]) -> string |
||
2783 | |||
2784 | Returns the text of the text frame "name". If this text frame has some text |
||
2785 | selected, the selected text is returned. All text in the frame, not just |
||
2786 | currently visible text, is returned. If "name" is not given the currently |
||
2787 | selected item is used. |
||
2788 | </source> |
||
12918 | cbradney | 2789 | <translation type="obsolete">getText(["nom"]) -> string |
1135 | cbradney | 2790 | |
2791 | Retorna el text del quadre de text "nom". Si el quadre de text té algun |
||
2792 | text seleccionat, es torna el text seleccionat. Es torna tot el text, |
||
2793 | no només el text visible. Si no es dóna cap "nom", es fa servir |
||
4890 | cbradney | 2794 | l'ítem sel·leccionat. |
1135 | cbradney | 2795 | </translation> |
2796 | </message> |
||
2797 | <message> |
||
2798 | <source>getAllText(["name"]) -> string |
||
2799 | |||
2800 | Returns the text of the text frame "name" and of all text frames which are |
||
2801 | linked with this frame. If this textframe has some text selected, the selected |
||
2802 | text is returned. If "name" is not given the currently selected item is |
||
2803 | used. |
||
2804 | </source> |
||
12918 | cbradney | 2805 | <translation type="obsolete">getAllText(["nom"]) -> string |
1135 | cbradney | 2806 | |
2807 | Retorna el text del quadre de text "nom" i de tots els quadres de text que estan |
||
2808 | enllaçats amb aquest. Si el quadre de text té algun text seleccionat, es retorna |
||
2809 | el text seleccionat. Si no es dóna cap "nom", es fa servir l'ítem |
||
4890 | cbradney | 2810 | sel·leccionat. |
1135 | cbradney | 2811 | </translation> |
2812 | </message> |
||
2813 | <message> |
||
2814 | <source>getLineSpacing(["name"]) -> float |
||
2815 | |||
2816 | Returns the line spacing ("leading") of the text frame "name" expressed in |
||
2817 | points. If "name" is not given the currently selected item is used. |
||
2818 | </source> |
||
12918 | cbradney | 2819 | <translation type="obsolete">getLineSpacing(["nom"]) -> float |
1135 | cbradney | 2820 | |
2821 | Retorna l'espaiat entre línies del quadre de text "nom" expressat en |
||
4890 | cbradney | 2822 | punts. Si no es dóna cap "nom", es fa servir l'ítem sel·leccionat. |
1135 | cbradney | 2823 | </translation> |
2824 | </message> |
||
2825 | <message> |
||
2826 | <source>getColumnGap(["name"]) -> float |
||
2827 | |||
2828 | Returns the column gap size of the text frame "name" expressed in points. If |
||
2829 | "name" is not given the currently selected item is used. |
||
2830 | </source> |
||
12918 | cbradney | 2831 | <translation type="obsolete">getColumnGap(["nom"]) -> float |
1135 | cbradney | 2832 | |
2833 | Retorna l'espai entre columnes del quadre de text "nom" expressat en punts. Si |
||
4890 | cbradney | 2834 | no es dóna cap "nom", es fa servir l'ítem sel·leccionat. |
1135 | cbradney | 2835 | </translation> |
2836 | </message> |
||
2837 | <message> |
||
2838 | <source>getColumns(["name"]) -> integer |
||
2839 | |||
2840 | Gets the number of columns of the text frame "name". If "name" is not |
||
2841 | given the currently selected item is used. |
||
2842 | </source> |
||
12918 | cbradney | 2843 | <translation type="obsolete">getColumns(["nom"]) -> integer |
1135 | cbradney | 2844 | |
2845 | Dóna el número de columnes del quadre de text "nom". Si no es dóna |
||
4890 | cbradney | 2846 | cap "nom", es fa servir l'ítem sel·leccionat. |
1135 | cbradney | 2847 | </translation> |
2848 | </message> |
||
2849 | <message> |
||
2850 | <source>setText("text", ["name"]) |
||
2851 | |||
2852 | Sets the text of the text frame "name" to the text of the string "text". |
||
2853 | Text must be UTF8 encoded - use e.g. unicode(text, 'iso-8859-2'). See the FAQ |
||
2854 | for more details. If "name" is not given the currently selected item is |
||
2855 | used. |
||
2856 | </source> |
||
12918 | cbradney | 2857 | <translation type="obsolete">setText("text",["nom"]) |
1135 | cbradney | 2858 | |
2859 | Posa al quadre de text "name" el text contingut a la cadena "text". |
||
2860 | El text ha de ser codificat UTF8 - feu servir unicode(text, 'iso-8859-2'). Mireu el |
||
2861 | FAQ per més detalls. Si no es dóna cap "nom", es fa servir l'ítem |
||
4890 | cbradney | 2862 | sel·leccionat. |
1135 | cbradney | 2863 | </translation> |
2864 | </message> |
||
2865 | <message> |
||
2866 | <source>insertText("text", pos, ["name"]) |
||
2867 | |||
2868 | Inserts the text "text" at the position "pos" into the text frame. Text |
||
2869 | must be UTF encoded (see setText() as reference) The first character has an |
||
2870 | index of 0. "name" If "name" is not given the currently selected Item is |
||
2871 | used. |
||
2872 | |||
2873 | May throw IndexError for an insertion out of bounds. |
||
2874 | </source> |
||
3064 | cbradney | 2875 | <translation type="obsolete">insertText("text", pos, ["nom"]) |
1135 | cbradney | 2876 | |
2877 | Insereix el text "text" a la posició "pos" del quadre de text. Text ha de ser |
||
2878 | codificat UTF (mireu setText() per referència). El primer caràcter té un |
||
2879 | índex de 0. Si no es dóna cap "nom", es fa servir l'ítem |
||
2880 | sel.leccionat. |
||
2881 | |||
2882 | Pot provocar un IndexError al inserir fora de marges.</translation> |
||
2883 | </message> |
||
2884 | <message> |
||
2885 | <source>setFont("font", ["name"]) |
||
2886 | |||
2887 | Sets the font of the text frame "name" to "font". If there is some text |
||
2888 | selected only the selected text is changed. If "name" is not given the |
||
2889 | currently selected item is used. |
||
2890 | |||
2891 | May throw ValueError if the font cannot be found. |
||
2892 | </source> |
||
12918 | cbradney | 2893 | <translation type="obsolete">setFont("font",["nom]) |
1135 | cbradney | 2894 | |
2895 | Passa el quadre de text "nom" al tipus de lletra "font". Si hi ha alguna |
||
2896 | part de text seleccionada només canvia aquesta. Si no especifiquem "nom" |
||
2897 | es fa servir l'ítem seleccionat. |
||
2898 | |||
2899 | Pot generar ValueError si la font no es pot trobar. |
||
2900 | </translation> |
||
2901 | </message> |
||
2902 | <message> |
||
2903 | <source>setFontSize(size, ["name"]) |
||
2904 | |||
2905 | Sets the font size of the text frame "name" to "size". "size" is treated |
||
2906 | as a value in points. If there is some text selected only the selected text is |
||
2907 | changed. "size" must be in the range 1 to 512. If "name" is not given the |
||
2908 | currently selected item is used. |
||
2909 | |||
2910 | May throw ValueError for a font size that's out of bounds. |
||
2911 | </source> |
||
12918 | cbradney | 2912 | <translation type="obsolete">setFontSize(mida, ["nom"]) |
1135 | cbradney | 2913 | |
2914 | Estableix la mida de la font del quadre de text "nom" a "mida". "mida" |
||
2915 | ha de ser en punts. Si hi ha text seleccionat només es canvia |
||
2916 | aquest. "mida" ha de ser un valor entre 1 i 512. Si no especifiquem |
||
2917 | "nom" es fa servir l'ítem seleccionat. |
||
2918 | |||
2919 | Pot provocar ValueError per mides fora de rang. |
||
2920 | </translation> |
||
2921 | </message> |
||
2922 | <message> |
||
2923 | <source>setLineSpacing(size, ["name"]) |
||
2924 | |||
2925 | Sets the line spacing ("leading") of the text frame "name" to "size". |
||
2926 | "size" is a value in points. If "name" is not given the currently selected |
||
2927 | item is used. |
||
2928 | |||
2929 | May throw ValueError if the line spacing is out of bounds. |
||
2930 | </source> |
||
12918 | cbradney | 2931 | <translation type="obsolete">setLineSpacing(mida,["nom"]) |
1135 | cbradney | 2932 | |
2933 | Estableix l'espaiat de línia del quadre de text "nom" a "mida". |
||
2934 | "mida" està en punts. Si no especifiquem "nom" es fa servir l'ítem |
||
2935 | seleccionat. |
||
2936 | |||
2937 | Pot provocar ValueError si l'espaiat està fora de marges.</translation> |
||
2938 | </message> |
||
2939 | <message> |
||
2940 | <source>setColumnGap(size, ["name"]) |
||
2941 | |||
2942 | Sets the column gap of the text frame "name" to the value "size". If |
||
2943 | "name" is not given the currently selected item is used. |
||
2944 | |||
2945 | May throw ValueError if the column gap is out of bounds (must be positive). |
||
2946 | </source> |
||
12918 | cbradney | 2947 | <translation type="obsolete">setColumnGap(mida,["nom"]) |
1135 | cbradney | 2948 | |
2949 | Estableix l'espai entre columnes del quadre de text "nom" a "mida". Si |
||
2950 | no especifiquem "nom" es fa servir l'ítem seleccionat. |
||
2951 | |||
2952 | Pot provocar ValueError si el valor està fora de rang (ha de ser positiu). |
||
2953 | </translation> |
||
2954 | </message> |
||
2955 | <message> |
||
2956 | <source>setColumns(nr, ["name"]) |
||
2957 | |||
2958 | Sets the number of columns of the text frame "name" to the integer "nr". |
||
2959 | If "name" is not given the currently selected item is used. |
||
2960 | |||
2961 | May throw ValueError if number of columns is not at least one. |
||
2962 | </source> |
||
12918 | cbradney | 2963 | <translation type="obsolete">setColumns(nr, ["nom"]) |
1135 | cbradney | 2964 | |
2965 | Estableix que el quadre de text "nom" tindrà "nr" columnes. |
||
2966 | Si no especifiquem "nom" es fa servir l'ítem seleccionat. |
||
2967 | |||
2968 | Pot provocar ValueError si el número de columnes no és almenys una. |
||
2969 | </translation> |
||
2970 | </message> |
||
2971 | <message> |
||
2972 | <source>setTextAlignment(align, ["name"]) |
||
2973 | |||
2974 | Sets the text alignment of the text frame "name" to the specified alignment. |
||
2975 | If "name" is not given the currently selected item is used. "align" should |
||
2976 | be one of the ALIGN_ constants defined in this module - see dir(scribus). |
||
2977 | |||
2978 | May throw ValueError for an invalid alignment constant. |
||
2979 | </source> |
||
12918 | cbradney | 2980 | <translation type="obsolete">setTextAlignment(alineacio, ["nom"]) |
1135 | cbradney | 2981 | |
2982 | Estableix l'alineació del quadre de text "nom" a la especificada. |
||
2983 | Si no especifiquem "nom" es fa servir l'ítem seleccionat. "alineació" ha de ser |
||
2984 | una de les constants ALIGN_ definides en aquest mòdul - Mireu dir(scribus). |
||
2985 | |||
4890 | cbradney | 2986 | Pot provocar ValueError si posem una constant invàl·lida. |
1135 | cbradney | 2987 | </translation> |
2988 | </message> |
||
2989 | <message> |
||
2990 | <source>selectText(start, count, ["name"]) |
||
2991 | |||
2992 | Selects "count" characters of text in the text frame "name" starting from the |
||
2993 | character "start". Character counting starts at 0. If "count" is zero, any |
||
2994 | text selection will be cleared. If "name" is not given the currently |
||
2995 | selected item is used. |
||
2996 | |||
2997 | May throw IndexError if the selection is outside the bounds of the text. |
||
2998 | </source> |
||
12918 | cbradney | 2999 | <translation type="obsolete">selectText(inici, número, ["name"]) |
1135 | cbradney | 3000 | |
3001 | Seleccióna "número" caràcters del quadre de text "nom" començant pel |
||
3002 | caràcter "inici". Els caràcters comencen per 0. Si "número" és zero, es |
||
3003 | deselecciona tot el que hi pogués haver seleccionat. Si no especifiquem |
||
3004 | "nom" es fa servir l'ítem seleccionat. |
||
3005 | |||
3006 | Pot provocar un IndexError si la selecció és massa gran pel text. |
||
3007 | </translation> |
||
3008 | </message> |
||
3009 | <message> |
||
3010 | <source>deleteText(["name"]) |
||
3011 | |||
3012 | Deletes any text in the text frame "name". If there is some text selected, |
||
3013 | only the selected text will be deleted. If "name" is not given the currently |
||
3014 | selected item is used. |
||
3015 | </source> |
||
12918 | cbradney | 3016 | <translation type="obsolete">deleteText(["nom"]) |
1135 | cbradney | 3017 | |
3018 | Esborra qualsevol text del quadre de text "nom". Si hi ha algun text |
||
3019 | seleccionat només s'esborra la selecció. Si no especifiquem "nom" |
||
3020 | es fa servir l'ítem seleccionat. |
||
3021 | </translation> |
||
3022 | </message> |
||
3023 | <message> |
||
3024 | <source>setTextColor("color", ["name"]) |
||
3025 | |||
3026 | Sets the text color of the text frame "name" to the color "color". If there |
||
3027 | is some text selected only the selected text is changed. If "name" is not |
||
3028 | given the currently selected item is used. |
||
3029 | </source> |
||
12918 | cbradney | 3030 | <translation type="obsolete">setTextColor("color", ["nom"]) |
1135 | cbradney | 3031 | |
3032 | Posa el text del quadre de text "nom" al color "color". Si hi ha algun |
||
3033 | text seleccionat només es canvia el text seleccionat. Si no |
||
3034 | especifiquem "nom" es fa servir l'ítem seleccionat. |
||
3035 | </translation> |
||
3036 | </message> |
||
3037 | <message> |
||
3038 | <source>setTextStroke("color", ["name"]) |
||
3039 | |||
3040 | Set "color" of the text stroke. If "name" is not given the currently |
||
3041 | selected item is used. |
||
3042 | </source> |
||
12918 | cbradney | 3043 | <translation type="obsolete">setTextStroke("color", ["nom"]) |
1135 | cbradney | 3044 | |
3045 | Posa el "color" a les línies de contorn. Si no especifiquem "nom" |
||
3046 | es fa servir l'ítem seleccionat. |
||
3047 | </translation> |
||
3048 | </message> |
||
3049 | <message> |
||
3050 | <source>setTextShade(shade, ["name"]) |
||
3051 | |||
3052 | Sets the shading of the text color of the object "name" to "shade". If |
||
3053 | there is some text selected only the selected text is changed. "shade" must |
||
3054 | be an integer value in the range from 0 (lightest) to 100 (full color |
||
3055 | intensity). If "name" is not given the currently selected item is |
||
3056 | used. |
||
3057 | </source> |
||
12918 | cbradney | 3058 | <translation type="obsolete">setTextShade(intensitat, ["nom"]) |
1135 | cbradney | 3059 | |
3060 | Posa la intensitat del color del text "nom" a "intensitat". Si hi ha algun |
||
3061 | text seleccionat només es canvia aquest. "intensitat" ha de ser |
||
3062 | un valor enter que va des de 0 (clarejat) a 100 (intensitat de |
||
3063 | color).Si no especifiquem "nom" es fa servir l'ítem |
||
3064 | seleccionat. |
||
3065 | </translation> |
||
3066 | </message> |
||
3067 | <message> |
||
3068 | <source>linkTextFrames("fromname", "toname") |
||
3069 | |||
3070 | Link two text frames. The frame named "fromname" is linked to the |
||
3071 | frame named "toname". The target frame must be an empty text frame |
||
3072 | and must not link to or be linked from any other frames already. |
||
3073 | |||
3074 | May throw ScribusException if linking rules are violated. |
||
3075 | </source> |
||
12918 | cbradney | 3076 | <translation type="obsolete">linkTextFrames("desdenom","anom") |
1135 | cbradney | 3077 | |
3078 | Enllaça dos quadres de text. El quadre de text "desdenom" és enllaçat a |
||
3079 | el quadre de text "anom". El quadre de text de destí ha de ser buit |
||
3080 | i no es pot enllaçar o ser enllaçat per cap altre quadre de text. |
||
3081 | |||
3082 | Podem tenir ScribusException si es violen les normes d'enllaçat. |
||
3083 | </translation> |
||
3084 | </message> |
||
3085 | <message> |
||
3086 | <source>unlinkTextFrames("name") |
||
3087 | |||
3088 | Remove the specified (named) object from the text frame flow/linkage. If the |
||
3089 | frame was in the middle of a chain, the previous and next frames will be |
||
3090 | connected, eg 'a->b->c' becomes 'a->c' when you unlinkTextFrames(b)' |
||
3091 | |||
3092 | May throw ScribusException if linking rules are violated. |
||
3093 | </source> |
||
12918 | cbradney | 3094 | <translation type="obsolete">unlinkTextFrames("nom") |
1135 | cbradney | 3095 | |
3096 | Elimina l'objecte especificat del camí de quadre de text. Si el quadre |
||
3097 | de text estava al mig d'una cadena, els anteriors i els següents seran |
||
3098 | connectats, ex. 'a->b->c' esdevé 'a->c' quan fem unlinkTextFrames(b)' |
||
3099 | |||
3100 | Podem tenir ScribusException si violem les normes. |
||
3101 | </translation> |
||
3102 | </message> |
||
3103 | <message> |
||
3104 | <source>traceText(["name"]) |
||
3105 | |||
3106 | Convert the text frame "name" to outlines. If "name" is not given the |
||
3107 | currently selected item is used.</source> |
||
12918 | cbradney | 3108 | <translation type="obsolete">traceText(["nom"]) |
1135 | cbradney | 3109 | |
3110 | Convertim el quadre de text "nom" a esquema. Si no especifiquem |
||
3111 | "nom" es fa servir l'ítem seleccionat.</translation> |
||
3112 | </message> |
||
3113 | <message> |
||
3114 | <source>getColor("name") -> tuple |
||
3115 | |||
3116 | Returns a tuple (C, M, Y, K) containing the four color components of the |
||
3117 | color "name" from the current document. If no document is open, returns |
||
3118 | the value of the named color from the default document colors. |
||
3119 | |||
3120 | May raise NotFoundError if the named color wasn't found. |
||
3121 | May raise ValueError if an invalid color name is specified. |
||
3122 | </source> |
||
12918 | cbradney | 3123 | <translation type="obsolete">getColor("nom") -> tupla |
1135 | cbradney | 3124 | |
3125 | Retorna una tupla (C, M, Y, K) que conté els quatre components de color |
||
3126 | de "nom" del document actual. Si no hi ha cap document obert, torna |
||
3127 | el valor del color anomenat dels colors per defecte. |
||
3128 | |||
3129 | Pot produir un NotFoundError si no es troba el color. |
||
4890 | cbradney | 3130 | Pot produir ValueError si s'especifica un color invàl·lid. |
1135 | cbradney | 3131 | </translation> |
3132 | </message> |
||
3133 | <message> |
||
3134 | <source>changeColor("name", c, m, y, k) |
||
3135 | |||
3136 | Changes the color "name" to the specified CMYK value. The color value is |
||
3137 | defined via four components c = Cyan, m = Magenta, y = Yellow and k = Black. |
||
3138 | Color components should be in the range from 0 to 255. |
||
3139 | |||
3140 | May raise NotFoundError if the named color wasn't found. |
||
3141 | May raise ValueError if an invalid color name is specified. |
||
3142 | </source> |
||
12918 | cbradney | 3143 | <translation type="obsolete">changeColor("nom", c, m, y, k) |
1135 | cbradney | 3144 | |
3145 | Canvia el color "nom" a els valors CMYK. El valor del color està |
||
3146 | definit via els quatre components c=Cian, m=Magenta, y=Groc i k=Negre |
||
3147 | Els colors del component han d'estar dins del rang 0 a 255. |
||
3148 | |||
3149 | Pot produir un NotFoundError si no es troba el color. |
||
3150 | Pot produir ValueError si s'especifica un color erròni.</translation> |
||
3151 | </message> |
||
3152 | <message> |
||
3153 | <source>deleteColor("name", "replace") |
||
3154 | |||
3155 | Deletes the color "name". Every occurence of that color is replaced by the |
||
3156 | color "replace". If not specified, "replace" defaults to the color |
||
3157 | "None" - transparent. |
||
3158 | |||
3159 | deleteColor works on the default document colors if there is no document open. |
||
3160 | In that case, "replace", if specified, has no effect. |
||
3161 | |||
3162 | May raise NotFoundError if a named color wasn't found. |
||
3163 | May raise ValueError if an invalid color name is specified. |
||
3164 | </source> |
||
12918 | cbradney | 3165 | <translation type="obsolete">deleteColor("nom", "canvi") |
1135 | cbradney | 3166 | |
3167 | Esborra el color "nom". Cada ocurrència d'aquest color es canvia pel |
||
3168 | color "canvi". Si no s'especifica, "canvi" es canvia pel color "cap" |
||
3169 | - transparent. |
||
3170 | |||
3171 | deleteColor treballa en els colors per defecte del document si no n'hi |
||
3172 | ha cap d'obert, encara que s'especifiqui, no fa res. |
||
3173 | |||
3174 | Pot generar NotFoundError si no existeix el color. |
||
3175 | Pot generar ValueError si s'especifica un color invàlid. |
||
3176 | </translation> |
||
3177 | </message> |
||
3178 | <message> |
||
3179 | <source>replaceColor("name", "replace") |
||
3180 | |||
3181 | Every occurence of the color "name" is replaced by the color "replace". |
||
3182 | |||
3183 | May raise NotFoundError if a named color wasn't found. |
||
3184 | May raise ValueError if an invalid color name is specified. |
||
3185 | </source> |
||
12918 | cbradney | 3186 | <translation type="obsolete">replaceColor("nom", "canvi") |
1135 | cbradney | 3187 | |
3188 | Cada ocurrència del color "name" es canvia pel color "canvi". |
||
3189 | |||
3190 | Pot generar un NotFoundError si no existeix el color. |
||
3191 | Pot generar un ValueError si el color especificat és invalid. |
||
3192 | </translation> |
||
3193 | </message> |
||
3194 | <message> |
||
3195 | <source>fileDialog("caption", ["filter", "defaultname" ,haspreview, issave]) -> string with filename |
||
3196 | |||
3197 | Shows a File Open dialog box with the caption "caption". Files are filtered |
||
3198 | with the filter string "filter". A default filename or file path can also |
||
3199 | supplied, leave this string empty when you don't want to use it. A value of |
||
3200 | True for haspreview enables a small preview widget in the FileSelect box. When |
||
3201 | the issave parameter is set to True the dialog acts like a "Save As" dialog |
||
3202 | otherwise it acts like a "File Open Dialog". The default for both of the |
||
3203 | opional parameters is False. |
||
3204 | |||
3205 | The filter, if specified, takes the form 'comment (*.type *.type2 ...)'. |
||
3206 | For example 'Images (*.png *.xpm *.jpg)'. |
||
3207 | |||
3208 | Refer to the Qt-Documentation for QFileDialog for details on filters. |
||
3209 | |||
3210 | Example: fileDialog('Open input', 'CSV files (*.csv)') |
||
3211 | Example: fileDialog('Save report', defaultname='report.txt', issave=True) |
||
3212 | </source> |
||
3064 | cbradney | 3213 | <translation type="obsolete">fileDialog("caption", ["filtre", "nomdefecte", haspreview, issave])->string |
1135 | cbradney | 3214 | |
3215 | Mostra el diàleg d'obrir fitxer amb el text "caption". Els fitxers seran filtrats |
||
3216 | amb la cadena de filtre "filter". També es podrà donar un nom de fitxer, |
||
3217 | deixa aquesta cadena buida si no el vols fer servir. Quan el paràmetre |
||
3218 | "issave" està com a Cert el diàleg actua com un diàleg "Desa com" |
||
3219 | altrament actual com un diàleg "Obrir". Per defecte els paràmetres |
||
3220 | opcionals són falsos. |
||
3221 | |||
3222 | El filtre, si s'especifica, agafa la forma 'comentari (*.tipus, *.tipus2 ...)' |
||
3223 | Per exemple 'Imatges (*.png *.xpm *.jpg)'. |
||
3224 | |||
3225 | Per més detalls aneu a la Documentació Qt en el QFileDialog pels filtres. |
||
3226 | |||
3227 | Exemple: fileDialog('Obrir entrades', 'CSV files (*.csv)') |
||
3228 | Exemple: fileDialog('Gravar resultat', defaultname='report.txt', issave=True) |
||
3229 | </translation> |
||
3230 | </message> |
||
3231 | <message> |
||
3232 | <source>messageBox("caption", "message", |
||
3233 | icon=ICON_NONE, button1=BUTTON_OK|BUTTONOPT_DEFAULT, |
||
3234 | button2=BUTTON_NONE, button3=BUTTON_NONE) -> integer |
||
3235 | |||
3236 | Displays a message box with the title "caption", the message "message", and |
||
3237 | an icon "icon" and up to 3 buttons. By default no icon is used and a single |
||
3238 | button, OK, is displayed. Only the caption and message arguments are required, |
||
3239 | though setting an icon and appropriate button(s) is strongly |
||
3240 | recommended. The message text may contain simple HTML-like markup. |
||
3241 | |||
3242 | Returns the number of the button the user pressed. Button numbers start |
||
3243 | at 1. |
||
3244 | |||
3245 | For the icon and the button parameters there are predefined constants available |
||
3246 | with the same names as in the Qt Documentation. These are the BUTTON_* and |
||
3247 | ICON_* constants defined in the module. There are also two extra constants that |
||
3248 | can be binary-ORed with button constants: |
||
3249 | BUTTONOPT_DEFAULT Pressing enter presses this button. |
||
3250 | BUTTONOPT_ESCAPE Pressing escape presses this button. |
||
3251 | |||
3252 | Usage examples: |
||
3253 | result = messageBox('Script failed', |
||
3254 | 'This script only works when you have a text frame selected.', |
||
3255 | ICON_ERROR) |
||
3256 | result = messageBox('Monkeys!', 'Something went ook! <i>Was it a monkey?</i>', |
||
3257 | ICON_WARNING, BUTTON_YES|BUTTONOPT_DEFAULT, |
||
3258 | BUTTON_NO, BUTTON_IGNORE|BUTTONOPT_ESCAPE) |
||
3259 | |||
3260 | Defined button and icon constants: |
||
3261 | BUTTON_NONE, BUTTON_ABORT, BUTTON_CANCEL, BUTTON_IGNORE, BUTTON_NO, |
||
3262 | BUTTON_NOALL, BUTTON_OK, BUTTON_RETRY, BUTTON_YES, BUTTON_YESALL, |
||
3263 | ICON_NONE, ICON_INFORMATION, ICON_WARNING, ICON_CRITICAL. |
||
3264 | </source> |
||
12918 | cbradney | 3265 | <translation type="obsolete">messageBox("caption", "missatge", |
1135 | cbradney | 3266 | icon=ICON_NONE, button1=BUTTON_OK|BUTTONOPT_DEFAULT, |
3267 | button2=BUTTON_NONE, button3=BUTTON_NONE) -> integer |
||
3268 | |||
3269 | Mostra un diàleg amb el títol de finestra "caption", el missatge "missatge", i |
||
3270 | una icona "icon" amb fins a 3 botons. Per defecte no es fa servir cap icona i |
||
3271 | només un sol botó, OK. Només calen els textos de "caption" i de "missatge", |
||
3272 | per tant afegir una icona i els botons apropiats és molt |
||
3273 | recomanat. El missatge de text pot contenir tags HTML. |
||
3274 | |||
3275 | Retorna el número del botó que l'usuari a premit. El número de botos comença |
||
3276 | a 1. |
||
3277 | |||
3278 | Per la icona i pels paràmetres dels botons hi ha diverses constants predeterminades |
||
3279 | amb els mateixos noms que a la documentació de Qt. Són constants BUTTON_* i |
||
3280 | ICON_* definides al mòdul. També hi ha constants extres a les que poden fer |
||
3281 | un OR binari amb constants de botó: |
||
3282 | BUTTONOPT_DEFAULT Prement enter tria aquest botó. |
||
3283 | BUTTONOPT_ESCAPE Prement escape tria aquest botó. |
||
3284 | |||
3285 | Exemples d'ús: |
||
3286 | result = messageBox('Script failed', |
||
3287 | messageBox("caption", "message",(new line) |
||
3288 | (sp)(sp)(sp)(sp)icon=ICON_NONE, button1=BUTTON_OK|BUTTONOPT_DEFAULT,(new line) |
||
3289 | (sp)(sp)(sp)(sp)button2=BUTTON_NONE, button3=BUTTON_NONE) -> integer(new line) |
||
3290 | (new line) |
||
3291 | Displays a message box with the title "caption", the message "message", and(new line) |
||
3292 | an icon "icon" and up to 3 buttons. By default no icon is used and a single(new line) |
||
3293 | button, OK, is displayed. Only the caption and message arguments are required,(new line) |
||
3294 | though setting an icon and appropriate button(s) is strongly(new line) |
||
3295 | recommended. The message text may contain simple HTML-like markup.(new line) |
||
3296 | (new line) |
||
3297 | Returns the number of the button the user pressed. Button numbers start(new line) |
||
3298 | at 1.(new line) |
||
3299 | (new line) |
||
3300 | For the icon and the button parameters there are predefined constants available(new line) |
||
3301 | with the same names as in the Qt Documentation. These are the BUTTON_* and(new line) |
||
3302 | ICON_* constants defined in the module. There are also two extra constants that(new line) |
||
3303 | can be binary-ORed with button constants:(new line) |
||
3304 | (sp)(sp)(sp)(sp)BUTTONOPT_DEFAULT(sp)(sp)(sp)Pressing enter presses this button.(new line) |
||
3305 | (sp)(sp)(sp)(sp)BUTTONOPT_ESCAPE(sp)(sp)(sp)(sp)Pressing escape presses this button.(new line) |
||
3306 | (new line) |
||
3307 | Usage examples:(new line) |
||
3308 | result = messageBox('Script failed',(new line) |
||
3309 | 'This script only works when you have a text frame selected.', |
||
3310 | ICON_ERROR) |
||
3311 | result = messageBox('Monkeys!', 'Something went ook! <i>Was it a monkey?</i>', |
||
3312 | ICON_WARNING, BUTTON_YES|BUTTONOPT_DEFAULT, |
||
3313 | BUTTON_NO, BUTTON_IGNORE|BUTTONOPT_ESCAPE) |
||
3314 | |||
3315 | Les constants de botó són: |
||
3316 | BUTTON_NONE, BUTTON_ABORT, BUTTON_CANCEL, BUTTON_IGNORE, BUTTON_NO, |
||
3317 | BUTTON_NOALL, BUTTON_OK, BUTTON_RETRY, BUTTON_YES, BUTTON_YESALL, |
||
3318 | ICON_NONE, ICON_INFORMATION, ICON_WARNING, ICON_CRITICAL. |
||
3319 | </translation> |
||
3320 | </message> |
||
3321 | <message> |
||
3322 | <source>valueDialog(caption, message [,defaultvalue]) -> string |
||
3323 | |||
3324 | Shows the common 'Ask for string' dialog and returns its value as a string |
||
3325 | Parameters: window title, text in the window and optional 'default' value. |
||
3326 | |||
3327 | Example: valueDialog('title', 'text in the window', 'optional') |
||
3328 | </source> |
||
12918 | cbradney | 3329 | <translation type="obsolete">valueDialog(caption, missatge, [,valorperdefecte]) -> string |
1135 | cbradney | 3330 | |
3331 | Mostra el diàleg comú "Demana per cadena" i retorna el seu valor. |
||
3332 | Paràmetres: títol de finestra, text en la finestra i un valor per defecte opcional. |
||
3333 | |||
3334 | Exemple: valueDialog('titol', 'text en la finestra', 'opcional') |
||
3335 | </translation> |
||
3336 | </message> |
||
3337 | <message> |
||
3338 | <source>closeDoc() |
||
3339 | |||
3340 | Closes the current document without prompting to save. |
||
3341 | |||
3342 | May throw NoDocOpenError if there is no document to close |
||
3343 | </source> |
||
12918 | cbradney | 3344 | <translation type="obsolete">closeDoc() |
1135 | cbradney | 3345 | |
3346 | Tanca el document actual sense preguntar per desar. |
||
3347 | |||
3348 | Pot generar un NoDocOpenError si no hi ha cap document per tancar |
||
3349 | </translation> |
||
3350 | </message> |
||
3351 | <message> |
||
3352 | <source>haveDoc() -> bool |
||
3353 | |||
3354 | Returns true if there is a document open. |
||
3355 | </source> |
||
12918 | cbradney | 3356 | <translation type="obsolete">haveDoc() -> bool |
1135 | cbradney | 3357 | |
3358 | Retorna cert si hi ha un document obert. |
||
3359 | </translation> |
||
3360 | </message> |
||
3361 | <message> |
||
3362 | <source>openDoc("name") |
||
3363 | |||
3364 | Opens the document "name". |
||
3365 | |||
3366 | May raise ScribusError if the document could not be opened. |
||
3367 | </source> |
||
12918 | cbradney | 3368 | <translation type="obsolete">openDoc("nom") |
1135 | cbradney | 3369 | |
3370 | Obre el document "nom". |
||
3371 | |||
3372 | Pot generar ScribusError si el document no es pot obrir.</translation> |
||
3373 | </message> |
||
3374 | <message> |
||
3375 | <source>saveDoc() |
||
3376 | |||
3377 | Saves the current document with its current name, returns true if successful. |
||
3378 | If the document has not already been saved, this may bring up an interactive |
||
3379 | save file dialog. |
||
3380 | |||
3381 | If the save fails, there is currently no way to tell. |
||
3382 | </source> |
||
12918 | cbradney | 3383 | <translation type="obsolete">saveDoc() |
1135 | cbradney | 3384 | |
3385 | Desa el document actual amb el seu nom actual, retorna cert si ha funcionat. |
||
3386 | Si el document no ha estat gravat previament, ens sortirà un diàleg interactiu |
||
3387 | per guardar. |
||
3388 | |||
3389 | Si no es pot desar, no hi ha cap forma de saber-ho. |
||
3390 | </translation> |
||
3391 | </message> |
||
3392 | <message> |
||
3393 | <source>saveDocAs("name") |
||
3394 | |||
3395 | Saves the current document under the new name "name" (which may be a full or |
||
3396 | relative path). |
||
3397 | |||
3398 | May raise ScribusError if the save fails. |
||
3399 | </source> |
||
12918 | cbradney | 3400 | <translation type="obsolete">saveDocAs("nom") |
1135 | cbradney | 3401 | |
3402 | Desa el document actual sota el nou nom "nom" (que pot ser amb camí absolut |
||
3403 | o camí relatiu). |
||
3404 | |||
3405 | Pot generar un ScribusError si falla el desat. |
||
3406 | </translation> |
||
3407 | </message> |
||
3408 | <message> |
||
3409 | <source>saveDocAs("author", "info", "description") -> bool |
||
3410 | |||
3411 | Sets the document information. "Author", "Info", "Description" are |
||
3412 | strings. |
||
3413 | </source> |
||
6434 | cbradney | 3414 | <translation type="obsolete">saveDocAs("autor", "info", "descripcio") -> bool |
1135 | cbradney | 3415 | |
3416 | Posa la informació al document. "Autor", "Informació", "Descripció" són |
||
3417 | cadenes. |
||
3418 | </translation> |
||
3419 | </message> |
||
3420 | <message> |
||
3421 | <source>setMargins(lr, rr, tr, br) |
||
3422 | |||
3423 | Sets the margins of the document, Left(lr), Right(rr), Top(tr) and Bottom(br) |
||
3424 | margins are given in the measurement units of the document - see UNIT_<type> |
||
3425 | constants. |
||
3426 | </source> |
||
9729 | cbradney | 3427 | <translation type="obsolete">setMargins(lr, rr, tr, br) |
1135 | cbradney | 3428 | |
3429 | Posa els marges del document, Esquerra (lr), Dreta (rr), Dalt (tr) i Baix (br) |
||
3430 | Els marges s'han de posar en unitats de mesura del document - veure les constants |
||
3431 | UNIT_<tipus>. |
||
3432 | </translation> |
||
3433 | </message> |
||
3434 | <message> |
||
3435 | <source>setUnit(type) |
||
3436 | |||
3437 | Changes the measurement unit of the document. Possible values for "unit" are |
||
3438 | defined as constants UNIT_<type>. |
||
3439 | |||
3440 | May raise ValueError if an invalid unit is passed. |
||
3441 | </source> |
||
12918 | cbradney | 3442 | <translation type="obsolete">setUnit(unitats) |
1135 | cbradney | 3443 | |
3444 | Canvia les unitats de mesura del document. Possible valors de les unitats estan |
||
3445 | definides com a constants UNIT_<tipus>. |
||
3446 | </translation> |
||
3447 | </message> |
||
3448 | <message> |
||
3449 | <source>getUnit() -> integer (Scribus unit constant) |
||
3450 | |||
3451 | Returns the measurement units of the document. The returned value will be one |
||
3452 | of the UNIT_* constants: |
||
3453 | UNIT_INCHES, UNIT_MILLIMETERS, UNIT_PICAS, UNIT_POINTS. |
||
3454 | </source> |
||
12918 | cbradney | 3455 | <translation type="obsolete">getUnit() -> integer (unitats de constants Scribus) |
1135 | cbradney | 3456 | |
3457 | Retorna les unitats des mesura del document. El valor retornat serà una de |
||
3458 | les constants UNIT_*: |
||
3459 | UNIT_INCHES, UNIT_MILLIMETERS, UNIT_PICAS, UNIT_POINTS. |
||
3460 | </translation> |
||
3461 | </message> |
||
3462 | <message> |
||
3463 | <source>loadStylesFromFile("filename") |
||
3464 | |||
3465 | Loads paragraph styles from the Scribus document at "filename" into the |
||
3466 | current document. |
||
3467 | </source> |
||
12918 | cbradney | 3468 | <translation type="obsolete">loadStylesFromFile("nomfitxer") |
1135 | cbradney | 3469 | |
3470 | Carregar els estils de paràgraf des d'un document Scribus especificat a "nomfitxer" |
||
3471 | en el document actual. |
||
3472 | </translation> |
||
3473 | </message> |
||
3474 | <message> |
||
3475 | <source>setDocType(facingPages, firstPageLeft) |
||
3476 | |||
3477 | Sets the document type. To get facing pages set the first parameter to |
||
3478 | FACINGPAGES, to switch facingPages off use NOFACINGPAGES instead. If you want |
||
3479 | to be the first page a left side set the second parameter to FIRSTPAGELEFT, for |
||
3480 | a right page use FIRSTPAGERIGHT. |
||
3481 | </source> |
||
12918 | cbradney | 3482 | <translation type="obsolete">setDocType(facingPages, firstPageLeft) |
1135 | cbradney | 3483 | |
3484 | Estableix el tipus de document. Per tenir pàgines acarades cal establir primer |
||
3485 | paràmetre a FACINPAGES, i per no tenir-ne NOFACINPAGES. Si vols que la primera |
||
3486 | pàgina sigui a l'esquerra cal posar al segon paràmetre FIRSTPAGELEFT, i perquè |
||
3487 | sigui la dreta FIRSTPAGERIGHT. |
||
3488 | </translation> |
||
3489 | </message> |
||
3490 | <message> |
||
3491 | <source>getLineColor(["name"]) -> string |
||
3492 | |||
3493 | Returns the name of the line color of the object "name". |
||
3494 | If "name" is not given the currently selected item is used. |
||
3495 | </source> |
||
12918 | cbradney | 3496 | <translation type="obsolete">getLineColor(["nom"]) -> string |
1135 | cbradney | 3497 | |
3498 | Retorna el nom del color de línia de l'objecte "nom". |
||
3499 | Si no especifiquem "nom" es fa servir l'ítem seleccionat. |
||
3500 | </translation> |
||
3501 | </message> |
||
3502 | <message> |
||
3503 | <source>getLineWidth(["name"]) -> integer |
||
3504 | |||
3505 | Returns the line width of the object "name". If "name" |
||
3506 | is not given the currently selected Item is used. |
||
3507 | </source> |
||
12918 | cbradney | 3508 | <translation type="obsolete">getLineWidth(["nom"]) -> integer |
1135 | cbradney | 3509 | |
3510 | Retorna l'amplada de la línia de l'objecte "nom". Si no |
||
3511 | especifiquem "nom" es fa servir l'ítem seleccionat. |
||
3512 | </translation> |
||
3513 | </message> |
||
3514 | <message> |
||
3515 | <source>getLineShade(["name"]) -> integer |
||
3516 | |||
3517 | Returns the shading value of the line color of the object "name". |
||
3518 | If "name" is not given the currently selected item is used. |
||
3519 | </source> |
||
12918 | cbradney | 3520 | <translation type="obsolete">getLineShade(["nom"]) -> integer |
1135 | cbradney | 3521 | |
3522 | Retorna el valor de la intensitat del color de la línia de l'objecte "nom". |
||
3523 | Si no especifiquem "nom" es fa servir l'ítem seleccionat. |
||
3524 | </translation> |
||
3525 | </message> |
||
3526 | <message> |
||
3527 | <source>getLineJoin(["name"]) -> integer (see contants) |
||
3528 | |||
3529 | Returns the line join style of the object "name". If "name" is not given |
||
3530 | the currently selected item is used. The join types are: |
||
3531 | JOIN_BEVEL, JOIN_MITTER, JOIN_ROUND |
||
3532 | </source> |
||
10842 | cbradney | 3533 | <translation type="obsolete">getLineJoin(["nom"]) -> integer (mirar constants) |
1135 | cbradney | 3534 | |
3535 | Retorna l'estil d'unió de línia de l'objecte "nom". Si no especifiquem |
||
3536 | "nom" es fa servir l'ítem seleccionat. Els tipus d'unió són: |
||
3537 | JOIN_BEVEL, JOIN_MITTER, JOIN_ROUND |
||
3538 | </translation> |
||
3539 | </message> |
||
3540 | <message> |
||
3541 | <source>getLineEnd(["name"]) -> integer (see constants) |
||
3542 | |||
3543 | Returns the line cap style of the object "name". If "name" is not given the |
||
3544 | currently selected item is used. The cap types are: |
||
3545 | CAP_FLAT, CAP_ROUND, CAP_SQUARE |
||
3546 | </source> |
||
12918 | cbradney | 3547 | <translation type="obsolete">getLineEnd(["nom"]) -> integer (mirar constants) |
1135 | cbradney | 3548 | |
3549 | Retorna el tap de línia de l'objecte "nom". Si no especifiquem "nom" es fa |
||
3550 | servir l'ítem seleccionat. Els tipus de tap són: |
||
3551 | CAP_FLAT, CAP_ROUND, CAP_SQUARE |
||
3552 | </translation> |
||
3553 | </message> |
||
3554 | <message> |
||
3555 | <source>getLineStyle(["name"]) -> integer (see constants) |
||
3556 | |||
3557 | Returns the line style of the object "name". If "name" is not given the |
||
3558 | currently selected item is used. Line style constants are: |
||
3559 | LINE_DASH, LINE_DASHDOT, LINE_DASHDOTDOT, LINE_DOT, LINE_SOLID |
||
3560 | </source> |
||
12918 | cbradney | 3561 | <translation type="obsolete">getLineStyle(["nom"]) -> integer (mirar constants) |
1135 | cbradney | 3562 | |
3563 | Retorna l'estil de línia de l'objecte "nom". Si no especifiquem "nom" es |
||
3564 | fa servir l'ítem seleccionat.. Les constants de línia són: |
||
3565 | LINE_DASH, LINE_DASHDOT, LINE_DASHDOTDOT, LINE_DOT, LINE_SOLID |
||
3566 | </translation> |
||
3567 | </message> |
||
3568 | <message> |
||
3569 | <source>getFillShade(["name"]) -> integer |
||
3570 | |||
3571 | Returns the shading value of the fill color of the object "name". |
||
3572 | If "name" is not given the currently selected item is used. |
||
3573 | </source> |
||
12918 | cbradney | 3574 | <translation type="obsolete">getFillShade(["nom"]) -> integer |
1135 | cbradney | 3575 | |
3576 | Retorna el valor de la intensitat del color d'emplenament de l'objecte "nom". |
||
3577 | Si no especifiquem "nom" es fa servir l'ítem seleccionat. |
||
3578 | </translation> |
||
3579 | </message> |
||
3580 | <message> |
||
3581 | <source>getImageScale(["name"]) -> (x,y) |
||
3582 | |||
3583 | Returns a (x, y) tuple containing the scaling values of the image frame |
||
3584 | "name". If "name" is not given the currently selected item is used. |
||
3585 | </source> |
||
12918 | cbradney | 3586 | <translation type="obsolete">getImageScale(["name"]) -> (x,y) |
1135 | cbradney | 3587 | |
3588 | Retorna una parella (x,y) contenint els valors d'escalat de la imatge |
||
3589 | "nom". Si no especifiquem "nom" es fa servir l'ítem seleccionat. |
||
3590 | </translation> |
||
3591 | </message> |
||
3592 | <message> |
||
3593 | <source>getImageName(["name"]) -> string |
||
3594 | |||
3595 | Returns the filename for the image in the image frame. If "name" is not |
||
3596 | given the currently selected item is used. |
||
3597 | </source> |
||
12918 | cbradney | 3598 | <translation type="obsolete">getImageName(["nom"]) -> string |
1135 | cbradney | 3599 | |
3600 | Retorna el nom del fitxer de la imatge que tenim. Si no especifiquem "nom" |
||
3601 | es fa servir l'ítem seleccionat.</translation> |
||
3602 | </message> |
||
3603 | <message> |
||
3604 | <source>getSize(["name"]) -> (width,height) |
||
3605 | |||
3606 | Returns a (width, height) tuple with the size of the object "name". |
||
3607 | If "name" is not given the currently selected item is used. The size is |
||
3608 | expressed in the current measurement unit of the document - see UNIT_<type> |
||
3609 | for reference. |
||
3610 | </source> |
||
12918 | cbradney | 3611 | <translation type="obsolete">getSize(["nom"]) -> (amplada,alçada) |
1135 | cbradney | 3612 | |
3613 | Retorna un parell (amplada, alçada) amb la mida de l'objecte "nom". |
||
3614 | Si no especifiquem "nom" es fa servir l'ítem seleccionat. La mida està |
||
3615 | expressada en les unitats de mesura del document - mireu UNIT_<tipus> |
||
3616 | per referència.</translation> |
||
3617 | </message> |
||
3618 | <message> |
||
3619 | <source>getRotation(["name"]) -> integer |
||
3620 | |||
3621 | Returns the rotation of the object "name". The value is expressed in degrees, |
||
3622 | and clockwise is positive. If "name" is not given the currently selected item |
||
3623 | is used. |
||
3624 | </source> |
||
12918 | cbradney | 3625 | <translation type="obsolete">getRotation(["name"]) -> integer |
1135 | cbradney | 3626 | |
3627 | Retorna la rotació de l'objecte "nom". El valor està expressat en graus, |
||
3628 | en sentit horari és positiu. Si no especifiquem "nom" es fa servir l'ítem |
||
3629 | seleccionat. |
||
3630 | </translation> |
||
3631 | </message> |
||
3632 | <message> |
||
3633 | <source>getAllObjects() -> list |
||
3634 | |||
3635 | Returns a list containing the names of all objects on the current page. |
||
3636 | </source> |
||
12918 | cbradney | 3637 | <translation type="obsolete">getAllObjects() -> list |
1135 | cbradney | 3638 | |
3639 | Retorna una llista que conté els noms de tots els objectes de la pàgina actual. |
||
3640 | </translation> |
||
3641 | </message> |
||
3642 | <message> |
||
3643 | <source>moveObjectAbs(x, y [, "name"]) |
||
3644 | |||
3645 | Moves the object "name" to a new location. The coordinates are expressed in |
||
3646 | the current measurement unit of the document (see UNIT constants). If "name" |
||
3647 | is not given the currently selected item is used. If the object "name" |
||
3648 | belongs to a group, the whole group is moved. |
||
3649 | </source> |
||
12918 | cbradney | 3650 | <translation type="obsolete">moveObjectAbs(x, y [, "nom"]) |
1135 | cbradney | 3651 | |
3652 | Mou l'objecte "nom" a una nova posició. Les coordenades estan expressades en |
||
3653 | les unitats de mesura del document (veure constants UNIT). Si no especifiquem "nom" |
||
3654 | es fa servir l'ítem seleccionat. Si l'objecte "nom" pertany a un grup, |
||
3655 | es mou tot el grup. |
||
3656 | </translation> |
||
3657 | </message> |
||
3658 | <message> |
||
3659 | <source>rotateObject(rot [, "name"]) |
||
3660 | |||
3661 | Rotates the object "name" by "rot" degrees relatively. The object is |
||
3662 | rotated by the vertex that is currently selected as the rotation point - by |
||
3663 | default, the top left vertext at zero rotation. Positive values mean counter |
||
3664 | clockwise rotation when the default rotation point is used. If "name" is not |
||
3665 | given the currently selected item is used. |
||
3666 | </source> |
||
10842 | cbradney | 3667 | <translation type="obsolete">rotateObject(rot, [, "nom"]) |
1135 | cbradney | 3668 | |
3669 | Rota l'objecte "nom" "rot" graus respecte el punt actual. L'objecte és |
||
3670 | rotat pel vertex seleccionat com a punt de rotació - per defecte, el |
||
3671 | punt superior esquerre a rotació zero. Valors positius representen rodar |
||
3672 | en sentit horari quan es fa servir el punt de rotació per defecte. Si no |
||
3673 | especifiquem "nom" es fa servir l'ítem seleccionat. |
||
3674 | </translation> |
||
3675 | </message> |
||
3676 | <message> |
||
3677 | <source>sizeObject(width, height [, "name"]) |
||
3678 | |||
3679 | Resizes the object "name" to the given width and height. If "name" |
||
3680 | is not given the currently selected item is used. |
||
3681 | </source> |
||
12918 | cbradney | 3682 | <translation type="obsolete">sizeObject(amplada, alçada [, "nom"]) |
1135 | cbradney | 3683 | |
3684 | Canvia la mida de l'objecte "nom" a la mida especificada. Si no |
||
3685 | especifiquem "nom" es fa servir l'ítem seleccionat. |
||
3686 | </translation> |
||
3687 | </message> |
||
3688 | <message> |
||
3689 | <source>getSelectedObject([nr]) -> string |
||
3690 | |||
3691 | Returns the name of the selected object. "nr" if given indicates the number |
||
3692 | of the selected object, e.g. 0 means the first selected object, 1 means the |
||
3693 | second selected Object and so on. |
||
3694 | </source> |
||
12918 | cbradney | 3695 | <translation type="obsolete">getSelectedObject([nr]) -> string |
1135 | cbradney | 3696 | |
3697 | Retorna el nom de l'objecte seleccionat. "nr" si es dóna especifica el número |
||
3698 | de l'objecte seleccionat, ex. 0 significa el primer objecte seleccionat, 1 el |
||
3699 | segon i així. |
||
3700 | </translation> |
||
3701 | </message> |
||
3702 | <message> |
||
3703 | <source>selectionCount() -> integer |
||
3704 | |||
3705 | Returns the number of selected objects. |
||
3706 | </source> |
||
12918 | cbradney | 3707 | <translation type="obsolete">seleccionCount() -> integer |
1135 | cbradney | 3708 | |
3709 | Retorna el número d'objectes seleccionats. |
||
3710 | </translation> |
||
3711 | </message> |
||
3712 | <message> |
||
3713 | <source>selectObject("name") |
||
3714 | |||
3715 | Selects the object with the given "name". |
||
3716 | </source> |
||
12918 | cbradney | 3717 | <translation type="obsolete">selectObject("nom") |
1135 | cbradney | 3718 | |
3719 | Selecciona l'objecte amb el nom "nom". |
||
3720 | </translation> |
||
3721 | </message> |
||
3722 | <message> |
||
3723 | <source>deselectAll() |
||
3724 | |||
3725 | Deselects all objects in the whole document. |
||
3726 | </source> |
||
12918 | cbradney | 3727 | <translation type="obsolete">deselectAll() |
1135 | cbradney | 3728 | |
3729 | Deselecciona tots els objectes de tot el document. |
||
3730 | </translation> |
||
3731 | </message> |
||
3732 | <message> |
||
3733 | <source>groupObjects(list) |
||
3734 | |||
3735 | Groups the objects named in "list" together. "list" must contain the names |
||
3736 | of the objects to be grouped. If "list" is not given the currently selected |
||
3737 | items are used. |
||
3738 | </source> |
||
12918 | cbradney | 3739 | <translation type="obsolete">groupObjects(llista) |
1135 | cbradney | 3740 | |
3741 | Agrupa els objectes que especifiquem a la llista "llista". La llista ha de contenir |
||
3742 | els noms dels objectes a agrupar. Si no s'especifica llista es fan servir els |
||
3743 | objectes que estiguin seleccionats. |
||
3744 | </translation> |
||
3745 | </message> |
||
3746 | <message> |
||
3747 | <source>unGroupObjects("name") |
||
3748 | |||
3749 | Destructs the group the object "name" belongs to.If "name" is not given the currently selected item is used.</source> |
||
12918 | cbradney | 3750 | <translation type="obsolete">unGroupObjects("nom") |
1135 | cbradney | 3751 | |
3752 | Destrueix el grup al qual pertany l'objecte "nom". Si no especifiquem "nom" es fa servir l'ítem seleccionat.</translation> |
||
3753 | </message> |
||
3754 | <message> |
||
3755 | <source>scaleGroup(factor [,"name"]) |
||
3756 | |||
3757 | Scales the group the object "name" belongs to. Values greater than 1 enlarge |
||
3758 | the group, values smaller than 1 make the group smaller e.g a value of 0.5 |
||
3759 | scales the group to 50 % of its original size, a value of 1.5 scales the group |
||
3760 | to 150 % of its original size. The value for "factor" must be greater than |
||
3761 | 0. If "name" is not given the currently selected item is used. |
||
3762 | |||
3763 | May raise ValueError if an invalid scale factor is passed. |
||
3764 | </source> |
||
12918 | cbradney | 3765 | <translation type="obsolete">scaleGroup(factor [,"nom"]) |
1135 | cbradney | 3766 | |
3767 | Escala el grup al qual pertany l'objecte "nom". Valors més grans que 1 incrementen |
||
3768 | el grup, i valors més petits que 1 decrementen el grup. ex. Un valor de 0.5 escala |
||
3769 | el grup al 50% del valor original, un valor de 1.5 escala el grup a un |
||
3770 | 150% del valor original. El valor de "factor" ha de ser més gran que |
||
3771 | 0. Si no especifiquem "nom" es fa servir l'ítem seleccionat. |
||
3772 | |||
3773 | Pot provocar un ValueError si s'especifica un factor invàlid. |
||
3774 | </translation> |
||
3775 | </message> |
||
3776 | <message> |
||
3777 | <source>loadImage("filename" [, "name"]) |
||
3778 | |||
3779 | Loads the picture "picture" into the image frame "name". If "name" is |
||
3780 | not given the currently selected item is used. |
||
3781 | |||
3782 | May raise WrongFrameTypeError if the target frame is not an image frame |
||
3783 | </source> |
||
12918 | cbradney | 3784 | <translation type="obsolete">loadImage("nomFitxer", [,"nom"]) |
1135 | cbradney | 3785 | |
3786 | Carrega la imatge "nomFitxer" en el marc d'imatge "nom". Si no especifiquem |
||
3787 | "nom" es fa servir l'ítem seleccionat. |
||
3788 | |||
3789 | Pot provocar WrongFrameTypeError si el marc no és d'imatge |
||
3790 | </translation> |
||
3791 | </message> |
||
3792 | <message> |
||
3793 | <source>scaleImage(x, y [, "name"]) |
||
3794 | |||
3795 | Sets the scaling factors of the picture in the image frame "name". |
||
3796 | If "name" is not given the currently selected item is used. A number of 1 |
||
3797 | means 100 %. |
||
3798 | |||
3799 | May raise WrongFrameTypeError if the target frame is not an image frame |
||
3800 | </source> |
||
12918 | cbradney | 3801 | <translation type="obsolete">scaleImage(x, y [, "nom"]) |
1135 | cbradney | 3802 | |
3803 | Estableix els factors d'escalat de la imatge del marc d'imatge "nom". |
||
3804 | Si no especifiquem "nom" es fa servir l'ítem seleccionat. Un valor de 1 |
||
3805 | significa 100 %. |
||
3806 | |||
3807 | Pot provocar WrongFrameTypeError si el marc no és d'imatge |
||
3808 | </translation> |
||
3809 | </message> |
||
3810 | <message> |
||
3811 | <source>lockObject(["name"]) -> bool |
||
3812 | |||
3813 | Locks the object "name" if it's unlocked or unlock it if it's locked. |
||
3814 | If "name" is not given the currently selected item is used. Returns true |
||
3815 | if locked. |
||
3816 | </source> |
||
12918 | cbradney | 3817 | <translation type="obsolete">lockObject(["nom"]) -> bool |
1135 | cbradney | 3818 | |
3819 | Bloqueja l'objecte "nom" si està desbloquejat o el desbloqueja si està bloquejat. |
||
3820 | Si no especifiquem "nom" es fa servir l'ítem seleccionat. Retorna cert |
||
3821 | si bloqueja. |
||
3822 | </translation> |
||
3823 | </message> |
||
3824 | <message> |
||
3825 | <source>isLocked(["name"]) -> bool |
||
3826 | |||
3827 | Returns true if is the object "name" locked. If "name" is not given the |
||
3828 | currently selected item is used. |
||
3829 | </source> |
||
12918 | cbradney | 3830 | <translation type="obsolete">isLocked(["nom"]) -> bool |
1135 | cbradney | 3831 | |
3832 | Retorna cert si l'objecte "nom" està bloquejat. Si no especifiquem "nom" es |
||
3833 | fa servir l'ítem seleccionat. |
||
3834 | </translation> |
||
3835 | </message> |
||
3836 | <message> |
||
3837 | <source>getFontNames() -> list |
||
3838 | |||
3839 | Returns a list with the names of all available fonts. |
||
3840 | </source> |
||
12918 | cbradney | 3841 | <translation type="obsolete">getFontNames() -> llista |
1135 | cbradney | 3842 | |
3843 | Retorna una llista amb els noms de totes les fonts. |
||
3844 | </translation> |
||
3845 | </message> |
||
3846 | <message> |
||
3847 | <source>getXFontNames() -> list of tuples |
||
3848 | |||
3849 | Returns a larger font info. It's a list of the tuples with: |
||
3850 | [ (Scribus name, Family, Real name, subset (1|0), embed PS (1|0), font file), (...), ... ] |
||
3851 | </source> |
||
12918 | cbradney | 3852 | <translation type="obsolete">getXFontNames() -> llista de tuples |
1135 | cbradney | 3853 | |
3854 | Retorna molta informació de font. És una llista de tuples amb: |
||
3855 | [ (Nom Scribus, Familia, Nom Real, subconjunt (1|0), embed PS (1|0), fitxer de font), (...), ...] |
||
3856 | </translation> |
||
3857 | </message> |
||
3858 | <message> |
||
3859 | <source>rendeFont("name", "filename", "sample", size) -> bool |
||
3860 | |||
3861 | Creates an image preview of font "name" with given text "sample" and size. |
||
3862 | Image is saved into "filename". Returns true when success. |
||
3863 | |||
3864 | May raise NotFoundError if the specified font can't be found. |
||
3865 | May raise ValueError if an empty sample or filename is passed. |
||
3866 | </source> |
||
3064 | cbradney | 3867 | <translation type="obsolete">rendeFont("nom", "nomFitxer", "sample", mida) -> bool |
1135 | cbradney | 3868 | |
3869 | Crea una imatge de previsualització de la font "nom" amb el text "sample" i mida. |
||
3870 | La imatge és desa en el fitxer "nomFitxer". Retorna cert quan tot va bé. |
||
3871 | |||
3872 | Pot provocar un NotFoundError si la font especificada no es pot trobar. |
||
3873 | Pot provocar un ValueError si es passa un sample buit. |
||
3874 | </translation> |
||
3875 | </message> |
||
3876 | <message> |
||
3877 | <source>getLayers() -> list |
||
3878 | |||
3879 | Returns a list with the names of all defined layers. |
||
3880 | </source> |
||
12918 | cbradney | 3881 | <translation type="obsolete">getLayers() -> llista |
1135 | cbradney | 3882 | |
3883 | Retorna una llista amb els noms de totes les capes. |
||
3884 | </translation> |
||
3885 | </message> |
||
3886 | <message> |
||
3887 | <source>setActiveLayer("name") |
||
3888 | |||
3889 | Sets the active layer to the layer named "name". |
||
3890 | |||
3891 | May raise NotFoundError if the layer can't be found. |
||
3892 | May raise ValueError if the layer name isn't acceptable. |
||
3893 | </source> |
||
12918 | cbradney | 3894 | <translation type="obsolete">setActiveLayer("nom") |
1135 | cbradney | 3895 | |
3896 | Canvia la capa activa a una capa anomenada "nom". |
||
3897 | |||
3898 | Pot generar NotFoundError si la capa no es pot trobar. |
||
3899 | Pot generar ValueError si la capa nom no és acceptable. |
||
3900 | </translation> |
||
3901 | </message> |
||
3902 | <message> |
||
3903 | <source>getActiveLayer() -> string |
||
3904 | |||
3905 | Returns the name of the current active layer. |
||
3906 | </source> |
||
12918 | cbradney | 3907 | <translation type="obsolete">getActiveLayer() -> string |
1135 | cbradney | 3908 | |
3909 | Retorna el nom de la capa activa. |
||
3910 | </translation> |
||
3911 | </message> |
||
3912 | <message> |
||
3913 | <source>sentToLayer("layer" [, "name"]) |
||
3914 | |||
3915 | Sends the object "name" to the layer "layer". The layer must exist. |
||
3916 | If "name" is not given the currently selected item is used. |
||
3917 | |||
3918 | May raise NotFoundError if the layer can't be found. |
||
3919 | May raise ValueError if the layer name isn't acceptable. |
||
3920 | </source> |
||
12918 | cbradney | 3921 | <translation type="obsolete">sendToLayer("capa" [, "nom"]) |
1135 | cbradney | 3922 | |
3923 | Envia l'objecte "nom" a la capa "capa". La capa ha d'existir. |
||
3924 | Si no especifiquem "nom" es fa servir l'ítem seleccionat. |
||
3925 | |||
3926 | Pot provocar NotFoundError si la capa no es pot trobar. |
||
3927 | Pot provocar ValueError si el nom no és acceptable. |
||
3928 | |||
3929 | |||
3930 | </translation> |
||
3931 | </message> |
||
3932 | <message> |
||
3933 | <source>setLayerVisible("layer", visible) |
||
3934 | |||
3935 | Sets the layer "layer" to be visible or not. If is the visible set to false |
||
3936 | the layer is invisible. |
||
3937 | |||
3938 | May raise NotFoundError if the layer can't be found. |
||
3939 | May raise ValueError if the layer name isn't acceptable. |
||
3940 | </source> |
||
12918 | cbradney | 3941 | <translation type="obsolete">setLayerVisible("capa", visible) |
1135 | cbradney | 3942 | |
3943 | Estableix la capa especificada a visible o no. Si visible està false |
||
3944 | la capa és invisible. |
||
3945 | |||
3946 | Pot generar NotFoundError si la capa no es pot trobar. |
||
3947 | Pot generar ValueError si el nom de capa no és acceptable. |
||
3948 | </translation> |
||
3949 | </message> |
||
3950 | <message> |
||
3951 | <source>setLayerPrintable("layer", printable) |
||
3952 | |||
3953 | Sets the layer "layer" to be printable or not. If is the printable set to |
||
3954 | false the layer won't be printed. |
||
3955 | |||
3956 | May raise NotFoundError if the layer can't be found. |
||
3957 | May raise ValueError if the layer name isn't acceptable. |
||
3958 | </source> |
||
6261 | cbradney | 3959 | <translation type="obsolete">setLayerPrintable("capa", printable) |
1135 | cbradney | 3960 | |
3961 | Estableix la capa especificada a printable o no. Si printable està |
||
3962 | false la capa no s'imprimirà. |
||
3963 | |||
3964 | Pot generar NotFoundError si la capa no es pot trobar. |
||
3965 | Pot generar ValueError si el nom de capa no és acceptable. |
||
3966 | </translation> |
||
3967 | </message> |
||
3968 | <message> |
||
3969 | <source>isLayerPrintable("layer") -> bool |
||
3970 | |||
3971 | Returns wether the Layer "layer" is visible or not, a value of True means |
||
3972 | that the layer "layer" is visible, a value of False means that the layer |
||
3973 | "layer" is invisible. |
||
3974 | |||
3975 | May raise NotFoundError if the layer can't be found. |
||
3976 | May raise ValueError if the layer name isn't acceptable. |
||
3977 | </source> |
||
1525 | cbradney | 3978 | <translation type="obsolete">isLayerVisible("capa") -> bool |
1135 | cbradney | 3979 | |
3980 | Ens retorna si la capa "capa" és visible o no, un valor de Cert significa |
||
3981 | que la capa és visible, un valor de Fals significa que la capa |
||
3982 | "layer" és invisible |
||
3983 | |||
3984 | Pot generar NotFoundError si la capa no es pot trobar. |
||
3985 | Pot generar ValueError si el nom de capa no és acceptable.</translation> |
||
3986 | </message> |
||
3987 | <message> |
||
3988 | <source>isLayerPrintable("layer") -> bool |
||
3989 | |||
3990 | Returns wether the layer "layer" is printable or not, a value of True means |
||
3991 | that the layer "layer" can be printed, a value of False means that printing |
||
3992 | the layer "layer" is disabled. |
||
3993 | |||
3994 | May raise NotFoundError if the layer can't be found. |
||
3995 | May raise ValueError if the layer name isn't acceptable. |
||
3996 | </source> |
||
1525 | cbradney | 3997 | <translation type="obsolete">isLayerPrintable("capa") -> bool |
1135 | cbradney | 3998 | |
3999 | Ens retorna si la capa "capa" és printable o no, un valor de Cert significa |
||
4000 | que la capa pot ser imprimible, un valor de Fals significa que la capa |
||
4001 | "layer" no és imprimible. |
||
4002 | |||
4003 | Pot generar NotFoundError si la capa no es pot trobar. |
||
4004 | Pot generar ValueError si el nom de capa no és acceptable. |
||
4005 | </translation> |
||
4006 | </message> |
||
4007 | <message> |
||
4008 | <source>deleteLayer("layer") |
||
4009 | |||
4010 | Deletes the layer with the name "layer". Nothing happens if the layer doesn't |
||
4011 | exists or if it's the only layer in the document. |
||
4012 | |||
4013 | May raise NotFoundError if the layer can't be found. |
||
4014 | May raise ValueError if the layer name isn't acceptable. |
||
4015 | </source> |
||
12918 | cbradney | 4016 | <translation type="obsolete">deleteLayer("capa") |
1135 | cbradney | 4017 | |
4018 | Esborra la capa amb el nom "capa". Si la capa no existeix o és la única del |
||
4019 | document no passa res. |
||
4020 | |||
4021 | Pot generar NotFoundError si la capa no es pot trobar. |
||
4022 | Pot generar ValueError si el nom de capa no és acceptable. |
||
4023 | </translation> |
||
4024 | </message> |
||
4025 | <message> |
||
4026 | <source>createLayer(layer) |
||
4027 | |||
4028 | Creates a new layer with the name "name". |
||
4029 | |||
4030 | May raise ValueError if the layer name isn't acceptable. |
||
4031 | </source> |
||
12918 | cbradney | 4032 | <translation type="obsolete">createLayer(capa) |
1135 | cbradney | 4033 | |
4034 | Crea una nova capa amb el nom "capa". |
||
4035 | |||
4036 | Pot generar ValueError si el nom de capa no és acceptable. |
||
4037 | </translation> |
||
4038 | </message> |
||
4039 | <message> |
||
4040 | <source>getGuiLanguage() -> string |
||
4041 | |||
4042 | Returns a string with the -lang value. |
||
4043 | </source> |
||
12918 | cbradney | 4044 | <translation type="obsolete">getGuiLanguage() -> string |
1135 | cbradney | 4045 | |
4046 | Retorna una cadena amb el valor de -lang. |
||
4047 | </translation> |
||
4048 | </message> |
||
4049 | <message> |
||
4050 | <source>createEllipse(x, y, width, height, ["name"]) -> string |
||
4051 | |||
4052 | Creates a new ellipse on the current page and returns its name. |
||
4053 | The coordinates are given in the current measurement units of the document |
||
4054 | (see UNIT constants). "name" should be a unique identifier for the object |
||
4055 | because you need this name for further referencing of that object. If "name" |
||
4056 | is not given Scribus will create one for you. |
||
4057 | |||
4058 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
4059 | </source> |
||
12918 | cbradney | 4060 | <translation type="obsolete">createEllipse(x, y, amplada, alçada, ["nom"]) -> string |
1135 | cbradney | 4061 | |
4062 | Crea una nova elipse en la pàgina actual i en retorna el nom. |
||
4063 | Les coordenades estan especificades amb les unitats de mesura del document |
||
4064 | (mireu constants UNIT). "nom" ha de ser un identificador únic per l'objecte |
||
4065 | ja que necessitem aquest nom per referències futures. Si "nom" no s'especifica |
||
4066 | Scribus en crearà un per nosaltres. |
||
4067 | |||
4068 | Pot generar un NameExistsError si especifiquem un nom que ja es fa servir. |
||
4069 | </translation> |
||
4070 | </message> |
||
4071 | <message> |
||
4072 | <source>createImage(x, y, width, height, ["name"]) -> string |
||
4073 | |||
4074 | Creates a new picture frame on the current page and returns its name. The |
||
4075 | coordinates are given in the current measurement units of the document. |
||
4076 | "name" should be a unique identifier for the object because you need this |
||
4077 | name for further access to that object. If "name" is not given Scribus will |
||
4078 | create one for you. |
||
4079 | |||
4080 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
4081 | </source> |
||
12918 | cbradney | 4082 | <translation type="obsolete">createImage(x, y, amplada, alçada, ["nom"]) -> string |
1135 | cbradney | 4083 | |
4084 | Crea un nou marc d'imatge en la pàgina actual i en retorna el nom. |
||
4085 | Les coordenades estan especificades amb les unitats de mesura del document |
||
4086 | (mireu constants UNIT). "nom" ha de ser un identificador únic per l'objecte |
||
4087 | ja que necessitem aquest nom per referències futures. Si "nom" no s'especifica |
||
4088 | Scribus en crearà un per nosaltres. |
||
4089 | |||
4090 | Pot generar un NameExistsError si especifiquem un nom que ja es fa servir. |
||
4091 | </translation> |
||
4092 | </message> |
||
4093 | <message> |
||
4094 | <source>createText(x, y, width, height, ["name"]) -> string |
||
4095 | |||
4096 | Creates a new text frame on the actual page and returns its name. |
||
4097 | The coordinates are given in the actual measurement unit of the document (see |
||
4098 | UNIT constants). "name" should be a unique identifier for the object because |
||
4099 | you need this name for further referencing of that object. If "name" is not |
||
4100 | given Scribus will create one for you. |
||
4101 | |||
4102 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
4103 | </source> |
||
12918 | cbradney | 4104 | <translation type="obsolete">createText(x, y, amplada, alçada, ["nom"]) -> string |
1135 | cbradney | 4105 | |
4106 | Crea un nou quadre de text en la pàgina actual i en retorna el nom. |
||
4107 | Les coordenades estan especificades amb les unitats de mesura del document |
||
4108 | (mireu constants UNIT). "nom" ha de ser un identificador únic per l'objecte |
||
4109 | ja que necessitem aquest nom per referències futures. Si "nom" no s'especifica |
||
4110 | Scribus en crearà un per nosaltres. |
||
4111 | |||
4112 | Pot generar un NameExistsError si especifiquem un nom que ja es fa servir. |
||
4113 | </translation> |
||
4114 | </message> |
||
4115 | <message> |
||
4116 | <source>createLine(x1, y1, x2, y2, ["name"]) -> string |
||
4117 | |||
4118 | Creates a new line from the point(x1, y1) to the point(x2, y2) and returns |
||
4119 | its name. The coordinates are given in the current measurement unit of the |
||
4120 | document (see UNIT constants). "name" should be a unique identifier for the |
||
4121 | object because you need this name for further access to that object. If |
||
4122 | "name" is not given Scribus will create one for you. |
||
4123 | |||
4124 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
4125 | </source> |
||
12918 | cbradney | 4126 | <translation type="obsolete">createLine(x1, y1, x2, y2, ["nom"]) -> string |
1135 | cbradney | 4127 | |
4128 | Crea una nova línia des del punt (x1,y1) al punt (x2,y2) i en retorna el |
||
4129 | nom. Les coordenades estan especificades amb les unitats de mesura del |
||
4130 | document (mireu constants UNIT). "nom" ha de ser un identificador únic |
||
4131 | per l'objecte ja que necessitem aquest nom per referències futures. Si |
||
4132 | "nom" no s'especifica Scribus en crearà un per nosaltres. |
||
4133 | |||
4134 | Pot generar un NameExistsError si especifiquem un nom que ja es fa servir. |
||
4135 | </translation> |
||
4136 | </message> |
||
4137 | <message> |
||
4138 | <source>createPolyLine(list, ["name"]) -> string |
||
4139 | |||
4140 | Creates a new polyline and returns its name. The points for the polyline are |
||
4141 | stored in the list "list" in the following order: [x1, y1, x2, y2...xn. yn]. |
||
4142 | The coordinates are given in the current measurement units of the document (see |
||
4143 | UNIT constants). "name" should be a unique identifier for the object because |
||
4144 | you need this name for further access to that object. If "name" is not given |
||
4145 | Scribus will create one for you. |
||
4146 | |||
4147 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
4148 | May raise ValueError if an insufficient number of points is passed or if |
||
4149 | the number of values passed don't group into points without leftovers. |
||
4150 | </source> |
||
12918 | cbradney | 4151 | <translation type="obsolete">createPolyLine(llista, ["nom"]) -> string |
1135 | cbradney | 4152 | |
4153 | Crea un nou conjunt de línies i en retorna el nom. Els punts de cada línia estan |
||
4154 | guardats en la llista "llista" en l'ordre [x1, y1, x2, y2, .., xn, yn]. |
||
4155 | Les coordenades estan especificades amb les unitats de mesura del document |
||
4156 | (mireu constants UNIT). "nom" ha de ser un identificador únic per l'objecte |
||
4157 | ja que necessitem aquest nom per referències futures. Si "nom" no s'especifica |
||
4158 | Scribus en crearà un per nosaltres. |
||
4159 | |||
4160 | Pot generar un NameExistsError si especifiquem un nom que ja es fa servir. |
||
4161 | Pot generar un ValueError si es passa un número de punts insuficient o si el |
||
4162 | número de valors passat no agrupa bé els punts. |
||
4163 | </translation> |
||
4164 | </message> |
||
4165 | <message> |
||
4166 | <source>createPolygon(list, ["name"]) -> string |
||
4167 | |||
4168 | Creates a new polygon and returns its name. The points for the polygon are |
||
4169 | stored in the list "list" in the following order: [x1, y1, x2, y2...xn. yn]. |
||
4170 | At least three points are required. There is no need to repeat the first point |
||
4171 | to close the polygon. The polygon is automatically closed by connecting the |
||
4172 | first and the last point. The coordinates are given in the current measurement |
||
4173 | units of the document (see UNIT constants). "name" should be a unique |
||
4174 | identifier for the object because you need this name for further access to that |
||
4175 | object. If "name" is not given Scribus will create one for you. |
||
4176 | |||
4177 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
4178 | May raise ValueError if an insufficient number of points is passed or if |
||
4179 | the number of values passed don't group into points without leftovers. |
||
4180 | </source> |
||
12918 | cbradney | 4181 | <translation type="obsolete">createPolygon(llista, ["nom"]) -> string |
1135 | cbradney | 4182 | |
4183 | Crea un nou polígon i en retorna el nom. Els punts pel polígon estan |
||
4184 | guardats en la llista "llista" en el següent ordre: [x1, y1, x2, y2, ...xn, yn]. |
||
4185 | Almenys calen tres punts. No cal repetir el primer punt per |
||
4186 | tancar el polígon. El polígon es tancarà automàticament connectant el |
||
4187 | primer punt i el darrer. Les coordenades estan especificades amb les unitats |
||
4188 | de mesura del document (mireu constants UNIT). "nom" ha de ser un identificador |
||
4189 | únic per l'objecte ja que necessitem aquest nom per referències futures. |
||
4190 | Si "nom" no s'especifica Scribus en crearà un per nosaltres. |
||
4191 | |||
4192 | Pot generar un NameExistsError si especifiquem un nom que ja es fa servir. |
||
4193 | Pot generar un ValueError si es passa un número de punts insuficient o si el |
||
4194 | número de valors passat no agrupa bé els punts. |
||
4195 | </translation> |
||
4196 | </message> |
||
4197 | <message> |
||
4198 | <source>createBezierLine(list, ["name"]) -> string |
||
4199 |