1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
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.
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).
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.
26 ************************************************************************/
29 #include "dbu_dlg.hrc"
31 #ifndef _DBAUI_INDEXDIALOG_HRC_
32 #include "indexdialog.hrc"
34 #ifndef DBACCESS_UI_BROWSER_ID_HXX
35 #include "browserids.hxx"
37 #ifndef _DBA_DBACCESS_HELPID_HRC_
38 #include "dbaccess_helpid.hrc"
41 #define DIALOG_SIZE_X 220
42 #define DIALOG_SIZE_Y 140
43 #define BUTTON_SIZE_X 50
44 #define BUTTON_SIZE_Y 14
48 ModalDialog DLG_INDEXDESIGN
50 HelpID = "dbaccess:ModalDialog:DLG_INDEXDESIGN";
53 Size = MAP_APPFONT ( DIALOG_SIZE_X , DIALOG_SIZE_Y ) ;
54 Text [ en-US ] = "Indexes" ;
60 Pos = MAP_APPFONT ( 6 , 6 ) ;
61 ButtonType = BUTTON_SYMBOL;
63 HelpId = HID_INDEX_DIALOG_ACTION_TB;
65 ItemImageList = IMG_INDEX_DLG_SC ;
71 Identifier = ID_INDEX_NEW;
72 HelpId = HID_DLGIDX_NEWINDEX;
73 Command = ".index:createNew";
74 Text [ en-US ] = "New Index" ;
78 Identifier = ID_INDEX_DROP;
79 HelpId = HID_DLGIDX_DROPINDEX;
80 Command = ".index:dropCurrent";
81 Text [ en-US ] = "Delete Current Index" ;
85 Identifier = ID_INDEX_RENAME;
86 HelpId = HID_DLGIDX_RENAMEINDEX;
87 Command = ".index:renameCurrent";
88 Text [ en-US ] = "Rename Current Index" ;
92 Identifier = ID_INDEX_SAVE;
93 HelpId = HID_DLGIDX_SAVEINDEX;
94 Command = ".index:saveCurrent";
95 Text [ en-US ] = "Save Current Index" ;
99 Identifier = ID_INDEX_RESET;
100 HelpId = HID_DLGIDX_RESETINDEX;
101 Command = ".index:resetCurrent";
102 Text [ en-US ] = "Reset Current Index" ;
106 Control CTR_INDEXLIST
108 Pos = MAP_APPFONT ( 6 , 23 ) ;
109 Size = MAP_APPFONT ( LIST_WIDTH , DIALOG_SIZE_Y - (BUTTON_SIZE_Y + 4) - 29 ) ;
113 HelpId = HID_DLGIDX_INDEXLIST;
116 FixedLine FL_INDEXDETAILS
118 Pos = MAP_APPFONT ( LIST_WIDTH + 16 - 3, 9 ) ;
119 Size = MAP_APPFONT ( DIALOG_SIZE_X - LIST_WIDTH - 22, 8 ) ;
120 Text [ en-US ] = "Index details";
122 FixedText FT_DESC_LABEL
124 Pos = MAP_APPFONT ( LIST_WIDTH + 16, 23 ) ;
125 Size = MAP_APPFONT ( 50, 8 ) ;
126 Text [ en-US ] = "Index identifier:";
128 FixedText FT_DESCRIPTION
130 Pos = MAP_APPFONT ( LIST_WIDTH + 69, 23 ) ;
131 Size = MAP_APPFONT ( DIALOG_SIZE_X - LIST_WIDTH - 75, 8 ) ;
135 HelpID = "dbaccess:CheckBox:DLG_INDEXDESIGN:CB_UNIQUE";
136 Pos = MAP_APPFONT ( LIST_WIDTH + 16, 34 ) ;
137 Size = MAP_APPFONT ( DIALOG_SIZE_X - LIST_WIDTH - 22, 8 ) ;
139 Text [ en-US ] = "~Unique";
143 Pos = MAP_APPFONT ( LIST_WIDTH + 16, 48 ) ;
144 Size = MAP_APPFONT ( DIALOG_SIZE_X - LIST_WIDTH - 22, 8 ) ;
146 Text [ en-US ] = "Fields";
150 Pos = MAP_APPFONT ( LIST_WIDTH + 16, 59 ) ;
151 Size = MAP_APPFONT ( DIALOG_SIZE_X - LIST_WIDTH - 22, DIALOG_SIZE_Y - (BUTTON_SIZE_Y + 4) - 65 ) ;
158 HelpID = "dbaccess:PushButton:DLG_INDEXDESIGN:PB_CLOSE";
159 Pos = MAP_APPFONT ( DIALOG_SIZE_X - BUTTON_SIZE_X - 6 - BUTTON_SIZE_X - 6, DIALOG_SIZE_Y - BUTTON_SIZE_Y - 6 ) ;
160 Size = MAP_APPFONT ( BUTTON_SIZE_X, BUTTON_SIZE_Y );
163 Text [ en-US ] = "~Close";
167 Pos = MAP_APPFONT ( DIALOG_SIZE_X - BUTTON_SIZE_X - 6, DIALOG_SIZE_Y - BUTTON_SIZE_Y - 6 ) ;
168 Size = MAP_APPFONT ( BUTTON_SIZE_X, BUTTON_SIZE_Y );
172 String STR_TAB_INDEX_SORTORDER
174 Text [ en-US ] = "Sort order" ;
177 String STR_TAB_INDEX_FIELD
179 Text [ en-US ] = "Index field" ;
182 String STR_ORDER_ASCENDING
184 Text [ en-US ] = "Ascending" ;
187 String STR_ORDER_DESCENDING
189 Text [ en-US ] = "Descending" ;
192 String STR_CONFIRM_DROP_INDEX
194 Text [ en-US ] = "Do you really want to delete the index '$name$'?";
197 String STR_LOGICAL_INDEX_NAME
199 Text [ en-US ] = "index";
204 ImageBitmap = Bitmap { File = "pkey.png"; };
205 MaskColor = Color { Red = 0xFFFF; Green = 0x0; Blue = 0xFFFF; };
208 ErrorBox ERR_NEED_INDEX_FIELDS
210 Title [ en-US ] = "Save Index";
212 Message [ en-US ] = "The index must contain at least one field.";
217 QueryBox QUERY_SAVE_CURRENT_INDEX
219 Title [ en-US ] = "Exit Index Design";
221 Message [ en-US ] = "Do you want to save the changes made to the current index?";
223 Buttons = WB_YES_NO_CANCEL;
224 DefButton = WB_DEF_YES;
227 String STR_INDEX_NAME_ALREADY_USED
229 Text [ en-US ] = "There is already another index named \"$name$\".";
232 String STR_INDEXDESIGN_DOUBLE_COLUMN_NAME
234 Text [ en-US ] = "In an index definition, no table column may occur more than once. However, you have entered column \"$name$\" twice.";