1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: indexdialog.src,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
32 #include "dbu_dlg.hrc"
34 #ifndef _DBAUI_INDEXDIALOG_HRC_
35 #include "indexdialog.hrc"
37 #ifndef DBACCESS_UI_BROWSER_ID_HXX
38 #include "browserids.hxx"
40 #ifndef _DBA_DBACCESS_HELPID_HRC_
41 #include "dbaccess_helpid.hrc"
44 #define DIALOG_SIZE_X 220
45 #define DIALOG_SIZE_Y 140
46 #define BUTTON_SIZE_X 50
47 #define BUTTON_SIZE_Y 14
51 ModalDialog DLG_INDEXDESIGN
55 Size = MAP_APPFONT ( DIALOG_SIZE_X , DIALOG_SIZE_Y ) ;
56 Text [ en-US ] = "Indexes" ;
62 Pos = MAP_APPFONT ( 6 , 6 ) ;
63 // Size = MAP_APPFONT ( DIALOG_SIZE_X - 14 , 14 ) ;
64 ButtonType = BUTTON_SYMBOL;
66 HelpId = HID_INDEX_DIALOG_ACTION_TB;
68 ItemImageList = IMG_INDEX_DLG_SC ;
74 Identifier = ID_INDEX_NEW;
75 HelpId = HID_DLGIDX_NEWINDEX;
76 Command = ".index:createNew";
77 Text [ en-US ] = "New Index" ;
81 Identifier = ID_INDEX_DROP;
82 HelpId = HID_DLGIDX_DROPINDEX;
83 Command = ".index:dropCurrent";
84 Text [ en-US ] = "Delete Current Index" ;
88 Identifier = ID_INDEX_RENAME;
89 HelpId = HID_DLGIDX_RENAMEINDEX;
90 Command = ".index:renameCurrent";
91 Text [ en-US ] = "Rename Current Index" ;
95 Identifier = ID_INDEX_SAVE;
96 HelpId = HID_DLGIDX_SAVEINDEX;
97 Command = ".index:saveCurrent";
98 Text [ en-US ] = "Save Current Index" ;
102 Identifier = ID_INDEX_RESET;
103 HelpId = HID_DLGIDX_RESETINDEX;
104 Command = ".index:resetCurrent";
105 Text [ en-US ] = "Reset Current Index" ;
109 Control CTR_INDEXLIST
111 Pos = MAP_APPFONT ( 6 , 23 ) ;
112 Size = MAP_APPFONT ( LIST_WIDTH , DIALOG_SIZE_Y - (BUTTON_SIZE_Y + 4) - 29 ) ;
116 HelpId = HID_DLGIDX_INDEXLIST;
119 FixedLine FL_INDEXDETAILS
121 Pos = MAP_APPFONT ( LIST_WIDTH + 16 - 3, 9 ) ;
122 Size = MAP_APPFONT ( DIALOG_SIZE_X - LIST_WIDTH - 22, 8 ) ;
123 Text [ en-US ] = "Index details";
125 FixedText FT_DESC_LABEL
127 Pos = MAP_APPFONT ( LIST_WIDTH + 16, 23 ) ;
128 Size = MAP_APPFONT ( 50, 8 ) ;
129 Text [ en-US ] = "Index identifier:";
131 FixedText FT_DESCRIPTION
133 Pos = MAP_APPFONT ( LIST_WIDTH + 69, 23 ) ;
134 Size = MAP_APPFONT ( DIALOG_SIZE_X - LIST_WIDTH - 75, 8 ) ;
138 Pos = MAP_APPFONT ( LIST_WIDTH + 16, 34 ) ;
139 Size = MAP_APPFONT ( DIALOG_SIZE_X - LIST_WIDTH - 22, 8 ) ;
141 Text [ en-US ] = "~Unique";
145 Pos = MAP_APPFONT ( LIST_WIDTH + 16, 48 ) ;
146 Size = MAP_APPFONT ( DIALOG_SIZE_X - LIST_WIDTH - 22, 8 ) ;
148 Text [ en-US ] = "Fields";
152 Pos = MAP_APPFONT ( LIST_WIDTH + 16, 59 ) ;
153 Size = MAP_APPFONT ( DIALOG_SIZE_X - LIST_WIDTH - 22, DIALOG_SIZE_Y - (BUTTON_SIZE_Y + 4) - 65 ) ;
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 );
164 Text [ en-US ] = "~Close";
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 );
173 String STR_TAB_INDEX_SORTORDER
175 Text [ en-US ] = "Sort order" ;
177 String STR_TAB_INDEX_FIELD
179 Text [ en-US ] = "Index field" ;
181 String STR_ORDER_ASCENDING
183 Text [ en-US ] = "Ascending" ;
185 String STR_ORDER_DESCENDING
187 Text [ en-US ] = "Descending" ;
190 String STR_CONFIRM_DROP_INDEX
192 Text [ en-US ] = "Do you really want to delete the index '$name$'?";
195 String STR_LOGICAL_INDEX_NAME
197 Text [ en-US ] = "index";
202 ImageBitmap = Bitmap { File = "pkey.bmp"; };
203 MaskColor = Color { Red = 0xFFFF; Green = 0x0; Blue = 0xFFFF; };
205 Image IMG_PKEYICON_SCH
207 ImageBitmap = Bitmap { File = "pkey_sch.bmp"; };
208 MaskColor = Color { Red = 0xFFFF; Green = 0x0; Blue = 0xFFFF; };
211 ErrorBox ERR_NEED_INDEX_FIELDS
213 Title [ en-US ] = "Save Index";
215 Message [ en-US ] = "The index must contain at least one field.";
220 QueryBox QUERY_SAVE_CURRENT_INDEX
222 Title [ en-US ] = "Exit Index Design";
224 Message [ en-US ] = "Do you want to save the changes made to the current index?";
226 Buttons = WB_YES_NO_CANCEL;
227 DefButton = WB_DEF_YES;
230 String STR_INDEX_NAME_ALREADY_USED
232 Text [ en-US ] = "There is already another index named \"$name$\".";
235 String STR_INDEXDESIGN_DOUBLE_COLUMN_NAME
237 Text [ en-US ] = "In an index definition, no table column may occur more than once. However, you have entered column \"$name$\" twice.";