xref: /AOO41X/main/dbaccess/source/ui/dlg/indexdialog.src (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
1*cdf0e10cSrcweir/*************************************************************************
2*cdf0e10cSrcweir *
3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir *
5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir *
7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir *
9*cdf0e10cSrcweir * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir *
11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir *
15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir *
21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir *
26*cdf0e10cSrcweir ************************************************************************/
27*cdf0e10cSrcweir
28*cdf0e10cSrcweir#ifndef _DBU_DLG_HRC_
29*cdf0e10cSrcweir#include "dbu_dlg.hrc"
30*cdf0e10cSrcweir#endif
31*cdf0e10cSrcweir#ifndef _DBAUI_INDEXDIALOG_HRC_
32*cdf0e10cSrcweir#include "indexdialog.hrc"
33*cdf0e10cSrcweir#endif
34*cdf0e10cSrcweir#ifndef DBACCESS_UI_BROWSER_ID_HXX
35*cdf0e10cSrcweir#include "browserids.hxx"
36*cdf0e10cSrcweir#endif
37*cdf0e10cSrcweir#ifndef _DBA_DBACCESS_HELPID_HRC_
38*cdf0e10cSrcweir#include "dbaccess_helpid.hrc"
39*cdf0e10cSrcweir#endif
40*cdf0e10cSrcweir
41*cdf0e10cSrcweir#define DIALOG_SIZE_X		220
42*cdf0e10cSrcweir#define DIALOG_SIZE_Y		140
43*cdf0e10cSrcweir#define BUTTON_SIZE_X		50
44*cdf0e10cSrcweir#define BUTTON_SIZE_Y		14
45*cdf0e10cSrcweir
46*cdf0e10cSrcweir#define LIST_WIDTH			70
47*cdf0e10cSrcweir
48*cdf0e10cSrcweirModalDialog DLG_INDEXDESIGN
49*cdf0e10cSrcweir{
50*cdf0e10cSrcweir    HelpID = "dbaccess:ModalDialog:DLG_INDEXDESIGN";
51*cdf0e10cSrcweir	OutputSize = TRUE ;
52*cdf0e10cSrcweir	SVLook = TRUE ;
53*cdf0e10cSrcweir	Size = MAP_APPFONT ( DIALOG_SIZE_X , DIALOG_SIZE_Y ) ;
54*cdf0e10cSrcweir	Text [ en-US ] = "Indexes" ;
55*cdf0e10cSrcweir	Moveable = TRUE ;
56*cdf0e10cSrcweir	Closeable = TRUE ;
57*cdf0e10cSrcweir
58*cdf0e10cSrcweir	ToolBox TLB_ACTIONS
59*cdf0e10cSrcweir	{
60*cdf0e10cSrcweir		Pos = MAP_APPFONT ( 6 , 6 ) ;
61*cdf0e10cSrcweir		//	Size = MAP_APPFONT ( DIALOG_SIZE_X - 14 , 14 ) ;
62*cdf0e10cSrcweir		ButtonType = BUTTON_SYMBOL;
63*cdf0e10cSrcweir		Align = BOXALIGN_TOP;
64*cdf0e10cSrcweir		HelpId = HID_INDEX_DIALOG_ACTION_TB;
65*cdf0e10cSrcweir		Customize = FALSE;
66*cdf0e10cSrcweir		ItemImageList = IMG_INDEX_DLG_SC ;
67*cdf0e10cSrcweir
68*cdf0e10cSrcweir		ItemList =
69*cdf0e10cSrcweir		{
70*cdf0e10cSrcweir			ToolBoxItem
71*cdf0e10cSrcweir			{
72*cdf0e10cSrcweir				Identifier = ID_INDEX_NEW;
73*cdf0e10cSrcweir				HelpId = HID_DLGIDX_NEWINDEX;
74*cdf0e10cSrcweir				Command = ".index:createNew";
75*cdf0e10cSrcweir				Text [ en-US ] = "New Index" ;
76*cdf0e10cSrcweir			};
77*cdf0e10cSrcweir			ToolBoxItem
78*cdf0e10cSrcweir			{
79*cdf0e10cSrcweir				Identifier = ID_INDEX_DROP;
80*cdf0e10cSrcweir				HelpId = HID_DLGIDX_DROPINDEX;
81*cdf0e10cSrcweir				Command = ".index:dropCurrent";
82*cdf0e10cSrcweir				Text [ en-US ] = "Delete Current Index" ;
83*cdf0e10cSrcweir			};
84*cdf0e10cSrcweir			ToolBoxItem
85*cdf0e10cSrcweir			{
86*cdf0e10cSrcweir				Identifier = ID_INDEX_RENAME;
87*cdf0e10cSrcweir				HelpId = HID_DLGIDX_RENAMEINDEX;
88*cdf0e10cSrcweir				Command = ".index:renameCurrent";
89*cdf0e10cSrcweir				Text [ en-US ] = "Rename Current Index" ;
90*cdf0e10cSrcweir			};
91*cdf0e10cSrcweir			ToolBoxItem
92*cdf0e10cSrcweir			{
93*cdf0e10cSrcweir				Identifier = ID_INDEX_SAVE;
94*cdf0e10cSrcweir				HelpId = HID_DLGIDX_SAVEINDEX;
95*cdf0e10cSrcweir				Command = ".index:saveCurrent";
96*cdf0e10cSrcweir				Text [ en-US ] = "Save Current Index" ;
97*cdf0e10cSrcweir			};
98*cdf0e10cSrcweir			ToolBoxItem
99*cdf0e10cSrcweir			{
100*cdf0e10cSrcweir				Identifier = ID_INDEX_RESET;
101*cdf0e10cSrcweir				HelpId = HID_DLGIDX_RESETINDEX;
102*cdf0e10cSrcweir				Command = ".index:resetCurrent";
103*cdf0e10cSrcweir				Text [ en-US ] = "Reset Current Index" ;
104*cdf0e10cSrcweir			};
105*cdf0e10cSrcweir		};
106*cdf0e10cSrcweir	};
107*cdf0e10cSrcweir	Control CTR_INDEXLIST
108*cdf0e10cSrcweir	{
109*cdf0e10cSrcweir		Pos = MAP_APPFONT ( 6 , 23 ) ;
110*cdf0e10cSrcweir		Size = MAP_APPFONT ( LIST_WIDTH , DIALOG_SIZE_Y - (BUTTON_SIZE_Y + 4) - 29 ) ;
111*cdf0e10cSrcweir		SVLook = TRUE;
112*cdf0e10cSrcweir		Border  = TRUE;
113*cdf0e10cSrcweir
114*cdf0e10cSrcweir		HelpId = HID_DLGIDX_INDEXLIST;
115*cdf0e10cSrcweir		TabStop = TRUE ;
116*cdf0e10cSrcweir	};
117*cdf0e10cSrcweir	FixedLine FL_INDEXDETAILS
118*cdf0e10cSrcweir	{
119*cdf0e10cSrcweir		Pos = MAP_APPFONT ( LIST_WIDTH + 16 - 3, 9 ) ;
120*cdf0e10cSrcweir		Size = MAP_APPFONT ( DIALOG_SIZE_X - LIST_WIDTH - 22, 8 ) ;
121*cdf0e10cSrcweir		Text [ en-US ] = "Index details";
122*cdf0e10cSrcweir	};
123*cdf0e10cSrcweir	FixedText FT_DESC_LABEL
124*cdf0e10cSrcweir	{
125*cdf0e10cSrcweir		Pos = MAP_APPFONT ( LIST_WIDTH + 16, 23 ) ;
126*cdf0e10cSrcweir		Size = MAP_APPFONT ( 50, 8 ) ;
127*cdf0e10cSrcweir		Text [ en-US ] = "Index identifier:";
128*cdf0e10cSrcweir	};
129*cdf0e10cSrcweir	FixedText FT_DESCRIPTION
130*cdf0e10cSrcweir	{
131*cdf0e10cSrcweir		Pos = MAP_APPFONT ( LIST_WIDTH + 69, 23 ) ;
132*cdf0e10cSrcweir		Size = MAP_APPFONT ( DIALOG_SIZE_X - LIST_WIDTH - 75, 8 ) ;
133*cdf0e10cSrcweir	};
134*cdf0e10cSrcweir	CheckBox CB_UNIQUE
135*cdf0e10cSrcweir	{
136*cdf0e10cSrcweir	    HelpID = "dbaccess:CheckBox:DLG_INDEXDESIGN:CB_UNIQUE";
137*cdf0e10cSrcweir		Pos = MAP_APPFONT ( LIST_WIDTH + 16, 34 ) ;
138*cdf0e10cSrcweir		Size = MAP_APPFONT ( DIALOG_SIZE_X - LIST_WIDTH - 22, 8 ) ;
139*cdf0e10cSrcweir		SVLook = TRUE;
140*cdf0e10cSrcweir		Text [ en-US ] = "~Unique";
141*cdf0e10cSrcweir	};
142*cdf0e10cSrcweir	FixedText FT_FIELDS
143*cdf0e10cSrcweir	{
144*cdf0e10cSrcweir		Pos = MAP_APPFONT ( LIST_WIDTH + 16, 48 ) ;
145*cdf0e10cSrcweir		Size = MAP_APPFONT ( DIALOG_SIZE_X - LIST_WIDTH - 22, 8 ) ;
146*cdf0e10cSrcweir		SVLook = TRUE;
147*cdf0e10cSrcweir		Text [ en-US ] = "Fields";
148*cdf0e10cSrcweir	};
149*cdf0e10cSrcweir	Control CTR_FIELDS
150*cdf0e10cSrcweir	{
151*cdf0e10cSrcweir		Pos = MAP_APPFONT ( LIST_WIDTH + 16, 59 ) ;
152*cdf0e10cSrcweir		Size = MAP_APPFONT ( DIALOG_SIZE_X - LIST_WIDTH - 22, DIALOG_SIZE_Y - (BUTTON_SIZE_Y + 4) - 65 ) ;
153*cdf0e10cSrcweir		SVLook = TRUE;
154*cdf0e10cSrcweir		Border  = TRUE;
155*cdf0e10cSrcweir		TabStop = TRUE ;
156*cdf0e10cSrcweir	};
157*cdf0e10cSrcweir	PushButton PB_CLOSE
158*cdf0e10cSrcweir	{
159*cdf0e10cSrcweir	    HelpID = "dbaccess:PushButton:DLG_INDEXDESIGN:PB_CLOSE";
160*cdf0e10cSrcweir		Pos = MAP_APPFONT ( DIALOG_SIZE_X - BUTTON_SIZE_X - 6 - BUTTON_SIZE_X - 6, DIALOG_SIZE_Y - BUTTON_SIZE_Y - 6 ) ;
161*cdf0e10cSrcweir		Size = MAP_APPFONT ( BUTTON_SIZE_X, BUTTON_SIZE_Y );
162*cdf0e10cSrcweir		SVLook = TRUE;
163*cdf0e10cSrcweir		DefButton = TRUE;
164*cdf0e10cSrcweir		Text [ en-US ] = "~Close";
165*cdf0e10cSrcweir	};
166*cdf0e10cSrcweir	HelpButton HB_HELP
167*cdf0e10cSrcweir	{
168*cdf0e10cSrcweir		Pos = MAP_APPFONT ( DIALOG_SIZE_X - BUTTON_SIZE_X - 6, DIALOG_SIZE_Y - BUTTON_SIZE_Y - 6 ) ;
169*cdf0e10cSrcweir		Size = MAP_APPFONT ( BUTTON_SIZE_X, BUTTON_SIZE_Y );
170*cdf0e10cSrcweir	};
171*cdf0e10cSrcweir};
172*cdf0e10cSrcweir
173*cdf0e10cSrcweirString STR_TAB_INDEX_SORTORDER
174*cdf0e10cSrcweir{
175*cdf0e10cSrcweir	Text [ en-US ] = "Sort order" ;
176*cdf0e10cSrcweir};
177*cdf0e10cSrcweirString STR_TAB_INDEX_FIELD
178*cdf0e10cSrcweir{
179*cdf0e10cSrcweir	Text [ en-US ] = "Index field" ;
180*cdf0e10cSrcweir};
181*cdf0e10cSrcweirString STR_ORDER_ASCENDING
182*cdf0e10cSrcweir{
183*cdf0e10cSrcweir	Text [ en-US ] = "Ascending" ;
184*cdf0e10cSrcweir};
185*cdf0e10cSrcweirString STR_ORDER_DESCENDING
186*cdf0e10cSrcweir{
187*cdf0e10cSrcweir	Text [ en-US ] = "Descending" ;
188*cdf0e10cSrcweir};
189*cdf0e10cSrcweir
190*cdf0e10cSrcweirString STR_CONFIRM_DROP_INDEX
191*cdf0e10cSrcweir{
192*cdf0e10cSrcweir	Text [ en-US ] = "Do you really want to delete the index '$name$'?";
193*cdf0e10cSrcweir};
194*cdf0e10cSrcweir
195*cdf0e10cSrcweirString STR_LOGICAL_INDEX_NAME
196*cdf0e10cSrcweir{
197*cdf0e10cSrcweir	Text [ en-US ] = "index";
198*cdf0e10cSrcweir};
199*cdf0e10cSrcweir
200*cdf0e10cSrcweirImage IMG_PKEYICON
201*cdf0e10cSrcweir{
202*cdf0e10cSrcweir	ImageBitmap = Bitmap { File = "pkey.bmp"; };
203*cdf0e10cSrcweir	MaskColor = Color { Red = 0xFFFF; Green = 0x0; Blue = 0xFFFF; };
204*cdf0e10cSrcweir};
205*cdf0e10cSrcweirImage IMG_PKEYICON_SCH
206*cdf0e10cSrcweir{
207*cdf0e10cSrcweir	ImageBitmap = Bitmap { File = "pkey_sch.bmp"; };
208*cdf0e10cSrcweir	MaskColor = Color { Red = 0xFFFF; Green = 0x0; Blue = 0xFFFF; };
209*cdf0e10cSrcweir};
210*cdf0e10cSrcweir
211*cdf0e10cSrcweirErrorBox ERR_NEED_INDEX_FIELDS
212*cdf0e10cSrcweir{
213*cdf0e10cSrcweir	Title [ en-US ] = "Save Index";
214*cdf0e10cSrcweir
215*cdf0e10cSrcweir	Message [ en-US ] = "The index must contain at least one field.";
216*cdf0e10cSrcweir
217*cdf0e10cSrcweir	Buttons = WB_OK;
218*cdf0e10cSrcweir};
219*cdf0e10cSrcweir
220*cdf0e10cSrcweirQueryBox QUERY_SAVE_CURRENT_INDEX
221*cdf0e10cSrcweir{
222*cdf0e10cSrcweir	Title [ en-US ] = "Exit Index Design";
223*cdf0e10cSrcweir
224*cdf0e10cSrcweir	Message [ en-US ] = "Do you want to save the changes made to the current index?";
225*cdf0e10cSrcweir
226*cdf0e10cSrcweir	Buttons = WB_YES_NO_CANCEL;
227*cdf0e10cSrcweir	DefButton = WB_DEF_YES;
228*cdf0e10cSrcweir};
229*cdf0e10cSrcweir
230*cdf0e10cSrcweirString STR_INDEX_NAME_ALREADY_USED
231*cdf0e10cSrcweir{
232*cdf0e10cSrcweir	Text [ en-US ] = "There is already another index named \"$name$\".";
233*cdf0e10cSrcweir};
234*cdf0e10cSrcweir
235*cdf0e10cSrcweirString STR_INDEXDESIGN_DOUBLE_COLUMN_NAME
236*cdf0e10cSrcweir{
237*cdf0e10cSrcweir	Text [ en-US ] = "In an index definition, no table column may occur more than once. However, you have entered column \"$name$\" twice.";
238*cdf0e10cSrcweir};
239*cdf0e10cSrcweir
240