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