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