xref: /AOO41X/main/dbaccess/source/ui/dlg/indexdialog.src (revision 81d089ae0b6b164818efbaaff21440338527721c)
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
110        HelpId = HID_DLGIDX_INDEXLIST;
111        TabStop = TRUE ;
112    };
113    FixedLine FL_INDEXDETAILS
114    {
115        Pos = MAP_APPFONT ( LIST_WIDTH + 16 - 3, 9 ) ;
116        Size = MAP_APPFONT ( DIALOG_SIZE_X - LIST_WIDTH - 22, 8 ) ;
117        Text [ en-US ] = "Index details";
118    };
119    FixedText FT_DESC_LABEL
120    {
121        Pos = MAP_APPFONT ( LIST_WIDTH + 16, 23 ) ;
122        Size = MAP_APPFONT ( 50, 8 ) ;
123        Text [ en-US ] = "Index identifier:";
124    };
125    FixedText FT_DESCRIPTION
126    {
127        Pos = MAP_APPFONT ( LIST_WIDTH + 69, 23 ) ;
128        Size = MAP_APPFONT ( DIALOG_SIZE_X - LIST_WIDTH - 75, 8 ) ;
129    };
130    CheckBox CB_UNIQUE
131    {
132        HelpID = "dbaccess:CheckBox:DLG_INDEXDESIGN:CB_UNIQUE";
133        Pos = MAP_APPFONT ( LIST_WIDTH + 16, 34 ) ;
134        Size = MAP_APPFONT ( DIALOG_SIZE_X - LIST_WIDTH - 22, 8 ) ;
135        SVLook = TRUE;
136        Text [ en-US ] = "~Unique";
137    };
138    FixedText FT_FIELDS
139    {
140        Pos = MAP_APPFONT ( LIST_WIDTH + 16, 48 ) ;
141        Size = MAP_APPFONT ( DIALOG_SIZE_X - LIST_WIDTH - 22, 8 ) ;
142        SVLook = TRUE;
143        Text [ en-US ] = "Fields";
144    };
145    Control CTR_FIELDS
146    {
147        Pos = MAP_APPFONT ( LIST_WIDTH + 16, 59 ) ;
148        Size = MAP_APPFONT ( DIALOG_SIZE_X - LIST_WIDTH - 22, DIALOG_SIZE_Y - (BUTTON_SIZE_Y + 4) - 65 ) ;
149        SVLook = TRUE;
150        Border  = TRUE;
151        TabStop = TRUE ;
152    };
153    PushButton PB_CLOSE
154    {
155        HelpID = "dbaccess:PushButton:DLG_INDEXDESIGN:PB_CLOSE";
156        Pos = MAP_APPFONT ( DIALOG_SIZE_X - BUTTON_SIZE_X - 6 - BUTTON_SIZE_X - 6, DIALOG_SIZE_Y - BUTTON_SIZE_Y - 6 ) ;
157        Size = MAP_APPFONT ( BUTTON_SIZE_X, BUTTON_SIZE_Y );
158        SVLook = TRUE;
159        DefButton = TRUE;
160        Text [ en-US ] = "~Close";
161    };
162    HelpButton HB_HELP
163    {
164        Pos = MAP_APPFONT ( DIALOG_SIZE_X - BUTTON_SIZE_X - 6, DIALOG_SIZE_Y - BUTTON_SIZE_Y - 6 ) ;
165        Size = MAP_APPFONT ( BUTTON_SIZE_X, BUTTON_SIZE_Y );
166    };
167};
168
169String STR_TAB_INDEX_SORTORDER
170{
171    Text [ en-US ] = "Sort order" ;
172};
173String STR_TAB_INDEX_FIELD
174{
175    Text [ en-US ] = "Index field" ;
176};
177String STR_ORDER_ASCENDING
178{
179    Text [ en-US ] = "Ascending" ;
180};
181String STR_ORDER_DESCENDING
182{
183    Text [ en-US ] = "Descending" ;
184};
185
186String STR_CONFIRM_DROP_INDEX
187{
188    Text [ en-US ] = "Do you really want to delete the index '$name$'?";
189};
190
191String STR_LOGICAL_INDEX_NAME
192{
193    Text [ en-US ] = "index";
194};
195
196Image IMG_PKEYICON
197{
198    ImageBitmap = Bitmap { File = "pkey.bmp"; };
199    MaskColor = Color { Red = 0xFFFF; Green = 0x0; Blue = 0xFFFF; };
200};
201Image IMG_PKEYICON_SCH
202{
203    ImageBitmap = Bitmap { File = "pkey_sch.bmp"; };
204    MaskColor = Color { Red = 0xFFFF; Green = 0x0; Blue = 0xFFFF; };
205};
206
207ErrorBox ERR_NEED_INDEX_FIELDS
208{
209    Title [ en-US ] = "Save Index";
210
211    Message [ en-US ] = "The index must contain at least one field.";
212
213    Buttons = WB_OK;
214};
215
216QueryBox QUERY_SAVE_CURRENT_INDEX
217{
218    Title [ en-US ] = "Exit Index Design";
219
220    Message [ en-US ] = "Do you want to save the changes made to the current index?";
221
222    Buttons = WB_YES_NO_CANCEL;
223    DefButton = WB_DEF_YES;
224};
225
226String STR_INDEX_NAME_ALREADY_USED
227{
228    Text [ en-US ] = "There is already another index named \"$name$\".";
229};
230
231String STR_INDEXDESIGN_DOUBLE_COLUMN_NAME
232{
233    Text [ en-US ] = "In an index definition, no table column may occur more than once. However, you have entered column \"$name$\" twice.";
234};
235
236