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 "xmlfiltertestdialog.hrc"
25#include "xmlfilterhelpids.hrc"
26
27#define DIALOG_WIDTH	200
28#define DIALOG_HEIGHT	230
29
30#define SPACING			3
31
32#define FIRST_ROW_X			6
33#define FIRST_ROW_Y			6
34#define COLUMN_WIDTH		((DIALOG_WIDTH-(5*SPACING))/2)
35
36#define SECOND_ROW_X		FIRST_ROW_X + COLUMN_WIDTH+SPACING
37
38#define FIXED_TEXT_OFFSET	3
39
40#define ROW_HEIGHT			14
41
42ModalDialog DLG_XML_FILTER_TEST_DIALOG
43{
44	HelpId					= HID_XML_FILTER_TEST_DIALOG;
45	Size					= MAP_APPFONT( DIALOG_WIDTH, DIALOG_HEIGHT );
46	OutputSize				= TRUE ;
47	SVLook					= TRUE ;
48	Moveable				= TRUE ;
49	Closeable				= TRUE ;
50	Text [ en-US ]		= "Test XML Filter: %s" ;
51
52    FixedLine FL_EXPORT
53	{
54		Pos					= MAP_APPFONT( 4, FIRST_ROW_Y + 0 * ROW_HEIGHT + 0 * SPACING + FIXED_TEXT_OFFSET);
55        Size				= MAP_APPFONT( DIALOG_WIDTH - 2*SPACING, 8 );
56		Text [ en-US ]	= "Export";
57	};
58
59	FixedText FT_EXPORT_XSLT
60	{
61        Pos					= MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 1 * ROW_HEIGHT + 1 * SPACING + FIXED_TEXT_OFFSET ) ;
62        Size				= MAP_APPFONT ( COLUMN_WIDTH , 8 ) ;
63		Text [ en-US ]	= "XSLT for export";
64	};
65
66	FixedText FT_EXPORT_XSLT_FILE
67	{
68        Pos					= MAP_APPFONT ( SECOND_ROW_X , FIRST_ROW_Y + 1 * ROW_HEIGHT + 1 * SPACING + FIXED_TEXT_OFFSET ) ;
69        Size				= MAP_APPFONT ( 2*COLUMN_WIDTH , 8 ) ;
70		HelpId				= HID_XML_FILTER_TEST_EXPORT_XSLT_FILE;
71	};
72
73	FixedText FT_TRANSFORM_DOCUMENT
74	{
75        Pos					= MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 2 * ROW_HEIGHT + 2 * SPACING + FIXED_TEXT_OFFSET ) ;
76        Size				= MAP_APPFONT ( COLUMN_WIDTH , 8 ) ;
77		Text [ en-US ]	= "Transform document";
78	};
79
80	PushButton PB_EXPORT_BROWSE
81	{
82		Pos					= MAP_APPFONT ( SECOND_ROW_X , FIRST_ROW_Y + 2 * ROW_HEIGHT + 2 * SPACING ) ;
83		Size				= MAP_APPFONT ( COLUMN_WIDTH , 14 ) ;
84		TabStop				= TRUE ;
85		HelpId				= HID_XML_FILTER_TEST_EXPORT_BROWSE;
86		Text [ en-US ]	= "~Browse...";
87	};
88
89	PushButton PB_CURRENT_DOCUMENT
90	{
91		Pos					= MAP_APPFONT ( SECOND_ROW_X , FIRST_ROW_Y + 3 * ROW_HEIGHT + 3 * SPACING ) ;
92		Size				= MAP_APPFONT ( COLUMN_WIDTH , 14 ) ;
93		HelpId				= HID_XML_FILTER_TEST_EXPORT_CURRENT;
94		TabStop				= TRUE ;
95		Text [ en-US ]	= "~Current Document";
96	};
97
98	FixedText FT_NAME_OF_CURRENT_FILE
99	{
100        Pos					= MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 4 * ROW_HEIGHT + 4 * SPACING + FIXED_TEXT_OFFSET ) ;
101        Size				= MAP_APPFONT ( 2*COLUMN_WIDTH , 8 ) ;
102		HelpId				= HID_XML_FILTER_TEST_EXPORT_CURRENT_FILE;
103		Right				= TRUE;
104	};
105
106	// import ---------------------------------------------------------
107
108    FixedLine FL_IMPORT
109	{
110		Pos					= MAP_APPFONT( 4, FIRST_ROW_Y + 5 * ROW_HEIGHT + 5 * SPACING + FIXED_TEXT_OFFSET );
111        Size				= MAP_APPFONT( DIALOG_WIDTH - 2*SPACING, 8 );
112		Text [ en-US ]	= "Import";
113	};
114
115	FixedText FT_IMPORT_XSLT
116	{
117        Pos					= MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 6 * ROW_HEIGHT + 6 * SPACING + FIXED_TEXT_OFFSET ) ;
118        Size				= MAP_APPFONT ( COLUMN_WIDTH , 8 ) ;
119		Text [ en-US ]	= "XSLT for import";
120	};
121
122	FixedText FT_IMPORT_XSLT_FILE
123	{
124        Pos					= MAP_APPFONT ( SECOND_ROW_X , FIRST_ROW_Y + 6 * ROW_HEIGHT + 6 * SPACING + FIXED_TEXT_OFFSET ) ;
125        Size				= MAP_APPFONT ( 2*COLUMN_WIDTH , 8 ) ;
126		HelpId				= HID_XML_FILTER_TEST_IMPORT_XSLT_FILE;
127	};
128
129	FixedText FT_IMPORT_TEMPLATE
130	{
131        Pos					= MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 7 * ROW_HEIGHT + 7 * SPACING + FIXED_TEXT_OFFSET ) ;
132        Size				= MAP_APPFONT ( COLUMN_WIDTH , 8 ) ;
133		Text [ en-US ]	= "Template for import";
134	};
135
136	FixedText FT_IMPORT_TEMPLATE_FILE
137	{
138        Pos					= MAP_APPFONT ( SECOND_ROW_X , FIRST_ROW_Y + 7 * ROW_HEIGHT + 7 * SPACING + FIXED_TEXT_OFFSET ) ;
139        Size				= MAP_APPFONT ( 2*COLUMN_WIDTH , 8 ) ;
140		HelpId				= HID_XML_FILTER_TEST_IMPORT_TEMPLATE_FILE;
141	};
142
143	FixedText FT_TRANSFORM_FILE
144	{
145        Pos					= MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 8 * ROW_HEIGHT + 8 * SPACING + FIXED_TEXT_OFFSET ) ;
146        Size				= MAP_APPFONT ( COLUMN_WIDTH , 8 ) ;
147		Text [ en-US ]	= "Transform file";
148	};
149
150	CheckBox CBX_DISPLAY_SOURCE
151	{
152        Pos					= MAP_APPFONT ( SECOND_ROW_X , FIRST_ROW_Y + 8 * ROW_HEIGHT + 8 * SPACING + 1 ) ;
153        Size				= MAP_APPFONT ( COLUMN_WIDTH , 10 ) ;
154		HelpId				= HID_XML_FILTER_TEST_IMPORT_DISPLAY_SOURCE;
155		Text [ en-US ]	= "~Display source";
156	};
157
158	PushButton PB_IMPORT_BROWSE
159	{
160		Pos					= MAP_APPFONT ( SECOND_ROW_X , FIRST_ROW_Y + 9 * ROW_HEIGHT + 9 * SPACING ) ;
161		Size				= MAP_APPFONT ( COLUMN_WIDTH , 14 ) ;
162		HelpId				= HID_XML_FILTER_TEST_IMPORT_BROWSE;
163		TabStop				= TRUE ;
164		Text [ en-US ]	= "B~rowse...";
165	};
166
167	PushButton PB_RECENT_DOCUMENT
168	{
169		Pos					= MAP_APPFONT ( SECOND_ROW_X , FIRST_ROW_Y + 10 * ROW_HEIGHT + 10 * SPACING ) ;
170		Size				= MAP_APPFONT ( COLUMN_WIDTH , 14 ) ;
171		HelpId				= HID_XML_FILTER_TEST_IMPORT_RECENT;
172		TabStop				= TRUE ;
173		Text [ en-US ]	= "~Recent File";
174	};
175
176	FixedText FT_NAME_OF_RECENT_FILE
177	{
178        Pos					= MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 11 * ROW_HEIGHT + 11 * SPACING + FIXED_TEXT_OFFSET ) ;
179        Size				= MAP_APPFONT ( 2*COLUMN_WIDTH, 8 ) ;
180		HelpId				= HID_XML_FILTER_TEST_IMPORT_RECENT_FILE;
181		Right				= TRUE;
182	};
183
184	PushButton PB_CLOSE
185	{
186		Pos					= MAP_APPFONT ( DIALOG_WIDTH - 2*50 - 2*6 , DIALOG_HEIGHT - 6 - 14 ) ;
187		Size				= MAP_APPFONT ( 50 , 14 ) ;
188		HelpId				= HID_XML_FILTER_TEST_CLOSE;
189		TabStop				= TRUE ;
190		Text [ en-US ]	= "~Close";
191	};
192
193	HelpButton PB_HELP
194	{
195		Pos					= MAP_APPFONT ( DIALOG_WIDTH - 1*50 - 1*6 , DIALOG_HEIGHT - 6 - 14 );
196		Size				= MAP_APPFONT ( 50, 14 );
197	};
198};
199
200
201
202
203
204
205
206
207