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