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