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 "xmlfiltertabpagebasic.hrc"
25#include "xmlfilterhelpids.hrc"
26
27#define TAB_PAGE_WIDTH	260
28#define TAB_PAGE_HEIGHT	185
29
30#define SPACING			3
31
32#define	FIRST_ROW_X			6
33#define FIRST_ROW_Y			6
34#define FIRST_ROW_WIDTH		60
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 - SPACING)
39
40#define FIXED_TEXT_OFFSET	2
41
42#define ROW_HEIGHT			12
43
44
45TabPage RID_XML_FILTER_TABPAGE_BASIC
46{
47	HelpId					= HID_XML_FILTER_TABPAGE_BASIC;
48	Hide					= TRUE;
49	Size					= MAP_APPFONT ( TAB_PAGE_WIDTH , TAB_PAGE_HEIGHT );
50	Text [ en-US ]		= "General";
51
52	// Filter Name ----------------------------------------------------
53
54	FixedText FT_XML_FILTER_NAME
55	{
56        Pos					= MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 0 * ROW_HEIGHT + 0 * SPACING + FIXED_TEXT_OFFSET ) ;
57        Size				= MAP_APPFONT ( FIRST_ROW_WIDTH , 8 ) ;
58		Text [ en-US ]	= "Filter name";
59	};
60
61    Edit ED_XML_FILTER_NAME
62	{
63		Pos					= MAP_APPFONT ( SECOND_ROW_X , SECOND_ROW_Y + 0 * ROW_HEIGHT + 0 * SPACING ) ;
64        Size				= MAP_APPFONT ( 102 , 12 ) ;
65		HelpId				= HID_XML_FILTER_NAME;
66		Border				= TRUE;
67	};
68
69	// Application ----------------------------------------------------
70
71    FixedText FT_XML_APPLICATION
72	{
73        Pos					= MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 1 * ROW_HEIGHT + 1 * SPACING + FIXED_TEXT_OFFSET ) ;
74        Size				= MAP_APPFONT ( FIRST_ROW_WIDTH , 8 ) ;
75		Text [ en-US ]	= "Application";
76	};
77
78	ComboBox CB_XML_APPLICATION
79	{
80		Pos					= MAP_APPFONT ( SECOND_ROW_X , SECOND_ROW_Y + 1 * ROW_HEIGHT + 1 * SPACING ) ;
81        Size				= MAP_APPFONT ( 102 , 60 ) ;
82		HelpId				= HID_XML_FILTER_APPLICATION;
83		Border				= TRUE ;
84		TabStop				= TRUE ;
85		DropDown			= TRUE ;
86		Sort				= TRUE ;
87	};
88
89	// Interface Name -------------------------------------------------
90
91    FixedText FT_XML_INTERFACE_NAME
92	{
93        Pos					= MAP_APPFONT ( FIRST_ROW_X , FIRST_ROW_Y + 2 * ROW_HEIGHT + 2 * SPACING ) ; // + FIXED_TEXT_OFFSET ) ;
94        Size				= MAP_APPFONT ( FIRST_ROW_WIDTH , 16 ) ;
95		Text [ en-US ]	= "Name of\nfile type";
96	};
97
98    Edit ED_XML_INTERFACE_NAME
99	{
100		Pos					= MAP_APPFONT ( SECOND_ROW_X , 2 + SECOND_ROW_Y + 2 * ROW_HEIGHT + 2 * SPACING ) ;
101        Size				= MAP_APPFONT ( 102 , 12 ) ;
102		HelpId				= HID_XML_FILTER_INTERFACE_NAME;
103		Border				= TRUE;
104	};
105
106	// Extension ------------------------------------------------------
107
108    FixedText FT_XML_EXTENSION
109	{
110        Pos					= MAP_APPFONT ( FIRST_ROW_X , 4 + FIRST_ROW_Y + 3 * ROW_HEIGHT + 3 * SPACING + FIXED_TEXT_OFFSET) ;
111        Size				= MAP_APPFONT ( FIRST_ROW_WIDTH , 8 ) ;
112		Text [ en-US ]	= "File extension";
113	};
114
115    Edit ED_XML_EXTENSION
116	{
117		Pos					= MAP_APPFONT ( SECOND_ROW_X , 4 + SECOND_ROW_Y + 3 * ROW_HEIGHT + 3 * SPACING ) ;
118        Size				= MAP_APPFONT ( 32 , 12 ) ;
119		HelpId				= HID_XML_FILTER_EXTENSION;
120		Border				= TRUE;
121	};
122
123	// Description ----------------------------------------------------
124
125    FixedText FT_XML_DESCRIPTION
126	{
127        Pos					= MAP_APPFONT ( FIRST_ROW_X , 4 + FIRST_ROW_Y + 4 * ROW_HEIGHT + 4 * SPACING + FIXED_TEXT_OFFSET ) ;
128        Size				= MAP_APPFONT ( FIRST_ROW_WIDTH , 8 ) ;
129		Text [ en-US ]	= "Comments";
130	};
131
132    MultiLineEdit ED_XML_DESCRIPTION
133	{
134		Pos					= MAP_APPFONT ( SECOND_ROW_X , 4 + SECOND_ROW_Y + 4 * ROW_HEIGHT + 4 * SPACING ) ;
135        Size				= MAP_APPFONT ( SECOND_ROW_WIDTH , 3*ROW_HEIGHT ) ;
136		HelpId				= HID_XML_FILTER_DESCRIPTION;
137		Border				= TRUE;
138		IgnoreTab = TRUE ;
139	};
140};
141
142
143
144
145
146
147
148
149