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