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