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#include "PageNumber.hrc"
24#include "RptResId.hrc"
25#include "helpids.hrc"
26#ifndef _GLOBLMN_HRC
27#include <svx/globlmn.hrc>
28#endif
29#ifndef _SBASLTID_HRC
30#include <svx/svxids.hrc>
31#endif
32
33
34ModalDialog RID_PAGENUMBERS
35{
36	OutputSize = TRUE ;
37	SVLook = TRUE ;
38    Size = MAP_APPFONT ( PAGE_WIDTH , PAGE_HEIGHT ) ;
39	Text [ en-US ] = "Page Numbers" ;
40	HelpId = HID_RPT_PAGENUMBERS_DLG;
41	Moveable = TRUE ;
42	Closeable = TRUE ;
43
44	FixedLine FL_FORMAT
45	{
46		Pos = MAP_APPFONT ( RELATED_CONTROLS , RELATED_CONTROLS ) ;
47		Size = MAP_APPFONT ( PAGE_WIDTH - 2*RELATED_CONTROLS, FIXEDTEXT_HEIGHT ) ;
48		Text [ en-US ] = "Format";
49	};
50
51	RadioButton RB_PAGE_N
52	{
53	    HelpID = "reportdesign:RadioButton:RID_PAGENUMBERS:RB_PAGE_N";
54		Pos = MAP_APPFONT ( UNRELATED_CONTROLS + RELATED_CONTROLS, 2*RELATED_CONTROLS + FIXEDTEXT_HEIGHT) ;
55		Size = MAP_APPFONT ( PAGE_WIDTH - 2*RELATED_CONTROLS , FIXEDTEXT_HEIGHT ) ;
56		Group = TRUE;
57		Check = TRUE;
58        Text [ en-US ]  = "Page N";
59	};
60	RadioButton RB_PAGE_N_OF_M
61	{
62	    HelpID = "reportdesign:RadioButton:RID_PAGENUMBERS:RB_PAGE_N_OF_M";
63		Pos = MAP_APPFONT ( UNRELATED_CONTROLS + RELATED_CONTROLS, 3*RELATED_CONTROLS + 2*FIXEDTEXT_HEIGHT) ;
64		Size = MAP_APPFONT ( PAGE_WIDTH - 2*RELATED_CONTROLS , FIXEDTEXT_HEIGHT ) ;
65        Text [ en-US ]  = "Page N of M";
66	};
67
68	FixedLine FL_POSITION
69	{
70		Pos = MAP_APPFONT ( RELATED_CONTROLS , 3*RELATED_CONTROLS + UNRELATED_CONTROLS + 3*FIXEDTEXT_HEIGHT) ;
71		Size = MAP_APPFONT ( PAGE_WIDTH - 2*RELATED_CONTROLS , FIXEDTEXT_HEIGHT ) ;
72		Text [ en-US ] = "Position";
73	};
74
75	RadioButton RB_PAGE_TOPPAGE
76	{
77	    HelpID = "reportdesign:RadioButton:RID_PAGENUMBERS:RB_PAGE_TOPPAGE";
78		Pos = MAP_APPFONT ( UNRELATED_CONTROLS + RELATED_CONTROLS, 4*RELATED_CONTROLS + UNRELATED_CONTROLS + 4*FIXEDTEXT_HEIGHT) ;
79		Size = MAP_APPFONT ( PAGE_WIDTH - 2*RELATED_CONTROLS , FIXEDTEXT_HEIGHT ) ;
80		Group = TRUE;
81		Check = TRUE;
82        Text [ en-US ]  = "Top of Page (Header)";
83	};
84	RadioButton RB_PAGE_BOTTOMPAGE
85	{
86	    HelpID = "reportdesign:RadioButton:RID_PAGENUMBERS:RB_PAGE_BOTTOMPAGE";
87		Pos = MAP_APPFONT ( UNRELATED_CONTROLS + RELATED_CONTROLS, 5*RELATED_CONTROLS + UNRELATED_CONTROLS + 5*FIXEDTEXT_HEIGHT) ;
88		Size = MAP_APPFONT ( PAGE_WIDTH - 2*RELATED_CONTROLS , FIXEDTEXT_HEIGHT ) ;
89        Text [ en-US ]  = "Bottom of Page (Footer)";
90	};
91
92	FixedLine FL_MISC
93	{
94		Pos = MAP_APPFONT ( RELATED_CONTROLS , 5*RELATED_CONTROLS + 2*UNRELATED_CONTROLS + 6*FIXEDTEXT_HEIGHT) ;
95		Size = MAP_APPFONT ( PAGE_WIDTH - 2*RELATED_CONTROLS , FIXEDTEXT_HEIGHT ) ;
96		Text [ en-US ] = "General";
97	};
98
99	FixedText FL_ALIGNMENT
100	{
101		Pos = MAP_APPFONT ( UNRELATED_CONTROLS , 6*RELATED_CONTROLS + 2*UNRELATED_CONTROLS + 7*FIXEDTEXT_HEIGHT) ;
102		Size = MAP_APPFONT ( FIXEDTEXT_WIDTH, FIXEDTEXT_HEIGHT ) ;
103		Text [ en-US ] = "Alignment:";
104	};
105	ListBox LST_ALIGNMENT
106	{
107	    HelpID = "reportdesign:ListBox:RID_PAGENUMBERS:LST_ALIGNMENT";
108		Border = TRUE;
109		Pos = MAP_APPFONT( 2*UNRELATED_CONTROLS + FIXEDTEXT_WIDTH , 6*RELATED_CONTROLS + 2*UNRELATED_CONTROLS + 7*FIXEDTEXT_HEIGHT -1);
110		Size = MAP_APPFONT( LISTBOX_WIDTH, 60 );
111		DropDown = TRUE;
112		TabStop = TRUE;
113		CurPos = 1 ;
114		StringList [ en-US ] =
115		{
116			< "Left" ; Default ; > ;
117			< "Center" ; Default ; > ;
118			< "Right" ; Default ; > ;
119			//< "Inside" ; Default ; > ;
120			//< "Outside" ; Default ; > ;
121		};
122	};
123	CheckBox CB_SHOWNUMBERONFIRSTPAGE
124	{
125	    HelpID = "reportdesign:CheckBox:RID_PAGENUMBERS:CB_SHOWNUMBERONFIRSTPAGE";
126		Pos = MAP_APPFONT ( UNRELATED_CONTROLS , 6*RELATED_CONTROLS + 3*UNRELATED_CONTROLS + 8*FIXEDTEXT_HEIGHT) ;
127		Size = MAP_APPFONT ( PAGE_WIDTH - 2*RELATED_CONTROLS , FIXEDTEXT_HEIGHT ) ;
128		Check = TRUE;
129        Text [ en-US ]  = "Show Number on First Page";
130	};
131	FixedLine FL_SEPARATOR1
132	{
133		Pos = MAP_APPFONT ( RELATED_CONTROLS , 6*RELATED_CONTROLS + 4*UNRELATED_CONTROLS + 9*FIXEDTEXT_HEIGHT ) ;
134		Size = MAP_APPFONT ( PAGE_WIDTH - 2*RELATED_CONTROLS , 1 ) ;
135	};
136	OKButton PB_OK
137	{
138		Pos = MAP_APPFONT ( UNRELATED_CONTROLS, 7*RELATED_CONTROLS + 4*UNRELATED_CONTROLS + 9*FIXEDTEXT_HEIGHT +1) ;
139		Size = MAP_APPFONT ( BUTTON_WIDTH , BUTTON_HEIGHT ) ;
140		TabStop = TRUE ;
141		DefButton = TRUE ;
142	};
143	CancelButton PB_CANCEL
144	{
145		Pos = MAP_APPFONT ( RELATED_CONTROLS + UNRELATED_CONTROLS + BUTTON_WIDTH , 7*RELATED_CONTROLS + 4*UNRELATED_CONTROLS + 9*FIXEDTEXT_HEIGHT +1) ;
146		Size = MAP_APPFONT ( BUTTON_WIDTH , BUTTON_HEIGHT ) ;
147		TabStop = TRUE ;
148	};
149	HelpButton PB_HELP
150	{
151		TabStop	= TRUE ;
152		Pos = MAP_APPFONT ( RELATED_CONTROLS + 2*UNRELATED_CONTROLS + 2*BUTTON_WIDTH , 7*RELATED_CONTROLS + 4*UNRELATED_CONTROLS + 9*FIXEDTEXT_HEIGHT +1) ;
153		Size = MAP_APPFONT ( BUTTON_WIDTH , BUTTON_HEIGHT ) ;
154		Text [ en-US ] = "~Help";
155	};
156};
157String STR_RPT_PN_PAGE
158{
159	Text [ en-US ] = "\"Page \" & #PAGENUMBER#" ;
160    Text [ x-comment ] = "The space after the word is no error. #PAGENUMBER# is a replacement and & must not be translated as well as \"";
161};
162String STR_RPT_PN_PAGE_OF
163{
164	Text [ en-US ] = " & \" of \" & #PAGECOUNT#" ;
165	Text [ x-comment ] = "The space before and after the word is no error. #PAGECOUNT# is a replacement and & must not be translated  as well as \"";
166};
167