Rev 14099 | Rev 14474 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
9729 | cbradney | 1 | <?xml version="1.0" encoding="utf-8"?> |
14462 | jghali | 2 | <!DOCTYPE TS> |
3 | <TS version="2.0" language="fr_FR"> |
||
5328 | cbradney | 4 | <context> |
12918 | cbradney | 5 | <name></name> |
5042 | cbradney | 6 | <message> |
12612 | cbradney | 7 | <location filename="../../scribus/plugins/scriptplugin/cmdcolor.h" line="21"/> |
5328 | cbradney | 8 | <source>getColorNames() -> list |
5042 | cbradney | 9 | |
10 | Returns a list containing the names of all defined colors in the document. |
||
11 | If no document is open, returns a list of the default document colors. |
||
12 | </source> |
||
12612 | cbradney | 13 | <translation type="unfinished">getColorNames() -> liste |
9300 | jghali | 14 | |
15 | Crée la liste des noms de toutes les couleurs définie dans le document. |
||
16 | S'il n'y a aucun document ouvert, la liste est composée des couleurs présentes par défaut.</translation> |
||
5042 | cbradney | 17 | </message> |
18 | <message> |
||
12281 | cbradney | 19 | <location filename="../../scribus/plugins/scriptplugin/cmdcolor.h" line="35"/> |
5328 | cbradney | 20 | <source>getColor("name") -> tuple |
5042 | cbradney | 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 | |||
5328 | cbradney | 26 | May raise NotFoundError if the named color wasn't found. |
5042 | cbradney | 27 | May raise ValueError if an invalid color name is specified. |
28 | </source> |
||
12918 | cbradney | 29 | <translation type="unfinished">getColor("nom") -> tuple |
9300 | jghali | 30 | |
31 | Retourne un tuple (C,M,J,N) contenant les quatre composantes de couleurs de |
||
32 | la couleur "nom" du document courant. Si aucun document n'est ouvert, |
||
33 | retourne la valeur de la couleur "nom" des couleurs par défaut. |
||
34 | |||
35 | Lève une erreur NotFoundError si la couleur n'est pas trouvée. |
||
36 | Lève une erreur ValueError si le nom de couleur est invalide.</translation> |
||
5042 | cbradney | 37 | </message> |
38 | <message> |
||
12281 | cbradney | 39 | <location filename="../../scribus/plugins/scriptplugin/cmdcolor.h" line="50"/> |
5328 | cbradney | 40 | <source>getColorAsRGB("name") -> tuple |
5042 | cbradney | 41 | |
42 | Returns a tuple (R,G,B) containing the three color components of the |
||
43 | color "name" from the current document, converted to the RGB color |
||
44 | space. If no document is open, returns the value of the named color |
||
45 | from the default document colors. |
||
46 | |||
5328 | cbradney | 47 | May raise NotFoundError if the named color wasn't found. |
5042 | cbradney | 48 | May raise ValueError if an invalid color name is specified. |
49 | </source> |
||
12918 | cbradney | 50 | <translation type="unfinished">getColorAsRGB("nom") -> tuple |
9300 | jghali | 51 | |
52 | Retourne un tuple (R,V,B) contenant les trois composantes de couleurs de |
||
53 | la couleur "nom" du document courant, convertie dans l'espace RVB. Si |
||
54 | aucun document n'est ouvert,retourne la valeur de la couleur "nom" des |
||
55 | couleurs par défaut. |
||
56 | |||
57 | Lève une erreur NotFoundError si la couleur n'est pas trouvée. |
||
58 | Lève une erreur ValueError si le nom de couleur est invalide.</translation> |
||
5042 | cbradney | 59 | </message> |
60 | <message> |
||
12281 | cbradney | 61 | <location filename="../../scribus/plugins/scriptplugin/cmdcolor.h" line="64"/> |
5328 | cbradney | 62 | <source>changeColor("name", c, m, y, k) |
5042 | cbradney | 63 | |
64 | Changes the color "name" to the specified CMYK value. The color value is |
||
65 | defined via four components c = Cyan, m = Magenta, y = Yellow and k = Black. |
||
66 | Color components should be in the range from 0 to 255. |
||
67 | |||
5328 | cbradney | 68 | May raise NotFoundError if the named color wasn't found. |
5042 | cbradney | 69 | May raise ValueError if an invalid color name is specified. |
70 | </source> |
||
12918 | cbradney | 71 | <translation type="unfinished">changeColor("nom", c, m, j, k) |
9300 | jghali | 72 | |
73 | Change les valeurs c,m,j et n de la couleur "nom". La couleur est définie par |
||
74 | les quatres composantes c = Cyan, m = Magenta, j = Jaune, N = Noir. |
||
75 | Chaque composante a une valeur comprise entre 0 et 255. |
||
76 | |||
77 | Lève une erreur NotFoundError si la couleur n'est pas trouvée. |
||
78 | Lève une erreur ValueError si le nom de couleur est invalide.</translation> |
||
5042 | cbradney | 79 | </message> |
80 | <message> |
||
12918 | cbradney | 81 | <location filename="../../scribus/plugins/scriptplugin/cmdcolor.h" line="77"/> |
82 | <source>defineColor("name", c, m, y, k) |
||
83 | |||
84 | Defines a new color "name". The color Value is defined via four components: |
||
85 | c = Cyan, m = Magenta, y = Yellow and k = Black. Color components should be in |
||
86 | the range from 0 to 255. |
||
87 | |||
88 | May raise ValueError if an invalid color name is specified. |
||
89 | </source> |
||
90 | <translation type="unfinished"></translation> |
||
91 | </message> |
||
92 | <message> |
||
12281 | cbradney | 93 | <location filename="../../scribus/plugins/scriptplugin/cmdcolor.h" line="94"/> |
5328 | cbradney | 94 | <source>deleteColor("name", "replace") |
5042 | cbradney | 95 | |
96 | Deletes the color "name". Every occurence of that color is replaced by the |
||
97 | color "replace". If not specified, "replace" defaults to the color |
||
98 | "None" - transparent. |
||
99 | |||
100 | deleteColor works on the default document colors if there is no document open. |
||
101 | In that case, "replace", if specified, has no effect. |
||
102 | |||
5328 | cbradney | 103 | May raise NotFoundError if a named color wasn't found. |
5042 | cbradney | 104 | May raise ValueError if an invalid color name is specified. |
105 | </source> |
||
12918 | cbradney | 106 | <translation type="unfinished">deleteColor("nom", "subsitution") |
9300 | jghali | 107 | |
108 | Supprime la couleur "nom". Chaque occurrence de la couleur est remplacée |
||
109 | par la couleur "substitution". Si cette dernière n'est pas spécifiée, la couleur |
||
110 | de remplacement sera "None", c'est à dire transparent. |
||
111 | |||
112 | La fonction deleteColor travaille sur les couleurs par défaut si aucun document |
||
113 | n'est ouvert. Dans ce cas, "substitution" n'a aucun effet. |
||
114 | |||
115 | Lève une erreur NotFoundError si la couleur n'est pas trouvée. |
||
116 | Lève une erreur ValueError si le nom de couleur est invalide.</translation> |
||
5042 | cbradney | 117 | </message> |
118 | <message> |
||
12281 | cbradney | 119 | <location filename="../../scribus/plugins/scriptplugin/cmdcolor.h" line="106"/> |
5328 | cbradney | 120 | <source>replaceColor("name", "replace") |
5042 | cbradney | 121 | |
122 | Every occurence of the color "name" is replaced by the color "replace". |
||
123 | |||
5328 | cbradney | 124 | May raise NotFoundError if a named color wasn't found. |
5042 | cbradney | 125 | May raise ValueError if an invalid color name is specified. |
126 | </source> |
||
12918 | cbradney | 127 | <translation type="unfinished">replaceColor("nom", "substitution") |
9300 | jghali | 128 | |
129 | Remplace chaque occurrence de la couleur "nom" par la couleur "substitution". |
||
130 | |||
131 | Lève une erreur NotFoundError si la couleur n'est pas trouvée. |
||
132 | Lève une erreur ValueError si le nom de couleur est invalide.</translation> |
||
5042 | cbradney | 133 | </message> |
134 | <message> |
||
12918 | cbradney | 135 | <location filename="../../scribus/plugins/scriptplugin/cmddialog.h" line="22"/> |
136 | <source>newDocDialog() -> bool |
||
137 | |||
138 | Displays the "New Document" dialog box. Creates a new document if the user |
||
139 | accepts the settings. Does not create a document if the user presses cancel. |
||
140 | Returns true if a new document was created. |
||
141 | </source> |
||
142 | <translation type="unfinished">newDocDialog() -> booléen |
||
143 | |||
144 | Affiche la boîte de dialogue "Nouveau document". Crée un nouveau document si |
||
145 | l'utilisateur valide les réglages. Ne crée pas de document si l'utilisateur clique sur |
||
146 | "Annuler". Retourne vrai si un nouveau document est créé.</translation> |
||
147 | </message> |
||
148 | <message> |
||
149 | <location filename="../../scribus/plugins/scriptplugin/cmddialog.h" line="46"/> |
||
150 | <source>fileDialog("caption", ["filter", "defaultname", haspreview, issave, isdir]) -> string with filename |
||
151 | |||
152 | Shows a File Open dialog box with the caption "caption". Files are filtered |
||
153 | with the filter string "filter". A default filename or file path can also |
||
154 | supplied, leave this string empty when you don't want to use it. A value of |
||
155 | True for haspreview enables a small preview widget in the FileSelect box. When |
||
156 | the issave parameter is set to True the dialog acts like a "Save As" dialog |
||
157 | otherwise it acts like a "File Open Dialog". When the isdir parameter is True |
||
158 | the dialog shows and returns only directories. The default for all of the |
||
159 | optional parameters is False. |
||
160 | |||
161 | The filter, if specified, takes the form 'comment (*.type *.type2 ...)'. |
||
162 | For example 'Images (*.png *.xpm *.jpg)'. |
||
163 | |||
164 | Refer to the Qt-Documentation for QFileDialog for details on filters. |
||
165 | |||
166 | Example: fileDialog('Open input', 'CSV files (*.csv)') |
||
167 | Example: fileDialog('Save report', defaultname='report.txt', issave=True) |
||
168 | </source> |
||
169 | <translation type="unfinished"></translation> |
||
170 | </message> |
||
171 | <message> |
||
12281 | cbradney | 172 | <location filename="../../scribus/plugins/scriptplugin/cmddialog.h" line="88"/> |
5328 | cbradney | 173 | <source>messageBox("caption", "message", |
5042 | cbradney | 174 | icon=ICON_NONE, button1=BUTTON_OK|BUTTONOPT_DEFAULT, |
5328 | cbradney | 175 | button2=BUTTON_NONE, button3=BUTTON_NONE) -> integer |
5042 | cbradney | 176 | |
177 | Displays a message box with the title "caption", the message "message", and |
||
178 | an icon "icon" and up to 3 buttons. By default no icon is used and a single |
||
179 | button, OK, is displayed. Only the caption and message arguments are required, |
||
180 | though setting an icon and appropriate button(s) is strongly |
||
181 | recommended. The message text may contain simple HTML-like markup. |
||
182 | |||
183 | Returns the number of the button the user pressed. Button numbers start |
||
184 | at 1. |
||
185 | |||
186 | For the icon and the button parameters there are predefined constants available |
||
187 | with the same names as in the Qt Documentation. These are the BUTTON_* and |
||
188 | ICON_* constants defined in the module. There are also two extra constants that |
||
189 | can be binary-ORed with button constants: |
||
190 | BUTTONOPT_DEFAULT Pressing enter presses this button. |
||
191 | BUTTONOPT_ESCAPE Pressing escape presses this button. |
||
192 | |||
193 | Usage examples: |
||
5328 | cbradney | 194 | result = messageBox('Script failed', |
195 | 'This script only works when you have a text frame selected.', |
||
5042 | cbradney | 196 | ICON_ERROR) |
5328 | cbradney | 197 | result = messageBox('Monkeys!', 'Something went ook! <i>Was it a monkey?</i>', |
5042 | cbradney | 198 | ICON_WARNING, BUTTON_YES|BUTTONOPT_DEFAULT, |
199 | BUTTON_NO, BUTTON_IGNORE|BUTTONOPT_ESCAPE) |
||
200 | |||
201 | Defined button and icon constants: |
||
202 | BUTTON_NONE, BUTTON_ABORT, BUTTON_CANCEL, BUTTON_IGNORE, BUTTON_NO, |
||
203 | BUTTON_NOALL, BUTTON_OK, BUTTON_RETRY, BUTTON_YES, BUTTON_YESALL, |
||
204 | ICON_NONE, ICON_INFORMATION, ICON_WARNING, ICON_CRITICAL. |
||
205 | </source> |
||
5328 | cbradney | 206 | <translation type="unfinished"></translation> |
5042 | cbradney | 207 | </message> |
208 | <message> |
||
12281 | cbradney | 209 | <location filename="../../scribus/plugins/scriptplugin/cmddialog.h" line="101"/> |
5328 | cbradney | 210 | <source>valueDialog(caption, message [,defaultvalue]) -> string |
5042 | cbradney | 211 | |
5328 | cbradney | 212 | Shows the common 'Ask for string' dialog and returns its value as a string |
213 | Parameters: window title, text in the window and optional 'default' value. |
||
5042 | cbradney | 214 | |
5328 | cbradney | 215 | Example: valueDialog('title', 'text in the window', 'optional') |
5042 | cbradney | 216 | </source> |
5328 | cbradney | 217 | <translation type="unfinished"></translation> |
5042 | cbradney | 218 | </message> |
219 | <message> |
||
12281 | cbradney | 220 | <location filename="../../scribus/plugins/scriptplugin/cmddialog.h" line="111"/> |
5328 | cbradney | 221 | <source>newStyleDialog() -> string |
5042 | cbradney | 222 | |
5328 | cbradney | 223 | Shows 'Create new paragraph style' dialog. Function returns real |
5042 | cbradney | 224 | style name or None when user cancels the dialog. |
225 | </source> |
||
12918 | cbradney | 226 | <translation type="unfinished">newStyleDialog() -> chaîne |
9300 | jghali | 227 | |
228 | Affiche le dialogue de création d'un nouveau style de paragraphe. |
||
229 | Retourne le nom du nouveau style ou None si l'utilisateur annule. |
||
230 | </translation> |
||
5042 | cbradney | 231 | </message> |
232 | <message> |
||
12918 | cbradney | 233 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="55"/> |
234 | <source>newDocument(size, margins, orientation, firstPageNumber, |
||
235 | unit, pagesType, firstPageOrder, numPages) -> bool |
||
236 | |||
237 | Creates a new document and returns true if successful. The parameters have the |
||
238 | following meaning: |
||
239 | |||
240 | size = A tuple (width, height) describing the size of the document. You can |
||
241 | use predefined constants named PAPER_<paper_type> e.g. PAPER_A4 etc. |
||
242 | |||
243 | margins = A tuple (left, right, top, bottom) describing the document |
||
244 | margins |
||
245 | |||
246 | orientation = the page orientation - constants PORTRAIT, LANDSCAPE |
||
247 | |||
248 | firstPageNumer = is the number of the first page in the document used for |
||
249 | pagenumbering. While you'll usually want 1, it's useful to have higher |
||
250 | numbers if you're creating a document in several parts. |
||
251 | |||
252 | unit: this value sets the measurement units used by the document. Use a |
||
253 | predefined constant for this, one of: UNIT_INCHES, UNIT_MILLIMETERS, |
||
254 | UNIT_PICAS, UNIT_POINTS. |
||
255 | |||
256 | pagesType = One of the predefined constants PAGE_n. PAGE_1 is single page, |
||
257 | PAGE_2 is for double sided documents, PAGE_3 is for 3 pages fold and |
||
258 | PAGE_4 is 4-fold. |
||
259 | |||
260 | firstPageOrder = What is position of first page in the document. |
||
261 | Indexed from 0 (0 = first). |
||
262 | |||
263 | numPage = Number of pages to be created. |
||
264 | |||
265 | The values for width, height and the margins are expressed in the given unit |
||
266 | for the document. PAPER_* constants are expressed in points. If your document |
||
267 | is not in points, make sure to account for this. |
||
268 | |||
269 | example: newDocument(PAPER_A4, (10, 10, 20, 20), LANDSCAPE, 7, UNIT_POINTS, |
||
270 | PAGE_4, 3, 1) |
||
271 | |||
272 | May raise ScribusError if is firstPageOrder bigger than allowed by pagesType. |
||
273 | </source> |
||
274 | <translation type="unfinished">newDocument(taille, marges, orientation, numeroPremièrePage, |
||
275 | unité, typePages, positionPremièrePage) -> booléen |
||
276 | |||
277 | Crée un nouveau document et retourne vrai en cas de succès. Les divers paramètres |
||
278 | ont la signification suivante : |
||
279 | |||
280 | taille : un tuple (hauteur, largeur) décrivant la taille du document. Il est possible |
||
281 | d'utiliser des constantes prédéfinies nommées PAPER_<paper_type> (PAPER_A4...) |
||
282 | |||
283 | marges : un tuple (gauche, droite, haut, bas) décrivant les marges du |
||
284 | nouveau document |
||
285 | |||
286 | orientation : l'orientation de la page - constantes PORTRAIT, LANDSCAPE |
||
287 | |||
288 | numeroPremièrePage : numéro de la première page du document, utilisé |
||
289 | pour la numérotation des pages. La plupart du temps, ce sera 1, mais |
||
290 | d'autres valeurs peuvent se révéler utiles pour des documents découpés |
||
291 | en plusieurs parties. |
||
292 | |||
293 | unité : définit l'unité de mesure utilisée dans ce document. Utiliser l'une des |
||
294 | constantes prédéfinies pour cela : UNIT_INCHES, UNIT_MILLIMETERS, |
||
295 | UNIT_PICAS, UNIT_POINTS. |
||
296 | typePages : une des constantes prédéfinies PAGE_n. PAGE_1 pour des pages |
||
297 | simples, PAGE_2 pour des pages en regard, PAGE_3 pour 3 volets et |
||
298 | PAGE_4 pour 4 volets. |
||
299 | |||
300 | positionPremièrePage : position de la première page dans le document. |
||
301 | Démarre à 0 (0 = première page). |
||
302 | |||
303 | nombrePages : nombre de pages à créer. |
||
304 | |||
305 | Les valeurs de hauteur, largeur et de marges sont exprimées dans l'unité |
||
306 | fournie pour le document. PAPER_* sont des constantes exprimées en points; |
||
307 | donc si l'unité de votre document n'est pas le point, il faut en tenir compte. |
||
308 | |||
309 | exemple: newDocument(PAPER_A4, (10, 10, 20, 20), LANDSCAPE, 7, UNIT_POINTS,(new line) |
||
310 | PAGE_4, 3, 1) |
||
311 | |||
312 | Lève une erreur ScribusError si positionPremièrePage est plus grand que ce qui |
||
313 | est admissible par typePages. |
||
314 | </translation> |
||
315 | </message> |
||
316 | <message> |
||
12281 | cbradney | 317 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="96"/> |
5328 | cbradney | 318 | <source>newDoc(size, margins, orientation, firstPageNumber, |
319 | unit, facingPages, firstSideLeft) -> bool |
||
5042 | cbradney | 320 | |
321 | WARNING: Obsolete procedure! Use newDocument instead. |
||
322 | |||
323 | Creates a new document and returns true if successful. The parameters have the |
||
324 | following meaning: |
||
325 | |||
326 | size = A tuple (width, height) describing the size of the document. You can |
||
5328 | cbradney | 327 | use predefined constants named PAPER_<paper_type> e.g. PAPER_A4 etc. |
5042 | cbradney | 328 | |
329 | margins = A tuple (left, right, top, bottom) describing the document |
||
330 | margins |
||
331 | |||
332 | orientation = the page orientation - constants PORTRAIT, LANDSCAPE |
||
333 | |||
334 | firstPageNumer = is the number of the first page in the document used for |
||
5328 | cbradney | 335 | pagenumbering. While you'll usually want 1, it's useful to have higher |
336 | numbers if you're creating a document in several parts. |
||
5042 | cbradney | 337 | |
338 | unit: this value sets the measurement units used by the document. Use a |
||
339 | predefined constant for this, one of: UNIT_INCHES, UNIT_MILLIMETERS, |
||
340 | UNIT_PICAS, UNIT_POINTS. |
||
341 | |||
342 | facingPages = FACINGPAGES, NOFACINGPAGES |
||
343 | |||
344 | firstSideLeft = FIRSTPAGELEFT, FIRSTPAGERIGHT |
||
345 | |||
346 | The values for width, height and the margins are expressed in the given unit |
||
347 | for the document. PAPER_* constants are expressed in points. If your document |
||
348 | is not in points, make sure to account for this. |
||
349 | |||
350 | example: newDoc(PAPER_A4, (10, 10, 20, 20), LANDSCAPE, 1, UNIT_POINTS, |
||
351 | FACINGPAGES, FIRSTPAGERIGHT) |
||
352 | </source> |
||
12918 | cbradney | 353 | <translation type="unfinished">newDoc(taille, marges, orientation, numeroPremierePage, |
9300 | jghali | 354 | unité, pagesRegard, firstSideLeft) -> booléen |
355 | |||
356 | ATTENTION : FONCTION OBSOLETE, utiliser newDocument à la place ! |
||
357 | |||
358 | Creates a new document and returns true if successful. The parameters have the |
||
359 | following meaning: |
||
360 | |||
361 | size = A tuple (width, height) describing the size of the document. You can |
||
362 | use predefined constants named PAPER_<paper_type> e.g. PAPER_A4 etc. |
||
363 | |||
364 | margins = A tuple (left, right, top, bottom) describing the document |
||
365 | margins |
||
366 | |||
367 | orientation = the page orientation - constants PORTRAIT, LANDSCAPE |
||
368 | |||
369 | firstPageNumer = is the number of the first page in the document used for |
||
370 | pagenumbering. While you'll usually want 1, it's useful to have higher |
||
371 | numbers if you're creating a document in several parts. |
||
372 | |||
373 | unit: this value sets the measurement units used by the document. Use a |
||
374 | predefined constant for this, one of: UNIT_INCHES, UNIT_MILLIMETERS, |
||
375 | UNIT_PICAS, UNIT_POINTS. |
||
376 | |||
377 | facingPages = FACINGPAGES, NOFACINGPAGES |
||
378 | |||
379 | firstSideLeft = FIRSTPAGELEFT, FIRSTPAGERIGHT |
||
380 | |||
381 | The values for width, height and the margins are expressed in the given unit |
||
382 | for the document. PAPER_* constants are expressed in points. If your document |
||
383 | is not in points, make sure to account for this. |
||
384 | |||
385 | example: newDoc(PAPER_A4, (10, 10, 20, 20), LANDSCAPE, 1, UNIT_POINTS, |
||
386 | FACINGPAGES, FIRSTPAGERIGHT) |
||
387 | </translation> |
||
5042 | cbradney | 388 | </message> |
389 | <message> |
||
12281 | cbradney | 390 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="108"/> |
5328 | cbradney | 391 | <source>closeDoc() |
5042 | cbradney | 392 | |
393 | Closes the current document without prompting to save. |
||
394 | |||
395 | May throw NoDocOpenError if there is no document to close |
||
396 | </source> |
||
12918 | cbradney | 397 | <translation type="unfinished">closeDoc() |
9300 | jghali | 398 | |
399 | Ferme le document en cours sans demande de confirmation de sauvegarde. |
||
400 | |||
401 | Lève l'erreur NoDocOpenError s'il n'y a pas de document à fermer |
||
402 | </translation> |
||
5042 | cbradney | 403 | </message> |
404 | <message> |
||
12281 | cbradney | 405 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="117"/> |
5328 | cbradney | 406 | <source>haveDoc() -> bool |
5042 | cbradney | 407 | |
408 | Returns true if there is a document open. |
||
409 | </source> |
||
12918 | cbradney | 410 | <translation type="unfinished">haveDoc() -> booléen |
9300 | jghali | 411 | |
412 | Retourne vrai si un document est ouvert.</translation> |
||
5042 | cbradney | 413 | </message> |
414 | <message> |
||
12281 | cbradney | 415 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="128"/> |
5328 | cbradney | 416 | <source>openDoc("name") |
5042 | cbradney | 417 | |
418 | Opens the document "name". |
||
419 | |||
420 | May raise ScribusError if the document could not be opened. |
||
421 | </source> |
||
12918 | cbradney | 422 | <translation type="unfinished">openDoc("nom") |
9300 | jghali | 423 | |
424 | Ouvre le document "nom". |
||
425 | |||
426 | Lève l'erreur ScribusError si le document ne peut pas être ouvert. |
||
427 | </translation> |
||
5042 | cbradney | 428 | </message> |
429 | <message> |
||
12281 | cbradney | 430 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="141"/> |
5328 | cbradney | 431 | <source>saveDoc() |
5042 | cbradney | 432 | |
433 | Saves the current document with its current name, returns true if successful. |
||
434 | If the document has not already been saved, this may bring up an interactive |
||
435 | save file dialog. |
||
436 | |||
437 | If the save fails, there is currently no way to tell. |
||
438 | </source> |
||
12918 | cbradney | 439 | <translation type="unfinished">saveDoc() |
9300 | jghali | 440 | |
441 | Enregistre le document courant avec son nom actuel et retourne vrai en cas de succès. |
||
442 | Si le document n'a pas encore été sauvegardé, le dialogue d'enregistrement de fichiers |
||
443 | sera ouvert. |
||
444 | |||
445 | Il n'y a actuellement pas de moyen de savoir si l'enregistrement échoue.</translation> |
||
5042 | cbradney | 446 | </message> |
447 | <message> |
||
12281 | cbradney | 448 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="152"/> |
5328 | cbradney | 449 | <source>saveDocAs("name") |
5042 | cbradney | 450 | |
451 | Saves the current document under the new name "name" (which may be a full or |
||
452 | relative path). |
||
453 | |||
454 | May raise ScribusError if the save fails. |
||
455 | </source> |
||
12918 | cbradney | 456 | <translation type="unfinished">saveDocAs("nom") |
9300 | jghali | 457 | |
458 | Enregistre le document courant sous le nom "nom" (qui peut contenir un chemin |
||
459 | complet ou relatif). |
||
460 | |||
461 | Lève l'erreur ScribusError si l'enregistrement échoue.</translation> |
||
5042 | cbradney | 462 | </message> |
463 | <message> |
||
12918 | cbradney | 464 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="162"/> |
465 | <source>setInfo("author", "info", "description") -> bool |
||
466 | |||
467 | Sets the document information. "Author", "Info", "Description" are |
||
468 | strings. |
||
469 | </source> |
||
470 | <translation type="unfinished">setInfo("auteur", "info", "description") -> booléen |
||
471 | |||
472 | Définit les informations du document. "auteur", "info" et "description" sont |
||
473 | des chaînes de caractères.</translation> |
||
474 | </message> |
||
475 | <message> |
||
476 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="173"/> |
||
5328 | cbradney | 477 | <source>setMargins(lr, rr, tr, br) |
5042 | cbradney | 478 | |
12918 | cbradney | 479 | Sets the margins of the document, Qt::DockLeft(lr), Qt::DockRight(rr), Qt::DockTop(tr) and Qt::DockBottom(br) |
5328 | cbradney | 480 | margins are given in the measurement units of the document - see UNIT_<type> |
5042 | cbradney | 481 | constants. |
482 | </source> |
||
12918 | cbradney | 483 | <translation type="unfinished"></translation> |
5042 | cbradney | 484 | </message> |
485 | <message> |
||
12281 | cbradney | 486 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="185"/> |
5328 | cbradney | 487 | <source>setUnit(type) |
5042 | cbradney | 488 | |
489 | Changes the measurement unit of the document. Possible values for "unit" are |
||
5328 | cbradney | 490 | defined as constants UNIT_<type>. |
5042 | cbradney | 491 | |
492 | May raise ValueError if an invalid unit is passed. |
||
493 | </source> |
||
12918 | cbradney | 494 | <translation type="unfinished">setUnit(type) |
9300 | jghali | 495 | |
496 | Change l'unité de mesure du document. Les valeurs possibles pour l'unité sont |
||
497 | définies par les constantes UNIT_<type>. |
||
498 | |||
499 | Lève une erreur ValueError si une unité invalide est fournie. |
||
500 | </translation> |
||
5042 | cbradney | 501 | </message> |
502 | <message> |
||
12281 | cbradney | 503 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="196"/> |
5328 | cbradney | 504 | <source>getUnit() -> integer (Scribus unit constant) |
5042 | cbradney | 505 | |
506 | Returns the measurement units of the document. The returned value will be one |
||
507 | of the UNIT_* constants: |
||
508 | UNIT_INCHES, UNIT_MILLIMETERS, UNIT_PICAS, UNIT_POINTS. |
||
509 | </source> |
||
12918 | cbradney | 510 | <translation type="unfinished">getUnit() -> entier (constante Scribus) |
9300 | jghali | 511 | |
512 | Retourne l'unité de mesure du document. La valeur retournée sera l'une des |
||
513 | constantes UNIT_* : |
||
514 | UNIT_INCHES, UNIT_MILLIMETERS, UNIT_PICAS, UNIT_POINTS.</translation> |
||
5042 | cbradney | 515 | </message> |
516 | <message> |
||
12281 | cbradney | 517 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="206"/> |
5328 | cbradney | 518 | <source>loadStylesFromFile("filename") |
5042 | cbradney | 519 | |
520 | Loads paragraph styles from the Scribus document at "filename" into the |
||
521 | current document. |
||
522 | </source> |
||
12918 | cbradney | 523 | <translation type="unfinished">loadStylesFromFile("fichier") |
9300 | jghali | 524 | |
525 | Charge les styles de paragraphe depuis le document Scribus nommé "fichier". |
||
526 | </translation> |
||
5042 | cbradney | 527 | </message> |
528 | <message> |
||
12281 | cbradney | 529 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="218"/> |
5328 | cbradney | 530 | <source>setDocType(facingPages, firstPageLeft) |
5042 | cbradney | 531 | |
532 | Sets the document type. To get facing pages set the first parameter to |
||
533 | FACINGPAGES, to switch facingPages off use NOFACINGPAGES instead. If you want |
||
534 | to be the first page a left side set the second parameter to FIRSTPAGELEFT, for |
||
535 | a right page use FIRSTPAGERIGHT. |
||
536 | </source> |
||
5328 | cbradney | 537 | <translation type="unfinished"></translation> |
5042 | cbradney | 538 | </message> |
539 | <message> |
||
12281 | cbradney | 540 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="226"/> |
5328 | cbradney | 541 | <source>closeMasterPage() |
5042 | cbradney | 542 | |
543 | Closes the currently active master page, if any, and returns editing |
||
544 | to normal. Begin editing with editMasterPage(). |
||
545 | </source> |
||
12918 | cbradney | 546 | <translation type="unfinished">closeMasterPage() |
9300 | jghali | 547 | |
548 | Ferme le gabarit actuellement actif, s'il y en a un, et retourne au mode d'édition |
||
549 | normal. L'édition d'un gabarit débute par editMasterPage().</translation> |
||
5042 | cbradney | 550 | </message> |
551 | <message> |
||
12281 | cbradney | 552 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="233"/> |
5328 | cbradney | 553 | <source>masterPageNames() |
5042 | cbradney | 554 | |
555 | Returns a list of the names of all master pages in the document. |
||
556 | </source> |
||
12918 | cbradney | 557 | <translation type="unfinished">masterPageNames() |
9300 | jghali | 558 | |
559 | Retourne une liste contenant les noms des gabarits existant dans le document.</translation> |
||
5042 | cbradney | 560 | </message> |
561 | <message> |
||
12281 | cbradney | 562 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="241"/> |
5328 | cbradney | 563 | <source>editMasterPage(pageName) |
5042 | cbradney | 564 | |
565 | Enables master page editing and opens the named master page |
||
566 | for editing. Finish editing with closeMasterPage(). |
||
567 | </source> |
||
12918 | cbradney | 568 | <translation type="unfinished">editMasterPage(nomGabarit) |
9300 | jghali | 569 | |
570 | Active l'édition du gabarit nommé "nomGabarit". L'édition du gabarit se |
||
571 | termine par closeMasterPage().</translation> |
||
5042 | cbradney | 572 | </message> |
573 | <message> |
||
12281 | cbradney | 574 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="249"/> |
5328 | cbradney | 575 | <source>createMasterPage(pageName) |
5042 | cbradney | 576 | |
577 | Creates a new master page named pageName and opens it for |
||
578 | editing. |
||
579 | </source> |
||
12918 | cbradney | 580 | <translation type="unfinished">createMasterPage(nomGabarit) |
9300 | jghali | 581 | |
582 | Crée un nouveau gabarit nommé nomGabarit et l'ouvre pour édition.</translation> |
||
5042 | cbradney | 583 | </message> |
584 | <message> |
||
12281 | cbradney | 585 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="256"/> |
5328 | cbradney | 586 | <source>deleteMasterPage(pageName) |
5042 | cbradney | 587 | |
588 | Delete the named master page. |
||
589 | </source> |
||
12918 | cbradney | 590 | <translation type="unfinished">deleteMasterPage(nomGabarit) |
9300 | jghali | 591 | |
592 | Supprime le gabarit nommé nomGabarit.</translation> |
||
5042 | cbradney | 593 | </message> |
594 | <message> |
||
12918 | cbradney | 595 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="21"/> |
596 | <source>getFillColor(["name"]) -> string |
||
597 | |||
598 | Returns the name of the fill color of the object "name". |
||
599 | If "name" is not given the currently selected item is used. |
||
600 | </source> |
||
601 | <translation type="unfinished">getFillColor(["nom"]) -> chaîne |
||
602 | |||
603 | Retourne le nom de la couleur de remplissage de l'objet "nom". |
||
604 | Si "nom" est omis, l'objet actuellement sélectionné est utilisé.</translation> |
||
605 | </message> |
||
606 | <message> |
||
607 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="31"/> |
||
608 | <source>getFillTransparency(["name"]) -> float |
||
609 | |||
610 | Returns the fill transparency of the object "name". If "name" |
||
611 | is not given the currently selected Item is used. |
||
612 | </source> |
||
613 | <translation type="unfinished"></translation> |
||
614 | </message> |
||
615 | <message> |
||
616 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="41"/> |
||
617 | <source>getFillBlendmode(["name"]) -> integer |
||
618 | |||
619 | Returns the fill blendmode of the object "name". If "name" |
||
620 | is not given the currently selected Item is used. |
||
621 | </source> |
||
622 | <translation type="unfinished"></translation> |
||
623 | </message> |
||
624 | <message> |
||
12281 | cbradney | 625 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="51"/> |
5328 | cbradney | 626 | <source>getLineColor(["name"]) -> string |
5042 | cbradney | 627 | |
628 | Returns the name of the line color of the object "name". |
||
629 | If "name" is not given the currently selected item is used. |
||
630 | </source> |
||
12918 | cbradney | 631 | <translation type="unfinished">getLineColor(["nom""]) -> chaîne |
9300 | jghali | 632 | |
633 | Retourne le nom de la couleur de filet de l'objet "nom". |
||
634 | Si "nom" est omis, l'objet actuellement sélectionné est utilisé.</translation> |
||
5042 | cbradney | 635 | </message> |
636 | <message> |
||
12918 | cbradney | 637 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="61"/> |
638 | <source>getLineTransparency(["name"]) -> float |
||
639 | |||
640 | Returns the line transparency of the object "name". If "name" |
||
641 | is not given the currently selected Item is used. |
||
642 | </source> |
||
643 | <translation type="unfinished"></translation> |
||
644 | </message> |
||
645 | <message> |
||
646 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="71"/> |
||
647 | <source>getLineBlendmode(["name"]) -> integer |
||
648 | |||
649 | Returns the line blendmode of the object "name". If "name" |
||
650 | is not given the currently selected Item is used. |
||
651 | </source> |
||
652 | <translation type="unfinished"></translation> |
||
653 | </message> |
||
654 | <message> |
||
12281 | cbradney | 655 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="81"/> |
5328 | cbradney | 656 | <source>getLineWidth(["name"]) -> integer |
5042 | cbradney | 657 | |
658 | Returns the line width of the object "name". If "name" |
||
659 | is not given the currently selected Item is used. |
||
660 | </source> |
||
12918 | cbradney | 661 | <translation type="unfinished">getLineWidth(["nom"]) -> entier |
9300 | jghali | 662 | |
663 | Retourne l'épaisseur de filet de l'objet "nom". |
||
664 | Si "nom" est omis, l'objet actuellement sélectionné est utilisé.</translation> |
||
5042 | cbradney | 665 | </message> |
666 | <message> |
||
12281 | cbradney | 667 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="91"/> |
5328 | cbradney | 668 | <source>getLineShade(["name"]) -> integer |
5042 | cbradney | 669 | |
670 | Returns the shading value of the line color of the object "name". |
||
671 | If "name" is not given the currently selected item is used. |
||
672 | </source> |
||
5328 | cbradney | 673 | <translation type="unfinished"></translation> |
5042 | cbradney | 674 | </message> |
675 | <message> |
||
12918 | cbradney | 676 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="102"/> |
677 | <source>getLineJoin(["name"]) -> integer (see constants) |
||
5042 | cbradney | 678 | |
679 | Returns the line join style of the object "name". If "name" is not given |
||
680 | the currently selected item is used. The join types are: |
||
681 | JOIN_BEVEL, JOIN_MITTER, JOIN_ROUND |
||
682 | </source> |
||
12918 | cbradney | 683 | <translation type="unfinished"></translation> |
5042 | cbradney | 684 | </message> |
685 | <message> |
||
12281 | cbradney | 686 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="113"/> |
5328 | cbradney | 687 | <source>getLineEnd(["name"]) -> integer (see constants) |
5042 | cbradney | 688 | |
689 | Returns the line cap style of the object "name". If "name" is not given the |
||
690 | currently selected item is used. The cap types are: |
||
691 | CAP_FLAT, CAP_ROUND, CAP_SQUARE |
||
692 | </source> |
||
12918 | cbradney | 693 | <translation type="unfinished">getLineEnd(["nom"]) -> entier (voir constantes) |
9300 | jghali | 694 | |
695 | Retourne le type de terminaison des filets de l'objet "nom". Si "nom" est omis, |
||
696 | l'objet actuellement sélectionné est utilisé. Les types de terminaisons sont : |
||
697 | CAP_FLAT, CAP_ROUND, CAP_SQUARE</translation> |
||
5042 | cbradney | 698 | </message> |
699 | <message> |
||
12281 | cbradney | 700 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="124"/> |
5328 | cbradney | 701 | <source>getLineStyle(["name"]) -> integer (see constants) |
5042 | cbradney | 702 | |
703 | Returns the line style of the object "name". If "name" is not given the |
||
704 | currently selected item is used. Line style constants are: |
||
705 | LINE_DASH, LINE_DASHDOT, LINE_DASHDOTDOT, LINE_DOT, LINE_SOLID |
||
706 | </source> |
||
12918 | cbradney | 707 | <translation type="unfinished">getLineStyle(["nom"]) -> entier (voir constantes) |
9300 | jghali | 708 | |
709 | Retourne le type de filet des filets de l'objet "nom". Si "nom" est omis, |
||
710 | l'objet actuellement sélectionné est utilisé. Les types de filets sont : |
||
711 | LINE_DASH, LINE_DASHDOT, LINE_DASHDOTDOT, LINE_DOT, LINE_SOLID |
||
712 | </translation> |
||
5042 | cbradney | 713 | </message> |
714 | <message> |
||
12281 | cbradney | 715 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="134"/> |
5328 | cbradney | 716 | <source>getFillShade(["name"]) -> integer |
5042 | cbradney | 717 | |
718 | Returns the shading value of the fill color of the object "name". |
||
719 | If "name" is not given the currently selected item is used. |
||
720 | </source> |
||
5328 | cbradney | 721 | <translation type="unfinished"></translation> |
5042 | cbradney | 722 | </message> |
723 | <message> |
||
12918 | cbradney | 724 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="145"/> |
725 | <source>getCornerRadius(["name"]) -> integer |
||
726 | |||
727 | Returns the corner radius of the object "name". The radius is |
||
728 | expressed in points. If "name" is not given the currently |
||
729 | selected item is used. |
||
730 | </source> |
||
731 | <translation type="unfinished"></translation> |
||
732 | </message> |
||
733 | <message> |
||
12281 | cbradney | 734 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="155"/> |
5328 | cbradney | 735 | <source>getImageScale(["name"]) -> (x,y) |
5042 | cbradney | 736 | |
737 | Returns a (x, y) tuple containing the scaling values of the image frame |
||
738 | "name". If "name" is not given the currently selected item is used. |
||
739 | </source> |
||
12918 | cbradney | 740 | <translation type="unfinished">getImageScale(["nom"]) -> (x,y) |
9300 | jghali | 741 | |
742 | Retourne un tuple (x,y) contenant les valeurs d'échelle du cadre d'image "nom". |
||
743 | Si "nom" est omis, l'objet actuellement sélectionné est utilisé.</translation> |
||
5042 | cbradney | 744 | </message> |
745 | <message> |
||
12281 | cbradney | 746 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="165"/> |
5328 | cbradney | 747 | <source>getImageName(["name"]) -> string |
5042 | cbradney | 748 | |
749 | Returns the filename for the image in the image frame. If "name" is not |
||
750 | given the currently selected item is used. |
||
751 | </source> |
||
12918 | cbradney | 752 | <translation type="unfinished">getImageName(["nom"]) -> chaîne |
9300 | jghali | 753 | |
754 | Retourne le nom de fichier de l'image présente dans le cadre d'image "nom". |
||
755 | Si "nom" est omis, l'objet actuellement sélectionné est utilisé. |
||
756 | </translation> |
||
5042 | cbradney | 757 | </message> |
758 | <message> |
||
12918 | cbradney | 759 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="177"/> |
760 | <source>getPosition(["name"]) -> (x,y) |
||
761 | |||
762 | Returns a (x, y) tuple with the position of the object "name". |
||
763 | If "name" is not given the currently selected item is used. |
||
764 | The position is expressed in the actual measurement unit of the document |
||
765 | - see UNIT_<type> for reference. |
||
766 | </source> |
||
767 | <translation type="unfinished"></translation> |
||
768 | </message> |
||
769 | <message> |
||
12281 | cbradney | 770 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="189"/> |
5328 | cbradney | 771 | <source>getSize(["name"]) -> (width,height) |
5042 | cbradney | 772 | |
773 | Returns a (width, height) tuple with the size of the object "name". |
||
774 | If "name" is not given the currently selected item is used. The size is |
||
5328 | cbradney | 775 | expressed in the current measurement unit of the document - see UNIT_<type> |
5042 | cbradney | 776 | for reference. |
777 | </source> |
||
12918 | cbradney | 778 | <translation type="unfinished">getSize(["nom"]) -> (hauteur,largeur) |
9300 | jghali | 779 | |
780 | Retourne un tuple (hauteur,largeur) contenant la taille de l'objet "nom". |
||
781 | Si "nom" est omis, l'objet actuellement sélectionné est utilisé. La taille est |
||
782 | exprimée dans l'unité de mesure actuelle du document |
||
783 | - voir UNIT_<type> à titre de référence.</translation> |
||
5042 | cbradney | 784 | </message> |
785 | <message> |
||
12281 | cbradney | 786 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="200"/> |
5328 | cbradney | 787 | <source>getRotation(["name"]) -> integer |
5042 | cbradney | 788 | |
789 | Returns the rotation of the object "name". The value is expressed in degrees, |
||
790 | and clockwise is positive. If "name" is not given the currently selected item |
||
791 | is used. |
||
792 | </source> |
||
12918 | cbradney | 793 | <translation type="unfinished">getRotation(["nom"]) -> entier |
9300 | jghali | 794 | |
795 | Retourne l'angle de rotation de l'objet "nom". La valeur est exprimée en degrés et est |
||
796 | positive pour une rotation dans le sens des aiguilles d'une montre. Si "nom" est omis, |
||
797 | l'objet actuellement sélectionné est utilisé.</translation> |
||
5042 | cbradney | 798 | </message> |
799 | <message> |
||
12281 | cbradney | 800 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="209"/> |
5328 | cbradney | 801 | <source>getAllObjects() -> list |
5042 | cbradney | 802 | |
803 | Returns a list containing the names of all objects on the current page. |
||
804 | </source> |
||
12918 | cbradney | 805 | <translation type="unfinished">getAllObjects() -> liste |
9300 | jghali | 806 | |
807 | Retourne une liste contenant les noms de tous les objets sur la page courante.</translation> |
||
5042 | cbradney | 808 | </message> |
809 | <message> |
||
12281 | cbradney | 810 | <location filename="../../scribus/plugins/scriptplugin/cmdgetsetprop.h" line="83"/> |
5328 | cbradney | 811 | <source>getPropertyCType(object, property, includesuper=True) |
5042 | cbradney | 812 | |
5328 | cbradney | 813 | Returns the name of the C type of `property' of `object'. See getProperty() |
5042 | cbradney | 814 | for details of arguments. |
815 | |||
5328 | cbradney | 816 | If `includesuper' is true, search inherited properties too. |
5042 | cbradney | 817 | </source> |
5328 | cbradney | 818 | <translation type="unfinished"></translation> |
5042 | cbradney | 819 | </message> |
820 | <message> |
||
12281 | cbradney | 821 | <location filename="../../scribus/plugins/scriptplugin/cmdgetsetprop.h" line="101"/> |
5328 | cbradney | 822 | <source>getPropertyNames(object, includesuper=True) |
5042 | cbradney | 823 | |
5328 | cbradney | 824 | Return a list of property names supported by `object'. |
825 | If `includesuper' is true, return properties supported |
||
5042 | cbradney | 826 | by parent classes as well. |
827 | </source> |
||
5328 | cbradney | 828 | <translation type="unfinished"></translation> |
5042 | cbradney | 829 | </message> |
830 | <message> |
||
12281 | cbradney | 831 | <location filename="../../scribus/plugins/scriptplugin/cmdgetsetprop.h" line="135"/> |
5328 | cbradney | 832 | <source>getProperty(object, property) |
5042 | cbradney | 833 | |
5328 | cbradney | 834 | Return the value of the property `property' of the passed `object'. |
5042 | cbradney | 835 | |
5328 | cbradney | 836 | The `object' argument may be a string, in which case the named PageItem |
5042 | cbradney | 837 | is searched for. It may also be a PyCObject, which may point to any |
838 | C++ QObject instance. |
||
839 | |||
5328 | cbradney | 840 | The `property' argument must be a string, and is the name of the property |
841 | to look up on `object'. |
||
5042 | cbradney | 842 | |
843 | The return value varies depending on the type of the property. |
||
844 | </source> |
||
5328 | cbradney | 845 | <translation type="unfinished"></translation> |
5042 | cbradney | 846 | </message> |
847 | <message> |
||
12281 | cbradney | 848 | <location filename="../../scribus/plugins/scriptplugin/cmdgetsetprop.h" line="165"/> |
5328 | cbradney | 849 | <source>setProperty(object, property, value) |
5042 | cbradney | 850 | |
5328 | cbradney | 851 | Set `property' of `object' to `value'. If `value' cannot be converted to a type |
852 | compatible with the type of `property', an exception is raised. An exception may |
||
5042 | cbradney | 853 | also be raised if the underlying setter fails. |
854 | |||
855 | See getProperty() for more information. |
||
856 | </source> |
||
5328 | cbradney | 857 | <translation type="unfinished"></translation> |
5042 | cbradney | 858 | </message> |
859 | <message> |
||
12918 | cbradney | 860 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="23"/> |
861 | <source>moveObject(dx, dy [, "name"]) |
||
862 | |||
863 | Moves the object "name" by dx and dy relative to its current position. The |
||
864 | distances are expressed in the current measurement unit of the document (see |
||
865 | UNIT constants). If "name" is not given the currently selected item is used. |
||
866 | If the object "name" belongs to a group, the whole group is moved. |
||
867 | </source> |
||
868 | <translation type="unfinished">moveObject(dx, dy [, "nom"]) |
||
869 | |||
870 | Déplace l'objet "nom" de dx et dy relativement à sa position courante. Les |
||
871 | distances sont exprimées dans l'unité courante de mesure du document (voir |
||
872 | constantes d'UNITÉS). Si "nom" est omis, l'objet actuellement sélectionné est utilisé. |
||
873 | Si l'objet "nom" appartient à un groupe, le groupe entier est déplacé.</translation> |
||
874 | </message> |
||
875 | <message> |
||
12281 | cbradney | 876 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="35"/> |
5328 | cbradney | 877 | <source>moveObjectAbs(x, y [, "name"]) |
5042 | cbradney | 878 | |
879 | Moves the object "name" to a new location. The coordinates are expressed in |
||
880 | the current measurement unit of the document (see UNIT constants). If "name" |
||
881 | is not given the currently selected item is used. If the object "name" |
||
882 | belongs to a group, the whole group is moved. |
||
883 | </source> |
||
12918 | cbradney | 884 | <translation type="unfinished">moveObjectAbs(x, y [, "nom"]) |
9300 | jghali | 885 | |
886 | Déplace l'objet "nom" vers la nouvelle position. Les coordonnées sont à fournir dans l'unité |
||
887 | de mesure actuelle du document (voir constantes UNIT). Si "nom" est omis, l'objet |
||
888 | actuellement sélectionné est utilisé. Si l'objet "nom" appartient à un groupe, le groupe |
||
889 | entier est déplacé. </translation> |
||
5042 | cbradney | 890 | </message> |
891 | <message> |
||
12918 | cbradney | 892 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="48"/> |
893 | <source>rotateObject(rot [, "name"]) |
||
894 | |||
895 | Rotates the object "name" by "rot" degrees relatively. The object is |
||
896 | rotated by the vertex that is currently selected as the rotation point - by |
||
897 | default, the top left vertex at zero rotation. Positive values mean counter |
||
898 | clockwise rotation when the default rotation point is used. If "name" is not |
||
899 | given the currently selected item is used. |
||
900 | </source> |
||
901 | <translation type="unfinished"></translation> |
||
902 | </message> |
||
903 | <message> |
||
904 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="59"/> |
||
905 | <source>rotateObjectAbs(rot [, "name"]) |
||
906 | |||
907 | Sets the rotation of the object "name" to "rot". Positive values |
||
908 | mean counter clockwise rotation. If "name" is not given the currently |
||
909 | selected item is used. |
||
910 | </source> |
||
911 | <translation type="unfinished"></translation> |
||
912 | </message> |
||
913 | <message> |
||
12281 | cbradney | 914 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="69"/> |
5328 | cbradney | 915 | <source>sizeObject(width, height [, "name"]) |
5042 | cbradney | 916 | |
917 | Resizes the object "name" to the given width and height. If "name" |
||
918 | is not given the currently selected item is used. |
||
919 | </source> |
||
12918 | cbradney | 920 | <translation type="unfinished">sizeObject(hauteur, largeur [, "nom"]) |
9300 | jghali | 921 | |
922 | Redimensionne l'objet "nom" en lui attribuant "hauteur" et "largeur". |
||
923 | Si "nom" est omis, l'objet actuellement sélectionné est utilisé.</translation> |
||
5042 | cbradney | 924 | </message> |
925 | <message> |
||
12281 | cbradney | 926 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="80"/> |
5328 | cbradney | 927 | <source>getSelectedObject([nr]) -> string |
5042 | cbradney | 928 | |
929 | Returns the name of the selected object. "nr" if given indicates the number |
||
930 | of the selected object, e.g. 0 means the first selected object, 1 means the |
||
931 | second selected Object and so on. |
||
932 | </source> |
||
12918 | cbradney | 933 | <translation type="unfinished">getSelectedObject([nr]) -> chaîne |
9300 | jghali | 934 | |
935 | Retourne le nom de l'objet sélectionné. Si "nr" est fourni, il indique l'objet |
||
936 | sélectionné : 0 indique le premier objet sélectionné, 1 le second objet |
||
937 | sélectionné et ainsi de suite.</translation> |
||
5042 | cbradney | 938 | </message> |
939 | <message> |
||
12281 | cbradney | 940 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="89"/> |
5328 | cbradney | 941 | <source>selectionCount() -> integer |
5042 | cbradney | 942 | |
943 | Returns the number of selected objects. |
||
944 | </source> |
||
12918 | cbradney | 945 | <translation type="unfinished">selectionCount() -> entier |
9300 | jghali | 946 | |
947 | Retourne le nombre d'objets sélectionnés.</translation> |
||
5042 | cbradney | 948 | </message> |
949 | <message> |
||
12281 | cbradney | 950 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="98"/> |
5328 | cbradney | 951 | <source>selectObject("name") |
5042 | cbradney | 952 | |
953 | Selects the object with the given "name". |
||
954 | </source> |
||
12918 | cbradney | 955 | <translation type="unfinished">selectObject("nom") |
9300 | jghali | 956 | |
957 | Sélectionne l'objet nommé "nom".</translation> |
||
5042 | cbradney | 958 | </message> |
959 | <message> |
||
12281 | cbradney | 960 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="107"/> |
5328 | cbradney | 961 | <source>deselectAll() |
5042 | cbradney | 962 | |
963 | Deselects all objects in the whole document. |
||
964 | </source> |
||
12918 | cbradney | 965 | <translation type="unfinished">deselectAll() |
9300 | jghali | 966 | |
967 | Désélectionne tous les objets dans le document entier.</translation> |
||
5042 | cbradney | 968 | </message> |
969 | <message> |
||
12281 | cbradney | 970 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="118"/> |
5328 | cbradney | 971 | <source>groupObjects(list) |
5042 | cbradney | 972 | |
973 | Groups the objects named in "list" together. "list" must contain the names |
||
974 | of the objects to be grouped. If "list" is not given the currently selected |
||
975 | items are used. |
||
976 | </source> |
||
12918 | cbradney | 977 | <translation type="unfinished">groupObjects(liste) |
9300 | jghali | 978 | |
979 | Groupe les objets dont le nom est fourni dans "liste". "liste" doit contenir le |
||
980 | nom des objets à grouper. Si "liste" est omis, les objets actuellement |
||
981 | sélectionnés sont utilisés.</translation> |
||
5042 | cbradney | 982 | </message> |
983 | <message> |
||
12281 | cbradney | 984 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="126"/> |
5328 | cbradney | 985 | <source>unGroupObjects("name") |
5042 | cbradney | 986 | |
987 | Destructs the group the object "name" belongs to.If "name" is not given the currently selected item is used.</source> |
||
12918 | cbradney | 988 | <translation type="unfinished">unGroupObjects("nom") |
9300 | jghali | 989 | |
990 | Détruit le groupe auquel l'objet "nom" appartient. Si "nom" est omis, l'objet actuellement sélectionné est utilisé.</translation> |
||
5042 | cbradney | 991 | </message> |
992 | <message> |
||
12281 | cbradney | 993 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="141"/> |
5328 | cbradney | 994 | <source>scaleGroup(factor [,"name"]) |
5042 | cbradney | 995 | |
996 | Scales the group the object "name" belongs to. Values greater than 1 enlarge |
||
997 | the group, values smaller than 1 make the group smaller e.g a value of 0.5 |
||
998 | scales the group to 50 % of its original size, a value of 1.5 scales the group |
||
999 | to 150 % of its original size. The value for "factor" must be greater than |
||
1000 | 0. If "name" is not given the currently selected item is used. |
||
1001 | |||
1002 | May raise ValueError if an invalid scale factor is passed. |
||
1003 | </source> |
||
12918 | cbradney | 1004 | <translation type="unfinished">scaleGroup(facteur [,"nom"]) |
9300 | jghali | 1005 | |
1006 | Modifie l'échelle du groupe auquel l'objet "nom" appartient. Les facteurs supérieurs |
||
1007 | à 1 agrandissent le groupe, et les valeurs inférieures à 1 le réduisent; une valeur de |
||
1008 | 0.5 redimensionne le groupe à 50% de sa taille d'origine, et une valeur de 1.5 le |
||
1009 | redimensionne à 150% de sa taille d'origine. "facteur" doit être supérieur à 0. |
||
1010 | Si "nom" est omis, l'objet actuellement sélectionné est utilisé. |
||
1011 | |||
1012 | Lève l'erreur ValueError si un facteur invalide est fourni.</translation> |
||
5042 | cbradney | 1013 | </message> |
1014 | <message> |
||
12281 | cbradney | 1015 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="153"/> |
5328 | cbradney | 1016 | <source>loadImage("filename" [, "name"]) |
5042 | cbradney | 1017 | |
1018 | Loads the picture "picture" into the image frame "name". If "name" is |
||
1019 | not given the currently selected item is used. |
||
1020 | |||
1021 | May raise WrongFrameTypeError if the target frame is not an image frame |
||
1022 | </source> |
||
12918 | cbradney | 1023 | <translation type="unfinished">loadImage("fichier" [, "nom"]) |
9300 | jghali | 1024 | |
1025 | Charge l'image "fichier" dans le cadre d'image "nom". Si "nom" est omis, |
||
1026 | l'objet actuellement sélectionné est utilisé. |
||
1027 | |||
1028 | Lève l'erreur WrongFrameTypeError si l'objet n'est pas un cadre d'image |
||
1029 | </translation> |
||
5042 | cbradney | 1030 | </message> |
1031 | <message> |
||
12281 | cbradney | 1032 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="166"/> |
5328 | cbradney | 1033 | <source>scaleImage(x, y [, "name"]) |
5042 | cbradney | 1034 | |
1035 | Sets the scaling factors of the picture in the image frame "name". |
||
1036 | If "name" is not given the currently selected item is used. A number of 1 |
||
1037 | means 100 %. |
||
1038 | |||
1039 | May raise WrongFrameTypeError if the target frame is not an image frame |
||
1040 | </source> |
||
13279 | cbradney | 1041 | <translation type="obsolete">scaleImage(x, y [, "nom"]) |
9300 | jghali | 1042 | |
1043 | Définit la mise à l'échelle de l'image présente dans le cadre "nom". |
||
1044 | Si "nom" est omis, l'objet actuellement sélectionné est utilisé. Une valeur de 1 |
||
1045 | signifie 100% |
||
1046 | |||
1047 | Lève l'erreur WrongFrameTypeError si l'objet n'est pas un cadre d'image |
||
1048 | </translation> |
||
5042 | cbradney | 1049 | </message> |
1050 | <message> |
||
13279 | cbradney | 1051 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="191"/> |
5328 | cbradney | 1052 | <source>lockObject(["name"]) -> bool |
5042 | cbradney | 1053 | |
5328 | cbradney | 1054 | Locks the object "name" if it's unlocked or unlock it if it's locked. |
5042 | cbradney | 1055 | If "name" is not given the currently selected item is used. Returns true |
1056 | if locked. |
||
1057 | </source> |
||
12918 | cbradney | 1058 | <translation type="unfinished">lockObject(["nom]) -> booléen |
9300 | jghali | 1059 | |
1060 | Verrouille l'objet "nom" s'il est déverouillé, ou le déverouille s'il est verrouillé. |
||
1061 | Si "nom" est omis, l'objet actuellement sélectionné est utilisé. |
||
1062 | Retourne vrai si l'objet est verrouillé. |
||
1063 | </translation> |
||
5042 | cbradney | 1064 | </message> |
1065 | <message> |
||
13279 | cbradney | 1066 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="201"/> |
5328 | cbradney | 1067 | <source>isLocked(["name"]) -> bool |
5042 | cbradney | 1068 | |
1069 | Returns true if is the object "name" locked. If "name" is not given the |
||
1070 | currently selected item is used. |
||
1071 | </source> |
||
12918 | cbradney | 1072 | <translation type="unfinished">isLocked(["nom"]) -> booléen |
9300 | jghali | 1073 | |
1074 | Retourne vrai si l'objet "nom" est verrouillé. Si "nom" est omis, l'objet |
||
1075 | actuellement sélectionné est utilisé. </translation> |
||
5042 | cbradney | 1076 | </message> |
1077 | <message> |
||
13279 | cbradney | 1078 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="213"/> |
5328 | cbradney | 1079 | <source>setScaleImageToFrame(scaletoframe, proportional=None, name=<selection>) |
5042 | cbradney | 1080 | |
5328 | cbradney | 1081 | Sets the scale to frame on the selected or specified image frame to `scaletoframe'. |
1082 | If `proportional' is specified, set fixed aspect ratio scaling to `proportional'. |
||
1083 | Both `scaletoframe' and `proportional' are boolean. |
||
5042 | cbradney | 1084 | |
1085 | May raise WrongFrameTypeError. |
||
1086 | </source> |
||
12918 | cbradney | 1087 | <translation type="unfinished">setScaleImageToFrame(dimensionscadre, proportionnel=None, nom=<selection>) |
9300 | jghali | 1088 | |
1089 | Permet de mettre l'image aux dimensions du cadre si "dimensionscadre" est vrai. |
||
1090 | Si "proportionnel" est vrai, le ratio d'aspect de l'image est conservé. |
||
1091 | "dimensionscadre" et "proportionnel" sont des booléens. |
||
1092 | |||
1093 | Peut lever l'erreur WrongFrameTypeError.</translation> |
||
5042 | cbradney | 1094 | </message> |
1095 | <message> |
||
12918 | cbradney | 1096 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="24"/> |
1097 | <source>setRedraw(bool) |
||
1098 | |||
1099 | Disables page redraw when bool = False, otherwise redrawing is enabled. |
||
1100 | This change will persist even after the script exits, so make sure to call |
||
1101 | setRedraw(True) in a finally: clause at the top level of your script. |
||
1102 | </source> |
||
1103 | <translation type="unfinished">setRedraw(booléen) |
||
1104 | |||
1105 | Désactive le rafraîchissement de l'affichage si le booléen est faux, sinon le |
||
1106 | rafraîchissement est actif. Ce changement persiste même après la fin du |
||
1107 | script, donc veillez à appeler setRedraw(True) dans une clause finally: au |
||
1108 | début de votre script. |
||
1109 | </translation> |
||
1110 | </message> |
||
1111 | <message> |
||
12281 | cbradney | 1112 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="33"/> |
5328 | cbradney | 1113 | <source>getFontNames() -> list |
5042 | cbradney | 1114 | |
1115 | Returns a list with the names of all available fonts. |
||
1116 | </source> |
||
12918 | cbradney | 1117 | <translation type="unfinished">getFontNames() -> liste |
9300 | jghali | 1118 | |
1119 | Retourne une liste contenant les noms de toutes les polices disponibles. |
||
1120 | </translation> |
||
5042 | cbradney | 1121 | </message> |
1122 | <message> |
||
12281 | cbradney | 1123 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="43"/> |
5328 | cbradney | 1124 | <source>getXFontNames() -> list of tuples |
5042 | cbradney | 1125 | |
5328 | cbradney | 1126 | Returns a larger font info. It's a list of the tuples with: |
5042 | cbradney | 1127 | [ (Scribus name, Family, Real name, subset (1|0), embed PS (1|0), font file), (...), ... ] |
1128 | </source> |
||
12918 | cbradney | 1129 | <translation type="unfinished">getXFontNames() -> liste de tuples |
9300 | jghali | 1130 | |
1131 | Retourne la liste des polices avec les informations sous forme de tuples : |
||
1132 | [ (nom Scribus, famille, nom réel, jeu partiel (1|0), incorporée PS (1|0), fichier de police), (...), ... ] |
||
1133 | </translation> |
||
5042 | cbradney | 1134 | </message> |
1135 | <message> |
||
12281 | cbradney | 1136 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="62"/> |
5328 | cbradney | 1137 | <source>renderFont("name", "filename", "sample", size, format="PPM") -> bool |
5042 | cbradney | 1138 | |
1139 | Creates an image preview of font "name" with given text "sample" and size. |
||
1140 | If "filename" is not "", image is saved into "filename". Otherwise |
||
1141 | image data is returned as a string. The optional "format" argument |
||
1142 | specifies the image format to generate, and supports any format allowed |
||
1143 | by QPixmap.save(). Common formats are PPM, JPEG, PNG and XPM. |
||
1144 | |||
5328 | cbradney | 1145 | May raise NotFoundError if the specified font can't be found. |
5042 | cbradney | 1146 | May raise ValueError if an empty sample or filename is passed. |
1147 | </source> |
||
5328 | cbradney | 1148 | <translation type="unfinished"></translation> |
5042 | cbradney | 1149 | </message> |
1150 | <message> |
||
12281 | cbradney | 1151 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="71"/> |
5328 | cbradney | 1152 | <source>getLayers() -> list |
5042 | cbradney | 1153 | |
1154 | Returns a list with the names of all defined layers. |
||
1155 | </source> |
||
12918 | cbradney | 1156 | <translation type="unfinished">getLayers() -> liste |
9300 | jghali | 1157 | |
1158 | Retourne une liste contenant les noms de tous les calques définis.</translation> |
||
5042 | cbradney | 1159 | </message> |
1160 | <message> |
||
12281 | cbradney | 1161 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="83"/> |
5328 | cbradney | 1162 | <source>setActiveLayer("name") |
5042 | cbradney | 1163 | |
1164 | Sets the active layer to the layer named "name". |
||
1165 | |||
5328 | cbradney | 1166 | May raise NotFoundError if the layer can't be found. |
1167 | May raise ValueError if the layer name isn't acceptable. |
||
5042 | cbradney | 1168 | </source> |
12918 | cbradney | 1169 | <translation type="unfinished">setActiveLayer("nom") |
9300 | jghali | 1170 | |
1171 | Rend actif le calque nommé "nom". |
||
1172 | |||
1173 | Lève l'erreur NotFoundError si le calque n'est pas trouvé. |
||
1174 | Lève l'erreur ValueError si le format de "nom" n'est pas correct.</translation> |
||
5042 | cbradney | 1175 | </message> |
1176 | <message> |
||
12281 | cbradney | 1177 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="92"/> |
5328 | cbradney | 1178 | <source>getActiveLayer() -> string |
5042 | cbradney | 1179 | |
1180 | Returns the name of the current active layer. |
||
1181 | </source> |
||
12918 | cbradney | 1182 | <translation type="unfinished">getActiveLayer() -> chaîne |
9300 | jghali | 1183 | |
1184 | Retourne le nom du calque actuellement actif.</translation> |
||
5042 | cbradney | 1185 | </message> |
1186 | <message> |
||
12281 | cbradney | 1187 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="105"/> |
5328 | cbradney | 1188 | <source>sentToLayer("layer" [, "name"]) |
5042 | cbradney | 1189 | |
1190 | Sends the object "name" to the layer "layer". The layer must exist. |
||
1191 | If "name" is not given the currently selected item is used. |
||
1192 | |||
5328 | cbradney | 1193 | May raise NotFoundError if the layer can't be found. |
1194 | May raise ValueError if the layer name isn't acceptable. |
||
5042 | cbradney | 1195 | </source> |
12918 | cbradney | 1196 | <translation type="unfinished">sentToLayer("calque" [, "nom"]) |
9300 | jghali | 1197 | |
1198 | Envoit l'objet nommé "nom" vers le calque "calque". Le calque doit exister. |
||
1199 | Si "nom" est omis, l'objet actuellement sélectionné est utilisé. |
||
1200 | |||
1201 | Lève l'erreur NotFoundError si le calque n'est pas trouvé. |
||
1202 | Lève l'erreur ValueError si le format de "calque" n'est pas correct.</translation> |
||
5042 | cbradney | 1203 | </message> |
1204 | <message> |
||
12281 | cbradney | 1205 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="118"/> |
5328 | cbradney | 1206 | <source>setLayerVisible("layer", visible) |
5042 | cbradney | 1207 | |
1208 | Sets the layer "layer" to be visible or not. If is the visible set to false |
||
1209 | the layer is invisible. |
||
1210 | |||
5328 | cbradney | 1211 | May raise NotFoundError if the layer can't be found. |
1212 | May raise ValueError if the layer name isn't acceptable. |
||
5042 | cbradney | 1213 | </source> |
12918 | cbradney | 1214 | <translation type="unfinished">setLayerVisible("calque", visible) |
9300 | jghali | 1215 | |
1216 | Définit la visibilité du calque "calque". Si "visible" est faux, le calque |
||
1217 | est invisible. |
||
1218 | |||
1219 | Lève l'erreur NotFoundError si le calque n'est pas trouvé. |
||
1220 | Lève l'erreur ValueError si le format de "calque" n'est pas correct.</translation> |
||
5042 | cbradney | 1221 | </message> |
1222 | <message> |
||
12918 | cbradney | 1223 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="131"/> |
1224 | <source>setLayerPrintable("layer", printable) |
||
1225 | |||
1226 | Sets the layer "layer" to be printable or not. If is the |
||
1227 | printable set to false the layer won't be printed. |
||
1228 | |||
1229 | May raise NotFoundError if the layer can't be found. |
||
1230 | May raise ValueError if the layer name isn't acceptable. |
||
1231 | </source> |
||
1232 | <translation type="unfinished"></translation> |
||
1233 | </message> |
||
1234 | <message> |
||
1235 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="144"/> |
||
1236 | <source>setLayerLocked("layer", locked) |
||
1237 | |||
1238 | Sets the layer "layer" to be locked or not. If locked is set to |
||
1239 | true the layer will be locked. |
||
1240 | |||
1241 | May raise NotFoundError if the layer can't be found. |
||
1242 | May raise ValueError if the layer name isn't acceptable. |
||
1243 | </source> |
||
1244 | <translation type="unfinished"></translation> |
||
1245 | </message> |
||
1246 | <message> |
||
1247 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="157"/> |
||
1248 | <source>setLayerOutlined("layer", outline) |
||
1249 | |||
1250 | Sets the layer "layer" to be locked or not. If outline is set to |
||
1251 | true the layer will be displayed outlined. |
||
1252 | |||
1253 | May raise NotFoundError if the layer can't be found. |
||
1254 | May raise ValueError if the layer name isn't acceptable. |
||
1255 | </source> |
||
1256 | <translation type="unfinished"></translation> |
||
1257 | </message> |
||
1258 | <message> |
||
1259 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="170"/> |
||
1260 | <source>setLayerFlow("layer", flow) |
||
1261 | |||
1262 | Sets the layers "layer" flowcontrol to flow. If flow is set to |
||
1263 | true text in layers above this one will flow around objects on this layer. |
||
1264 | |||
1265 | May raise NotFoundError if the layer can't be found. |
||
1266 | May raise ValueError if the layer name isn't acceptable. |
||
1267 | </source> |
||
1268 | <translation type="unfinished"></translation> |
||
1269 | </message> |
||
1270 | <message> |
||
1271 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="182"/> |
||
1272 | <source>setLayerBlendmode("layer", blend) |
||
1273 | |||
1274 | Sets the layers "layer" blendmode to blend. |
||
1275 | |||
1276 | May raise NotFoundError if the layer can't be found. |
||
1277 | May raise ValueError if the layer name isn't acceptable. |
||
1278 | </source> |
||
1279 | <translation type="unfinished"></translation> |
||
1280 | </message> |
||
1281 | <message> |
||
1282 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="194"/> |
||
1283 | <source>setLayerTransparency("layer", trans) |
||
1284 | |||
1285 | Sets the layers "layer" transparency to trans. |
||
1286 | |||
1287 | May raise NotFoundError if the layer can't be found. |
||
1288 | May raise ValueError if the layer name isn't acceptable. |
||
1289 | </source> |
||
1290 | <translation type="unfinished"></translation> |
||
1291 | </message> |
||
1292 | <message> |
||
1293 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="208"/> |
||
1294 | <source>isLayerVisible("layer") -> bool |
||
1295 | |||
1296 | Returns whether the layer "layer" is visible or not, a value of True means |
||
1297 | that the layer "layer" is visible, a value of False means that the layer |
||
1298 | "layer" is invisible. |
||
1299 | |||
1300 | May raise NotFoundError if the layer can't be found. |
||
1301 | May raise ValueError if the layer name isn't acceptable. |
||
1302 | </source> |
||
1303 | <translation type="unfinished"></translation> |
||
1304 | </message> |
||
1305 | <message> |
||
12281 | cbradney | 1306 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="222"/> |
5328 | cbradney | 1307 | <source>isLayerPrintable("layer") -> bool |
5042 | cbradney | 1308 | |
1309 | Returns whether the layer "layer" is printable or not, a value of True means |
||
1310 | that the layer "layer" can be printed, a value of False means that printing |
||
1311 | the layer "layer" is disabled. |
||
1312 | |||
5328 | cbradney | 1313 | May raise NotFoundError if the layer can't be found. |
1314 | May raise ValueError if the layer name isn't acceptable. |
||
5042 | cbradney | 1315 | </source> |
12918 | cbradney | 1316 | <translation type="unfinished">setLayerPrintable("calque", imprimable) |
9300 | jghali | 1317 | |
1318 | Définit si le calque "calque" sera imprimé. Si "imprimable" est faux |
||
1319 | le calque ne sera pas imprimé. |
||
1320 | |||
1321 | Lève l'erreur NotFoundError si le calque n'est pas trouvé. |
||
1322 | Lève l'erreur ValueError si le format de "calque" n'est pas correct.</translation> |
||
5042 | cbradney | 1323 | </message> |
1324 | <message> |
||
12918 | cbradney | 1325 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="236"/> |
1326 | <source>isLayerLocked("layer") -> bool |
||
1327 | |||
1328 | Returns whether the layer "layer" is locked or not, a value of True means |
||
1329 | that the layer "layer" is editable, a value of False means that the layer |
||
1330 | "layer" is locked. |
||
1331 | |||
1332 | May raise NotFoundError if the layer can't be found. |
||
1333 | May raise ValueError if the layer name isn't acceptable. |
||
1334 | </source> |
||
1335 | <translation type="unfinished"></translation> |
||
1336 | </message> |
||
1337 | <message> |
||
1338 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="250"/> |
||
1339 | <source>isLayerOutlined("layer") -> bool |
||
1340 | |||
1341 | Returns whether the layer "layer" is outlined or not, a value of True means |
||
1342 | that the layer "layer" is outlined, a value of False means that the layer |
||
1343 | "layer" is normal. |
||
1344 | |||
1345 | May raise NotFoundError if the layer can't be found. |
||
1346 | May raise ValueError if the layer name isn't acceptable. |
||
1347 | </source> |
||
1348 | <translation type="unfinished"></translation> |
||
1349 | </message> |
||
1350 | <message> |
||
1351 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="263"/> |
||
1352 | <source>isLayerFlow("layer") -> bool |
||
1353 | |||
1354 | Returns whether text flows around objects on layer "layer", a value of True means |
||
1355 | that text flows around, a value of False means that the text does not flow around. |
||
1356 | |||
1357 | May raise NotFoundError if the layer can't be found. |
||
1358 | May raise ValueError if the layer name isn't acceptable. |
||
1359 | </source> |
||
1360 | <translation type="unfinished"></translation> |
||
1361 | </message> |
||
1362 | <message> |
||
1363 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="275"/> |
||
1364 | <source>getLayerBlendmode("layer") -> int |
||
1365 | |||
1366 | Returns the "layer" layer blendmode, |
||
1367 | |||
1368 | May raise NotFoundError if the layer can't be found. |
||
1369 | May raise ValueError if the layer name isn't acceptable. |
||
1370 | </source> |
||
1371 | <translation type="unfinished"></translation> |
||
1372 | </message> |
||
1373 | <message> |
||
1374 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="287"/> |
||
1375 | <source>getLayerTransparency("layer") -> float |
||
1376 | |||
1377 | Returns the "layer" layer transparency, |
||
1378 | |||
1379 | May raise NotFoundError if the layer can't be found. |
||
1380 | May raise ValueError if the layer name isn't acceptable. |
||
1381 | </source> |
||
1382 | <translation type="unfinished"></translation> |
||
1383 | </message> |
||
1384 | <message> |
||
12281 | cbradney | 1385 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="300"/> |
5328 | cbradney | 1386 | <source>deleteLayer("layer") |
5042 | cbradney | 1387 | |
5328 | cbradney | 1388 | Deletes the layer with the name "layer". Nothing happens if the layer doesn't |
1389 | exists or if it's the only layer in the document. |
||
5042 | cbradney | 1390 | |
5328 | cbradney | 1391 | May raise NotFoundError if the layer can't be found. |
1392 | May raise ValueError if the layer name isn't acceptable. |
||
5042 | cbradney | 1393 | </source> |
12918 | cbradney | 1394 | <translation type="unfinished">deleteLayer("calque") |
9300 | jghali | 1395 | |
1396 | Supprime le calque nomme "calque". Sans effet si le calque n'existe pas ou |
||
1397 | s'il s'agit du seul calque du document. |
||
1398 | |||
1399 | Lève l'erreur NotFoundError si le calque n'est pas trouvé. |
||
1400 | Lève l'erreur ValueError si le format de "calque" n'est pas correct.</translation> |
||
5042 | cbradney | 1401 | </message> |
1402 | <message> |
||
12281 | cbradney | 1403 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="311"/> |
5328 | cbradney | 1404 | <source>createLayer(layer) |
5042 | cbradney | 1405 | |
1406 | Creates a new layer with the name "name". |
||
1407 | |||
5328 | cbradney | 1408 | May raise ValueError if the layer name isn't acceptable. |
5042 | cbradney | 1409 | </source> |
12918 | cbradney | 1410 | <translation type="unfinished">createLayer("calque") |
9300 | jghali | 1411 | |
1412 | Crée un nouveau calque nommé "calque". |
||
1413 | |||
1414 | Lève l'erreur ValueError si le format de "calque" n'est pas correct. |
||
1415 | </translation> |
||
5042 | cbradney | 1416 | </message> |
1417 | <message> |
||
12281 | cbradney | 1418 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="320"/> |
5328 | cbradney | 1419 | <source>getGuiLanguage() -> string |
5042 | cbradney | 1420 | |
1421 | Returns a string with the -lang value. |
||
1422 | </source> |
||
12918 | cbradney | 1423 | <translation type="unfinished">getGuiLanguage() -> chaîne |
9300 | jghali | 1424 | |
1425 | Retourne une chaîne indiquant la langue de l'interface correspondant à l'option -lang.</translation> |
||
5042 | cbradney | 1426 | </message> |
1427 | <message> |
||
12918 | cbradney | 1428 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="329"/> |
1429 | <source>moveSelectionToFront() |
||
1430 | |||
1431 | Moves current selection to front. |
||
1432 | </source> |
||
1433 | <translation type="unfinished"></translation> |
||
1434 | </message> |
||
1435 | <message> |
||
1436 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="338"/> |
||
1437 | <source>moveSelectionToFront() |
||
1438 | |||
1439 | Moves current selection to back. |
||
1440 | </source> |
||
1441 | <translation type="unfinished"></translation> |
||
1442 | </message> |
||
1443 | <message> |
||
1444 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="26"/> |
||
1445 | <source>createRect(x, y, width, height, ["name"]) -> string |
||
1446 | |||
1447 | Creates a new rectangle on the current page and returns its name. The |
||
1448 | coordinates are given in the current measurement units of the document |
||
1449 | (see UNIT constants). "name" should be a unique identifier for the object |
||
1450 | because you need this name to reference that object in future. If "name" |
||
1451 | is not given Scribus will create one for you. |
||
1452 | |||
1453 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
1454 | </source> |
||
1455 | <translation type="unfinished">createRect(x, y, largeur, hauteur, ["nom"]) -> chaîne |
||
1456 | |||
1457 | Crée un rectangle sur la page courante et retourne son nom. Les coordonnées |
||
1458 | sont exprimées dans l'unité courante de mesure du document (voir constantes |
||
1459 | d'UNITÉS). "nom" doit être un identifiant unique pour l'objet car il sert de référence |
||
1460 | pour l'objet. Si "nom" est omis, Scribus en attribuera un pour vous. |
||
1461 | |||
1462 | Peut lever une erreur NameExistsError si "nom" existe déjà.</translation> |
||
1463 | </message> |
||
1464 | <message> |
||
12281 | cbradney | 1465 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="43"/> |
5328 | cbradney | 1466 | <source>createEllipse(x, y, width, height, ["name"]) -> string |
5042 | cbradney | 1467 | |
1468 | Creates a new ellipse on the current page and returns its name. |
||
1469 | The coordinates are given in the current measurement units of the document |
||
1470 | (see UNIT constants). "name" should be a unique identifier for the object |
||
1471 | because you need this name for further referencing of that object. If "name" |
||
1472 | is not given Scribus will create one for you. |
||
1473 | |||
5328 | cbradney | 1474 | May raise NameExistsError if you explicitly pass a name that's already used. |
5042 | cbradney | 1475 | </source> |
5328 | cbradney | 1476 | <translation type="unfinished"></translation> |
5042 | cbradney | 1477 | </message> |
1478 | <message> |
||
12281 | cbradney | 1479 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="60"/> |
5328 | cbradney | 1480 | <source>createImage(x, y, width, height, ["name"]) -> string |
5042 | cbradney | 1481 | |
1482 | Creates a new picture frame on the current page and returns its name. The |
||
1483 | coordinates are given in the current measurement units of the document. |
||
1484 | "name" should be a unique identifier for the object because you need this |
||
1485 | name for further access to that object. If "name" is not given Scribus will |
||
1486 | create one for you. |
||
1487 | |||
5328 | cbradney | 1488 | May raise NameExistsError if you explicitly pass a name that's already used. |
5042 | cbradney | 1489 | </source> |
5328 | cbradney | 1490 | <translation type="unfinished"></translation> |
5042 | cbradney | 1491 | </message> |
1492 | <message> |
||
12281 | cbradney | 1493 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="75"/> |
5328 | cbradney | 1494 | <source>createText(x, y, width, height, ["name"]) -> string |
5042 | cbradney | 1495 | |
1496 | Creates a new text frame on the actual page and returns its name. |
||
1497 | The coordinates are given in the actual measurement unit of the document (see |
||
1498 | UNIT constants). "name" should be a unique identifier for the object because |
||
1499 | you need this name for further referencing of that object. If "name" is not |
||
1500 | given Scribus will create one for you. |
||
1501 | |||
5328 | cbradney | 1502 | May raise NameExistsError if you explicitly pass a name that's already used. |
5042 | cbradney | 1503 | </source> |
5328 | cbradney | 1504 | <translation type="unfinished"></translation> |
5042 | cbradney | 1505 | </message> |
1506 | <message> |
||
12281 | cbradney | 1507 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="90"/> |
5328 | cbradney | 1508 | <source>createLine(x1, y1, x2, y2, ["name"]) -> string |
5042 | cbradney | 1509 | |
1510 | Creates a new line from the point(x1, y1) to the point(x2, y2) and returns |
||
1511 | its name. The coordinates are given in the current measurement unit of the |
||
1512 | document (see UNIT constants). "name" should be a unique identifier for the |
||
1513 | object because you need this name for further access to that object. If |
||
1514 | "name" is not given Scribus will create one for you. |
||
1515 | |||
5328 | cbradney | 1516 | May raise NameExistsError if you explicitly pass a name that's already used. |
5042 | cbradney | 1517 | </source> |
5328 | cbradney | 1518 | <translation type="unfinished"></translation> |
5042 | cbradney | 1519 | </message> |
1520 | <message> |
||
12281 | cbradney | 1521 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="108"/> |
5328 | cbradney | 1522 | <source>createPolyLine(list, ["name"]) -> string |
5042 | cbradney | 1523 | |
1524 | Creates a new polyline and returns its name. The points for the polyline are |
||
1525 | stored in the list "list" in the following order: [x1, y1, x2, y2...xn. yn]. |
||
1526 | The coordinates are given in the current measurement units of the document (see |
||
1527 | UNIT constants). "name" should be a unique identifier for the object because |
||
1528 | you need this name for further access to that object. If "name" is not given |
||
1529 | Scribus will create one for you. |
||
1530 | |||
5328 | cbradney | 1531 | May raise NameExistsError if you explicitly pass a name that's already used. |
5042 | cbradney | 1532 | May raise ValueError if an insufficient number of points is passed or if |
5328 | cbradney | 1533 | the number of values passed don't group into points without leftovers. |
5042 | cbradney | 1534 | </source> |
5328 | cbradney | 1535 | <translation type="unfinished"></translation> |
5042 | cbradney | 1536 | </message> |
1537 | <message> |
||
12281 | cbradney | 1538 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="128"/> |
5328 | cbradney | 1539 | <source>createPolygon(list, ["name"]) -> string |
5042 | cbradney | 1540 | |
1541 | Creates a new polygon and returns its name. The points for the polygon are |
||
1542 | stored in the list "list" in the following order: [x1, y1, x2, y2...xn. yn]. |
||
1543 | At least three points are required. There is no need to repeat the first point |
||
1544 | to close the polygon. The polygon is automatically closed by connecting the |
||
1545 | first and the last point. The coordinates are given in the current measurement |
||
1546 | units of the document (see UNIT constants). "name" should be a unique |
||
1547 | identifier for the object because you need this name for further access to that |
||
1548 | object. If "name" is not given Scribus will create one for you. |
||
1549 | |||
5328 | cbradney | 1550 | May raise NameExistsError if you explicitly pass a name that's already used. |
5042 | cbradney | 1551 | May raise ValueError if an insufficient number of points is passed or if |
5328 | cbradney | 1552 | the number of values passed don't group into points without leftovers. |
5042 | cbradney | 1553 | </source> |
5328 | cbradney | 1554 | <translation type="unfinished"></translation> |
5042 | cbradney | 1555 | </message> |
1556 | <message> |
||
12281 | cbradney | 1557 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="149"/> |
5328 | cbradney | 1558 | <source>createBezierLine(list, ["name"]) -> string |
5042 | cbradney | 1559 | |
1560 | Creates a new bezier curve and returns its name. The points for the bezier |
||
1561 | curve are stored in the list "list" in the following order: |
||
1562 | [x1, y1, kx1, ky1, x2, y2, kx2, ky2...xn. yn, kxn. kyn] |
||
1563 | In the points list, x and y mean the x and y coordinates of the point and kx |
||
1564 | and ky meaning the control point for the curve. The coordinates are given in |
||
1565 | the current measurement units of the document (see UNIT constants). "name" |
||
1566 | should be a unique identifier for the object because you need this name for |
||
1567 | further access to that object. If "name" is not given Scribus will create one |
||
1568 | for you. |
||
1569 | |||
5328 | cbradney | 1570 | May raise NameExistsError if you explicitly pass a name that's already used. |
5042 | cbradney | 1571 | May raise ValueError if an insufficient number of points is passed or if |
5328 | cbradney | 1572 | the number of values passed don't group into points without leftovers. |
5042 | cbradney | 1573 | </source> |
5328 | cbradney | 1574 | <translation type="unfinished"></translation> |
5042 | cbradney | 1575 | </message> |
1576 | <message> |
||
12281 | cbradney | 1577 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="165"/> |
5328 | cbradney | 1578 | <source>createPathText(x, y, "textbox", "beziercurve", ["name"]) -> string |
5042 | cbradney | 1579 | |
1580 | Creates a new pathText by merging the two objects "textbox" and |
||
1581 | "beziercurve" and returns its name. The coordinates are given in the current |
||
1582 | measurement unit of the document (see UNIT constants). "name" should be a |
||
1583 | unique identifier for the object because you need this name for further access |
||
1584 | to that object. If "name" is not given Scribus will create one for you. |
||
1585 | |||
5328 | cbradney | 1586 | May raise NameExistsError if you explicitly pass a name that's already used. |
1587 | May raise NotFoundError if one or both of the named base object don't exist. |
||
5042 | cbradney | 1588 | </source> |
5328 | cbradney | 1589 | <translation type="unfinished"></translation> |
5042 | cbradney | 1590 | </message> |
1591 | <message> |
||
12281 | cbradney | 1592 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="177"/> |
5328 | cbradney | 1593 | <source>deleteObject(["name"]) |
5042 | cbradney | 1594 | |
1595 | Deletes the item with the name "name". If "name" is not given the currently |
||
1596 | selected item is deleted. |
||
1597 | </source> |
||
5328 | cbradney | 1598 | <translation type="unfinished"></translation> |
5042 | cbradney | 1599 | </message> |
1600 | <message> |
||
12918 | cbradney | 1601 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="193"/> |
1602 | <source>textFlowMode("name" [, state]) |
||
1603 | |||
1604 | Enables/disables "Text Flows Around Frame" feature for object "name". |
||
1605 | Called with parameters string name and optional int "state" (0 <= state <= 3). |
||
1606 | Setting "state" to 0 will disable text flow. |
||
1607 | Setting "state" to 1 will make text flow around object frame. |
||
1608 | Setting "state" to 2 will make text flow around bounding box. |
||
1609 | Setting "state" to 3 will make text flow around contour line. |
||
1610 | If "state" is not passed, text flow is toggled. |
||
1611 | </source> |
||
1612 | <translation type="unfinished"></translation> |
||
1613 | </message> |
||
1614 | <message> |
||
12281 | cbradney | 1615 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="211"/> |
5328 | cbradney | 1616 | <source>objectExists(["name"]) -> bool |
5042 | cbradney | 1617 | |
1618 | Test if an object with specified name really exists in the document. |
||
1619 | The optional parameter is the object name. When no object name is given, |
||
1620 | returns True if there is something selected. |
||
1621 | </source> |
||
5328 | cbradney | 1622 | <translation type="unfinished"></translation> |
5042 | cbradney | 1623 | </message> |
1624 | <message> |
||
12281 | cbradney | 1625 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="227"/> |
5328 | cbradney | 1626 | <source>setStyle("style" [, "name"]) |
5042 | cbradney | 1627 | |
1628 | Apply the named "style" to the object named "name". If is no object name |
||
5328 | cbradney | 1629 | given, it's applied on the selected object. |
5042 | cbradney | 1630 | </source> |
5328 | cbradney | 1631 | <translation type="unfinished"></translation> |
5042 | cbradney | 1632 | </message> |
1633 | <message> |
||
12281 | cbradney | 1634 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="240"/> |
5328 | cbradney | 1635 | <source>getAllStyles() -> list |
5042 | cbradney | 1636 | |
1637 | Return a list of the names of all paragraph styles in the current document. |
||
1638 | </source> |
||
12918 | cbradney | 1639 | <translation type="unfinished">getAllStyles() -> liste |
9300 | jghali | 1640 | |
1641 | Retourne une liste contenant les noms de tous les styles de paragraphes du document courant.</translation> |
||
5042 | cbradney | 1642 | </message> |
1643 | <message> |
||
12918 | cbradney | 1644 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="252"/> |
1645 | <source>duplicateObject(["name"]) -> string |
||
1646 | |||
1647 | creates a Duplicate of the selected Object (or Selection Group). |
||
1648 | </source> |
||
1649 | <translation type="unfinished">duplicateObject(["nom"]) -> chaîne |
||
1650 | |||
1651 | Duplique l'objet ou le groupe d'objet actuellement sélectionné. |
||
1652 | </translation> |
||
1653 | </message> |
||
1654 | <message> |
||
1655 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="26"/> |
||
1656 | <source>newPage(where [,"masterpage"]) |
||
1657 | |||
1658 | Creates a new page. If "where" is -1 the new Page is appended to the |
||
1659 | document, otherwise the new page is inserted before "where". Page numbers are |
||
1660 | counted from 1 upwards, no matter what the displayed first page number of your |
||
1661 | document is. The optional parameter "masterpage" specifies the name of the |
||
1662 | master page for the new page. |
||
1663 | |||
1664 | May raise IndexError if the page number is out of range |
||
1665 | </source> |
||
1666 | <translation type="unfinished">newPage(emplacement [,"gabarit"]) |
||
1667 | |||
1668 | Crée une nouvelle page. Si "emplacement" vaut -1, la page est ajoutée à la fin |
||
1669 | du document; dans le cas contraire, elle est insérée avant la page "emplacement". |
||
1670 | Les numéros de pages débutent à 1, indépendamment de la première page |
||
1671 | affichée du document. Le paramètre optionnel "gabarit" permet d'affecter un gabarit |
||
1672 | à la nouvelle page. |
||
1673 | |||
1674 | Peut lever une erreur IndexError si "emplacement" est hors plage</translation> |
||
1675 | </message> |
||
1676 | <message> |
||
12281 | cbradney | 1677 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="36"/> |
5328 | cbradney | 1678 | <source>currentPage() -> integer |
5042 | cbradney | 1679 | |
1680 | Returns the number of the current working page. Page numbers are counted from 1 |
||
1681 | upwards, no matter what the displayed first page number of your document is. |
||
1682 | </source> |
||
12918 | cbradney | 1683 | <translation type="unfinished">currentPage() -> entier |
9300 | jghali | 1684 | |
1685 | Retourne le numéro de page active. Les numéros de pages débutent à 1, indépendamment |
||
1686 | du premier numéro de page affiché dans votre document.</translation> |
||
5042 | cbradney | 1687 | </message> |
1688 | <message> |
||
12281 | cbradney | 1689 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="45"/> |
5328 | cbradney | 1690 | <source>redrawAll() |
5042 | cbradney | 1691 | |
1692 | Redraws all pages. |
||
1693 | </source> |
||
12918 | cbradney | 1694 | <translation type="unfinished">redrawAll() |
9300 | jghali | 1695 | |
1696 | Rafraîchit l'affichage de toutes les pages.</translation> |
||
5042 | cbradney | 1697 | </message> |
1698 | <message> |
||
12918 | cbradney | 1699 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="54"/> |
1700 | <source>getPageType() -> integer |
||
1701 | |||
1702 | Returns the type of the Page, 0 means left Page, 1 is a middle Page and 2 is a right Page |
||
1703 | </source> |
||
1704 | <translation type="unfinished">getPageType() -> entier |
||
1705 | |||
1706 | Retourne le type de page, 0 pour page de gauche, 1 pour page centrale, et 2 pour page de droite |
||
1707 | </translation> |
||
1708 | </message> |
||
1709 | <message> |
||
12281 | cbradney | 1710 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="65"/> |
5328 | cbradney | 1711 | <source>savePageAsEPS("name") |
5042 | cbradney | 1712 | |
1713 | Saves the current page as an EPS to the file "name". |
||
1714 | |||
1715 | May raise ScribusError if the save failed. |
||
1716 | </source> |
||
5328 | cbradney | 1717 | <translation type="unfinished"></translation> |
5042 | cbradney | 1718 | </message> |
1719 | <message> |
||
12281 | cbradney | 1720 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="78"/> |
5328 | cbradney | 1721 | <source>deletePage(nr) |
5042 | cbradney | 1722 | |
1723 | Deletes the given page. Does nothing if the document contains only one page. |
||
1724 | Page numbers are counted from 1 upwards, no matter what the displayed first |
||
1725 | page number is. |
||
1726 | |||
1727 | May raise IndexError if the page number is out of range |
||
1728 | </source> |
||
5328 | cbradney | 1729 | <translation type="unfinished"></translation> |
5042 | cbradney | 1730 | </message> |
1731 | <message> |
||
12918 | cbradney | 1732 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="91"/> |
1733 | <source>gotoPage(nr) |
||
1734 | |||
1735 | Moves to the page "nr" (that is, makes the current page "nr"). Note that |
||
1736 | gotoPage doesn't (currently) change the page the user's view is displaying, it |
||
1737 | just sets the page that script commands will operates on. |
||
1738 | |||
1739 | May raise IndexError if the page number is out of range. |
||
1740 | </source> |
||
1741 | <translation type="unfinished"></translation> |
||
1742 | </message> |
||
1743 | <message> |
||
12281 | cbradney | 1744 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="100"/> |
5328 | cbradney | 1745 | <source>pageCount() -> integer |
5042 | cbradney | 1746 | |
1747 | Returns the number of pages in the document. |
||
1748 | </source> |
||
12918 | cbradney | 1749 | <translation type="unfinished">pageCount() -> entier |
9300 | jghali | 1750 | |
1751 | Retourne le nombre de pages dans le document.</translation> |
||
5042 | cbradney | 1752 | </message> |
1753 | <message> |
||
12281 | cbradney | 1754 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="110"/> |
5328 | cbradney | 1755 | <source>getHGuides() -> list |
5042 | cbradney | 1756 | |
1757 | Returns a list containing positions of the horizontal guides. Values are in the |
||
5328 | cbradney | 1758 | document's current units - see UNIT_<type> constants. |
5042 | cbradney | 1759 | </source> |
5328 | cbradney | 1760 | <translation type="unfinished"></translation> |
5042 | cbradney | 1761 | </message> |
1762 | <message> |
||
12281 | cbradney | 1763 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="123"/> |
5328 | cbradney | 1764 | <source>setHGuides(list) |
5042 | cbradney | 1765 | |
1766 | Sets horizontal guides. Input parameter must be a list of guide positions |
||
5328 | cbradney | 1767 | measured in the current document units - see UNIT_<type> constants. |
5042 | cbradney | 1768 | |
1769 | Example: setHGuides(getHGuides() + [200.0, 210.0] # add new guides without any lost |
||
1770 | setHGuides([90,250]) # replace current guides entirely |
||
1771 | </source> |
||
5328 | cbradney | 1772 | <translation type="unfinished"></translation> |
5042 | cbradney | 1773 | </message> |
1774 | <message> |
||
12281 | cbradney | 1775 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="132"/> |
5328 | cbradney | 1776 | <source>getVGuides() |
5042 | cbradney | 1777 | |
1778 | See getHGuides. |
||
1779 | </source> |
||
5328 | cbradney | 1780 | <translation type="unfinished"></translation> |
5042 | cbradney | 1781 | </message> |
1782 | <message> |
||
12281 | cbradney | 1783 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="141"/> |
5328 | cbradney | 1784 | <source>setVGuides() |
5042 | cbradney | 1785 | |
1786 | See setHGuides. |
||
1787 | </source> |
||
5328 | cbradney | 1788 | <translation type="unfinished"></translation> |
5042 | cbradney | 1789 | </message> |
1790 | <message> |
||
12281 | cbradney | 1791 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="151"/> |
5328 | cbradney | 1792 | <source>getPageSize() -> tuple |
5042 | cbradney | 1793 | |
5328 | cbradney | 1794 | Returns a tuple with page dimensions measured in the document's current units. |
1795 | See UNIT_<type> constants and getPageMargins() |
||
5042 | cbradney | 1796 | </source> |
5328 | cbradney | 1797 | <translation type="unfinished"></translation> |
5042 | cbradney | 1798 | </message> |
1799 | <message> |
||
12281 | cbradney | 1800 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="167"/> |
5328 | cbradney | 1801 | <source>getPageItems() -> list |
5042 | cbradney | 1802 | |
1803 | Returns a list of tuples with items on the current page. The tuple is: |
||
5328 | cbradney | 1804 | (name, objectType, order) E.g. [('Text1', 4, 0), ('Image1', 2, 1)] |
1805 | means that object named 'Text1' is a text frame (type 4) and is the first at |
||
5042 | cbradney | 1806 | the page... |
1807 | </source> |
||
5328 | cbradney | 1808 | <translation type="unfinished"></translation> |
5042 | cbradney | 1809 | </message> |
1810 | <message> |
||
12281 | cbradney | 1811 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="181"/> |
5328 | cbradney | 1812 | <source>getPageMargins() |
5042 | cbradney | 1813 | |
1814 | Returns the page margins as a (top, left, right, bottom) tuple in the current |
||
5328 | cbradney | 1815 | units. See UNIT_<type> constants and getPageSize(). |
5042 | cbradney | 1816 | </source> |
5328 | cbradney | 1817 | <translation type="unfinished"></translation> |
5042 | cbradney | 1818 | </message> |
1819 | <message> |
||
12918 | cbradney | 1820 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="198"/> |
1821 | <source>importPage("fromDoc", (pageList), [create, imortwhere, importwherePage]) |
||
1822 | |||
1823 | 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. |
||
1824 | fromDoc: string; the filename of the document to import pages from |
||
1825 | pageList: tuple with page numbers of pages to import |
||
1826 | create: number; 0 to replace existing pages, 1 (default) to insert new pages |
||
1827 | importWhere: number; the page number (of the current document) at which import the pages |
||
1828 | 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 |
||
1829 | </source> |
||
1830 | <translation type="unfinished"></translation> |
||
1831 | </message> |
||
1832 | <message> |
||
1833 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="22"/> |
||
1834 | <source>setGradientFill(type, "color1", shade1, "color2", shade2, ["name"]) |
||
1835 | |||
1836 | Sets the gradient fill of the object "name" to type. Color descriptions are |
||
1837 | the same as for setFillColor() and setFillShade(). See the constants for |
||
1838 | available types (FILL_<type>). |
||
1839 | </source> |
||
1840 | <translation type="unfinished">setGradientFill(type, "couleur1", teinte1, "couleur2", teinte2, ["nom"]) |
||
1841 | |||
1842 | Définit le type de gradient de l'objet "nom". Les descriptions de couleurs sont |
||
1843 | les mêmes que pour setFillColor() et setFillShade(). Référez-vous aux constantes |
||
1844 | pour connaîtres les types de gradient (FILL_<type>). |
||
1845 | </translation> |
||
1846 | </message> |
||
1847 | <message> |
||
13279 | cbradney | 1848 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="44"/> |
5328 | cbradney | 1849 | <source>setFillColor("color", ["name"]) |
5042 | cbradney | 1850 | |
1851 | Sets the fill color of the object "name" to the color "color". "color" |
||
1852 | is the name of one of the defined colors. If "name" is not given the |
||
1853 | currently selected item is used. |
||
1854 | </source> |
||
5328 | cbradney | 1855 | <translation type="unfinished"></translation> |
5042 | cbradney | 1856 | </message> |
1857 | <message> |
||
13279 | cbradney | 1858 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="54"/> |
12918 | cbradney | 1859 | <source>setFillTransparency(transparency, ["name"]) |
1860 | |||
1861 | Sets the fill transparency of the object "name" to transparency |
||
1862 | If "name" is not given the currently selected item is used. |
||
1863 | </source> |
||
1864 | <translation type="unfinished"></translation> |
||
1865 | </message> |
||
1866 | <message> |
||
13279 | cbradney | 1867 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="64"/> |
12918 | cbradney | 1868 | <source>setFillBlendmode(blendmode, ["name"]) |
1869 | |||
1870 | Sets the fill blendmode of the object "name" to blendmode |
||
1871 | If "name" is not given the currently selected item is used. |
||
1872 | </source> |
||
1873 | <translation type="unfinished"></translation> |
||
1874 | </message> |
||
1875 | <message> |
||
13279 | cbradney | 1876 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="74"/> |
5328 | cbradney | 1877 | <source>setLineColor("color", ["name"]) |
5042 | cbradney | 1878 | |
1879 | Sets the line color of the object "name" to the color "color". If "name" |
||
1880 | is not given the currently selected item is used. |
||
1881 | </source> |
||
5328 | cbradney | 1882 | <translation type="unfinished"></translation> |
5042 | cbradney | 1883 | </message> |
1884 | <message> |
||
13279 | cbradney | 1885 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="84"/> |
12918 | cbradney | 1886 | <source>setLineTransparency(transparency, ["name"]) |
1887 | |||
1888 | Sets the line transparency of the object "name" to transparency |
||
1889 | If "name" is not given the currently selected item is used. |
||
1890 | </source> |
||
1891 | <translation type="unfinished"></translation> |
||
1892 | </message> |
||
1893 | <message> |
||
13279 | cbradney | 1894 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="94"/> |
12918 | cbradney | 1895 | <source>setLineBlendmode(blendmode, ["name"]) |
1896 | |||
1897 | Sets the line blendmode of the object "name" to blendmode |
||
1898 | If "name" is not given the currently selected item is used. |
||
1899 | </source> |
||
1900 | <translation type="unfinished"></translation> |
||
1901 | </message> |
||
1902 | <message> |
||
13279 | cbradney | 1903 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="107"/> |
5328 | cbradney | 1904 | <source>setLineWidth(width, ["name"]) |
5042 | cbradney | 1905 | |
1906 | Sets line width of the object "name" to "width". "width" must be in the |
||
1907 | range from 0.0 to 12.0 inclusive, and is measured in points. If "name" is not |
||
1908 | given the currently selected item is used. |
||
1909 | |||
1910 | May raise ValueError if the line width is out of bounds. |
||
1911 | </source> |
||
5328 | cbradney | 1912 | <translation type="unfinished"></translation> |
5042 | cbradney | 1913 | </message> |
1914 | <message> |
||
13279 | cbradney | 1915 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="121"/> |
5328 | cbradney | 1916 | <source>setLineShade(shade, ["name"]) |
5042 | cbradney | 1917 | |
1918 | Sets the shading of the line color of the object "name" to "shade". |
||
1919 | "shade" must be an integer value in the range from 0 (lightest) to 100 |
||
1920 | (full color intensity). If "name" is not given the currently selected item |
||
1921 | is used. |
||
1922 | |||
1923 | May raise ValueError if the line shade is out of bounds. |
||
1924 | </source> |
||
5328 | cbradney | 1925 | <translation type="unfinished"></translation> |
5042 | cbradney | 1926 | </message> |
1927 | <message> |
||
13279 | cbradney | 1928 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="132"/> |
5328 | cbradney | 1929 | <source>setLineJoin(join, ["name"]) |
5042 | cbradney | 1930 | |
1931 | Sets the line join style of the object "name" to the style "join". |
||
1932 | If "name" is not given the currently selected item is used. There are |
||
5328 | cbradney | 1933 | predefined constants for join - JOIN_<type>. |
5042 | cbradney | 1934 | </source> |
5328 | cbradney | 1935 | <translation type="unfinished"></translation> |
5042 | cbradney | 1936 | </message> |
1937 | <message> |
||
13279 | cbradney | 1938 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="143"/> |
5328 | cbradney | 1939 | <source>setLineEnd(endtype, ["name"]) |
5042 | cbradney | 1940 | |
1941 | Sets the line cap style of the object "name" to the style "cap". |
||
1942 | If "name" is not given the currently selected item is used. There are |
||
5328 | cbradney | 1943 | predefined constants for "cap" - CAP_<type>. |
5042 | cbradney | 1944 | </source> |
5328 | cbradney | 1945 | <translation type="unfinished"></translation> |
5042 | cbradney | 1946 | </message> |
1947 | <message> |
||
13279 | cbradney | 1948 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="154"/> |
5328 | cbradney | 1949 | <source>setLineStyle(style, ["name"]) |
5042 | cbradney | 1950 | |
1951 | Sets the line style of the object "name" to the style "style". If "name" |
||
1952 | is not given the currently selected item is used. There are predefined |
||
5328 | cbradney | 1953 | constants for "style" - LINE_<style>. |
5042 | cbradney | 1954 | </source> |
5328 | cbradney | 1955 | <translation type="unfinished"></translation> |
5042 | cbradney | 1956 | </message> |
1957 | <message> |
||
13279 | cbradney | 1958 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="168"/> |
5328 | cbradney | 1959 | <source>setFillShade(shade, ["name"]) |
5042 | cbradney | 1960 | |
1961 | Sets the shading of the fill color of the object "name" to "shade". |
||
1962 | "shade" must be an integer value in the range from 0 (lightest) to 100 |
||
1963 | (full Color intensity). If "name" is not given the currently selected |
||
1964 | Item is used. |
||
1965 | |||
1966 | May raise ValueError if the fill shade is out of bounds. |
||
1967 | </source> |
||
5328 | cbradney | 1968 | <translation type="unfinished"></translation> |
5042 | cbradney | 1969 | </message> |
1970 | <message> |
||
13279 | cbradney | 1971 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="180"/> |
5328 | cbradney | 1972 | <source>setCornerRadius(radius, ["name"]) |
5042 | cbradney | 1973 | |
1974 | Sets the corner radius of the object "name". The radius is expressed |
||
1975 | in points. If "name" is not given the currently selected item is used. |
||
1976 | |||
1977 | May raise ValueError if the corner radius is negative. |
||
1978 | </source> |
||
5328 | cbradney | 1979 | <translation type="unfinished"></translation> |
5042 | cbradney | 1980 | </message> |
1981 | <message> |
||
13279 | cbradney | 1982 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="192"/> |
5328 | cbradney | 1983 | <source>setMultiLine("namedStyle", ["name"]) |
5042 | cbradney | 1984 | |
1985 | Sets the line style of the object "name" to the named style "namedStyle". |
||
1986 | If "name" is not given the currently selected item is used. |
||
1987 | |||
5328 | cbradney | 1988 | May raise NotFoundError if the line style doesn't exist. |
5042 | cbradney | 1989 | </source> |
5328 | cbradney | 1990 | <translation type="unfinished"></translation> |
5042 | cbradney | 1991 | </message> |
1992 | <message> |
||
12918 | cbradney | 1993 | <location filename="../../scribus/plugins/scriptplugin/cmdstyle.h" line="43"/> |
1994 | <source>createParagraphStyle(...) |
||
1995 | |||
1996 | Creates a paragraph style. This function takes the following keyword parameters: |
||
1997 | |||
1998 | "name" [required] -> specifies the name of the paragraphstyle to create |
||
1999 | |||
2000 | linespacingmode [optional] -> specifies the linespacing mode; possible modes are: |
||
2001 | |||
2002 | fixed linespacing: 0 |
||
2003 | |||
2004 | automatic linespacing: 1 |
||
2005 | |||
2006 | baseline grid linespacing: 2 |
||
2007 | |||
2008 | linespacing [optional] -> specifies the linespacing if using fixed linespacing |
||
2009 | |||
2010 | alignment [optional] -> specifies the alignment of the paragraph |
||
2011 | |||
2012 | -> left: 0 |
||
2013 | |||
2014 | -> center: 1 |
||
2015 | |||
2016 | -> right: 2 |
||
2017 | |||
2018 | -> justify: 3 |
||
2019 | |||
2020 | -> extend: 4 |
||
2021 | |||
2022 | leftmargin [optional], rightmargin [optional] -> specify the margin |
||
2023 | |||
2024 | gapbefore [optional], gapafter [optional] -> specify the gaps to the heading and following paragraphs |
||
2025 | |||
2026 | firstindent [optional] -> the indent of the first line |
||
2027 | |||
2028 | hasdropcap [optional] -> specifies if there are caps (1 = yes, 0 = no) |
||
2029 | |||
2030 | dropcaplines [optional] -> height (in lines) of the caps if used |
||
2031 | |||
2032 | dropcapoffset [optional] -> offset of the caps if used |
||
2033 | |||
2034 | "charstyle" [optional] -> char style to use |
||
2035 | |||
2036 | </source> |
||
2037 | <translation type="unfinished"></translation> |
||
2038 | </message> |
||
2039 | <message> |
||
2040 | <location filename="../../scribus/plugins/scriptplugin/cmdstyle.h" line="80"/> |
||
2041 | <source>createCharStyle(...) |
||
2042 | |||
2043 | Creates a character style. This function takes the following keyword parameters: |
||
2044 | |||
2045 | "name" [required] -> name of the char style to create |
||
2046 | |||
2047 | "font" [optional] -> name of the font to use |
||
2048 | |||
2049 | fontsize [optional] -> font size to set (double) |
||
2050 | |||
2051 | "features" [optional] -> nearer typographic details can be defined by a string that might contain the following phrases comma-seperated (without spaces!): |
||
2052 | |||
2053 | -> inherit |
||
2054 | |||
2055 | -> bold |
||
2056 | |||
2057 | -> italic |
||
2058 | |||
2059 | -> underline |
||
2060 | |||
2061 | -> underlinewords |
||
2062 | |||
2063 | -> strike |
||
2064 | |||
2065 | -> superscript |
||
2066 | |||
2067 | -> subscript |
||
2068 | |||
2069 | -> outline |
||
2070 | |||
2071 | -> shadowed |
||
2072 | |||
2073 | -> allcaps |
||
2074 | |||
2075 | -> smallcaps |
||
2076 | |||
2077 | "fillcolor" [optional], "fillshade" [optional] -> specify fill options |
||
2078 | |||
2079 | "strokecolor" [optional], "strokeshade" [optional] -> specify stroke options |
||
2080 | |||
2081 | baselineoffset [optional] -> offset of the baseline |
||
2082 | |||
2083 | shadowxoffset [optional], shadowyoffset [optional] -> offset of the shadow if used |
||
2084 | |||
2085 | outlinewidth [optional] -> width of the outline if used |
||
2086 | |||
2087 | underlineoffset [optional], underlinewidth [optional] -> underline options if used |
||
2088 | |||
2089 | strikethruoffset [optional], strikethruwidth [optional] -> strikethru options if used |
||
2090 | |||
2091 | scaleh [optional], scalev [optional] -> scale of the chars |
||
2092 | |||
2093 | tracking [optional] -> tracking of the text |
||
2094 | |||
2095 | "language" [optional] -> language code |
||
2096 | |||
2097 | </source> |
||
2098 | <translation type="unfinished"></translation> |
||
2099 | </message> |
||
2100 | <message> |
||
2101 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="23"/> |
||
2102 | <source>getFontSize(["name"]) -> float |
||
2103 | |||
2104 | Returns the font size in points for the text frame "name". If this text |
||
2105 | frame has some text selected the value assigned to the first character of |
||
2106 | the selection is returned. |
||
2107 | If "name" is not given the currently selected item is used. |
||
2108 | </source> |
||
2109 | <translation type="unfinished">getFontSize(["nom"]) -> flottant |
||
2110 | |||
2111 | Retourne la taille de la police en points pour le cadre de texte "nom". Si une |
||
2112 | partie du texte du cadre est sélectionné, la valeur retournée est celle du |
||
2113 | premier caractère de la sélection. |
||
2114 | Si "nom" est omis, l'objet actuellement sélectionné est utilisé.</translation> |
||
2115 | </message> |
||
2116 | <message> |
||
12281 | cbradney | 2117 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="35"/> |
5328 | cbradney | 2118 | <source>getFont(["name"]) -> string |
5042 | cbradney | 2119 | |
2120 | Returns the font name for the text frame "name". If this text frame |
||
2121 | has some text selected the value assigned to the first character |
||
2122 | of the selection is returned. If "name" is not given the currently |
||
2123 | selected item is used. |
||
2124 | </source> |
||
5328 | cbradney | 2125 | <translation type="unfinished"></translation> |
5042 | cbradney | 2126 | </message> |
2127 | <message> |
||
12281 | cbradney | 2128 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="45"/> |
5328 | cbradney | 2129 | <source>getTextLength(["name"]) -> integer |
5042 | cbradney | 2130 | |
2131 | Returns the length of the text in the text frame "name". |
||
2132 | If "name" is not given the currently selected item is used. |
||
2133 | </source> |
||
5328 | cbradney | 2134 | <translation type="unfinished"></translation> |
5042 | cbradney | 2135 | </message> |
2136 | <message> |
||
12918 | cbradney | 2137 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="55"/> |
2138 | <source>getTextLines(["name"]) -> integer |
||
2139 | |||
2140 | Returns the number of lines of the text in the text frame "name". |
||
2141 | If "name" is not given the currently selected item is used. |
||
2142 | </source> |
||
2143 | <translation type="unfinished"></translation> |
||
2144 | </message> |
||
2145 | <message> |
||
12281 | cbradney | 2146 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="67"/> |
5328 | cbradney | 2147 | <source>getText(["name"]) -> string |
5042 | cbradney | 2148 | |
2149 | Returns the text of the text frame "name". If this text frame has some text |
||
2150 | selected, the selected text is returned. All text in the frame, not just |
||
2151 | currently visible text, is returned. If "name" is not given the currently |
||
2152 | selected item is used. |
||
2153 | </source> |
||
5328 | cbradney | 2154 | <translation type="unfinished"></translation> |
5042 | cbradney | 2155 | </message> |
2156 | <message> |
||
12281 | cbradney | 2157 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="79"/> |
5328 | cbradney | 2158 | <source>getAllText(["name"]) -> string |
5042 | cbradney | 2159 | |
2160 | Returns the text of the text frame "name" and of all text frames which are |
||
2161 | linked with this frame. If this textframe has some text selected, the selected |
||
2162 | text is returned. If "name" is not given the currently selected item is |
||
2163 | used. |
||
2164 | </source> |
||
5328 | cbradney | 2165 | <translation type="unfinished"></translation> |
5042 | cbradney | 2166 | </message> |
2167 | <message> |
||
12281 | cbradney | 2168 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="89"/> |
5328 | cbradney | 2169 | <source>getLineSpacing(["name"]) -> float |
5042 | cbradney | 2170 | |
2171 | Returns the line spacing ("leading") of the text frame "name" expressed in |
||
2172 | points. If "name" is not given the currently selected item is used. |
||
2173 | </source> |
||
5328 | cbradney | 2174 | <translation type="unfinished"></translation> |
5042 | cbradney | 2175 | </message> |
2176 | <message> |
||
12918 | cbradney | 2177 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="100"/> |
2178 | <source>getTextDistances(["name"]) -> tuple |
||
2179 | |||
2180 | Returns the text distances of the text frame "name" expressed in points. The |
||
2181 | distances are returned as a tuple like (left, right, top, bottom). If "name" |
||
2182 | is not given the currently selected item is used. |
||
2183 | </source> |
||
2184 | <translation type="unfinished"></translation> |
||
2185 | </message> |
||
2186 | <message> |
||
12612 | cbradney | 2187 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="110"/> |
5328 | cbradney | 2188 | <source>getColumnGap(["name"]) -> float |
5042 | cbradney | 2189 | |
2190 | Returns the column gap size of the text frame "name" expressed in points. If |
||
2191 | "name" is not given the currently selected item is used. |
||
2192 | </source> |
||
5328 | cbradney | 2193 | <translation type="unfinished"></translation> |
5042 | cbradney | 2194 | </message> |
2195 | <message> |
||
12612 | cbradney | 2196 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="120"/> |
5328 | cbradney | 2197 | <source>getColumns(["name"]) -> integer |
5042 | cbradney | 2198 | |
2199 | Gets the number of columns of the text frame "name". If "name" is not |
||
2200 | given the currently selected item is used. |
||
2201 | </source> |
||
5328 | cbradney | 2202 | <translation type="unfinished"></translation> |
5042 | cbradney | 2203 | </message> |
2204 | <message> |
||
12612 | cbradney | 2205 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="132"/> |
5328 | cbradney | 2206 | <source>setText("text", ["name"]) |
5042 | cbradney | 2207 | |
2208 | Sets the text of the text frame "name" to the text of the string "text". |
||
5328 | cbradney | 2209 | Text must be UTF8 encoded - use e.g. unicode(text, 'iso-8859-2'). See the FAQ |
5042 | cbradney | 2210 | for more details. If "name" is not given the currently selected item is |
2211 | used. |
||
2212 | </source> |
||
5328 | cbradney | 2213 | <translation type="unfinished"></translation> |
5042 | cbradney | 2214 | </message> |
2215 | <message> |
||
12918 | cbradney | 2216 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="146"/> |
2217 | <source>insertText("text", pos, ["name"]) |
||
2218 | |||
2219 | Inserts the text "text" at the position "pos" into the text frame "name". |
||
2220 | Text must be UTF encoded (see setText() as reference) The first character has an |
||
2221 | index of 0. Inserting text at position -1 appends it to the frame. If "name" is |
||
2222 | not given the currently selected Item is used. |
||
2223 | |||
2224 | May throw IndexError for an insertion out of bounds. |
||
2225 | </source> |
||
2226 | <translation type="unfinished"></translation> |
||
2227 | </message> |
||
2228 | <message> |
||
12612 | cbradney | 2229 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="159"/> |
5328 | cbradney | 2230 | <source>setFont("font", ["name"]) |
5042 | cbradney | 2231 | |
2232 | Sets the font of the text frame "name" to "font". If there is some text |
||
2233 | selected only the selected text is changed. If "name" is not given the |
||
2234 | currently selected item is used. |
||
2235 | |||
2236 | May throw ValueError if the font cannot be found. |
||
2237 | </source> |
||
5328 | cbradney | 2238 | <translation type="unfinished"></translation> |
5042 | cbradney | 2239 | </message> |
2240 | <message> |
||
12612 | cbradney | 2241 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="173"/> |
5328 | cbradney | 2242 | <source>setFontSize(size, ["name"]) |
5042 | cbradney | 2243 | |
2244 | Sets the font size of the text frame "name" to "size". "size" is treated |
||
2245 | as a value in points. If there is some text selected only the selected text is |
||
2246 | changed. "size" must be in the range 1 to 512. If "name" is not given the |
||
2247 | currently selected item is used. |
||
2248 | |||
5328 | cbradney | 2249 | May throw ValueError for a font size that's out of bounds. |
5042 | cbradney | 2250 | </source> |
5328 | cbradney | 2251 | <translation type="unfinished"></translation> |
5042 | cbradney | 2252 | </message> |
2253 | <message> |
||
12612 | cbradney | 2254 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="186"/> |
5328 | cbradney | 2255 | <source>setLineSpacing(size, ["name"]) |
5042 | cbradney | 2256 | |
2257 | Sets the line spacing ("leading") of the text frame "name" to "size". |
||
2258 | "size" is a value in points. If "name" is not given the currently selected |
||
2259 | item is used. |
||
2260 | |||
2261 | May throw ValueError if the line spacing is out of bounds. |
||
2262 | </source> |
||
5328 | cbradney | 2263 | <translation type="unfinished"></translation> |
5042 | cbradney | 2264 | </message> |
2265 | <message> |
||
12918 | cbradney | 2266 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="199"/> |
2267 | <source>setTextDistances(left, right, top, bottom, ["name"]) |
||
2268 | |||
2269 | Sets the text distances of the text frame "name" to the values "left" |
||
2270 | "right", "top" and "bottom". If "name" is not given the currently |
||
2271 | selected item is used. |
||
2272 | |||
2273 | May throw ValueError if any of the distances are out of bounds (must be positive). |
||
2274 | </source> |
||
2275 | <translation type="unfinished"></translation> |
||
2276 | </message> |
||
2277 | <message> |
||
12612 | cbradney | 2278 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="211"/> |
5328 | cbradney | 2279 | <source>setColumnGap(size, ["name"]) |
5042 | cbradney | 2280 | |
2281 | Sets the column gap of the text frame "name" to the value "size". If |
||
2282 | "name" is not given the currently selected item is used. |
||
2283 | |||
2284 | May throw ValueError if the column gap is out of bounds (must be positive). |
||
2285 | </source> |
||
5328 | cbradney | 2286 | <translation type="unfinished"></translation> |
5042 | cbradney | 2287 | </message> |
2288 | <message> |
||
12612 | cbradney | 2289 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="223"/> |
5328 | cbradney | 2290 | <source>setColumns(nr, ["name"]) |
5042 | cbradney | 2291 | |
2292 | Sets the number of columns of the text frame "name" to the integer "nr". |
||
2293 | If "name" is not given the currently selected item is used. |
||
2294 | |||
2295 | May throw ValueError if number of columns is not at least one. |
||
2296 | </source> |
||
5328 | cbradney | 2297 | <translation type="unfinished"></translation> |
5042 | cbradney | 2298 | </message> |
2299 | <message> |
||
12612 | cbradney | 2300 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="236"/> |
5328 | cbradney | 2301 | <source>setTextAlignment(align, ["name"]) |
5042 | cbradney | 2302 | |
2303 | Sets the text alignment of the text frame "name" to the specified alignment. |
||
2304 | If "name" is not given the currently selected item is used. "align" should |
||
2305 | be one of the ALIGN_ constants defined in this module - see dir(scribus). |
||
2306 | |||
2307 | May throw ValueError for an invalid alignment constant. |
||
2308 | </source> |
||
5328 | cbradney | 2309 | <translation type="unfinished"></translation> |
5042 | cbradney | 2310 | </message> |
2311 | <message> |
||
12612 | cbradney | 2312 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="250"/> |
5328 | cbradney | 2313 | <source>selectText(start, count, ["name"]) |
5042 | cbradney | 2314 | |
2315 | Selects "count" characters of text in the text frame "name" starting from the |
||
2316 | character "start". Character counting starts at 0. If "count" is zero, any |
||
2317 | text selection will be cleared. If "name" is not given the currently |
||
2318 | selected item is used. |
||
2319 | |||
2320 | May throw IndexError if the selection is outside the bounds of the text. |
||
2321 | </source> |
||
5328 | cbradney | 2322 | <translation type="unfinished"></translation> |
5042 | cbradney | 2323 | </message> |
2324 | <message> |
||
12612 | cbradney | 2325 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="261"/> |
5328 | cbradney | 2326 | <source>deleteText(["name"]) |
5042 | cbradney | 2327 | |
2328 | Deletes any text in the text frame "name". If there is some text selected, |
||
2329 | only the selected text will be deleted. If "name" is not given the currently |
||
2330 | selected item is used. |
||
2331 | </source> |
||
5328 | cbradney | 2332 | <translation type="unfinished"></translation> |
5042 | cbradney | 2333 | </message> |
2334 | <message> |
||
12612 | cbradney | 2335 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="272"/> |
5328 | cbradney | 2336 | <source>setTextColor("color", ["name"]) |
5042 | cbradney | 2337 | |
2338 | Sets the text color of the text frame "name" to the color "color". If there |
||
2339 | is some text selected only the selected text is changed. If "name" is not |
||
2340 | given the currently selected item is used. |
||
2341 | </source> |
||
5328 | cbradney | 2342 | <translation type="unfinished"></translation> |
5042 | cbradney | 2343 | </message> |
2344 | <message> |
||
12612 | cbradney | 2345 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="282"/> |
5328 | cbradney | 2346 | <source>setTextStroke("color", ["name"]) |
5042 | cbradney | 2347 | |
2348 | Set "color" of the text stroke. If "name" is not given the currently |
||
2349 | selected item is used. |
||
2350 | </source> |
||
5328 | cbradney | 2351 | <translation type="unfinished"></translation> |
5042 | cbradney | 2352 | </message> |
2353 | <message> |
||
13279 | cbradney | 2354 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="315"/> |
5328 | cbradney | 2355 | <source>setTextShade(shade, ["name"]) |
5042 | cbradney | 2356 | |
2357 | Sets the shading of the text color of the object "name" to "shade". If |
||
2358 | there is some text selected only the selected text is changed. "shade" must |
||
2359 | be an integer value in the range from 0 (lightest) to 100 (full color |
||
2360 | intensity). If "name" is not given the currently selected item is |
||
2361 | used. |
||
2362 | </source> |
||
5328 | cbradney | 2363 | <translation type="unfinished"></translation> |
5042 | cbradney | 2364 | </message> |
2365 | <message> |
||
13279 | cbradney | 2366 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="328"/> |
5328 | cbradney | 2367 | <source>linkTextFrames("fromname", "toname") |
5042 | cbradney | 2368 | |
2369 | Link two text frames. The frame named "fromname" is linked to the |
||
2370 | frame named "toname". The target frame must be an empty text frame |
||
2371 | and must not link to or be linked from any other frames already. |
||
2372 | |||
2373 | May throw ScribusException if linking rules are violated. |
||
2374 | </source> |
||
5328 | cbradney | 2375 | <translation type="unfinished"></translation> |
5042 | cbradney | 2376 | </message> |
2377 | <message> |
||
13279 | cbradney | 2378 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="345"/> |
5328 | cbradney | 2379 | <source>unlinkTextFrames("name") |
5042 | cbradney | 2380 | |
2381 | Remove the specified (named) object from the text frame flow/linkage. If the |
||
2382 | frame was in the middle of a chain, the previous and next frames will be |
||
5328 | cbradney | 2383 | connected, eg 'a->b->c' becomes 'a->c' when you unlinkTextFrames(b)' |
5042 | cbradney | 2384 | |
2385 | May throw ScribusException if linking rules are violated. |
||
2386 | </source> |
||
5328 | cbradney | 2387 | <translation type="unfinished"></translation> |
5042 | cbradney | 2388 | </message> |
2389 | <message> |
||
13279 | cbradney | 2390 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="358"/> |
5328 | cbradney | 2391 | <source>traceText(["name"]) |
5042 | cbradney | 2392 | |
2393 | Convert the text frame "name" to outlines. If "name" is not given the |
||
2394 | currently selected item is used.</source> |
||
5328 | cbradney | 2395 | <translation type="unfinished"></translation> |
5042 | cbradney | 2396 | </message> |
2397 | <message> |
||
13279 | cbradney | 2398 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="372"/> |
5328 | cbradney | 2399 | <source>textOverflows(["name", nolinks]) -> integer |
5042 | cbradney | 2400 | |
2401 | Returns the actual number of overflowing characters in text frame "name". |
||
5328 | cbradney | 2402 | If is nolinks set to non zero value it takes only one frame - it doesn't |
5042 | cbradney | 2403 | use text frame linking. Without this parameter it search all linking chain. |
2404 | |||
2405 | May raise WrongFrameTypeError if the target frame is not an text frame |
||
2406 | </source> |
||
5328 | cbradney | 2407 | <translation type="unfinished"></translation> |
5042 | cbradney | 2408 | </message> |
2409 | <message> |
||
13279 | cbradney | 2410 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="385"/> |
12918 | cbradney | 2411 | <source>hyphenateText(["name"]) -> bool |
2412 | |||
2413 | Does hyphenation on text frame "name". |
||
2414 | If "name" is not given the currently selected item is used. |
||
2415 | |||
2416 | May raise WrongFrameTypeError if the target frame is not a text frame |
||
2417 | </source> |
||
2418 | <translation type="unfinished"></translation> |
||
2419 | </message> |
||
2420 | <message> |
||
13279 | cbradney | 2421 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="399"/> |
12918 | cbradney | 2422 | <source>dehyphenateText(["name"]) -> bool |
2423 | |||
2424 | Does dehyphenation on text frame "name". |
||
2425 | If "name" is not given the currently selected item is used. |
||
2426 | |||
2427 | May raise WrongFrameTypeError if the target frame is not a text frame |
||
2428 | </source> |
||
2429 | <translation type="unfinished"></translation> |
||
2430 | </message> |
||
2431 | <message> |
||
13279 | cbradney | 2432 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="414"/> |
12918 | cbradney | 2433 | <source>setPDFBookmark("toggle", ["name"]) |
2434 | |||
2435 | Sets whether (toggle = 1) the text frame "name" is a bookmark nor not. |
||
2436 | If "name" is not given the currently selected item is used. |
||
2437 | |||
2438 | May raise WrongFrameTypeError if the target frame is not a text frame |
||
2439 | </source> |
||
2440 | <translation type="unfinished"></translation> |
||
2441 | </message> |
||
2442 | <message> |
||
13279 | cbradney | 2443 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="426"/> |
5328 | cbradney | 2444 | <source>isPDFBookmark(["name"]) -> bool |
5042 | cbradney | 2445 | |
2446 | Returns true if the text frame "name" is a PDF bookmark. |
||
2447 | If "name" is not given the currently selected item is used. |
||
2448 | |||
2449 | May raise WrongFrameTypeError if the target frame is not a text frame |
||
2450 | </source> |
||
5328 | cbradney | 2451 | <translation type="unfinished"></translation> |
5042 | cbradney | 2452 | </message> |
2453 | <message> |
||
12918 | cbradney | 2454 | <location filename="../../scribus/plugins/scriptplugin/guiapp.h" line="21"/> |
2455 | <source>messagebarText("string") |
||
2456 | |||
2457 | Writes the "string" into the Scribus message bar (status line). The text |
||
2458 | must be UTF8 encoded or 'unicode' string(recommended). |
||
2459 | </source> |
||
2460 | <translation type="unfinished">messagebarText("chaîne") |
||
2461 | |||
2462 | Ecrit la "chaîne" dans la barre de messages de Scribus (ligne de statut). |
||
2463 | Le texte doit être encodé en UTF8 ou une chaîne 'unicode' (recommendé).</translation> |
||
2464 | </message> |
||
2465 | <message> |
||
12281 | cbradney | 2466 | <location filename="../../scribus/plugins/scriptplugin/guiapp.h" line="34"/> |
5328 | cbradney | 2467 | <source>progressReset() |
5042 | cbradney | 2468 | |
2469 | Cleans up the Scribus progress bar previous settings. It is called before the |
||
2470 | new progress bar use. See progressSet. |
||
2471 | </source> |
||
5328 | cbradney | 2472 | <translation type="unfinished"></translation> |
5042 | cbradney | 2473 | </message> |
2474 | <message> |
||
12281 | cbradney | 2475 | <location filename="../../scribus/plugins/scriptplugin/guiapp.h" line="47"/> |
5328 | cbradney | 2476 | <source>progressTotal(max) |
5042 | cbradney | 2477 | |
5328 | cbradney | 2478 | Sets the progress bar's maximum steps value to the specified number. |
5042 | cbradney | 2479 | See progressSet. |
2480 | </source> |
||
5328 | cbradney | 2481 | <translation type="unfinished"></translation> |
5042 | cbradney | 2482 | </message> |
2483 | <message> |
||
12281 | cbradney | 2484 | <location filename="../../scribus/plugins/scriptplugin/guiapp.h" line="61"/> |
5328 | cbradney | 2485 | <source>progressSet(nr) |
5042 | cbradney | 2486 | |
2487 | Set the progress bar position to "nr", a value relative to the previously set |
||
2488 | progressTotal. The progress bar uses the concept of steps; you give it the |
||
2489 | total number of steps and the number of steps completed so far and it will |
||
2490 | display the percentage of steps that have been completed. You can specify the |
||
2491 | total number of steps with progressTotal(). The current number of steps is set |
||
2492 | with progressSet(). The progress bar can be rewound to the beginning with |
||
5328 | cbradney | 2493 | progressReset(). [based on info taken from Trolltech's Qt docs] |
5042 | cbradney | 2494 | </source> |
5328 | cbradney | 2495 | <translation type="unfinished"></translation> |
5042 | cbradney | 2496 | </message> |
2497 | <message> |
||
12281 | cbradney | 2498 | <location filename="../../scribus/plugins/scriptplugin/guiapp.h" line="69"/> |
5328 | cbradney | 2499 | <source>setCursor() |
5042 | cbradney | 2500 | |
2501 | [UNSUPPORTED!] This might break things, so steer clear for now. |
||
2502 | </source> |
||
12918 | cbradney | 2503 | <translation type="unfinished">setCursor() |
9300 | jghali | 2504 | |
2505 | [NON SUPPORTÉ !] Cette fonction risque de créer des plantages. A éviter pour le moment.</translation> |
||
5042 | cbradney | 2506 | </message> |
2507 | <message> |
||
12281 | cbradney | 2508 | <location filename="../../scribus/plugins/scriptplugin/guiapp.h" line="83"/> |
5328 | cbradney | 2509 | <source>docChanged(bool) |
5042 | cbradney | 2510 | |
5328 | cbradney | 2511 | Enable/disable save icon in the Scribus icon bar and the Save menu item. It's |
2512 | useful to call this procedure when you're changing the document, because Scribus |
||
2513 | won't automatically notice when you change the document using a script. |
||
5042 | cbradney | 2514 | </source> |
12918 | cbradney | 2515 | <translation type="unfinished">docChanged(booléen) |
9300 | jghali | 2516 | |
2517 | Active/désactive l'icône de sauvegarde dans la barre d'icônes, ainsi que l'entrée de |
||
2518 | menu "enregistrer". Il est utile d'appeler cette fonction lors de modifications dans le |
||
2519 | document car Scribus ne détectera pas automatiquement que des changements |
||
2520 | ont lieu lors de l'utilisation d'un script.</translation> |
||
5042 | cbradney | 2521 | </message> |
2522 | <message> |
||
12281 | cbradney | 2523 | <location filename="../../scribus/plugins/scriptplugin/guiapp.h" line="95"/> |
5328 | cbradney | 2524 | <source>zoomDocument(double) |
5042 | cbradney | 2525 | |
2526 | Zoom the document in main GUI window. Actions have whole number |
||
2527 | values like 20.0, 100.0, etc. Zoom to Fit uses -100 as a marker. |
||
2528 | </source> |
||
12918 | cbradney | 2529 | <translation type="unfinished">zoomDocument(double) |
9300 | jghali | 2530 | |
2531 | Change le niveau de zoom dans la fenêtre principale. Les valeurs à fournir |
||
2532 | sont des nombres ronds comme 20.0, 100.0, ... Pour obtenir un zoom ajusté |
||
2533 | à la taille de la fenêtre, la valeur est -100.</translation> |
||
5042 | cbradney | 2534 | </message> |
6261 | cbradney | 2535 | <message> |
12918 | cbradney | 2536 | <location filename="../../scribus/plugins/scriptplugin/guiapp.h" line="106"/> |
2537 | <source>scrollDocument(x,y) |
||
6261 | cbradney | 2538 | |
12918 | cbradney | 2539 | Scroll the document in main GUI window by x and y. |
6261 | cbradney | 2540 | </source> |
2541 | <translation type="unfinished"></translation> |
||
2542 | </message> |
||
2543 | <message> |
||
12918 | cbradney | 2544 | <location filename="../../scribus/plugins/scriptplugin/svgimport.h" line="21"/> |
2545 | <source>placeSVG("filename", x, y) |
||
6261 | cbradney | 2546 | |
12918 | cbradney | 2547 | Places the SVG "filename" onto the current page, |
2548 | x and y specify the coordinate of the topleft corner of the SVG placed on the page |
||
2549 | |||
2550 | If loading was successful, the selection contains the imported SVG |
||
6261 | cbradney | 2551 | </source> |
12918 | cbradney | 2552 | <translation type="unfinished">placeSVG("fichier", x,y) |
2553 | |||
2554 | Positionne le fichier SVG "fichier" sur la page courante, |
||
2555 | avec x et y étant les coordonnées de placement du point en haut à gauche du SVG |
||
2556 | |||
2557 | Si le chargement est réussi, la sélection contient le SVG importé |
||
2558 | </translation> |
||
6261 | cbradney | 2559 | </message> |
2560 | <message> |
||
12918 | cbradney | 2561 | <location filename="../../scribus/plugins/scriptplugin/svgimport.h" line="33"/> |
2562 | <source>placeEPS("filename", x, y) |
||
6261 | cbradney | 2563 | |
12918 | cbradney | 2564 | Places the EPS "filename" onto the current page, |
2565 | x and y specify the coordinate of the topleft corner of the EPS placed on the page |
||
2566 | |||
2567 | If loading was successful, the selection contains the imported EPS |
||
6261 | cbradney | 2568 | </source> |
12918 | cbradney | 2569 | <translation type="unfinished">placeEPS("fichier", x,y) |
2570 | |||
2571 | Positionne le fichier EPS "fichier" sur la page courante, |
||
2572 | avec x et y étant les coordonnées de placement du point en haut à gauche du EPS |
||
2573 | |||
2574 | Si le chargement est réussi, la sélection contient l'EPS importé |
||
2575 | </translation> |
||
6261 | cbradney | 2576 | </message> |
2577 | <message> |
||
12918 | cbradney | 2578 | <location filename="../../scribus/plugins/scriptplugin/svgimport.h" line="45"/> |
2579 | <source>placeSXD("filename", x, y) |
||
6261 | cbradney | 2580 | |
12918 | cbradney | 2581 | Places the SXD "filename" onto the current page, |
2582 | x and y specify the coordinate of the topleft corner of the SXD placed on the page |
||
2583 | |||
2584 | If loading was successful, the selection contains the imported SXD |
||
6261 | cbradney | 2585 | </source> |
12918 | cbradney | 2586 | <translation type="unfinished">placeSXD("fichier", x,y) |
2587 | |||
2588 | Positionne le fichier SXD "fichier" sur la page courante, |
||
2589 | avec x et y étant les coordonnées de placement du point en haut à gauche du SXD |
||
2590 | |||
2591 | Si le chargement est réussi, la sélection contient le SXD importé |
||
2592 | </translation> |
||
6261 | cbradney | 2593 | </message> |
2594 | <message> |
||
12918 | cbradney | 2595 | <location filename="../../scribus/plugins/scriptplugin/svgimport.h" line="57"/> |
2596 | <source>placeODG("filename", x, y) |
||
6261 | cbradney | 2597 | |
12918 | cbradney | 2598 | Places the ODG "filename" onto the current page, |
2599 | x and y specify the coordinate of the topleft corner of the ODG placed on the page |
||
6261 | cbradney | 2600 | |
12918 | cbradney | 2601 | If loading was successful, the selection contains the imported ODG |
6261 | cbradney | 2602 | </source> |
12918 | cbradney | 2603 | <translation type="unfinished">placeODG("fichier", x,y) |
2604 | |||
2605 | Positionne le fichier ODG "fichier" sur la page courante, |
||
2606 | avec x et y étant les coordonnées de placement du point en haut à gauche du ODG |
||
2607 | |||
2608 | Si le chargement est réussi, la sélection contient l'ODG importé |
||
2609 | </translation> |
||
6261 | cbradney | 2610 | </message> |
13279 | cbradney | 2611 | <message> |
2612 | <location filename="../../scribus/plugins/scriptplugin/cmdcolor.h" line="120"/> |
||
2613 | <source>isSpotColor("name") -> bool |
||
2614 | |||
2615 | Returns True if the color "name" is a spot color. |
||
2616 | See also setSpotColor() |
||
2617 | |||
2618 | May raise NotFoundError if a named color wasn't found. |
||
2619 | May raise ValueError if an invalid color name is specified. |
||
2620 | </source> |
||
2621 | <translation type="unfinished"></translation> |
||
2622 | </message> |
||
2623 | <message> |
||
2624 | <location filename="../../scribus/plugins/scriptplugin/cmdcolor.h" line="135"/> |
||
2625 | <source>setSpotColor("name", spot) |
||
2626 | |||
2627 | Set the color "name" as a spot color if spot parameter is True. |
||
2628 | See also isSpotColor() |
||
2629 | |||
2630 | May raise NotFoundError if a named color wasn't found. |
||
2631 | May raise ValueError if an invalid color name is specified. |
||
2632 | </source> |
||
2633 | <translation type="unfinished"></translation> |
||
2634 | </message> |
||
2635 | <message> |
||
2636 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="167"/> |
||
2637 | <source>scaleImage(x, y [, "name"]) |
||
2638 | |||
2639 | Sets the internal scaling factors of the picture in the image frame "name". |
||
2640 | If "name" is not given the currently selected item is used. A number of 1 |
||
2641 | means 100 %. Internal scaling factors are different from the values shown on |
||
2642 | properties palette. Note : deprecated, use setImageScale() instead. |
||
2643 | |||
2644 | May raise WrongFrameTypeError if the target frame is not an image frame |
||
2645 | </source> |
||
2646 | <translation type="unfinished"></translation> |
||
2647 | </message> |
||
2648 | <message> |
||
2649 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="180"/> |
||
2650 | <source>setImageScale(x, y [, "name"]) |
||
2651 | |||
2652 | Sets the scaling factors of the picture in the image frame "name". |
||
2653 | If "name" is not given the currently selected item is used. A number of 1 |
||
2654 | means 100 %. Scaling factors are equal to the values shown on properties palette. |
||
2655 | |||
2656 | May raise WrongFrameTypeError if the target frame is not an image frame |
||
2657 | </source> |
||
2658 | <translation type="unfinished"></translation> |
||
2659 | </message> |
||
2660 | <message> |
||
2661 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="33"/> |
||
2662 | <source>setGradientStop("color", shade, opacity, ramppoint, ["name"]) |
||
2663 | |||
2664 | Set or add a gradient stop to the gradient fill of the object "name" at position ramppoint. |
||
2665 | Color descriptions are the same as for setFillColor() and setFillShade(). setGradientFill() |
||
2666 | must have been called previously for the gradient fill to be visible. |
||
2667 | </source> |
||
2668 | <translation type="unfinished"></translation> |
||
2669 | </message> |
||
2670 | <message> |
||
2671 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="292"/> |
||
2672 | <source>setTextScalingV(scale, ["name"]) |
||
2673 | |||
2674 | Sets the vertical character scaling of the object "name" to "scale" in percent. |
||
2675 | If "name" is not given the currently selected item is used. |
||
2676 | </source> |
||
2677 | <translation type="unfinished"></translation> |
||
2678 | </message> |
||
2679 | <message> |
||
2680 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="302"/> |
||
2681 | <source>setTextScalingH(scale, ["name"]) |
||
2682 | |||
2683 | Sets the horizontal character scaling of the object "name" to "scale" in percent. |
||
2684 | If "name" is not given the currently selected item is used. |
||
2685 | </source> |
||
2686 | <translation type="unfinished"></translation> |
||
2687 | </message> |
||
12918 | cbradney | 2688 | </context> |
2689 | <context> |
||
2690 | <name>@default</name> |
||
6261 | cbradney | 2691 | <message> |
12918 | cbradney | 2692 | <location filename="../../scribus/plugins/scriptplugin/cmdcolor.h" line="21"/> |
2693 | <source>getColorNames() -> list |
||
6261 | cbradney | 2694 | |
12918 | cbradney | 2695 | Returns a list containing the names of all defined colors in the document. |
2696 | If no document is open, returns a list of the default document colors. |
||
2697 | </source> |
||
2698 | <translation type="obsolete">getColorNames() -> liste |
||
6261 | cbradney | 2699 | |
12918 | cbradney | 2700 | Crée la liste des noms de toutes les couleurs définie dans le document. |
2701 | S'il n'y a aucun document ouvert, la liste est composée des couleurs présentes par défaut.</translation> |
||
2702 | </message> |
||
2703 | <message> |
||
2704 | <location filename="../../scribus/plugins/scriptplugin/cmddialog.h" line="22"/> |
||
2705 | <source>newDocDialog() -> bool |
||
2706 | |||
2707 | Displays the "New Document" dialog box. Creates a new document if the user |
||
2708 | accepts the settings. Does not create a document if the user presses cancel. |
||
2709 | Returns true if a new document was created. |
||
6261 | cbradney | 2710 | </source> |
12918 | cbradney | 2711 | <translation type="obsolete">newDocDialog() -> booléen |
2712 | |||
2713 | Affiche la boîte de dialogue "Nouveau document". Crée un nouveau document si |
||
2714 | l'utilisateur valide les réglages. Ne crée pas de document si l'utilisateur clique sur |
||
2715 | "Annuler". Retourne vrai si un nouveau document est créé.</translation> |
||
6261 | cbradney | 2716 | </message> |
2717 | <message> |
||
12918 | cbradney | 2718 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="21"/> |
2719 | <source>getFillColor(["name"]) -> string |
||
6261 | cbradney | 2720 | |
12918 | cbradney | 2721 | Returns the name of the fill color of the object "name". |
2722 | If "name" is not given the currently selected item is used. |
||
2723 | </source> |
||
2724 | <translation type="obsolete">getFillColor(["nom"]) -> chaîne |
||
6261 | cbradney | 2725 | |
12918 | cbradney | 2726 | Retourne le nom de la couleur de remplissage de l'objet "nom". |
2727 | Si "nom" est omis, l'objet actuellement sélectionné est utilisé.</translation> |
||
2728 | </message> |
||
2729 | <message> |
||
2730 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="23"/> |
||
2731 | <source>moveObject(dx, dy [, "name"]) |
||
2732 | |||
2733 | Moves the object "name" by dx and dy relative to its current position. The |
||
2734 | distances are expressed in the current measurement unit of the document (see |
||
2735 | UNIT constants). If "name" is not given the currently selected item is used. |
||
2736 | If the object "name" belongs to a group, the whole group is moved. |
||
6261 | cbradney | 2737 | </source> |
12918 | cbradney | 2738 | <translation type="obsolete">moveObject(dx, dy [, "nom"]) |
2739 | |||
2740 | Déplace l'objet "nom" de dx et dy relativement à sa position courante. Les |
||
2741 | distances sont exprimées dans l'unité courante de mesure du document (voir |
||
2742 | constantes d'UNITÉS). Si "nom" est omis, l'objet actuellement sélectionné est utilisé. |
||
2743 | Si l'objet "nom" appartient à un groupe, le groupe entier est déplacé.</translation> |
||
6261 | cbradney | 2744 | </message> |
2745 | <message> |
||
12918 | cbradney | 2746 | <location filename="../../scribus/plugins/scriptplugin/cmdmisc.h" line="24"/> |
2747 | <source>setRedraw(bool) |
||
6261 | cbradney | 2748 | |
12918 | cbradney | 2749 | Disables page redraw when bool = False, otherwise redrawing is enabled. |
2750 | This change will persist even after the script exits, so make sure to call |
||
2751 | setRedraw(True) in a finally: clause at the top level of your script. |
||
2752 | </source> |
||
2753 | <translation type="obsolete">setRedraw(booléen) |
||
6261 | cbradney | 2754 | |
12918 | cbradney | 2755 | Désactive le rafraîchissement de l'affichage si le booléen est faux, sinon le |
2756 | rafraîchissement est actif. Ce changement persiste même après la fin du |
||
2757 | script, donc veillez à appeler setRedraw(True) dans une clause finally: au |
||
2758 | début de votre script. |
||
2759 | </translation> |
||
2760 | </message> |
||
2761 | <message> |
||
2762 | <location filename="../../scribus/plugins/scriptplugin/cmdobj.h" line="26"/> |
||
2763 | <source>createRect(x, y, width, height, ["name"]) -> string |
||
2764 | |||
2765 | Creates a new rectangle on the current page and returns its name. The |
||
2766 | coordinates are given in the current measurement units of the document |
||
2767 | (see UNIT constants). "name" should be a unique identifier for the object |
||
2768 | because you need this name to reference that object in future. If "name" |
||
2769 | is not given Scribus will create one for you. |
||
2770 | |||
2771 | May raise NameExistsError if you explicitly pass a name that's already used. |
||
6261 | cbradney | 2772 | </source> |
12918 | cbradney | 2773 | <translation type="obsolete">createRect(x, y, largeur, hauteur, ["nom"]) -> chaîne |
2774 | |||
2775 | Crée un rectangle sur la page courante et retourne son nom. Les coordonnées |
||
2776 | sont exprimées dans l'unité courante de mesure du document (voir constantes |
||
2777 | d'UNITÉS). "nom" doit être un identifiant unique pour l'objet car il sert de référence |
||
2778 | pour l'objet. Si "nom" est omis, Scribus en attribuera un pour vous. |
||
2779 | |||
2780 | Peut lever une erreur NameExistsError si "nom" existe déjà.</translation> |
||
6261 | cbradney | 2781 | </message> |
2782 | <message> |
||
12918 | cbradney | 2783 | <location filename="../../scribus/plugins/scriptplugin/cmdpage.h" line="26"/> |
2784 | <source>newPage(where [,"masterpage"]) |
||
6261 | cbradney | 2785 | |
12918 | cbradney | 2786 | Creates a new page. If "where" is -1 the new Page is appended to the |
2787 | document, otherwise the new page is inserted before "where". Page numbers are |
||
2788 | counted from 1 upwards, no matter what the displayed first page number of your |
||
2789 | document is. The optional parameter "masterpage" specifies the name of the |
||
2790 | master page for the new page. |
||
6261 | cbradney | 2791 | |
12918 | cbradney | 2792 | May raise IndexError if the page number is out of range |
6261 | cbradney | 2793 | </source> |
12918 | cbradney | 2794 | <translation type="obsolete">newPage(emplacement [,"gabarit"]) |
2795 | |||
2796 | Crée une nouvelle page. Si "emplacement" vaut -1, la page est ajoutée à la fin |
||
2797 | du document; dans le cas contraire, elle est insérée avant la page "emplacement". |
||
2798 | Les numéros de pages débutent à 1, indépendamment de la première page |
||
2799 | affichée du document. Le paramètre optionnel "gabarit" permet d'affecter un gabarit |
||
2800 | à la nouvelle page. |
||
2801 | |||
2802 | Peut lever une erreur IndexError si "emplacement" est hors plage</translation> |
||
6261 | cbradney | 2803 | </message> |
2804 | <message> |
||
12918 | cbradney | 2805 | <location filename="../../scribus/plugins/scriptplugin/cmdsetprop.h" line="22"/> |
2806 | <source>setGradientFill(type, "color1", shade1, "color2", shade2, ["name"]) |
||
6261 | cbradney | 2807 | |
12918 | cbradney | 2808 | Sets the gradient fill of the object "name" to type. Color descriptions are |
2809 | the same as for setFillColor() and setFillShade(). See the constants for |
||
2810 | available types (FILL_<type>). |
||
2811 | </source> |
||
2812 | <translation type="obsolete">setGradientFill(type, "couleur1", teinte1, "couleur2", teinte2, ["nom"]) |
||
6261 | cbradney | 2813 | |
12918 | cbradney | 2814 | Définit le type de gradient de l'objet "nom". Les descriptions de couleurs sont |
2815 | les mêmes que pour setFillColor() et setFillShade(). Référez-vous aux constantes |
||
2816 | pour connaîtres les types de gradient (FILL_<type>). |
||
2817 | </translation> |
||
2818 | </message> |
||
2819 | <message> |
||
2820 | <location filename="../../scribus/plugins/scriptplugin/cmdtext.h" line="23"/> |
||
2821 | <source>getFontSize(["name"]) -> float |
||
2822 | |||
2823 | Returns the font size in points for the text frame "name". If this text |
||
2824 | frame has some text selected the value assigned to the first character of |
||
2825 | the selection is returned. |
||
2826 | If "name" is not given the currently selected item is used. |
||
6261 | cbradney | 2827 | </source> |
12918 | cbradney | 2828 | <translation type="obsolete">getFontSize(["nom"]) -> flottant |
2829 | |||
2830 | Retourne la taille de la police en points pour le cadre de texte "nom". Si une |
||
2831 | partie du texte du cadre est sélectionné, la valeur retournée est celle du |
||
2832 | premier caractère de la sélection. |
||
2833 | Si "nom" est omis, l'objet actuellement sélectionné est utilisé.</translation> |
||
6261 | cbradney | 2834 | </message> |
2835 | <message> |
||
12918 | cbradney | 2836 | <location filename="../../scribus/plugins/scriptplugin/guiapp.h" line="21"/> |
2837 | <source>messagebarText("string") |
||
6261 | cbradney | 2838 | |
12918 | cbradney | 2839 | Writes the "string" into the Scribus message bar (status line). The text |
2840 | must be UTF8 encoded or 'unicode' string(recommended). |
||
6261 | cbradney | 2841 | </source> |
12918 | cbradney | 2842 | <translation type="obsolete">messagebarText("chaîne") |
2843 | |||
2844 | Ecrit la "chaîne" dans la barre de messages de Scribus (ligne de statut). |
||
2845 | Le texte doit être encodé en UTF8 ou une chaîne 'unicode' (recommendé).</translation> |
||
6261 | cbradney | 2846 | </message> |
2847 | <message> |
||
12918 | cbradney | 2848 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="55"/> |
2849 | <source>newDocument(size, margins, orientation, firstPageNumber, |
||
2850 | unit, pagesType, firstPageOrder, numPages) -> bool |
||
6261 | cbradney | 2851 | |
12918 | cbradney | 2852 | Creates a new document and returns true if successful. The parameters have the |
2853 | following meaning: |
||
2854 | |||
2855 | size = A tuple (width, height) describing the size of the document. You can |
||
2856 | use predefined constants named PAPER_<paper_type> e.g. PAPER_A4 etc. |
||
2857 | |||
2858 | margins = A tuple (left, right, top, bottom) describing the document |
||
2859 | margins |
||
2860 | |||
2861 | orientation = the page orientation - constants PORTRAIT, LANDSCAPE |
||
2862 | |||
2863 | firstPageNumer = is the number of the first page in the document used for |
||
2864 | pagenumbering. While you'll usually want 1, it's useful to have higher |
||
2865 | numbers if you're creating a document in several parts. |
||
2866 | |||
2867 | unit: this value sets the measurement units used by the document. Use a |
||
2868 | predefined constant for this, one of: UNIT_INCHES, UNIT_MILLIMETERS, |
||
2869 | UNIT_PICAS, UNIT_POINTS. |
||
2870 | |||
2871 | pagesType = One of the predefined constants PAGE_n. PAGE_1 is single page, |
||
2872 | PAGE_2 is for double sided documents, PAGE_3 is for 3 pages fold and |
||
2873 | PAGE_4 is 4-fold. |
||
2874 | |||
2875 | firstPageOrder = What is position of first page in the document. |
||
2876 | Indexed from 0 (0 = first). |
||
2877 | |||
2878 | numPage = Number of pages to be created. |
||
2879 | |||
2880 | The values for width, height and the margins are expressed in the given unit |
||
2881 | for the document. PAPER_* constants are expressed in points. If your document |
||
2882 | is not in points, make sure to account for this. |
||
2883 | |||
2884 | example: newDocument(PAPER_A4, (10, 10, 20, 20), LANDSCAPE, 7, UNIT_POINTS, |
||
2885 | PAGE_4, 3, 1) |
||
2886 | |||
2887 | May raise ScribusError if is firstPageOrder bigger than allowed by pagesType. |
||
6261 | cbradney | 2888 | </source> |
12918 | cbradney | 2889 | <translation type="obsolete">newDocument(taille, marges, orientation, numeroPremièrePage, |
2890 | unité, typePages, positionPremièrePage) -> booléen |
||
9300 | jghali | 2891 | |
12918 | cbradney | 2892 | Crée un nouveau document et retourne vrai en cas de succès. Les divers paramètres |
2893 | ont la signification suivante : |
||
2894 | |||
2895 | taille : un tuple (hauteur, largeur) décrivant la taille du document. Il est possible |
||
2896 | d'utiliser des constantes prédéfinies nommées PAPER_<paper_type> (PAPER_A4...) |
||
2897 | |||
2898 | marges : un tuple (gauche, droite, haut, bas) décrivant les marges du |
||
2899 | nouveau document |
||
2900 | |||
2901 | orientation : l'orientation de la page - constantes PORTRAIT, LANDSCAPE |
||
2902 | |||
2903 | numeroPremièrePage : numéro de la première page du document, utilisé |
||
2904 | pour la numérotation des pages. La plupart du temps, ce sera 1, mais |
||
2905 | d'autres valeurs peuvent se révéler utiles pour des documents découpés |
||
2906 | en plusieurs parties. |
||
2907 | |||
2908 | unité : définit l'unité de mesure utilisée dans ce document. Utiliser l'une des |
||
2909 | constantes prédéfinies pour cela : UNIT_INCHES, UNIT_MILLIMETERS, |
||
2910 | UNIT_PICAS, UNIT_POINTS. |
||
2911 | typePages : une des constantes prédéfinies PAGE_n. PAGE_1 pour des pages |
||
2912 | simples, PAGE_2 pour des pages en regard, PAGE_3 pour 3 volets et |
||
2913 | PAGE_4 pour 4 volets. |
||
2914 | |||
2915 | positionPremièrePage : position de la première page dans le document. |
||
2916 | Démarre à 0 (0 = première page). |
||
2917 | |||
2918 | nombrePages : nombre de pages à créer. |
||
2919 | |||
2920 | Les valeurs de hauteur, largeur et de marges sont exprimées dans l'unité |
||
2921 | fournie pour le document. PAPER_* sont des constantes exprimées en points; |
||
2922 | donc si l'unité de votre document n'est pas le point, il faut en tenir compte. |
||
2923 | |||
2924 | exemple: newDocument(PAPER_A4, (10, 10, 20, 20), LANDSCAPE, 7, UNIT_POINTS,(new line) |
||
2925 | PAGE_4, 3, 1) |
||
2926 | |||
2927 | Lève une erreur ScribusError si positionPremièrePage est plus grand que ce qui |
||
2928 | est admissible par typePages. |
||
9300 | jghali | 2929 | </translation> |
6261 | cbradney | 2930 | </message> |
2931 | <message> |
||
12918 | cbradney | 2932 | <location filename="../../scribus/plugins/scriptplugin/svgimport.h" line="21"/> |
2933 | <source>placeSVG("filename", x, y) |
||
6434 | cbradney | 2934 | |
12918 | cbradney | 2935 | Places the SVG "filename" onto the current page, |
2936 | x and y specify the coordinate of the topleft corner of the SVG placed on the page |
||
2937 | |||
2938 | If loading was successful, the selection contains the imported SVG |
||
6434 | cbradney | 2939 | </source> |
12918 | cbradney | 2940 | <translation type="obsolete">placeSVG("fichier", x,y) |
9300 | jghali | 2941 | |
12918 | cbradney | 2942 | Positionne le fichier SVG "fichier" sur la page courante, |
2943 | avec x et y étant les coordonnées de placement du point en haut à gauche du SVG |
||
2944 | |||
2945 | Si le chargement est réussi, la sélection contient le SVG importé |
||
2946 | </translation> |
||
6434 | cbradney | 2947 | </message> |
2948 | <message> |
||
12918 | cbradney | 2949 | <location filename="../../scribus/plugins/scriptplugin/cmdcolor.h" line="35"/> |
2950 | <source>getColor("name") -> tuple |
||
6434 | cbradney | 2951 | |
12918 | cbradney | 2952 | Returns a tuple (C, M, Y, K) containing the four color components of the |
2953 | color "name" from the current document. If no document is open, returns |
||
2954 | the value of the named color from the default document colors. |
||
2955 | |||
2956 | May raise NotFoundError if the named color wasn't found. |
||
2957 | May raise ValueError if an invalid color name is specified. |
||
6434 | cbradney | 2958 | </source> |
12918 | cbradney | 2959 | <translation type="obsolete">getColor("nom") -> tuple |
9300 | jghali | 2960 | |
12918 | cbradney | 2961 | Retourne un tuple (C,M,J,N) contenant les quatre composantes de couleurs de |
2962 | la couleur "nom" du document courant. Si aucun document n'est ouvert, |
||
2963 | retourne la valeur de la couleur "nom" des couleurs par défaut. |
||
2964 | |||
2965 | Lève une erreur NotFoundError si la couleur n'est pas trouvée. |
||
2966 | Lève une erreur ValueError si le nom de couleur est invalide.</translation> |
||
6434 | cbradney | 2967 | </message> |
2968 | <message> |
||
12918 | cbradney | 2969 | <location filename="../../scribus/plugins/scriptplugin/cmdcolor.h" line="50"/> |
2970 | <source>getColorAsRGB("name") -> tuple |
||
6434 | cbradney | 2971 | |
12918 | cbradney | 2972 | Returns a tuple (R,G,B) containing the three color components of the |
2973 | color "name" from the current document, converted to the RGB color |
||
2974 | space. If no document is open, returns the value of the named color |
||
2975 | from the default document colors. |
||
2976 | |||
2977 | May raise NotFoundError if the named color wasn't found. |
||
2978 | May raise ValueError if an invalid color name is specified. |
||
6434 | cbradney | 2979 | </source> |
12918 | cbradney | 2980 | <translation type="obsolete">getColorAsRGB("nom") -> tuple |
2981 | |||
2982 | Retourne un tuple (R,V,B) contenant les trois composantes de couleurs de |
||
2983 | la couleur "nom" du document courant, convertie dans l'espace RVB. Si |
||
2984 | aucun document n'est ouvert,retourne la valeur de la couleur "nom" des |
||
2985 | couleurs par défaut. |
||
2986 | |||
2987 | Lève une erreur NotFoundError si la couleur n'est pas trouvée. |
||
2988 | Lève une erreur ValueError si le nom de couleur est invalide.</translation> |
||
6434 | cbradney | 2989 | </message> |
7508 | cbradney | 2990 | <message> |
12918 | cbradney | 2991 | <location filename="../../scribus/plugins/scriptplugin/cmdcolor.h" line="64"/> |
2992 | <source>changeColor("name", c, m, y, k) |
||
7508 | cbradney | 2993 | |
12918 | cbradney | 2994 | Changes the color "name" to the specified CMYK value. The color value is |
2995 | defined via four components c = Cyan, m = Magenta, y = Yellow and k = Black. |
||
2996 | Color components should be in the range from 0 to 255. |
||
7508 | cbradney | 2997 | |
12918 | cbradney | 2998 | May raise NotFoundError if the named color wasn't found. |
7508 | cbradney | 2999 | May raise ValueError if an invalid color name is specified. |
3000 | </source> |
||
12918 | cbradney | 3001 | <translation type="obsolete">changeColor("nom", c, m, j, k) |
3002 | |||
3003 | Change les valeurs c,m,j et n de la couleur "nom". La couleur est définie par |
||
3004 | les quatres composantes c = Cyan, m = Magenta, j = Jaune, N = Noir. |
||
3005 | Chaque composante a une valeur comprise entre 0 et 255. |
||
3006 | |||
3007 | Lève une erreur NotFoundError si la couleur n'est pas trouvée. |
||
3008 | Lève une erreur ValueError si le nom de couleur est invalide.</translation> |
||
7508 | cbradney | 3009 | </message> |
3010 | <message> |
||
12918 | cbradney | 3011 | <location filename="../../scribus/plugins/scriptplugin/cmdcolor.h" line="94"/> |
3012 | <source>deleteColor("name", "replace") |
||
7508 | cbradney | 3013 | |
12918 | cbradney | 3014 | Deletes the color "name". Every occurence of that color is replaced by the |
3015 | color "replace". If not specified, "replace" defaults to the color |
||
3016 | "None" - transparent. |
||
3017 | |||
3018 | deleteColor works on the default document colors if there is no document open. |
||
3019 | In that case, "replace", if specified, has no effect. |
||
3020 | |||
3021 | May raise NotFoundError if a named color wasn't found. |
||
3022 | May raise ValueError if an invalid color name is specified. |
||
7508 | cbradney | 3023 | </source> |
12918 | cbradney | 3024 | <translation type="obsolete">deleteColor("nom", "subsitution") |
3025 | |||
3026 | Supprime la couleur "nom". Chaque occurrence de la couleur est remplacée |
||
3027 | par la couleur "substitution". Si cette dernière n'est pas spécifiée, la couleur |
||
3028 | de remplacement sera "None", c'est à dire transparent. |
||
3029 | |||
3030 | La fonction deleteColor travaille sur les couleurs par défaut si aucun document |
||
3031 | n'est ouvert. Dans ce cas, "substitution" n'a aucun effet. |
||
3032 | |||
3033 | Lève une erreur NotFoundError si la couleur n'est pas trouvée. |
||
3034 | Lève une erreur ValueError si le nom de couleur est invalide.</translation> |
||
7508 | cbradney | 3035 | </message> |
3036 | <message> |
||
12918 | cbradney | 3037 | <location filename="../../scribus/plugins/scriptplugin/cmdcolor.h" line="106"/> |
3038 | <source>replaceColor("name", "replace") |
||
7508 | cbradney | 3039 | |
12918 | cbradney | 3040 | Every occurence of the color "name" is replaced by the color "replace". |
3041 | |||
3042 | May raise NotFoundError if a named color wasn't found. |
||
3043 | May raise ValueError if an invalid color name is specified. |
||
7508 | cbradney | 3044 | </source> |
12918 | cbradney | 3045 | <translation type="obsolete">replaceColor("nom", "substitution") |
3046 | |||
3047 | Remplace chaque occurrence de la couleur "nom" par la couleur "substitution". |
||
3048 | |||
3049 | Lève une erreur NotFoundError si la couleur n'est pas trouvée. |
||
3050 | Lève une erreur ValueError si le nom de couleur est invalide.</translation> |
||
7508 | cbradney | 3051 | </message> |
3052 | <message> |
||
12918 | cbradney | 3053 | <location filename="../../scribus/plugins/scriptplugin/cmddialog.h" line="111"/> |
3054 | <source>newStyleDialog() -> string |
||
7508 | cbradney | 3055 | |
12918 | cbradney | 3056 | Shows 'Create new paragraph style' dialog. Function returns real |
3057 | style name or None when user cancels the dialog. |
||
7508 | cbradney | 3058 | </source> |
12918 | cbradney | 3059 | <translation type="obsolete">newStyleDialog() -> chaîne |
3060 | |||
3061 | Affiche le dialogue de création d'un nouveau style de paragraphe. |
||
3062 | Retourne le nom du nouveau style ou None si l'utilisateur annule. |
||
3063 | </translation> |
||
7508 | cbradney | 3064 | </message> |
3065 | <message> |
||
12918 | cbradney | 3066 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="96"/> |
3067 | <source>newDoc(size, margins, orientation, firstPageNumber, |
||
3068 | unit, facingPages, firstSideLeft) -> bool |
||
7508 | cbradney | 3069 | |
12918 | cbradney | 3070 | WARNING: Obsolete procedure! Use newDocument instead. |
7508 | cbradney | 3071 | |
12918 | cbradney | 3072 | Creates a new document and returns true if successful. The parameters have the |
3073 | following meaning: |
||
3074 | |||
3075 | size = A tuple (width, height) describing the size of the document. You can |
||
3076 | use predefined constants named PAPER_<paper_type> e.g. PAPER_A4 etc. |
||
3077 | |||
3078 | margins = A tuple (left, right, top, bottom) describing the document |
||
3079 | margins |
||
3080 | |||
3081 | orientation = the page orientation - constants PORTRAIT, LANDSCAPE |
||
3082 | |||
3083 | firstPageNumer = is the number of the first page in the document used for |
||
3084 | pagenumbering. While you'll usually want 1, it's useful to have higher |
||
3085 | numbers if you're creating a document in several parts. |
||
3086 | |||
3087 | unit: this value sets the measurement units used by the document. Use a |
||
3088 | predefined constant for this, one of: UNIT_INCHES, UNIT_MILLIMETERS, |
||
3089 | UNIT_PICAS, UNIT_POINTS. |
||
3090 | |||
3091 | facingPages = FACINGPAGES, NOFACINGPAGES |
||
3092 | |||
3093 | firstSideLeft = FIRSTPAGELEFT, FIRSTPAGERIGHT |
||
3094 | |||
3095 | The values for width, height and the margins are expressed in the given unit |
||
3096 | for the document. PAPER_* constants are expressed in points. If your document |
||
3097 | is not in points, make sure to account for this. |
||
3098 | |||
3099 | example: newDoc(PAPER_A4, (10, 10, 20, 20), LANDSCAPE, 1, UNIT_POINTS, |
||
3100 | FACINGPAGES, FIRSTPAGERIGHT) |
||
7508 | cbradney | 3101 | </source> |
12918 | cbradney | 3102 | <translation type="obsolete">newDoc(taille, marges, orientation, numeroPremierePage, |
3103 | unité, pagesRegard, firstSideLeft) -> booléen |
||
3104 | |||
3105 | ATTENTION : FONCTION OBSOLETE, utiliser newDocument à la place ! |
||
3106 | |||
3107 | Creates a new document and returns true if successful. The parameters have the |
||
3108 | following meaning: |
||
3109 | |||
3110 | size = A tuple (width, height) describing the size of the document. You can |
||
3111 | use predefined constants named PAPER_<paper_type> e.g. PAPER_A4 etc. |
||
3112 | |||
3113 | margins = A tuple (left, right, top, bottom) describing the document |
||
3114 | margins |
||
3115 | |||
3116 | orientation = the page orientation - constants PORTRAIT, LANDSCAPE |
||
3117 | |||
3118 | firstPageNumer = is the number of the first page in the document used for |
||
3119 | pagenumbering. While you'll usually want 1, it's useful to have higher |
||
3120 | numbers if you're creating a document in several parts. |
||
3121 | |||
3122 | unit: this value sets the measurement units used by the document. Use a |
||
3123 | predefined constant for this, one of: UNIT_INCHES, UNIT_MILLIMETERS, |
||
3124 | UNIT_PICAS, UNIT_POINTS. |
||
3125 | |||
3126 | facingPages = FACINGPAGES, NOFACINGPAGES |
||
3127 | |||
3128 | firstSideLeft = FIRSTPAGELEFT, FIRSTPAGERIGHT |
||
3129 | |||
3130 | The values for width, height and the margins are expressed in the given unit |
||
3131 | for the document. PAPER_* constants are expressed in points. If your document |
||
3132 | is not in points, make sure to account for this. |
||
3133 | |||
3134 | example: newDoc(PAPER_A4, (10, 10, 20, 20), LANDSCAPE, 1, UNIT_POINTS, |
||
3135 | FACINGPAGES, FIRSTPAGERIGHT) |
||
3136 | </translation> |
||
7508 | cbradney | 3137 | </message> |
3138 | <message> |
||
12918 | cbradney | 3139 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="108"/> |
3140 | <source>closeDoc() |
||
7508 | cbradney | 3141 | |
12918 | cbradney | 3142 | Closes the current document without prompting to save. |
7508 | cbradney | 3143 | |
12918 | cbradney | 3144 | May throw NoDocOpenError if there is no document to close |
7508 | cbradney | 3145 | </source> |
12918 | cbradney | 3146 | <translation type="obsolete">closeDoc() |
3147 | |||
3148 | Ferme le document en cours sans demande de confirmation de sauvegarde. |
||
3149 | |||
3150 | Lève l'erreur NoDocOpenError s'il n'y a pas de document à fermer |
||
3151 | </translation> |
||
7508 | cbradney | 3152 | </message> |
3153 | <message> |
||
12918 | cbradney | 3154 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="117"/> |
3155 | <source>haveDoc() -> bool |
||
7508 | cbradney | 3156 | |
12918 | cbradney | 3157 | Returns true if there is a document open. |
3158 | </source> |
||
3159 | <translation type="obsolete">haveDoc() -> booléen |
||
7508 | cbradney | 3160 | |
12918 | cbradney | 3161 | Retourne vrai si un document est ouvert.</translation> |
3162 | </message> |
||
3163 | <message> |
||
3164 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="128"/> |
||
3165 | <source>openDoc("name") |
||
3166 | |||
3167 | Opens the document "name". |
||
3168 | |||
3169 | May raise ScribusError if the document could not be opened. |
||
7508 | cbradney | 3170 | </source> |
12918 | cbradney | 3171 | <translation type="obsolete">openDoc("nom") |
3172 | |||
3173 | Ouvre le document "nom". |
||
3174 | |||
3175 | Lève l'erreur ScribusError si le document ne peut pas être ouvert. |
||
3176 | </translation> |
||
7508 | cbradney | 3177 | </message> |
9005 | cbradney | 3178 | <message> |
12918 | cbradney | 3179 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="141"/> |
3180 | <source>saveDoc() |
||
9005 | cbradney | 3181 | |
12918 | cbradney | 3182 | Saves the current document with its current name, returns true if successful. |
3183 | If the document has not already been saved, this may bring up an interactive |
||
3184 | save file dialog. |
||
9005 | cbradney | 3185 | |
12918 | cbradney | 3186 | If the save fails, there is currently no way to tell. |
9005 | cbradney | 3187 | </source> |
12918 | cbradney | 3188 | <translation type="obsolete">saveDoc() |
3189 | |||
3190 | Enregistre le document courant avec son nom actuel et retourne vrai en cas de succès. |
||
3191 | Si le document n'a pas encore été sauvegardé, le dialogue d'enregistrement de fichiers |
||
3192 | sera ouvert. |
||
3193 | |||
3194 | Il n'y a actuellement pas de moyen de savoir si l'enregistrement échoue.</translation> |
||
9005 | cbradney | 3195 | </message> |
3196 | <message> |
||
12918 | cbradney | 3197 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="152"/> |
3198 | <source>saveDocAs("name") |
||
9005 | cbradney | 3199 | |
12918 | cbradney | 3200 | Saves the current document under the new name "name" (which may be a full or |
3201 | relative path). |
||
9005 | cbradney | 3202 | |
12918 | cbradney | 3203 | May raise ScribusError if the save fails. |
9005 | cbradney | 3204 | </source> |
12918 | cbradney | 3205 | <translation type="obsolete">saveDocAs("nom") |
3206 | |||
3207 | Enregistre le document courant sous le nom "nom" (qui peut contenir un chemin |
||
3208 | complet ou relatif). |
||
3209 | |||
3210 | Lève l'erreur ScribusError si l'enregistrement échoue.</translation> |
||
9005 | cbradney | 3211 | </message> |
3212 | <message> |
||
14462 | jghali | 3213 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="136953768"/> |
12918 | cbradney | 3214 | <source>setMargins(lr, rr, tr, br) |
9005 | cbradney | 3215 | |
12918 | cbradney | 3216 | Sets the margins of the document, Left(lr), Right(rr), Top(tr) and Bottom(br) |
3217 | margins are given in the measurement units of the document - see UNIT_<type> |
||
3218 | constants. |
||
3219 | </source> |
||
3220 | <translation type="obsolete">setMargins(gr, dr, hr, br) |
||
9005 | cbradney | 3221 | |
12918 | cbradney | 3222 | Définit les marges du document, gauche (gr), droite (dr), haut (hr) et bas (br) |
3223 | Les marges utilisent l'unité de mesure du document, voir les constantes |
||
3224 | UNIT_<type>. |
||
3225 | </translation> |
||
3226 | </message> |
||
3227 | <message> |
||
3228 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="185"/> |
||
3229 | <source>setUnit(type) |
||
3230 | |||
3231 | Changes the measurement unit of the document. Possible values for "unit" are |
||
3232 | defined as constants UNIT_<type>. |
||
3233 | |||
3234 | May raise ValueError if an invalid unit is passed. |
||
9005 | cbradney | 3235 | </source> |
12918 | cbradney | 3236 | <translation type="obsolete">setUnit(type) |
3237 | |||
3238 | Change l'unité de mesure du document. Les valeurs possibles pour l'unité sont |
||
3239 | définies par les constantes UNIT_<type>. |
||
3240 | |||
3241 | Lève une erreur ValueError si une unité invalide est fournie. |
||
3242 | </translation> |
||
9005 | cbradney | 3243 | </message> |
3244 | <message> |
||
12918 | cbradney | 3245 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="196"/> |
3246 | <source>getUnit() -> integer (Scribus unit constant) |
||
9005 | cbradney | 3247 | |
12918 | cbradney | 3248 | Returns the measurement units of the document. The returned value will be one |
3249 | of the UNIT_* constants: |
||
3250 | UNIT_INCHES, UNIT_MILLIMETERS, UNIT_PICAS, UNIT_POINTS. |
||
3251 | </source> |
||
3252 | <translation type="obsolete">getUnit() -> entier (constante Scribus) |
||
9005 | cbradney | 3253 | |
12918 | cbradney | 3254 | Retourne l'unité de mesure du document. La valeur retournée sera l'une des |
3255 | constantes UNIT_* : |
||
3256 | UNIT_INCHES, UNIT_MILLIMETERS, UNIT_PICAS, UNIT_POINTS.</translation> |
||
3257 | </message> |
||
3258 | <message> |
||
3259 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="206"/> |
||
3260 | <source>loadStylesFromFile("filename") |
||
3261 | |||
3262 | Loads paragraph styles from the Scribus document at "filename" into the |
||
3263 | current document. |
||
9005 | cbradney | 3264 | </source> |
12918 | cbradney | 3265 | <translation type="obsolete">loadStylesFromFile("fichier") |
3266 | |||
3267 | Charge les styles de paragraphe depuis le document Scribus nommé "fichier". |
||
3268 | </translation> |
||
9005 | cbradney | 3269 | </message> |
3270 | <message> |
||
12918 | cbradney | 3271 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="226"/> |
3272 | <source>closeMasterPage() |
||
9005 | cbradney | 3273 | |
12918 | cbradney | 3274 | Closes the currently active master page, if any, and returns editing |
3275 | to normal. Begin editing with editMasterPage(). |
||
9005 | cbradney | 3276 | </source> |
12918 | cbradney | 3277 | <translation type="obsolete">closeMasterPage() |
3278 | |||
3279 | Ferme le gabarit actuellement actif, s'il y en a un, et retourne au mode d'édition |
||
3280 | normal. L'édition d'un gabarit débute par editMasterPage().</translation> |
||
9005 | cbradney | 3281 | </message> |
3282 | <message> |
||
12918 | cbradney | 3283 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="233"/> |
3284 | <source>masterPageNames() |
||
9005 | cbradney | 3285 | |
12918 | cbradney | 3286 | Returns a list of the names of all master pages in the document. |
9005 | cbradney | 3287 | </source> |
12918 | cbradney | 3288 | <translation type="obsolete">masterPageNames() |
3289 | |||
3290 | Retourne une liste contenant les noms des gabarits existant dans le document.</translation> |
||
9005 | cbradney | 3291 | </message> |
3292 | <message> |
||
12918 | cbradney | 3293 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="241"/> |
3294 | <source>editMasterPage(pageName) |
||
9005 | cbradney | 3295 | |
12918 | cbradney | 3296 | Enables master page editing and opens the named master page |
3297 | for editing. Finish editing with closeMasterPage(). |
||
9005 | cbradney | 3298 | </source> |
12918 | cbradney | 3299 | <translation type="obsolete">editMasterPage(nomGabarit) |
3300 | |||
3301 | Active l'édition du gabarit nommé "nomGabarit". L'édition du gabarit se |
||
3302 | termine par closeMasterPage().</translation> |
||
9005 | cbradney | 3303 | </message> |
3304 | <message> |
||
12918 | cbradney | 3305 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="249"/> |
3306 | <source>createMasterPage(pageName) |
||
9005 | cbradney | 3307 | |
12918 | cbradney | 3308 | Creates a new master page named pageName and opens it for |
3309 | editing. |
||
3310 | </source> |
||
3311 | <translation type="obsolete">createMasterPage(nomGabarit) |
||
3312 | |||
3313 | Crée un nouveau gabarit nommé nomGabarit et l'ouvre pour édition.</translation> |
||
3314 | </message> |
||
3315 | <message> |
||
3316 | <location filename="../../scribus/plugins/scriptplugin/cmddoc.h" line="256"/> |
||
3317 | <source>deleteMasterPage(pageName) |
||
3318 | |||
3319 | Delete the named master page. |
||
3320 | </source> |
||
3321 | <translation type="obsolete">deleteMasterPage(nomGabarit) |
||
3322 | |||
3323 | Supprime le gabarit nommé nomGabarit.</translation> |
||
3324 | </message> |
||
3325 | <message> |
||
3326 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="51"/> |
||
3327 | <source>getLineColor(["name"]) -> string |
||
3328 | |||
3329 | Returns the name of the line color of the object "name". |
||
9005 | cbradney | 3330 | If "name" is not given the currently selected item is used. |
3331 | </source> |
||
12918 | cbradney | 3332 | <translation type="obsolete">getLineColor(["nom""]) -> chaîne |
3333 | |||
3334 | Retourne le nom de la couleur de filet de l'objet "nom". |
||
3335 | Si "nom" est omis, l'objet actuellement sélectionné est utilisé.</translation> |
||
9005 | cbradney | 3336 | </message> |
3337 | <message> |
||
12918 | cbradney | 3338 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="81"/> |
3339 | <source>getLineWidth(["name"]) -> integer |
||
9005 | cbradney | 3340 | |
12918 | cbradney | 3341 | Returns the line width of the object "name". If "name" |
3342 | is not given the currently selected Item is used. |
||
3343 | </source> |
||
3344 | <translation type="obsolete">getLineWidth(["nom"]) -> entier |
||
9005 | cbradney | 3345 | |
12918 | cbradney | 3346 | Retourne l'épaisseur de filet de l'objet "nom". |
3347 | Si "nom" est omis, l'objet actuellement sélectionné est utilisé.</translation> |
||
3348 | </message> |
||
3349 | <message> |
||
3350 | <location filename="../plugins/scriptplugin/cmdgetprop.h" line="102"/> |
||
3351 | <source>getLineJoin(["name"]) -> integer (see contants) |
||
3352 | |||
3353 | Returns the line join style of the object "name". If "name" is not given |
||
3354 | the currently selected item is used. The join types are: |
||
3355 | JOIN_BEVEL, JOIN_MITTER, JOIN_ROUND |
||
9005 | cbradney | 3356 | </source> |
12918 | cbradney | 3357 | <translation type="obsolete">getLineJoin(["nom"]) -> entier (voir constantes) |
9300 | jghali | 3358 | |
12918 | cbradney | 3359 | Retourne le type d'angle des filets de l'objet "nom". Si "nom" est omis, |
3360 | l'objet actuellement sélectionné est utilisé. Les types d'angles sont : |
||
3361 | JOIN_BEVEL, JOIN_MITTER, JOIN_ROUND</translation> |
||
3362 | </message> |
||
3363 | <message> |
||
3364 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="113"/> |
||
3365 | <source>getLineEnd(["name"]) -> integer (see constants) |
||
9300 | jghali | 3366 | |
12918 | cbradney | 3367 | Returns the line cap style of the object "name". If "name" is not given the |
3368 | currently selected item is used. The cap types are: |
||
3369 | CAP_FLAT, CAP_ROUND, CAP_SQUARE |
||
3370 | </source> |
||
3371 | <translation type="obsolete">getLineEnd(["nom"]) -> entier (voir constantes) |
||
3372 | |||
3373 | Retourne le type de terminaison des filets de l'objet "nom". Si "nom" est omis, |
||
3374 | l'objet actuellement sélectionné est utilisé. Les types de terminaisons sont : |
||
3375 | CAP_FLAT, CAP_ROUND, CAP_SQUARE</translation> |
||
3376 | </message> |
||
3377 | <message> |
||
3378 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="124"/> |
||
3379 | <source>getLineStyle(["name"]) -> integer (see constants) |
||
3380 | |||
3381 | Returns the line style of the object "name". If "name" is not given the |
||
3382 | currently selected item is used. Line style constants are: |
||
3383 | LINE_DASH, LINE_DASHDOT, LINE_DASHDOTDOT, LINE_DOT, LINE_SOLID |
||
3384 | </source> |
||
3385 | <translation type="obsolete">getLineStyle(["nom"]) -> entier (voir constantes) |
||
3386 | |||
3387 | Retourne le type de filet des filets de l'objet "nom". Si "nom" est omis, |
||
3388 | l'objet actuellement sélectionné est utilisé. Les types de filets sont : |
||
3389 | LINE_DASH, LINE_DASHDOT, LINE_DASHDOTDOT, LINE_DOT, LINE_SOLID |
||
9300 | jghali | 3390 | </translation> |
9005 | cbradney | 3391 | </message> |
3392 | <message> |
||
12918 | cbradney | 3393 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="155"/> |
3394 | <source>getImageScale(["name"]) -> (x,y) |
||
9005 | cbradney | 3395 | |
12918 | cbradney | 3396 | Returns a (x, y) tuple containing the scaling values of the image frame |
3397 | "name". If "name" is not given the currently selected item is used. |
||
3398 | </source> |
||
3399 | <translation type="obsolete">getImageScale(["nom"]) -> (x,y) |
||
9005 | cbradney | 3400 | |
12918 | cbradney | 3401 | Retourne un tuple (x,y) contenant les valeurs d'échelle du cadre d'image "nom". |
3402 | Si "nom" est omis, l'objet actuellement sélectionné est utilisé.</translation> |
||
3403 | </message> |
||
3404 | <message> |
||
3405 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="165"/> |
||
3406 | <source>getImageName(["name"]) -> string |
||
3407 | |||
3408 | Returns the filename for the image in the image frame. If "name" is not |
||
3409 | given the currently selected item is used. |
||
9005 | cbradney | 3410 | </source> |
12918 | cbradney | 3411 | <translation type="obsolete">getImageName(["nom"]) -> chaîne |
9300 | jghali | 3412 | |
12918 | cbradney | 3413 | Retourne le nom de fichier de l'image présente dans le cadre d'image "nom". |
3414 | Si "nom" est omis, l'objet actuellement sélectionné est utilisé. |
||
9300 | jghali | 3415 | </translation> |
9005 | cbradney | 3416 | </message> |
3417 | <message> |
||
12918 | cbradney | 3418 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="189"/> |
3419 | <source>getSize(["name"]) -> (width,height) |
||
9005 | cbradney | 3420 | |
12918 | cbradney | 3421 | Returns a (width, height) tuple with the size of the object "name". |
3422 | If "name" is not given the currently selected item is used. The size is |
||
3423 | expressed in the current measurement unit of the document - see UNIT_<type> |
||
3424 | for reference. |
||
3425 | </source> |
||
3426 | <translation type="obsolete">getSize(["nom"]) -> (hauteur,largeur) |
||
9005 | cbradney | 3427 | |
12918 | cbradney | 3428 | Retourne un tuple (hauteur,largeur) contenant la taille de l'objet "nom". |
3429 | Si "nom" est omis, l'objet actuellement sélectionné est utilisé. La taille est |
||
3430 | exprimée dans l'unité de mesure actuelle du document |
||
3431 | - voir UNIT_<type> à titre de référence.</translation> |
||
3432 | </message> |
||
3433 | <message> |
||
3434 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="200"/> |
||
3435 | <source>getRotation(["name"]) -> integer |
||
3436 | |||
3437 | Returns the rotation of the object "name". The value is expressed in degrees, |
||
3438 | and clockwise is positive. If "name" is not given the currently selected item |
||
3439 | is used. |
||
9005 | cbradney | 3440 | </source> |
12918 | cbradney | 3441 | <translation type="obsolete">getRotation(["nom"]) -> entier |
9300 | jghali | 3442 | |
12918 | cbradney | 3443 | Retourne l'angle de rotation de l'objet "nom". La valeur est exprimée en degrés et est |
3444 | positive pour une rotation dans le sens des aiguilles d'une montre. Si "nom" est omis, |
||
3445 | l'objet actuellement sélectionné est utilisé.</translation> |
||
3446 | </message> |
||
3447 | <message> |
||
3448 | <location filename="../../scribus/plugins/scriptplugin/cmdgetprop.h" line="209"/> |
||
3449 | <source>getAllObjects() -> list |
||
9300 | jghali | 3450 | |
12918 | cbradney | 3451 | Returns a list containing the names of all objects on the current page. |
3452 | </source> |
||
3453 | <translation type="obsolete">getAllObjects() -> liste |
||
3454 | |||
3455 | Retourne une liste contenant les noms de tous les objets sur la page courante.</translation> |
||
9005 | cbradney | 3456 | </message> |
3457 | <message> |
||
12918 | cbradney | 3458 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="35"/> |
3459 | <source>moveObjectAbs(x, y [, "name"]) |
||
3460 | |||
3461 | Moves the object "name" to a new location. The coordinates are expressed in |
||
3462 | the current measurement unit of the document (see UNIT constants). If "name" |
||
3463 | is not given the currently selected item is used. If the object "name" |
||
3464 | belongs to a group, the whole group is moved. |
||
3465 | </source> |
||
3466 | <translation type="obsolete">moveObjectAbs(x, y [, "nom"]) |
||
3467 | |||
3468 | Déplace l'objet "nom" vers la nouvelle position. Les coordonnées sont à fournir dans l'unité |
||
3469 | de mesure actuelle du document (voir constantes UNIT). Si "nom" est omis, l'objet |
||
3470 | actuellement sélectionné est utilisé. Si l'objet "nom" appartient à un groupe, le groupe |
||
3471 | entier est déplacé. </translation> |
||
9005 | cbradney | 3472 | </message> |
9729 | cbradney | 3473 | <message> |
12918 | cbradney | 3474 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="69"/> |
3475 | <source>sizeObject(width, height [, "name"]) |
||
10166 | cbradney | 3476 | |
12918 | cbradney | 3477 | Resizes the object "name" to the given width and height. If "name" |
3478 | is not given the currently selected item is used. |
||
10166 | cbradney | 3479 | </source> |
12918 | cbradney | 3480 | <translation type="obsolete">sizeObject(hauteur, largeur [, "nom"]) |
3481 | |||
3482 | Redimensionne l'objet "nom" en lui attribuant "hauteur" et "largeur". |
||
3483 | Si "nom" est omis, l'objet actuellement sélectionné est utilisé.</translation> |
||
10166 | cbradney | 3484 | </message> |
3485 | <message> |
||
12918 | cbradney | 3486 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="80"/> |
3487 | <source>getSelectedObject([nr]) -> string |
||
9729 | cbradney | 3488 | |
12918 | cbradney | 3489 | Returns the name of the selected object. "nr" if given indicates the number |
3490 | of the selected object, e.g. 0 means the first selected object, 1 means the |
||
3491 | second selected Object and so on. |
||
3492 | </source> |
||
3493 | <translation type="obsolete">getSelectedObject([nr]) -> chaîne |
||
9729 | cbradney | 3494 | |
12918 | cbradney | 3495 | Retourne le nom de l'objet sélectionné. Si "nr" est fourni, il indique l'objet |
3496 | sélectionné : 0 indique le premier objet sélectionné, 1 le second objet |
||
3497 | sélectionné et ainsi de suite.</translation> |
||
3498 | </message> |
||
3499 | <message> |
||
3500 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="89"/> |
||
3501 | <source>selectionCount() -> integer |
||
9729 | cbradney | 3502 | |
12918 | cbradney | 3503 | Returns the number of selected objects. |
3504 | </source> |
||
3505 | <translation type="obsolete">selectionCount() -> entier |
||
9729 | cbradney | 3506 | |
12918 | cbradney | 3507 | Retourne le nombre d'objets sélectionnés.</translation> |
3508 | </message> |
||
3509 | <message> |
||
3510 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="98"/> |
||
3511 | <source>selectObject("name") |
||
3512 | |||
3513 | Selects the object with the given "name". |
||
9729 | cbradney | 3514 | </source> |
12918 | cbradney | 3515 | <translation type="obsolete">selectObject("nom") |
3516 | |||
3517 | Sélectionne l'objet nommé "nom".</translation> |
||
9729 | cbradney | 3518 | </message> |
10842 | cbradney | 3519 | <message> |
12918 | cbradney | 3520 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="107"/> |
3521 | <source>deselectAll() |
||
10842 | cbradney | 3522 | |
12918 | cbradney | 3523 | Deselects all objects in the whole document. |
10842 | cbradney | 3524 | </source> |
12918 | cbradney | 3525 | <translation type="obsolete">deselectAll() |
3526 | |||
3527 | Désélectionne tous les objets dans le document entier.</translation> |
||
10842 | cbradney | 3528 | </message> |
3529 | <message> |
||
12918 | cbradney | 3530 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="118"/> |
3531 | <source>groupObjects(list) |
||
10842 | cbradney | 3532 | |
12918 | cbradney | 3533 | Groups the objects named in "list" together. "list" must contain the names |
3534 | of the objects to be grouped. If "list" is not given the currently selected |
||
3535 | items are used. |
||
10842 | cbradney | 3536 | </source> |
12918 | cbradney | 3537 | <translation type="obsolete">groupObjects(liste) |
3538 | |||
3539 | Groupe les objets dont le nom est fourni dans "liste". "liste" doit contenir le |
||
3540 | nom des objets à grouper. Si "liste" est omis, les objets actuellement |
||
3541 | sélectionnés sont utilisés.</translation> |
||
10842 | cbradney | 3542 | </message> |
3543 | <message> |
||
12918 | cbradney | 3544 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="126"/> |
3545 | <source>unGroupObjects("name") |
||
10842 | cbradney | 3546 | |
12918 | cbradney | 3547 | Destructs the group the object "name" belongs to.If "name" is not given the currently selected item is used.</source> |
3548 | <translation type="obsolete">unGroupObjects("nom") |
||
10842 | cbradney | 3549 | |
12918 | cbradney | 3550 | Détruit le groupe auquel l'objet "nom" appartient. Si "nom" est omis, l'objet actuellement sélectionné est utilisé.</translation> |
3551 | </message> |
||
3552 | <message> |
||
3553 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="141"/> |
||
3554 | <source>scaleGroup(factor [,"name"]) |
||
3555 | |||
3556 | Scales the group the object "name" belongs to. Values greater than 1 enlarge |
||
3557 | the group, values smaller than 1 make the group smaller e.g a value of 0.5 |
||
3558 | scales the group to 50 % of its original size, a value of 1.5 scales the group |
||
3559 | to 150 % of its original size. The value for "factor" must be greater than |
||
3560 | 0. If "name" is not given the currently selected item is used. |
||
3561 | |||
3562 | May raise ValueError if an invalid scale factor is passed. |
||
10842 | cbradney | 3563 | </source> |
12918 | cbradney | 3564 | <translation type="obsolete">scaleGroup(facteur [,"nom"]) |
3565 | |||
3566 | Modifie l'échelle du groupe auquel l'objet "nom" appartient. Les facteurs supérieurs |
||
3567 | à 1 agrandissent le groupe, et les valeurs inférieures à 1 le réduisent; une valeur de |
||
3568 | 0.5 redimensionne le groupe à 50% de sa taille d'origine, et une valeur de 1.5 le |
||
3569 | redimensionne à 150% de sa taille d'origine. "facteur" doit être supérieur à 0. |
||
3570 | Si "nom" est omis, l'objet actuellement sélectionné est utilisé. |
||
3571 | |||
3572 | Lève l'erreur ValueError si un facteur invalide est fourni.</translation> |
||
10842 | cbradney | 3573 | </message> |
3574 | <message> |
||
12918 | cbradney | 3575 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="153"/> |
3576 | <source>loadImage("filename" [, "name"]) |
||
10842 | cbradney | 3577 | |
12918 | cbradney | 3578 | Loads the picture "picture" into the image frame "name". If "name" is |
3579 | not given the currently selected item is used. |
||
10842 | cbradney | 3580 | |
12918 | cbradney | 3581 | May raise WrongFrameTypeError if the target frame is not an image frame |
10842 | cbradney | 3582 | </source> |
12918 | cbradney | 3583 | <translation type="obsolete">loadImage("fichier" [, "nom"]) |
3584 | |||
3585 | Charge l'image "fichier" dans le cadre d'image "nom". Si "nom" est omis, |
||
3586 | l'objet actuellement sélectionné est utilisé. |
||
3587 | |||
3588 | Lève l'erreur WrongFrameTypeError si l'objet n'est pas un cadre d'image |
||
3589 | </translation> |
||
10842 | cbradney | 3590 | </message> |
11652 | cbradney | 3591 | <message> |
12918 | cbradney | 3592 | <location filename="../../scribus/plugins/scriptplugin/cmdmani.h" line="166"/> |
3593 | <source>scaleImage(x, y [, "name"]) |
||
11652 | cbradney | 3594 | |
12918 | cbradney | 3595 | Sets the scaling factors of the picture in the image frame "name". |
3596 | If "name" is not given the currently selected item is used. A number of 1 |
||
3597 | means 100 %. |
||
3598 | |||
3599 | May raise WrongFrameTypeError if the target frame is not an image frame |
||