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#ifndef _DBU_DLG_HRC_
25#include "dbu_dlg.hrc"
26#endif
27#ifndef _DBAUI_INDEXDIALOG_HRC_
28#include "indexdialog.hrc"
29#endif
30#ifndef DBACCESS_UI_BROWSER_ID_HXX
31#include "browserids.hxx"
32#endif
33#ifndef _DBA_DBACCESS_HELPID_HRC_
34#include "dbaccess_helpid.hrc"
35#endif
36
37#define DIALOG_SIZE_X 220
38#define DIALOG_SIZE_Y 140
39#define BUTTON_SIZE_X 50
40#define BUTTON_SIZE_Y 14
41
42#define LIST_WIDTH 70
43
44ModalDialog DLG_INDEXDESIGN
45{
46	HelpID = "dbaccess:ModalDialog:DLG_INDEXDESIGN" ;
47	OutputSize = TRUE ;
48	SVLook = TRUE ;
49	Size = MAP_APPFONT ( DIALOG_SIZE_X, DIALOG_SIZE_Y ) ;
50	Text [ en-US ] = "Indexes" ;
51	Moveable = TRUE ;
52	Closeable = TRUE ;
53
54	ToolBox TLB_ACTIONS
55	{
56		Pos = MAP_APPFONT ( 6, 6 ) ;
57		//	Size = MAP_APPFONT ( DIALOG_SIZE_X - 14, 14 ) ;
58		ButtonType = BUTTON_SYMBOL ;
59		Align = BOXALIGN_TOP ;
60		HelpId = HID_INDEX_DIALOG_ACTION_TB ;
61		Customize = FALSE ;
62		ItemImageList = IMG_INDEX_DLG_SC ;
63
64		ItemList =
65		{
66			ToolBoxItem
67			{
68				Identifier = ID_INDEX_NEW ;
69				HelpId = HID_DLGIDX_NEWINDEX ;
70				Command = ".index:createNew" ;
71				Text [ en-US ] = "New Index" ;
72			};
73			ToolBoxItem
74			{
75				Identifier = ID_INDEX_DROP ;
76				HelpId = HID_DLGIDX_DROPINDEX ;
77				Command = ".index:dropCurrent" ;
78				Text [ en-US ] = "Delete Current Index" ;
79			};
80			ToolBoxItem
81			{
82				Identifier = ID_INDEX_RENAME ;
83				HelpId = HID_DLGIDX_RENAMEINDEX ;
84				Command = ".index:renameCurrent" ;
85				Text [ en-US ] = "Rename Current Index" ;
86			};
87			ToolBoxItem
88			{
89				Identifier = ID_INDEX_SAVE ;
90				HelpId = HID_DLGIDX_SAVEINDEX ;
91				Command = ".index:saveCurrent" ;
92				Text [ en-US ] = "Save Current Index" ;
93			};
94			ToolBoxItem
95			{
96				Identifier = ID_INDEX_RESET ;
97				HelpId = HID_DLGIDX_RESETINDEX ;
98				Command = ".index:resetCurrent" ;
99				Text [ en-US ] = "Reset Current Index" ;
100			};
101		};
102	};
103	Control CTR_INDEXLIST
104	{
105		Pos = MAP_APPFONT ( 6, 23 ) ;
106		Size = MAP_APPFONT ( LIST_WIDTH, DIALOG_SIZE_Y - (BUTTON_SIZE_Y + 4) - 29 ) ;
107		SVLook = TRUE ;
108		Border = TRUE ;
109		HelpId = HID_DLGIDX_INDEXLIST ;
110		TabStop = TRUE ;
111	};
112	FixedLine FL_INDEXDETAILS
113	{
114		Pos = MAP_APPFONT ( LIST_WIDTH + 16 - 3, 9 ) ;
115		Size = MAP_APPFONT ( DIALOG_SIZE_X - LIST_WIDTH - 22, 8 ) ;
116		Text [ en-US ] = "Index details" ;
117	};
118	FixedText FT_DESC_LABEL
119	{
120		Pos = MAP_APPFONT ( LIST_WIDTH + 16, 23 ) ;
121		Size = MAP_APPFONT ( 50, 8 ) ;
122		Text [ en-US ] = "Index identifier:" ;
123	};
124	FixedText FT_DESCRIPTION
125	{
126		Pos = MAP_APPFONT ( LIST_WIDTH + 69, 23 ) ;
127		Size = MAP_APPFONT ( DIALOG_SIZE_X - LIST_WIDTH - 75, 8 ) ;
128	};
129	CheckBox CB_UNIQUE
130	{
131	    HelpID = "dbaccess:CheckBox:DLG_INDEXDESIGN:CB_UNIQUE" ;
132		Pos = MAP_APPFONT ( LIST_WIDTH + 16, 34 ) ;
133		Size = MAP_APPFONT ( DIALOG_SIZE_X - LIST_WIDTH - 22, 8 ) ;
134		SVLook = TRUE ;
135		Text [ en-US ] = "~Unique" ;
136	};
137	FixedText FT_FIELDS
138	{
139		Pos = MAP_APPFONT ( LIST_WIDTH + 16, 48 ) ;
140		Size = MAP_APPFONT ( DIALOG_SIZE_X - LIST_WIDTH - 22, 8 ) ;
141		SVLook = TRUE ;
142		Text [ en-US ] = "Fields" ;
143	};
144	Control CTR_FIELDS
145	{
146		Pos = MAP_APPFONT ( LIST_WIDTH + 16, 59 ) ;
147		Size = MAP_APPFONT ( DIALOG_SIZE_X - LIST_WIDTH - 22, DIALOG_SIZE_Y - (BUTTON_SIZE_Y + 4) - 65 ) ;
148		SVLook = TRUE ;
149		Border  = TRUE ;
150		TabStop = TRUE ;
151	};
152	PushButton PB_CLOSE
153	{
154	    HelpID = "dbaccess:PushButton:DLG_INDEXDESIGN:PB_CLOSE" ;
155		Pos = MAP_APPFONT ( DIALOG_SIZE_X - BUTTON_SIZE_X - 6 - BUTTON_SIZE_X - 6, DIALOG_SIZE_Y - BUTTON_SIZE_Y - 6 ) ;
156		Size = MAP_APPFONT ( BUTTON_SIZE_X, BUTTON_SIZE_Y ) ;
157		SVLook = TRUE ;
158		DefButton = TRUE ;
159		Text [ en-US ] = "~Close" ;
160	};
161	HelpButton HB_HELP
162	{
163		Pos = MAP_APPFONT ( DIALOG_SIZE_X - BUTTON_SIZE_X - 6, DIALOG_SIZE_Y - BUTTON_SIZE_Y - 6 ) ;
164		Size = MAP_APPFONT ( BUTTON_SIZE_X, BUTTON_SIZE_Y ) ;
165	};
166};
167
168String STR_TAB_INDEX_SORTORDER
169{
170	Text [ en-US ] = "Sort order" ;
171};
172String STR_TAB_INDEX_FIELD
173{
174	Text [ en-US ] = "Index field" ;
175};
176String STR_ORDER_ASCENDING
177{
178	Text [ en-US ] = "Ascending" ;
179};
180String STR_ORDER_DESCENDING
181{
182	Text [ en-US ] = "Descending" ;
183};
184
185String STR_CONFIRM_DROP_INDEX
186{
187	Text [ en-US ] = "Do you really want to delete the index '$name$'?" ;
188};
189
190String STR_LOGICAL_INDEX_NAME
191{
192	Text [ en-US ] = "index" ;
193};
194
195Image IMG_PKEYICON
196{
197	ImageBitmap = Bitmap {File = "pkey.png" ;} ;
198};
199Image IMG_PKEYICON_SCH
200{
201	ImageBitmap = Bitmap {File = "pkey_sch.png" ;} ;
202};
203
204ErrorBox ERR_NEED_INDEX_FIELDS
205{
206	Title [ en-US ] = "Save Index" ;
207	Message [ en-US ] = "The index must contain at least one field." ;
208	Buttons = WB_OK ;
209};
210
211QueryBox QUERY_SAVE_CURRENT_INDEX
212{
213	Title [ en-US ] = "Exit Index Design" ;
214	Message [ en-US ] = "Do you want to save the changes made to the current index?" ;
215	Buttons = WB_YES_NO_CANCEL ;
216	DefButton = WB_DEF_YES ;
217};
218
219String STR_INDEX_NAME_ALREADY_USED
220{
221	Text [ en-US ] = "There is already another index named \"$name$\"." ;
222};
223
224String STR_INDEXDESIGN_DOUBLE_COLUMN_NAME
225{
226	Text [ en-US ] = "In an index definition, no table column may occur more than once. However, you have entered column \"$name$\" twice." ;
227};
228
229// ********************************************************************** EOF
230