1*dc900991SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3*dc900991SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*dc900991SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5*dc900991SAndrew Rist * distributed with this work for additional information
6*dc900991SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7*dc900991SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*dc900991SAndrew Rist * "License"); you may not use this file except in compliance
9*dc900991SAndrew Rist * with the License.  You may obtain a copy of the License at
10*dc900991SAndrew Rist *
11*dc900991SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12*dc900991SAndrew Rist *
13*dc900991SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*dc900991SAndrew Rist * software distributed under the License is distributed on an
15*dc900991SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*dc900991SAndrew Rist * KIND, either express or implied.  See the License for the
17*dc900991SAndrew Rist * specific language governing permissions and limitations
18*dc900991SAndrew Rist * under the License.
19*dc900991SAndrew Rist *
20*dc900991SAndrew Rist *************************************************************/
21*dc900991SAndrew Rist
22*dc900991SAndrew Rist
23cdf0e10cSrcweir#include "PageNumber.hrc"
24cdf0e10cSrcweir#include "RptResId.hrc"
25cdf0e10cSrcweir#include "helpids.hrc"
26cdf0e10cSrcweir#ifndef _GLOBLMN_HRC
27cdf0e10cSrcweir#include <svx/globlmn.hrc>
28cdf0e10cSrcweir#endif
29cdf0e10cSrcweir#ifndef _SBASLTID_HRC
30cdf0e10cSrcweir#include <svx/svxids.hrc>
31cdf0e10cSrcweir#endif
32cdf0e10cSrcweir
33cdf0e10cSrcweir
34cdf0e10cSrcweirModalDialog RID_PAGENUMBERS
35cdf0e10cSrcweir{
36cdf0e10cSrcweir	OutputSize = TRUE ;
37cdf0e10cSrcweir	SVLook = TRUE ;
38cdf0e10cSrcweir    Size = MAP_APPFONT ( PAGE_WIDTH , PAGE_HEIGHT ) ;
39cdf0e10cSrcweir	Text [ en-US ] = "Page Numbers" ;
40cdf0e10cSrcweir	HelpId = HID_RPT_PAGENUMBERS_DLG;
41cdf0e10cSrcweir	Moveable = TRUE ;
42cdf0e10cSrcweir	Closeable = TRUE ;
43cdf0e10cSrcweir
44cdf0e10cSrcweir	FixedLine FL_FORMAT
45cdf0e10cSrcweir	{
46cdf0e10cSrcweir		Pos = MAP_APPFONT ( RELATED_CONTROLS , RELATED_CONTROLS ) ;
47cdf0e10cSrcweir		Size = MAP_APPFONT ( PAGE_WIDTH - 2*RELATED_CONTROLS, FIXEDTEXT_HEIGHT ) ;
48cdf0e10cSrcweir		Text [ en-US ] = "Format";
49cdf0e10cSrcweir	};
50cdf0e10cSrcweir
51cdf0e10cSrcweir	RadioButton RB_PAGE_N
52cdf0e10cSrcweir	{
53cdf0e10cSrcweir	    HelpID = "reportdesign:RadioButton:RID_PAGENUMBERS:RB_PAGE_N";
54cdf0e10cSrcweir		Pos = MAP_APPFONT ( UNRELATED_CONTROLS + RELATED_CONTROLS, 2*RELATED_CONTROLS + FIXEDTEXT_HEIGHT) ;
55cdf0e10cSrcweir		Size = MAP_APPFONT ( PAGE_WIDTH - 2*RELATED_CONTROLS , FIXEDTEXT_HEIGHT ) ;
56cdf0e10cSrcweir		Group = TRUE;
57cdf0e10cSrcweir		Check = TRUE;
58cdf0e10cSrcweir        Text [ en-US ]  = "Page N";
59cdf0e10cSrcweir	};
60cdf0e10cSrcweir	RadioButton RB_PAGE_N_OF_M
61cdf0e10cSrcweir	{
62cdf0e10cSrcweir	    HelpID = "reportdesign:RadioButton:RID_PAGENUMBERS:RB_PAGE_N_OF_M";
63cdf0e10cSrcweir		Pos = MAP_APPFONT ( UNRELATED_CONTROLS + RELATED_CONTROLS, 3*RELATED_CONTROLS + 2*FIXEDTEXT_HEIGHT) ;
64cdf0e10cSrcweir		Size = MAP_APPFONT ( PAGE_WIDTH - 2*RELATED_CONTROLS , FIXEDTEXT_HEIGHT ) ;
65cdf0e10cSrcweir        Text [ en-US ]  = "Page N of M";
66cdf0e10cSrcweir	};
67cdf0e10cSrcweir
68cdf0e10cSrcweir	FixedLine FL_POSITION
69cdf0e10cSrcweir	{
70cdf0e10cSrcweir		Pos = MAP_APPFONT ( RELATED_CONTROLS , 3*RELATED_CONTROLS + UNRELATED_CONTROLS + 3*FIXEDTEXT_HEIGHT) ;
71cdf0e10cSrcweir		Size = MAP_APPFONT ( PAGE_WIDTH - 2*RELATED_CONTROLS , FIXEDTEXT_HEIGHT ) ;
72cdf0e10cSrcweir		Text [ en-US ] = "Position";
73cdf0e10cSrcweir	};
74cdf0e10cSrcweir
75cdf0e10cSrcweir	RadioButton RB_PAGE_TOPPAGE
76cdf0e10cSrcweir	{
77cdf0e10cSrcweir	    HelpID = "reportdesign:RadioButton:RID_PAGENUMBERS:RB_PAGE_TOPPAGE";
78cdf0e10cSrcweir		Pos = MAP_APPFONT ( UNRELATED_CONTROLS + RELATED_CONTROLS, 4*RELATED_CONTROLS + UNRELATED_CONTROLS + 4*FIXEDTEXT_HEIGHT) ;
79cdf0e10cSrcweir		Size = MAP_APPFONT ( PAGE_WIDTH - 2*RELATED_CONTROLS , FIXEDTEXT_HEIGHT ) ;
80cdf0e10cSrcweir		Group = TRUE;
81cdf0e10cSrcweir		Check = TRUE;
82cdf0e10cSrcweir        Text [ en-US ]  = "Top of Page (Header)";
83cdf0e10cSrcweir	};
84cdf0e10cSrcweir	RadioButton RB_PAGE_BOTTOMPAGE
85cdf0e10cSrcweir	{
86cdf0e10cSrcweir	    HelpID = "reportdesign:RadioButton:RID_PAGENUMBERS:RB_PAGE_BOTTOMPAGE";
87cdf0e10cSrcweir		Pos = MAP_APPFONT ( UNRELATED_CONTROLS + RELATED_CONTROLS, 5*RELATED_CONTROLS + UNRELATED_CONTROLS + 5*FIXEDTEXT_HEIGHT) ;
88cdf0e10cSrcweir		Size = MAP_APPFONT ( PAGE_WIDTH - 2*RELATED_CONTROLS , FIXEDTEXT_HEIGHT ) ;
89cdf0e10cSrcweir        Text [ en-US ]  = "Bottom of Page (Footer)";
90cdf0e10cSrcweir	};
91cdf0e10cSrcweir
92cdf0e10cSrcweir	FixedLine FL_MISC
93cdf0e10cSrcweir	{
94cdf0e10cSrcweir		Pos = MAP_APPFONT ( RELATED_CONTROLS , 5*RELATED_CONTROLS + 2*UNRELATED_CONTROLS + 6*FIXEDTEXT_HEIGHT) ;
95cdf0e10cSrcweir		Size = MAP_APPFONT ( PAGE_WIDTH - 2*RELATED_CONTROLS , FIXEDTEXT_HEIGHT ) ;
96cdf0e10cSrcweir		Text [ en-US ] = "General";
97cdf0e10cSrcweir	};
98cdf0e10cSrcweir
99cdf0e10cSrcweir	FixedText FL_ALIGNMENT
100cdf0e10cSrcweir	{
101cdf0e10cSrcweir		Pos = MAP_APPFONT ( UNRELATED_CONTROLS , 6*RELATED_CONTROLS + 2*UNRELATED_CONTROLS + 7*FIXEDTEXT_HEIGHT) ;
102cdf0e10cSrcweir		Size = MAP_APPFONT ( FIXEDTEXT_WIDTH, FIXEDTEXT_HEIGHT ) ;
103cdf0e10cSrcweir		Text [ en-US ] = "Alignment:";
104cdf0e10cSrcweir	};
105cdf0e10cSrcweir	ListBox LST_ALIGNMENT
106cdf0e10cSrcweir	{
107cdf0e10cSrcweir	    HelpID = "reportdesign:ListBox:RID_PAGENUMBERS:LST_ALIGNMENT";
108cdf0e10cSrcweir		Border = TRUE;
109cdf0e10cSrcweir		Pos = MAP_APPFONT( 2*UNRELATED_CONTROLS + FIXEDTEXT_WIDTH , 6*RELATED_CONTROLS + 2*UNRELATED_CONTROLS + 7*FIXEDTEXT_HEIGHT -1);
110cdf0e10cSrcweir		Size = MAP_APPFONT( LISTBOX_WIDTH, 60 );
111cdf0e10cSrcweir		DropDown = TRUE;
112cdf0e10cSrcweir		TabStop = TRUE;
113cdf0e10cSrcweir		CurPos = 1 ;
114cdf0e10cSrcweir		StringList [ en-US ] =
115cdf0e10cSrcweir		{
116cdf0e10cSrcweir			< "Left" ; Default ; > ;
117cdf0e10cSrcweir			< "Center" ; Default ; > ;
118cdf0e10cSrcweir			< "Right" ; Default ; > ;
119cdf0e10cSrcweir			//< "Inside" ; Default ; > ;
120cdf0e10cSrcweir			//< "Outside" ; Default ; > ;
121cdf0e10cSrcweir		};
122cdf0e10cSrcweir	};
123cdf0e10cSrcweir	CheckBox CB_SHOWNUMBERONFIRSTPAGE
124cdf0e10cSrcweir	{
125cdf0e10cSrcweir	    HelpID = "reportdesign:CheckBox:RID_PAGENUMBERS:CB_SHOWNUMBERONFIRSTPAGE";
126cdf0e10cSrcweir		Pos = MAP_APPFONT ( UNRELATED_CONTROLS , 6*RELATED_CONTROLS + 3*UNRELATED_CONTROLS + 8*FIXEDTEXT_HEIGHT) ;
127cdf0e10cSrcweir		Size = MAP_APPFONT ( PAGE_WIDTH - 2*RELATED_CONTROLS , FIXEDTEXT_HEIGHT ) ;
128cdf0e10cSrcweir		Check = TRUE;
129cdf0e10cSrcweir        Text [ en-US ]  = "Show Number on First Page";
130cdf0e10cSrcweir	};
131cdf0e10cSrcweir	FixedLine FL_SEPARATOR1
132cdf0e10cSrcweir	{
133cdf0e10cSrcweir		Pos = MAP_APPFONT ( RELATED_CONTROLS , 6*RELATED_CONTROLS + 4*UNRELATED_CONTROLS + 9*FIXEDTEXT_HEIGHT ) ;
134cdf0e10cSrcweir		Size = MAP_APPFONT ( PAGE_WIDTH - 2*RELATED_CONTROLS , 1 ) ;
135cdf0e10cSrcweir	};
136cdf0e10cSrcweir	OKButton PB_OK
137cdf0e10cSrcweir	{
138cdf0e10cSrcweir		Pos = MAP_APPFONT ( UNRELATED_CONTROLS, 7*RELATED_CONTROLS + 4*UNRELATED_CONTROLS + 9*FIXEDTEXT_HEIGHT +1) ;
139cdf0e10cSrcweir		Size = MAP_APPFONT ( BUTTON_WIDTH , BUTTON_HEIGHT ) ;
140cdf0e10cSrcweir		TabStop = TRUE ;
141cdf0e10cSrcweir		DefButton = TRUE ;
142cdf0e10cSrcweir	};
143cdf0e10cSrcweir	CancelButton PB_CANCEL
144cdf0e10cSrcweir	{
145cdf0e10cSrcweir		Pos = MAP_APPFONT ( RELATED_CONTROLS + UNRELATED_CONTROLS + BUTTON_WIDTH , 7*RELATED_CONTROLS + 4*UNRELATED_CONTROLS + 9*FIXEDTEXT_HEIGHT +1) ;
146cdf0e10cSrcweir		Size = MAP_APPFONT ( BUTTON_WIDTH , BUTTON_HEIGHT ) ;
147cdf0e10cSrcweir		TabStop = TRUE ;
148cdf0e10cSrcweir	};
149cdf0e10cSrcweir	HelpButton PB_HELP
150cdf0e10cSrcweir	{
151cdf0e10cSrcweir		TabStop	= TRUE ;
152cdf0e10cSrcweir		Pos = MAP_APPFONT ( RELATED_CONTROLS + 2*UNRELATED_CONTROLS + 2*BUTTON_WIDTH , 7*RELATED_CONTROLS + 4*UNRELATED_CONTROLS + 9*FIXEDTEXT_HEIGHT +1) ;
153cdf0e10cSrcweir		Size = MAP_APPFONT ( BUTTON_WIDTH , BUTTON_HEIGHT ) ;
154cdf0e10cSrcweir		Text [ en-US ] = "~Help";
155cdf0e10cSrcweir	};
156cdf0e10cSrcweir};
157cdf0e10cSrcweirString STR_RPT_PN_PAGE
158cdf0e10cSrcweir{
159cdf0e10cSrcweir	Text [ en-US ] = "\"Page \" & #PAGENUMBER#" ;
160cdf0e10cSrcweir};
161cdf0e10cSrcweirString STR_RPT_PN_PAGE_OF
162cdf0e10cSrcweir{
163cdf0e10cSrcweir	Text [ en-US ] = " & \" of \" & #PAGECOUNT#" ;
164cdf0e10cSrcweir};
165