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