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