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 "xmlfiltertabpagexslt.hrc"
25#include "xmlfilterhelpids.hrc"
26
27#define TAB_PAGE_WIDTH	260
28#define TAB_PAGE_HEIGHT	120
29
30#define SPACING			3
31
32#define	FIRST_ROW_X			6
33#define FIRST_ROW_Y			6
34#define FIRST_ROW_WIDTH		75
35
36#define SECOND_ROW_X		(FIRST_ROW_X + FIRST_ROW_WIDTH + SPACING)
37#define SECOND_ROW_Y		6
38#define SECOND_ROW_WIDTH	(TAB_PAGE_WIDTH - SECOND_ROW_X - 2*SPACING)
39#define BROWSE_WIDTH		50
40
41#define EDIT_OFFSET			1
42#define FIXED_TEXT_OFFSET	2
43
44#define ROW_HEIGHT			14
45
46
47TabPage RID_XML_FILTER_TABPAGE_XSLT
48{
49	HelpId					= HID_XML_FILTER_TABPAGE_XSLT;
50	Hide					= TRUE;
51	Size					= MAP_APPFONT ( TAB_PAGE_WIDTH , TAB_PAGE_HEIGHT );
52	Text [ en-US ] = "Transformation";
53
54	// DocType --------------------------------------------------------
55
56    FixedText FT_XML_DOCTYPE
57	{
58        Pos					= MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 0 * ROW_HEIGHT + 0 * SPACING + FIXED_TEXT_OFFSET + EDIT_OFFSET ) ;
59        Size				= MAP_APPFONT ( FIRST_ROW_WIDTH , 8 ) ;
60		Text [ en-US ]	= "DocType";
61	};
62
63    Edit ED_XML_DOCTYPE
64	{
65		Pos					= MAP_APPFONT ( SECOND_ROW_X , SECOND_ROW_Y + 0 * ROW_HEIGHT + 0 * SPACING + EDIT_OFFSET ) ;
66        Size				= MAP_APPFONT ( SECOND_ROW_WIDTH - SPACING - BROWSE_WIDTH, 12 ) ;
67		HelpId				= HID_XML_FILTER_DOCTYPE;
68		Border				= TRUE;
69	};
70
71	// DTD/Schema -----------------------------------------------------
72
73    FixedText FT_XML_DTD_SCHEMA
74	{
75        Pos					= MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 1 * ROW_HEIGHT + 1 * SPACING + FIXED_TEXT_OFFSET + EDIT_OFFSET ) ;
76        Size				= MAP_APPFONT ( FIRST_ROW_WIDTH , 8 ) ;
77		Text [ en-US ]	= "DTD";
78	};
79
80    ComboBox ED_XML_DTD_SCHEMA
81	{
82		Pos					= MAP_APPFONT ( SECOND_ROW_X , SECOND_ROW_Y + 1 * ROW_HEIGHT + 1 * SPACING + EDIT_OFFSET ) ;
83        Size				= MAP_APPFONT ( SECOND_ROW_WIDTH - SPACING - BROWSE_WIDTH, 12 ) ;
84		HelpId				= HID_XML_FILTER_DTD;
85		Border				= TRUE;
86		DropDown			= FALSE ;
87	};
88
89	PushButton ED_XML_DTD_SCHEMA_BROWSE
90	{
91        Pos					= MAP_APPFONT ( SECOND_ROW_X + SECOND_ROW_WIDTH - BROWSE_WIDTH , FIRST_ROW_Y + 1 * ROW_HEIGHT + 1 * SPACING ) ;
92        Size				= MAP_APPFONT ( BROWSE_WIDTH , 14 ) ;
93		HelpId				= HID_XML_FILTER_DTD_BROWSE;
94		Text [ en-US ]	= "Browse...";
95	};
96
97	// Export XSLT ----------------------------------------------------
98
99    FixedText FT_XML_EXPORT_XSLT
100	{
101        Pos					= MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 2 * ROW_HEIGHT + 2 * SPACING + FIXED_TEXT_OFFSET + EDIT_OFFSET ) ;
102        Size				= MAP_APPFONT ( FIRST_ROW_WIDTH, 8 ) ;
103		Text [ en-US ]	= "XSLT for export";
104	};
105
106    ComboBox ED_XML_EXPORT_XSLT
107	{
108		Pos					= MAP_APPFONT ( SECOND_ROW_X , FIRST_ROW_Y + 2 * ROW_HEIGHT + 2 * SPACING + EDIT_OFFSET ) ;
109        Size				= MAP_APPFONT ( SECOND_ROW_WIDTH - SPACING - BROWSE_WIDTH , 12 ) ;
110		HelpId				= HID_XML_FILTER_EXPORT_XSLT;
111		Border				= TRUE;
112	};
113
114	PushButton PB_XML_EXPORT_XSLT_BROWSE
115	{
116        Pos					= MAP_APPFONT ( SECOND_ROW_X + SECOND_ROW_WIDTH - BROWSE_WIDTH , FIRST_ROW_Y + 2 * ROW_HEIGHT + 2 * SPACING ) ;
117        Size				= MAP_APPFONT ( BROWSE_WIDTH , 14 ) ;
118		HelpId				= HID_XML_FILTER_EXPORT_XSLT_BROWSE;
119		Text [ en-US ]	= "Browse...";
120	};
121
122	// Import XSLT ----------------------------------------------------
123
124    FixedText FT_XML_IMPORT_XSLT
125	{
126        Pos					= MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 3 * ROW_HEIGHT + 3 * SPACING + FIXED_TEXT_OFFSET + EDIT_OFFSET ) ;
127        Size				= MAP_APPFONT ( FIRST_ROW_WIDTH , 8 ) ;
128		Text [ en-US ]	= "XSLT for import";
129	};
130
131    ComboBox ED_XML_IMPORT_XSLT
132	{
133		Pos					= MAP_APPFONT ( SECOND_ROW_X , FIRST_ROW_Y + 3 * ROW_HEIGHT + 3 * SPACING + EDIT_OFFSET ) ;
134        Size				= MAP_APPFONT ( SECOND_ROW_WIDTH - SPACING - BROWSE_WIDTH , 12 ) ;
135		HelpId				= HID_XML_FILTER_IMPORT_XSLT;
136		Border				= TRUE;
137	};
138
139	PushButton PB_XML_IMPORT_XSLT_BROWSE
140	{
141        Pos					= MAP_APPFONT ( SECOND_ROW_X + SECOND_ROW_WIDTH - BROWSE_WIDTH , FIRST_ROW_Y + 3 * ROW_HEIGHT + 3 * SPACING ) ;
142        Size				= MAP_APPFONT ( BROWSE_WIDTH , 14 ) ;
143		HelpId				= HID_XML_FILTER_IMPORT_XSLT_BROWSE;
144		Text [ en-US ]	= "Browse...";
145	};
146
147	// Import Template ------------------------------------------------
148
149    FixedText FT_XML_IMPORT_TEMPLATE
150	{
151        Pos					= MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 4 * ROW_HEIGHT + 4 * SPACING + FIXED_TEXT_OFFSET + EDIT_OFFSET ) ;
152        Size				= MAP_APPFONT ( FIRST_ROW_WIDTH , 8 ) ;
153		Text [ en-US ]	= "Template for import";
154	};
155
156    ComboBox ED_XML_IMPORT_TEMPLATE
157	{
158		Pos					= MAP_APPFONT ( SECOND_ROW_X , FIRST_ROW_Y + 4 * ROW_HEIGHT + 4 * SPACING + EDIT_OFFSET ) ;
159        Size				= MAP_APPFONT ( SECOND_ROW_WIDTH - SPACING - BROWSE_WIDTH , 12 ) ;
160		HelpId				= HID_XML_FILTER_IMPORT_TEMPLATE;
161		Border				= TRUE;
162	};
163
164	PushButton PB_XML_IMPORT_TEMPLATE_BROWSE
165	{
166        Pos					= MAP_APPFONT ( SECOND_ROW_X + SECOND_ROW_WIDTH - BROWSE_WIDTH , FIRST_ROW_Y + 4 * ROW_HEIGHT + 4 * SPACING ) ;
167        Size				= MAP_APPFONT ( BROWSE_WIDTH , 14 ) ;
168		HelpId				= HID_XML_FILTER_IMPORT_TEMPLATE_BROWSE;
169		Text [ en-US ]	= "Browse...";
170	};
171};
172
173