xref: /aoo41x/main/vcl/source/src/print.src (revision cdf0e10c)
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *
9 * This file is part of OpenOffice.org.
10 *
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
20 *
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org.  If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
25 *
26 ************************************************************************/
27
28#include "svids.hrc"
29
30ModalDialog SV_DLG_PRINT
31{
32    HelpID = ".HelpID:vcl:PrintDialog:Dialog";
33    Text [en-US] = "Print";
34    Closeable = TRUE;
35    Sizeable = TRUE;
36    Moveable = TRUE;
37	Maxable = TRUE;
38    SVLook = TRUE;
39
40    Size = MAP_APPFONT( 350, 215 );
41
42    OKButton SV_PRINT_OK
43    {
44        DefButton = TRUE;
45        Pos = MAP_APPFONT( 240, 195 );
46        Size = MAP_APPFONT( 50, 15 );
47        Text [en-US] = "~Print";
48        HelpID = ".HelpID:vcl:PrintDialog:OK";
49    };
50    CancelButton SV_PRINT_CANCEL
51    {
52        Pos = MAP_APPFONT( 295, 195 );
53        Size = MAP_APPFONT( 50, 15 );
54        HelpID = ".HelpID:vcl:PrintDialog:Cancel";
55    };
56    HelpButton SV_PRINT_HELP
57    {
58        Pos = MAP_APPFONT( 5, 5 );
59        Size = MAP_APPFONT( 50, 15 );
60        HelpID = ".HelpID:vcl:PrintDialog:Help";
61    };
62
63    Window SV_PRINT_PAGE_PREVIEW
64    {
65        Pos = MAP_APPFONT( 5, 5 );
66        Size = MAP_APPFONT( 130, 130 );
67        Border = FALSE;
68        HelpID = ".HelpID:vcl:PrintDialog:Preview";
69    };
70    NumericField SV_PRINT_PAGE_EDIT
71    {
72        Pos = MAP_APPFONT( 5, 140 );
73        Size = MAP_APPFONT( 30, 12 );
74        SVLook = TRUE;
75        Spin = FALSE;
76        Border = TRUE;
77        HelpID = ".HelpID:vcl:PrintDialog:PageEdit";
78    };
79    FixedText SV_PRINT_PAGE_TXT
80    {
81        Pos = MAP_APPFONT( 40,142 );
82        Size = MAP_APPFONT( 30, 12 );
83        Text [ en-US ] = "/ %n";
84        VCenter = TRUE;
85        HelpID = ".HelpID:vcl:PrintDialog:NumPagesText";
86    };
87    PushButton SV_PRINT_PAGE_FORWARD
88    {
89        Pos = MAP_APPFONT( 95, 140 );
90        Size = MAP_APPFONT( 15, 12 );
91        HelpID = ".HelpID:vcl:PrintDialog:ForwardBtn";
92    };
93    PushButton SV_PRINT_PAGE_BACKWARD
94    {
95        Pos = MAP_APPFONT( 80, 140 );
96        Size = MAP_APPFONT( 15, 12 );
97        HelpID = ".HelpID:vcl:PrintDialog:BackwardBtn";
98    };
99    TabControl SV_PRINT_TABCTRL
100    {
101        Pos = MAP_APPFONT( 140, 5 );
102        Size = MAP_APPFONT( 205, 175 );
103        HelpID = ".HelpID:vcl:PrintDialog:TabPages";
104    };
105    FixedLine SV_PRINT_BUTTONLINE
106    {
107        Pos = MAP_APPFONT( 0, 185 );
108        Size = MAP_APPFONT( 350, 8 );
109    };
110    String SV_PRINT_NOPAGES
111    {
112        Text [en-US] = "No pages";
113    };
114
115    String SV_PRINT_TOFILE_TXT
116    {
117        Text [en-US] = "Print to File...";
118    };
119
120    String SV_PRINT_DEFPRT_TXT
121    {
122        Text [en-US] = "Default printer";
123    };
124
125
126    String SV_PRINT_PRINTPREVIEW_TXT
127    {
128        Text [en-US] = "Print preview";
129    };
130
131    TabPage SV_PRINT_TAB_NUP
132    {
133        HelpID = ".HelpID:vcl:PrintDialog:NUpPage";
134        Text [en-US] = "Page Layout";
135        Hide = TRUE;
136
137        FixedLine SV_PRINT_PRT_NUP_LAYOUT_FL
138        {
139            Pos = MAP_APPFONT( 5, 5 );
140            Size = MAP_APPFONT( 150, 10 );
141            Text [en-US] = "Layout";
142        };
143        RadioButton SV_PRINT_PRT_NUP_BROCHURE_BTN
144        {
145            HelpID = ".HelpID:vcl:PrintDialog:NUpPage:Brochure";
146            Pos = MAP_APPFONT( 0, 0 );
147            Size = MAP_APPFONT( 10, 10 );
148            Text = "";
149        };
150        RadioButton SV_PRINT_PRT_NUP_PAGES_BTN
151        {
152            HelpID = ".HelpID:vcl:PrintDialog:NUpPage:PagesPerSheet";
153            Pos = MAP_APPFONT( 0, 0 );
154            Size = MAP_APPFONT( 10, 10 );
155            Text [en-US] = "Pa~ges per sheet";
156        };
157        ListBox SV_PRINT_PRT_NUP_PAGES_BOX
158        {
159            HelpID = ".HelpID:vcl:PrintDialog:NUpPage:PagesPerSheetBox";
160            Pos = MAP_APPFONT( 0, 0 );
161            Size = MAP_APPFONT( 10, 80 );
162            Border = TRUE;
163            DropDown = TRUE;
164            CurPos = 0;
165            StringList [en-US] =
166            {
167                < "1"; 1; >;
168                < "2"; 2; >;
169                < "4"; 4; >;
170                < "6"; 6; >;
171                < "9"; 9; >;
172                < "16"; 16; >;
173                < "Custom"; 0xffff; >;
174            };
175        };
176        FixedText SV_PRINT_PRT_NUP_NUM_PAGES_TXT
177        {
178            Pos = MAP_APPFONT( 0, 0 );
179            Size = MAP_APPFONT( 10, 10 );
180            Text [en-US] = "P~ages";
181            VCenter = TRUE;
182        };
183        NumericField SV_PRINT_PRT_NUP_COLS_EDT
184        {
185            HelpID = ".HelpID:vcl:PrintDialog:NUpPage:ColumnsBox";
186            Pos = MAP_APPFONT( 55, 20 );
187            Size = MAP_APPFONT( 40, 12 );
188            Border = TRUE;
189            Spin = TRUE;
190            Minimum = 1;
191            Maximum = 32;
192            Value = 1;
193        };
194        FixedText SV_PRINT_PRT_NUP_TIMES_TXT
195        {
196            Pos = MAP_APPFONT( 10, 35 );
197            Size = MAP_APPFONT( 40, 10 );
198            Text [en-US] = "b~y";
199            VCenter = TRUE;
200        };
201        NumericField SV_PRINT_PRT_NUP_ROWS_EDT
202        {
203            HelpID = ".HelpID:vcl:PrintDialog:NUpPage:RowsBox";
204            Pos = MAP_APPFONT( 55, 35 );
205            Size = MAP_APPFONT( 40, 12 );
206            Border = TRUE;
207            Spin = TRUE;
208            Minimum = 1;
209            Maximum = 32;
210            Value = 1;
211        };
212        FixedText SV_PRINT_PRT_NUP_MARGINS_PAGES_1_TXT
213        {
214            Pos = MAP_APPFONT( 10, 95 );
215            Size = MAP_APPFONT( 40, 10 );
216            Text [en-US] = "~Distance";
217        };
218        MetricField SV_PRINT_PRT_NUP_MARGINS_PAGES_EDT
219        {
220            HelpID = ".HelpID:vcl:PrintDialog:NUpPage:PageMarginBox";
221            Pos = MAP_APPFONT( 55, 95 );
222            Size = MAP_APPFONT( 40, 12 );
223            Spin = TRUE;
224            Border = TRUE;
225            Value = 0;
226            Unit = FUNIT_MM;
227        };
228        FixedText SV_PRINT_PRT_NUP_MARGINS_PAGES_2_TXT
229        {
230            Pos = MAP_APPFONT( 10, 95 );
231            Size = MAP_APPFONT( 40, 10 );
232            Text [en-US] = "between pages";
233        };
234        FixedText SV_PRINT_PRT_NUP_MARGINS_SHEET_1_TXT
235        {
236            Pos = MAP_APPFONT( 110, 95 );
237            Size = MAP_APPFONT( 40, 10 );
238            Text [en-US] = "~Margin";
239        };
240        MetricField SV_PRINT_PRT_NUP_MARGINS_SHEET_EDT
241        {
242            HelpID = ".HelpID:vcl:PrintDialog:NUpPage:SheetMarginBox";
243            Pos = MAP_APPFONT( 155, 95 );
244            Size = MAP_APPFONT( 40, 12 );
245            Spin = TRUE;
246            Border = TRUE;
247            Value = 0;
248            Unit = FUNIT_MM;
249        };
250        FixedText SV_PRINT_PRT_NUP_MARGINS_SHEET_2_TXT
251        {
252            Pos = MAP_APPFONT( 110, 95 );
253            Size = MAP_APPFONT( 40, 10 );
254            Text [en-US] = "to sheet border";
255        };
256        FixedText SV_PRINT_PRT_NUP_ORIENTATION_TXT
257        {
258            Pos = MAP_APPFONT( 0, 0 );
259            Size = MAP_APPFONT( 10, 10 );
260            Text [en-US] = "~Orientation";
261        };
262        ListBox SV_PRINT_PRT_NUP_ORIENTATION_BOX
263        {
264            HelpID = ".HelpID:vcl:PrintDialog:NUpPage:OrientationBox";
265            Pos = MAP_APPFONT( 0, 0 );
266            Size = MAP_APPFONT( 10, 40 );
267            Border = TRUE;
268            DropDown = TRUE;
269            CurPos = 0;
270            StringList [en-US] =
271            {
272                < "Automatic"; SV_PRINT_PRT_NUP_ORIENTATION_AUTOMATIC; >;
273                < "Portrait"; SV_PRINT_PRT_NUP_ORIENTATION_PORTRAIT; >;
274                < "Landscape"; SV_PRINT_PRT_NUP_ORIENTATION_LANDSCAPE; >;
275            };
276        };
277        FixedText SV_PRINT_PRT_NUP_ORDER_TXT
278        {
279            Pos = MAP_APPFONT( 0, 0 );
280            Size = MAP_APPFONT( 10, 10 );
281            Text [en-US] = "Order";
282        };
283        ListBox SV_PRINT_PRT_NUP_ORDER_BOX
284        {
285            HelpID = ".HelpID:vcl:PrintDialog:NUpPage:OrderBox";
286            Pos = MAP_APPFONT( 0, 0 );
287            Size = MAP_APPFONT( 10, 50 );
288            DropDown = TRUE;
289            Border = TRUE;
290            CurPos = 0;
291            StringList [en-US] =
292            {
293                < "left to right, then down"; SV_PRINT_PRT_NUP_ORDER_LRTB; >;
294                < "top to bottom, then right"; SV_PRINT_PRT_NUP_ORDER_TBLR; >;
295                < "top to bottom, then left"; SV_PRINT_PRT_NUP_ORDER_TBRL; >;
296                < "right to left, then down"; SV_PRINT_PRT_NUP_ORDER_RLTB; >;
297            };
298        };
299        CheckBox SV_PRINT_PRT_NUP_BORDER_CB
300        {
301            HelpID = ".HelpID:vcl:PrintDialog:NUpPage:BorderBox";
302            Pos = MAP_APPFONT( 10, 65 );
303            Size = MAP_APPFONT( 150, 12 );
304            Text [en-US] = "Draw a border around each page";
305        };
306    };
307
308    TabPage SV_PRINT_TAB_JOB
309    {
310        HelpID = ".HelpID:vcl:PrintDialog:JobPage";
311        Text [en-US] = "General";
312        Hide = TRUE;
313
314        FixedLine SV_PRINT_PRINTERS_FL
315        {
316            Pos = MAP_APPFONT( 5, 5 );
317            Size = MAP_APPFONT( 100, 10 );
318            Text [ en-US ] = "Prin~ter";
319        };
320        ListBox SV_PRINT_PRINTERS
321        {
322            HelpID = ".HelpID:vcl:PrintDialog:JobPage:PrinterList";
323            Pos = MAP_APPFONT( 5, 5 );
324            Size = MAP_APPFONT( 100, 80 );
325            Border = TRUE;
326            Sort = TRUE;
327        };
328        CheckBox SV_PRINT_DETAILS_BTN
329        {
330            HelpID = ".HelpID:vcl:PrintDialog:JobPage:DetailsBtn";
331            Pos = MAP_APPFONT( 5, 5 );
332            Size = MAP_APPFONT( 5, 5 );
333            Text [en-US] = "Details";
334        };
335        FixedText SV_PRINT_STATUS_TXT
336        {
337            Pos = MAP_APPFONT( 5, 5 );
338            Size = MAP_APPFONT( 100, 10 );
339            Text [en-US] = "Status:";
340        };
341        FixedText SV_PRINT_LOCATION_TXT
342        {
343            Pos = MAP_APPFONT( 5, 5 );
344            Size = MAP_APPFONT( 100, 10 );
345            Text [en-US] = "Location:";
346        };
347        FixedText SV_PRINT_COMMENT_TXT
348        {
349            Pos = MAP_APPFONT( 5, 5 );
350            Size = MAP_APPFONT( 100, 10 );
351            Text [en-US] = "Comment:";
352        };
353        PushButton SV_PRINT_PRT_SETUP
354        {
355            HelpID = ".HelpID:vcl:PrintDialog:JobPage:Properties";
356            Pos = MAP_APPFONT( 115, 5 );
357            Size = MAP_APPFONT( 50, 15 );
358            Text [en-US] = "Properties...";
359        };
360        FixedLine SV_PRINT_COPIES
361        {
362            Pos = MAP_APPFONT( 5, 35 );
363            Size = MAP_APPFONT( 150, 10 );
364            Text [en-US] = "Range and copies";
365        };
366        FixedText SV_PRINT_COPYCOUNT
367        {
368            Pos = MAP_APPFONT( 10, 45 );
369            Size = MAP_APPFONT( 80, 10 );
370            Text [en-US] = "Number of copies";
371        };
372        NumericField SV_PRINT_COPYCOUNT_FIELD
373        {
374            HelpID = ".HelpID:vcl:PrintDialog:JobPage:Copies";
375            Pos = MAP_APPFONT( 10, 56 );
376            Size = MAP_APPFONT( 40, 12 );
377            Border = TRUE;
378            Spin = TRUE;
379            Minimum = 1;
380            Maximum = 16384;
381            Value = 1;
382        };
383        FixedImage SV_PRINT_COLLATE_IMAGE
384        {
385            Pos = MAP_APPFONT( 95, 60 );
386            Size = MAP_PIXEL( 80, 30 );
387        };
388        CheckBox SV_PRINT_COLLATE
389        {
390            HelpID = ".HelpID:vcl:PrintDialog:JobPage:Collate";
391            Pos = MAP_APPFONT( 95, 45 );
392            Size = MAP_APPFONT( 70, 10 );
393            Text [en-US] = "Collate";
394        };
395
396        Image SV_PRINT_COLLATE_IMG
397        {
398            ImageBitmap = Bitmap { File = "collate.png" ; };
399        };
400
401        Image SV_PRINT_NOCOLLATE_IMG
402        {
403            ImageBitmap = Bitmap { File = "ncollate.png" ; };
404        };
405
406        Image SV_PRINT_COLLATE_HC_IMG
407        {
408            ImageBitmap = Bitmap { File = "collate_h.png" ; };
409        };
410
411        Image SV_PRINT_NOCOLLATE_HC_IMG
412        {
413            ImageBitmap = Bitmap { File = "ncollate_h.png" ; };
414        };
415
416        CheckBox SV_PRINT_OPT_REVERSE
417        {
418            HelpID = ".HelpID:vcl:PrintDialog:OptPage:ToReverse";
419            Pos = MAP_APPFONT( 10, 50 );
420            Size = MAP_APPFONT( 200, 12 );
421            Text [en-US] = "Print in ~reverse page order";
422        };
423    };
424
425    TabPage SV_PRINT_TAB_OPT
426    {
427        Text [en-US] = "Options";
428        Hide = TRUE;
429        HelpID = ".HelpID:vcl:PrintDialog:OptPage";
430
431        FixedLine SV_PRINT_OPT_PRINT_FL
432        {
433            Pos = MAP_APPFONT( 5, 5 );
434            Size = MAP_APPFONT( 150, 10 );
435            Text [en-US] = "Options";
436        };
437        CheckBox SV_PRINT_OPT_TOFILE
438        {
439            HelpID = ".HelpID:vcl:PrintDialog:OptPage:ToFile";
440            Pos = MAP_APPFONT( 10, 20 );
441            Size = MAP_APPFONT( 200, 12 );
442            Text [en-US] = "Print to ~file";
443        };
444        CheckBox SV_PRINT_OPT_SINGLEJOBS
445        {
446            HelpID = ".HelpID:vcl:PrintDialog:OptPage:SingleJobs";
447            Pos = MAP_APPFONT( 10, 35 );
448            Size = MAP_APPFONT( 200, 12 );
449            Text [en-US] = "~Create single print jobs for collated output";
450        };
451    };
452};
453
454ModelessDialog SV_DLG_PRINT_PROGRESS
455{
456    HelpID = "vcl:ModelessDialog:SV_DLG_PRINT_PROGRESS";
457    Text [en-US] = "Printing";
458    Closeable = FALSE;
459    Sizeable = FALSE;
460    Moveable = TRUE;
461    SVLook = TRUE;
462
463    Size = MAP_APPFONT( 120, 70 );
464
465    CancelButton SV_PRINT_PROGRESS_CANCEL
466    {
467        Pos = MAP_APPFONT( 35, 50 );
468        Size = MAP_APPFONT( 50, 15 );
469    };
470    FixedText SV_PRINT_PROGRESS_TEXT
471    {
472        Pos = MAP_APPFONT( 5,10 );
473        Size = MAP_APPFONT( 110, 10 );
474        Text [ en-US ] = "Page %p of %n";
475        Center = TRUE;
476    };
477};
478
479ErrorBox SV_PRINT_NOPRINTERWARNING
480{
481    Title = "%PRODUCTNAME";
482    Message [en-US] = "No default printer found.\nPlease choose a printer and try again.";
483};
484
485ErrorBox SV_PRINT_NOCONTENT
486{
487    Title = "%PRODUCTNAME";
488    Message [en-US] = "There are no pages to be printed. Please check your document for ranges relevant to printing.";
489};
490
491StringArray SV_PRINT_NATIVE_STRINGS
492{
493    ItemList [en-US] =
494    {
495        < "Preview"; >;
496        < "Page number"; >;
497        < "Number of pages"; >;
498        < "More"; >;
499        < "Print selection only"; >;
500    };
501};
502
503StringArray RID_STR_PAPERNAMES
504{
505    ItemList [en-US] =
506    {
507        < "A0"; >;
508        < "A1"; >;
509        < "A2"; >;
510        < "A3"; >;
511        < "A4"; >;
512        < "A5"; >;
513        < "B4 (ISO)"; >;
514        < "B5 (ISO)"; >;
515        < "Letter"; >;
516        < "Legal"; >;
517        < "Tabloid"; >;
518        < "User Defined"; >;
519        < "B6 (ISO)"; >;
520        < "C4 Envelope"; >;
521        < "C5 Envelope"; >;
522        < "C6 Envelope"; >;
523        < "C6/5 Envelope"; >;
524        < "DL Envelope"; >;
525        < "Dia Slide"; >;
526        < "Screen"; >;
527        < "C"; >;
528        < "D"; >;
529        < "E"; >;
530        < "Executive"; >;
531        < "Long Bond"; >;
532        < "#8 (Monarch) Envelope"; >;
533        < "#6 3/4 (Personal) Envelope"; >;
534        < "#9 Envelope"; >;
535        < "#10 Envelope"; >;
536        < "#11 Envelope"; >;
537        < "#12 Envelope"; >;
538        < "16 Kai"; >;
539        < "32 Kai"; >;
540        < "Big 32 Kai"; >;
541        < "B4 (JIS)"; >;
542        < "B5 (JIS)"; >;
543        < "B6 (JIS)"; >;
544    };
545};
546
547